hppa: Remove unused lll_unlock_wake_cb.
[glibc.git] / ChangeLog
blobd28d4179d71ef9f726d33ce6966c77e4f39bacd4
1 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
3         [BZ #13550]
4         * csu/libc-start.c: Do not include <bp-sym.h>.
5         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
6         * elf/dl-open.c: Do not include <bp-sym.h>.
7         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
8         * math/fegetenv.c: Do not include <bp-sym.h>.
9         (fegetenv): Do not use BP_SYM in versioned symbols.
10         * nptl/sysdeps/pthread/bits/libc-lockP.h
11         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
12         <bp-sym.h>.
13         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
14         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
15         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
16         (__pthread_mutex_destroy): Likewise.
17         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
18         (__pthread_mutex_lock): Likewise.
19         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20         (__pthread_mutex_trylock): Likewise.
21         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22         (__pthread_mutex_unlock): Likewise.
23         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
24         (__pthread_mutexattr_init): Likewise.
25         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
26         (__pthread_mutexattr_destroy): Likewise.
27         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28         (__pthread_mutexattr_settype): Likewise.
29         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
30         (__pthread_rwlock_init): Likewise.
31         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
32         (__pthread_rwlock_destroy): Likewise.
33         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
34         (__pthread_rwlock_rdlock): Likewise.
35         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
36         (__pthread_rwlock_tryrdlock): Likewise.
37         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
38         (__pthread_rwlock_wrlock): Likewise.
39         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
40         (__pthread_rwlock_trywrlock): Likewise.
41         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
42         (__pthread_rwlock_unlock): Likewise.
43         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
44         (__pthread_key_create): Likewise.
45         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
46         (__pthread_setspecific): Likewise.
47         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
48         (__pthread_getspecific): Likewise.
49         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
50         Likewise.
51         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52         (_pthread_cleanup_push_defer): Likewise.
53         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54         (_pthread_cleanup_pop_restore): Likewise.
55         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
56         (pthread_setcancelstate): Likewise.
57         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
58         <bp-sym.h>.
59         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
60         (memchr): Do not use BP_SYM in weak_alias.
61         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
62         (fegetenv): Do not use BP_SYM in versioned symbols.
63         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
64         (fesetenv): Do not use BP_SYM in versioned symbols.
65         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
66         (feupdateenv): Do not use BP_SYM in versioned symbols.
67         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
68         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
69         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
70         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
71         (open64): Do not use BP_SYM in weak_alias.
72         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
73         (fegetenv): Do not use BP_SYM in versioned symbols.
74         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
75         (fesetenv): Do not use BP_SYM in versioned symbols.
76         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
77         (feupdateenv): Do not use BP_SYM in versioned symbols.
78         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
79         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
80         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
81         (feraiseexcept): Do not use BP_SYM in versioned symbols.
82         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
83         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
84         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
85         <bp-sym.h>.
86         (__libc_start_main): Do not use BP_SYM.
88 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
90         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
91         redundant return line.
92         (norm): Likewise.
93         (denorm): Likewise.
94         (dbl_mp): Likewise.
95         (sub_magnitudes): Likewise.
96         (__add): Likewise.
97         (__sub): Likewise.
98         (__mul): Likewise.
99         (__inv): Likewise.
100         (__dvd): Likewise.
101         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
102         (norm): Likewise.
103         (denorm): Likewise.
104         (dbl_mp): Likewise.
105         (sub_magnitudes): Likewise.
106         (__add): Likewise.
107         (__sub): Likewise.
108         (__mul): Likewise.
109         (__inv): Likewise.
110         (__dvd): Likewise.
112         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
113         instead of __mul.
114         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
115         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
116         (cc32): Likewise.
118         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
119         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
120         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
121         of __mul for squares.
122         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
123         function
124         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
125         Likewise.
126         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
127         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
129 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
131         [BZ #13550]
132         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
133         code.
134         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
135         prototype or function definition.  Rename ubp_* variables and
136         parameters.  Remove argv definitions conditional on
137         [__BOUNDED_POINTERS__].
138         * debug/backtrace.c (__backtrace): Do not use __unbounded.
139         * elf/dl-runtime.c (_dl_fixup): Likewise.
140         * include/set-hooks.h (RUN_HOOK): Likewise.
141         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
142         definition.
143         * string/strcpy.c (strcpy): Do not use __unbounded.
144         * sysdeps/generic/frame.h (struct layout): Likewise.
145         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
146         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
147         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
148         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
149         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
150         (__backtrace): Likewise.
151         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
152         use __ptrvalue.
153         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
154         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
155         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
156         Likewise.
157         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
158         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
159         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
160         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
161         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
162         Do not use __unbounded.
163         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
164         Rename __unboundedrlimits parameter to rlimits in prototype.
165         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
166         Do not use __unbounded.
167         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
168         not use __ptrvalue.
169         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
170         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
171         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
172         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
173         __ptrvalue or __unbounded.
174         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
175         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
176         use __unbounded.
177         (__new_msgctl): Do not use __ptrvalue.
178         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
179         __unbounded.
180         (__libc_msgrcv): Do not use __ptrvalue.
181         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
182         startup_info): Do not use __unbounded.
183         (__libc_start_main): Likewise.  Rename ubp_* variables and
184         parameters.  Remove argv definitions conditional on
185         [__BOUNDED_POINTERS__].
186         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
187         __ptrvalue.
188         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
189         use __unbounded.
190         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
191         or __ptrvalue.
192         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
193         use __unbounded.
194         (__new_shmctl): Do not use __ptrvalue.
195         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
196         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
197         Likewise.
198         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
199         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
200         (__libc_sigaction): Likewise.
201         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
202         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
203         Likewise.
204         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
206 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
208         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
210         * string/mempcpy.c: Implement by calling memcpy.
212 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
214         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
216         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
217         evaluation.
219         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
220         values in the mantissa.
222         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
223         minimize writes to Z.
224         (sub_magnitudes): Simplify code a bit.
226 2013-02-12  Roland McGrath  <roland@hack.frob.com>
228         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
229         from the message.  The linker prefixes all warnings with that already.
231 2013-02-12  Andreas Schwab  <schwab@suse.de>
233         [BZ #15078]
234         * posix/regexec.c (extend_buffers): Add parameter min_len.
235         (check_matching): Pass minimum needed length.
236         (clean_state_log_if_needed): Likewise.
237         (get_subexp): Likewise.
238         * posix/Makefile (tests): Add bug-regex34.
239         (bug-regex34-ENV): Define.
240         * posix/bug-regex34.c: New file.
242         [BZ #11561]
243         * posix/regcomp.c (parse_bracket_exp): When looking up collating
244         elements compare against the byte sequence of it, not its name.
245         * posix/Makefile (tests): Add bug-regex35.
246         (bug-regex35-ENV): Define.
247         * posix/bug-regex35.c: New file.
249 2013-02-11  Tom de Vries  <tom@codesourcery.com>
251         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
252         comment.
253         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
254         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
255         (CHECK_EOL): Add undef.
257 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
259         * bits/stdlib-bsearch.h: New file.
260         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
261         * stdlib/stdlib.h: Likewise.
263 2013-02-11  Roland McGrath  <roland@hack.frob.com>
265         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
266         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
267         declaration.
268         * manual/search.texi (Array Search Function): Add missing const in
269         lfind prototype.
270         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
271         declaration to use rlim_t.
272         (Basic Scheduling Functions): Remove erroneous const from
273         sched_getparam prototype.  Remove erroneous * from
274         sched_get_priority_max and sched_get_priority_min prototypes.
275         (Resource Usage): Fix summary @comment on vtimes to refer to
276         sys/vtimes.h rather than vtimes.h.
277         Add missing *s in vtimes prototype.
278         (Limits on Resources): Fix ulimit prototype to return long int.
279         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
280         prototypes to use long int rather than double.
281         (BSD Random): Fix initstate and setstate to use char *, not void *.
282         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
283         prototype to make second argument 'struct aiocb64 *const[]'.
284         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
285         (Status of AIO Operations): Remove erroneous const in aio_return and
286         aio_return64 prototypes.
287         (Synchronizing I/O): Fix sync prototype to return void.
288         * manual/startup.texi (Suboptions): Remove an erroneous const in
289         getsubopt prototype.
290         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
291         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
292         use size_t rather than int.
293         (Scanning All Users): Likewise for getpwent_r.
294         (Setting Groups): Add missing const to setgroups prototype.
295         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
296         * manual/socket.texi (Host Names): Fix gethostbyaddr and
297         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
298         'const void *' rather than 'const char *'.
299         (Host Address Functions): Likewise for inet_ntop.
300         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
301         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
302         ssize_t for return value.
303         (Sending Data): Likewise for send, sendto, sendmsg.
304         (Socket Option Functions): Add a missing const in setsockopt prototype.
305         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
306         use wchar_t for the argument.
307         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
308         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
309         take no arguments.
310         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
311         double/float/long double for second argument.
312         Fix return types of significand, significandf, significandl.
313         * manual/filesys.texi (Setting Permissions): Use mode_t for second
314         argument in fchmod prototype.
315         (File Owner): Use uid_t and gid_t in fchown prototype.
316         (File Times): Add const to utimes, futimes, and lutimes prototypes.
317         (Making Special Files): Use mode_t and dev_t in mknod prototype.
318         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
319         use 'const struct dirent **' as argument types to CMP function pointer
320         argument.
321         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
322         (File Times): Fix summary magic @comment for struct utimbuf and utime
323         to refer to utime.h, not time.h.
324         * manual/string.texi (Argz Functions): Add missing const in
325         argz_extract and argz_next prototypes.
326         (Finding Tokens in a String): Likewise for basename.
327         (String/Array Comparison): Fix typo in wcscasecmp prototype.
328         (Copying and Concatenation): Fix typo in wmemmove prototype.
329         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
330         (Signal Stack): Remove erroneous const in sigstack prototype.
331         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
332         prototype.
333         (Simple Calendar Time): Likewise for stime.
334         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
335         prototype.
336         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
337         say sys/sysctl.h instead.
338         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
339         and vsyslog prototypes.
341 2013-02-11  Tom de Vries  <tom@codesourcery.com>
343         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
344         Remove.
346 2013-02-11  Roland McGrath  <roland@hack.frob.com>
348         * misc/sys/mman.h: Fix typo in mremap comment.
350 2013-02-08  Roland McGrath  <roland@hack.frob.com>
352         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
353         the '\0' terminator.
355 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
357         [BZ #13550]
358         * debug/segfault.c: Don't include <bp-checks.h>.
359         * sysdeps/generic/bp-checks.h: Remove file.
360         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
361         (__GETDENTS): Don't use CHECK_N.
362         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
363         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
364         (__getgroups): Don't use CHECK_N.
365         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
366         (setgroups): Don't use CHECK_N.
367         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
368         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
369         (__libc_msgrcv): Don't use CHECK_N.
370         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
371         (__libc_msgsnd): Don't use CHECK_N.
372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
373         <bp-checks.h>.
374         (__libc_pread): Don't use CHECK_N.
375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
376         include <bp-checks.h>.
377         (__libc_pread64): Don't use CHECK_N.
378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
379         include <bp-checks.h>.
380         (__libc_pwrite): Don't use CHECK_N.
381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
382         include <bp-checks.h>.
383         (__libc_pwrite64): Don't use CHECK_N.
384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
385         <bp-checks.h>.
386         (__libc_pread): Don't use CHECK_N.
387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
388         include <bp-checks.h>.
389         (__libc_pread64): Don't use CHECK_N.
390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
391         include <bp-checks.h>.
392         (__libc_pwrite): Don't use CHECK_N.
393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
394         include <bp-checks.h>.
395         (__libc_pwrite64): Don't use CHECK_N.
396         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
397         (do_pread): Don't use CHECK_N.
398         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
399         (do_pread64): Don't use CHECK_N.
400         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
401         (do_pwrite): Don't use CHECK_N.
402         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
403         (do_pwrite64): Don't use CHECK_N.
404         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
405         (__libc_readv): Don't use CHECK_N.
406         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
407         (semop): Don't use CHECK_N.
408         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
409         <bp-checks.h>.
410         (semtimedop): Don't use CHECK_N.
411         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
412         (__libc_pread): Don't use CHECK_N.
413         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
414         <bp-checks.h>.
415         (__libc_pread64): Don't use CHECK_N.
416         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
417         <bp-checks.h>.
418         (__libc_pwrite): Don't use CHECK_N.
419         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
420         <bp-checks.h>.
421         (__libc_pwrite64): Don't use CHECK_N.
422         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
423         <bp-checks.h>.
424         (__libc_msgrcv): Don't use CHECK_N.
425         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
426         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
427         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
428         (__libc_writev): Don't use CHECK_N.
430 2013-02-08  Roland McGrath  <roland@hack.frob.com>
432         * string/strcpy.c: Removed unused variable.
434         * Makeconfig (+sysdep-includes): Define with := rather than =.
435         Use an existing include/ subdir of each sysdeps dir before it.
437 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
439         * nscd/connection.c (register_traced_file): Comment function.
440         [HAVE_INOTIFY] (union __inev): Define.
441         [HAVE_INOTIFY] (inotify_check_files): New function.
442         [HAVE_INOTIFY] (clear_db_cache): Likewise.
443         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
444         clear_db_cache.
445         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
447 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
449         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
450         loaded if not already and that a failure is permanent.
452 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
454         [BZ #15006]
455         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
456         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
458 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
460         [BZ #13550]
461         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
462         (CHECK_1_NULL_OK): Likewise.
463         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
464         (__fxstat): Do not use CHECK_1.
465         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
466         <bp-checks.h>.
467         (___fxstat64): Do not use CHECK_1.
468         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
469         <bp-checks.h>.
470         (__fxstatat): Do not use CHECK_1.
471         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
472         <bp-checks.h>.
473         (__fxstatat64): Do not use CHECK_1.
474         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
475         <bp-checks.h>.
476         (__fxstat): Do not use CHECK_1.
477         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
478         <bp-checks.h>.
479         (__fxstatat): Do not use CHECK_1.
480         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
481         <bp-checks.h>.
482         (__getresgid): Do not use CHECK_1.
483         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
484         <bp-checks.h>.
485         (__getresuid): Do not use CHECK_1.
486         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
487         <bp-checks.h>.
488         (__lxstat): Do not use CHECK_1.
489         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
490         <bp-checks.h>.
491         (__old_msgctl): Do not use CHECK_1.
492         (__new_msgctl): Likewise.
493         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
494         <bp-checks.h>.
495         (__new_setrlimit): Do not use CHECK_1.
496         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
497         <bp-checks.h>.
498         (__old_shmctl): Do not use CHECK_1.
499         (__new_shmctl): Likewise.
500         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
501         <bp-checks.h>.
502         (__xstat): Do not use CHECK_1.
503         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
504         (__lxstat): Do not use CHECK_1.
505         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
506         <bp-checks.h>.
507         (___lxstat64): Do not use CHECK_1.
508         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
509         (__old_msgctl): Do not use CHECK_1.
510         (__new_msgctl): Likewise.
511         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
512         <bp-checks.h>.
513         (__gettimeofday): Do not use CHECK_1.
514         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
515         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
516         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
517         <bp-checks.h>.
518         (__gettimeofday): Do not use CHECK_1.
519         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
520         (__old_shmctl): Do not use CHECK_1_NULL_OK.
521         (__new_shmctl): Do not use CHECK_1.
522         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
523         <bp-checks.h>.
524         (do_sigtimedwait): Do not use CHECK_1.
525         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
526         <bp-checks.h>.
527         (do_sigwaitinfo): Do not use CHECK_1.
528         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
529         <bp-checks.h>.
530         (msgctl): Do not use CHECK_1.
531         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
532         <bp-checks.h>.
533         (shmctl): Do not use CHECK_1.
534         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
535         (ustat): Do not use CHECK_1.
536         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
537         <bp-checks.h>.
538         (__fxstat): Do not use CHECK_1.
539         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
540         <bp-checks.h>.
541         (__fxstatat): Do not use CHECK_1.
542         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
543         <bp-checks.h>.
544         (__lxstat): Do not use CHECK_1.
545         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
546         <bp-checks.h>.
547         (__xstat): Do not use CHECK_1.
548         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
549         (__xstat): Do not use CHECK_1.
550         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
551         (___xstat64): Do not use CHECK_1.
553         [BZ #13550]
554         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
555         definitions.
556         (CHECK_BOUNDS_HIGH): Likewise.
557         * string/strcpy.c: Do not include <bp-checks.h>.
558         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
560 2013-02-07  Roland McGrath  <roland@hack.frob.com>
562         * nscd/nscd-client.h (__nscd_drop_map_ref):
563         Add __attribute__ ((unused)).
564         * nis/nss-nisplus.h (niserr2nss): Likewise.
566         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
567         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
569         * csu/libc-tls.c (init_static_tls, init_slotinfo):
570         Remove inline keyword.
571         * include/rounding-mode.h (round_away): Likewise.
572         * libio/wfileops.c (adjust_wide_data): Likewise.
573         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
574         (__m128i_strloadu_tolower): Likewise.
575         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
576         (__m128i_strloadu_tolower): Likewise.
577         * time/mktime.c (ydhms_diff): Likewise.
578         * locale/elem-hash.h (elem_hash): Likewise.
579         * locale/setlocale.c (setdata): Likewise.
580         * posix/regex_internal.h (re_string_char_size_at): Likewise.
581         (re_string_wchar_at): Likewise.
582         (bitset_not, bitset_merge, bitset_mask): Likewise.
583         [!(__GNUC__ > 3)] (inline): Remove macro.
584         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
585         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
586         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
587         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
588         * string/memcmp.c (memcmp_bytes): Likewise.
589         * locale/programs/locarchive.c (compute_hashval): Likewise.
590         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
591         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
592         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
593         * nss/getent.c (print_rpc, print_protocols): Likewise.
594         (print_passwd, print_group, print_aliases): Likewise.
595         * nis/nss-nisplus.h (niserr2nss): Likewise.
596         * nscd/connections.c (restart_p): Likewise.
597         Change return type to bool.
599 2013-02-05  Roland McGrath  <roland@hack.frob.com>
601         * Makeconfig (all-Depend-files): Add existing
602         $(sorted-subdirs:=/Depend) files.
603         (all-subdirs): Remove nss.
604         * sysdeps/unix/inet/Subdirs: Add it here instead.
605         * hesiod/Depend: New file.
607         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
608         instead of calling alloca.
610         * io/lseek.c (__lseek): Rename to __libc_lseek.
611         Define __lseek as an alias.
613         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
615 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
617         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
618         else clause and remove check for non-standard endianness.
620 2013-02-04  David S. Miller  <davem@davemloft.net>
622         * sysdeps/sparc/fpu/libm-test-ulps: Update.
624 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
626         [BZ #13550]
627         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
628         (__ubp_memchr): Remove prototype.
629         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
630         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
631         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
632         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
633         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
634         Remove alias.
635         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
636         (__ubp_memchr): Likewise.
637         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
638         (__ubp_memchr): Likewise.
639         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
640         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
641         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
642         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
643         CHECK_STRING.
644         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
645         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
646         (__getcwd): Do not use CHECK_STRING.
647         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
648         <bp-checks.h>.
649         (__real_chown): Do not use CHECK_STRING.
650         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
651         <bp-checks.h>.
652         (fchownat): Do not use CHECK_STRING.
653         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
654         CHECK_STRING.
655         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
656         <bp-checks.h>.
657         (__lchown): Do not use CHECK_STRING.
658         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
659         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
660         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
661         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
663         include <bp-checks.h>.
664         (truncate64): Do not use CHECK_STRING.
665         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
666         <bp-checks.h>.
667         (__real_chown): Do not use CHECK_STRING.
668         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
669         <bp-checks.h>.
670         (__lchown): Do not use CHECK_STRING.
671         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
672         <bp-checks.h>.
673         (__chown): Do not use CHECK_STRING.
674         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
675         <bp-checks.h>.
676         (truncate64): Do not use CHECK_STRING.
677         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
678         Likewise.
679         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
680         (__xmknod): Do not use CHECK_STRING.
681         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
682         <bp-checks.h>.
683         (__xmknodat): Do not use CHECK_STRING.
684         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
685         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
687 2013-02-04  Andreas Schwab  <schwab@suse.de>
689         [BZ #14142]
690         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
691         * include/netdb.h: Likewise for h_errno.
692         * elf/tst-stackguard1.c: Include <tls.h>.
694 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
696         * elf/link.h (struct link_map): Extend the l_addr comment.
697         * include/link.h (struct link_map): Likewise.
699 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
701         [BZ #13550]
702         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
703         (BOUNDED_1): Remove macro.
704         * debug/backtrace.c: Don't include <bp-checks.h>.
705         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
706         (__backtrace): Likewise.
707         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
708         <bp-checks.h>.
709         (__backtrace): Don't use BOUNDED_1.
710         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
711         <bp-checks.h>.
712         (__backtrace): Don't use BOUNDED_1.
713         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
714         (__backtrace): Don't use BOUNDED_1.
715         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
716         (shmat): Don't use BOUNDED_N.
718 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
720         [BZ #13550]
721         * sysdeps/generic/bp-start.h: Remove file.
722         * csu/libc-start.c: Don't include <bp-start.h>.
723         (LIBC_START_MAIN): Set up __environ directly instead of using
724         INIT_ARGV_and_ENVIRON.
725         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
726         <bp-start.h>.
728         [BZ #13550]
729         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
730         definitions.
731         (CHECK_FCNTL): Likewise.
732         (CHECK_N_PAGES): Likewise.
734         [BZ #13550]
735         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
736         definitions.
737         (CHECK_SIGSET_NULL_OK): Likewise.
738         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
739         <bp-checks.h>.
740         (sigpending): Don't use CHECK_SIGSET.
741         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
742         <bp-checks.h>.
743         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
744         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
745         <bp-checks.h>.
746         (do_sigsuspend): Don't use CHECK_SIGSET.
747         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
748         use CHECK_SIGSET.
749         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
750         (do_sigwait): Don't use CHECK_SIGSET.
751         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
752         use CHECK_SIGSET.
753         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
754         include <bp-checks.h>.
755         (sigpending): Don't use CHECK_SIGSET.
756         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
757         include <bp-checks.h>.
758         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
759         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
760         <bp-checks.h>.
761         (sigpending): Don't use CHECK_SIGSET.
762         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
763         <bp-checks.h>.
764         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
766         [BZ #13550]
767         * sysdeps/generic/bp-semctl.h: Remove file.
768         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
769         <bp-checks.h> and <bp-semctl.h>.
770         (__old_semctl): Don't use CHECK_SEMCTL.
771         (__new_semctl): Likewise.
772         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
773         and <bp-semctl.h>.
774         (__old_semctl): Don't use CHECK_SEMCTL.
775         (__new_semctl): Likewise.
776         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
777         <bp-checks.h> and <bp-semctl.h>.
778         (__old_semctl): Don't use CHECK_SEMCTL.
779         (__new_semctl): Likewise.
780         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
781         <bp-checks.h> and <bp-semctl.h>.
782         (semctl): Don't use CHECK_SEMCTL.
784         [BZ #13550]
785         * Makerules (elide-bp-thunks): Remove variable.
786         (elide-routines.oS): Don't use $(elide-bp-thunks).
787         (elide-routines.os): Likewise.
788         (elide-routines.o): Likewise.
789         (elide-routines.op): Likewise.
790         (elide-routines.og): Likewise.
791         (objects): Don't use $(bp-thunks).
792         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
793         include.
794         (common-generated): Do not add s-proto-bp.d.
795         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
796         (int): Likewise.
797         (typ): Likewise.
798         Do not generate makefile rules for bounded-pointer thunks.
799         * sysdeps/generic/bp-thunks.h: Remove file.
800         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
801         * sysdeps/unix/s-proto-bp.S: Likewise.
803         [BZ #15062]
804         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
805         parts of result separately when argument is not close to line from
806         -i to i and one part of argument is small.
807         * math/k_casinhf.c (__kernel_casinhf): Likewise.
808         * math/k_casinhl.c (__kernel_casinhl): Likewise.
809         * math/libm-test.inc (cacos_test): Add more tests.
810         (casin_test): Likewise.
811         (casinh_test): Likewise.
812         * sysdeps/i386/fpu/libm-test-ulps: Update.
813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
815 2013-01-31  David S. Miller  <davem@davemloft.net>
817         * po/de.po: Update from translation team.
819 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
821         * time/tzfile.c: Include stdint.h for SIZE_MAX.
823 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
825         * configure.in (_AC_PROG_CC_C89): New definition.
826         * configure: Regenerate.
828         * configure.in (AC_PROG_CPP): New definition.
829         * configure: Regenerate.
831 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
833         * debug/tst-backtrace.h: New file.
834         * debug/tst-backtrace2.c: Include tst-backtrace.h.
835         (ret): Remove variable.
836         (x): Likewise.
837         (FAIL): Remove macro.
838         (NO_INLINE): Likewise.
839         (fn1): Use match function instead of strstr.
840         * debug/tst-backtrace3.c: Include tst-backtrace.h.
841         (ret): Remove variable.
842         (x): Likewise.
843         (FAIL): Remove macro.
844         (NO_INLINE): Likewise.
845         (fn): Use match function instead of strstr.
846         * debug/tst-backtrace4.c: Include tst-backtrace.h.
847         (ret): Remove variable.
848         (x): Likewise.
849         (FAIL): Remove macro.
850         (NO_INLINE): Likewise.
851         (handle_signal): Use match function instead of strstr.
852         * debug/tst-backtrace5.c: Include tst-backtrace.h.
853         (ret): Remove variable.
854         (x): Likewise.
855         (FAIL): Remove macro.
856         (NO_INLINE): Likewise.
857         (handle_signal): Use match function instead of strstr.
859 2013-01-23  Roland McGrath  <roland@hack.frob.com>
861         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
863 2013-01-23  David S. Miller  <davem@davemloft.net>
865         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
866         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
867         argument of CAS if possible.
868         * sysdeps/sparc/sparc64/bits/atomic.h
869         (__arch_compare_and_exchange_val_32_acq): Likewise.
870         (__arch_compare_and_exchange_val_64_acq): Likewise.
872 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
874         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
875         * sysdeps/posix/ulimit.c: ... this.
876         Include <limits.h>.
877         * sysdeps/unix/bsd/ulimit.c: Remove file.
879 2013-01-23  Adam Conrad  <adconrad@0c3.net>
881         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
882         (LDFLAGS-tst-array5): Likewise.
884 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
886         [BZ #15036]
887         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
888         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
889         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
890         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
892 2013-01-21  David S. Miller  <davem@davemloft.net>
894         * sysdeps/sparc/backtrace.c: New file.
895         * sysdeps/sparc/sparc32/backtrace.h: New file.
896         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
897         * sysdeps/sparc/sparc64/backtrace.h: New file.
898         * sysdeps/sparc/sparc64/backtrace.c: Delete.
899         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
900         -funwind-tables.
902 2013-01-21  Andreas Schwab  <schwab@suse.de>
904         [BZ #15020]
905         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
906         closed its stdout.
908 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
910         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
911         "mpa2.h".
912         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
914 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
915             Mark Mitchell  <mark@codesourcery.com>
916             Tom de Vries  <tom@codesourcery.com>
917             Paul Pluzhnikov  <ppluzhnikov@google.com>
919         * debug/tst-backtrace2.c: New file.
920         * debug/tst-backtrace3.c: Likewise.
921         * debug/tst-backtrace4.c: Likewise.
922         * debug/tst-backtrace5.c: Likewise.
923         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
924         (CFLAGS-tst-backtrace3.c): Likewise.
925         (CFLAGS-tst-backtrace4.c): Likewise.
926         (CFLAGS-tst-backtrace5.c): Likewise.
927         (LDFLAGS-tst-backtrace2): Likewise.
928         (LDFLAGS-tst-backtrace3): Likewise.
929         (LDFLAGS-tst-backtrace4): Likewise.
930         (LDFLAGS-tst-backtrace5): Likewise.
931         (tests): Add new tests tst-backtrace2, tst-backtrace3,
932         tst-backtrace4 and tst-backtrace5.
934 2013-01-18  Anton Blanchard  <anton@samba.org>
935             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
937         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
938         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
939         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
940         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
942         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
943         "+r" and remove output regs list as redundant.  Add explicit inline
944         asm to specify register of return val to work around compiler codegen
945         bug.  Remove (int) cast on return value.  Add return type parameter to
946         use in macro so that this macro does not truncate return value for
947         64-bit values.
948         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
949         pass to INTERNAL_VSYSCALL_NCS.
950         (INLINE_VSYSCALL): Add 'long int' as return type to
951         INTERNAL_VSYSCALL_NCS macro invocation.
952         (INTERNAL_VSYSCALL): Add 'long int' as return type to
953         INTERNAL_VSYSCALL_NCS macro invocation.
954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
956 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
958         [BZ #14496]
959         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
960         Fix application of SIMD FP exception mask.
962         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
963         mp_no from a power of two.
964         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
965         __mpexp_twomm1.  Use __pow_mp.
967         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
968         multiplication.
970 2013-01-17  David S. Miller  <davem@davemloft.net>
972         * sysdeps/sparc/fpu/libm-test-ulps: Update.
974 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
976         [BZ #15023]
977         * include/complex.h: Condition contents on [!_COMPLEX_H].
978         (__kernel_casinhf): New prototype.
979         (__kernel_casinh): Likewise.
980         (__kernel_casinhl): Likewise.
981         * math/Makefile (libm_calls): Add k_casinh.
982         * math/k_casinh.c: New file.
983         * math/k_casinhf.c: Likewise.
984         * math/k_casinhl.c: Likewise.
985         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
986         finite nonzero arguments.
987         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
988         finite nonzero arguments.
989         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
990         finite nonzero arguments.
991         * math/s_casinh.c: Do not include <float.h>.
992         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
993         * math/s_casinhf.c: Do not include <float.h>.
994         (__casinhf): Move code for finite nonzero arguments to
995         k_casinhf.c.
996         * math/s_casinhl.c: Do not include <float.h>.
997         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
998         redefine.
999         (__casinhl): Move code for finite nonzero arguments to
1000         k_casinhl.c.
1001         * math/libm-test.inc (cacos_test): Add more tests.
1002         * sysdeps/i386/fpu/libm-test-ulps: Update.
1003         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1005 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
1007         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
1008         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
1009         [!HAVE_MREMAP]: Remove [defined linux] case.
1010         * malloc/arena.c: Do not include <malloc-sysdep.h>.
1012 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1014         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
1016 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
1018         * elf/elf.h (R_386_SIZE32): New relocation.
1019         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
1020         R_386_SIZE32.
1021         (elf_machine_rela): Likewise.
1022         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1023         R_X86_64_SIZE64 and R_X86_64_SIZE32.
1025 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
1027         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
1028         (FP_FAST_FMA): Do not define.
1029         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
1030         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
1031         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
1032         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
1033         !_SOFT_FLOAT]: Likewise.
1034         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
1035         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
1036         value.
1037         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
1038         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
1039         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
1040         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
1041         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
1042         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
1043         file.
1045 2013-01-16  Andreas Schwab  <schwab@suse.de>
1047         [BZ #14327]
1048         * include/stdlib.h (__mktemp): Add declaration.
1049         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
1050         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
1052 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1054         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
1055         definitions.
1056         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1057         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
1058         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
1059         definitions here.
1060         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
1061         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
1062         definitions.
1063         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
1064         and ONE.
1065         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
1066         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
1067         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
1068         definitions.
1069         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
1070         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
1071         definitions.
1072         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1074         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
1076 2013-01-15  David S. Miller  <davem@davemloft.net>
1078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
1079         trunc{,f} to libm-sysdep_routes.
1080         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
1081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
1082         file.
1083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
1084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
1085         file.
1086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
1087         file.
1088         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
1089         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
1090         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
1091         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
1092         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
1093         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
1094         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
1095         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
1097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
1098         nearbyint{,f} to libm-sysdep_routes.
1099         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
1100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
1101         New file.
1102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
1103         file.
1104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
1105         New file.
1106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
1107         file.
1108         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
1109         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
1110         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
1111         file.
1112         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
1113         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
1114         file.
1115         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
1116         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
1117         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
1119         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
1120         libc_feholdexcept and libc_fesetenv.
1122 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
1124         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
1126 2013-01-14  David S. Miller  <davem@davemloft.net>
1128         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
1129         (SPARC_ASM_VIS2_IFUNC): Likewise.
1130         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
1131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
1132         use of 'siam' instruction.
1133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
1134         Likewise.
1135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
1136         Likewise.
1137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
1138         Likewise.
1139         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
1140         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
1141         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
1142         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
1143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
1144         file.
1145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
1146         file.
1147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
1148         file.
1149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
1150         file.
1151         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
1152         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
1153         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
1154         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
1155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
1156         new VIS2 routines.
1157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
1158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
1160         Likewise.
1161         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
1162         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
1163         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
1164         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
1165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
1166         routines to libm-sysdep_routines.
1167         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
1169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
1170         fdim/fdimf to libm-sysdep_routines.
1171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
1172         file.
1173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
1174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
1175         file.
1176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
1177         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
1178         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
1179         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
1180         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
1181         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
1182         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
1184 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1186         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
1187         to optimize copies.
1189         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
1190         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
1191         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1193         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
1194         local variable MPTWO.
1195         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
1196         Likewise.
1198 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
1200         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
1201         GLOB_NOESCAPE.
1203 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
1205         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
1207 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
1209         * manual/pattern.texi (glob_t): Document gl_flags.
1210         (glob64_t): Likewise.
1212 2013-01-11  David S. Miller  <davem@davemloft.net>
1214         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
1215         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
1216         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
1217         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
1218         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
1219         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
1220         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
1221         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
1222         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
1223         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
1224         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
1225         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
1226         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
1228         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
1229         sparc V9 rather than using V8 code.
1230         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
1231         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
1233         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
1234         Move to...
1235         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
1236         Here.
1238 2013-01-11  Roland McGrath  <roland@hack.frob.com>
1240         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
1241         not in the main loop.
1242         * configure: Regenerated.
1244 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
1246         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
1247         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
1248         to just #else.
1249         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
1250         [!__GLIBC_HAVE_LONG_LONG] case.
1251         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
1252         condition to just #else.
1253         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
1254         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
1255         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
1256         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
1257         unconditional.
1258         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
1259         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
1260         #elif condition to just #else.
1261         * sysdeps/unix/sysv/linux/sys/sysmacros.h
1262         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
1263         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
1264         #elif condition to just #else.
1266 2013-01-11  Steve Ellcey  <sellcey@mips.com>
1268         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
1269         (EF_MIPS_ARCH_64): Fix value.
1270         (EF_MIPS_ARCH_32R2): New.
1271         (EF_MIPS_ARCH_64R2): New.
1273 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1275         * Makeconfig (+link-pie-before-libc): New.
1276         (+link-pie-after-libc): Likewise.
1277         (+link-pie-tests): Likewise.
1278         (+link-pie): Rewritten.
1279         (link-before-libc): Remove $(config-LDFLAGS).
1280         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
1281         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
1282         (config-LDFLAGS): Renamed to ...
1283         (rtld-LDFLAGS): This.
1284         (rtld-tests-LDFLAGS): New macro.
1285         (link-libc-rpath-link): Likewise.
1286         (link-libc-tests-rpath-link): Likewise.
1287         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
1288         (link-libc): Prepand $(link-libc-rpath-link).
1289         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
1290         (test-program-prefix): New macro.
1291         (test-via-rtld-prefix): Likewise.
1292         (test-program-cmd): Likewise.
1293         (host-test-program-cmd): Likewise.
1294         * Makefile ($(common-objpfx)testrun.sh): Replace
1295         $(run-program-prefix) with $(test-program-prefix).
1296         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
1297         $(rtld-LDFLAGS).
1298         ($(common-objpfx)shlib.lds): Likewise.
1299         (build-module-helper): Likewise.
1300         ($(common-objpfx)format.lds): Likewise.
1301         * Rules (binaries-pie-tests): New.
1302         (binaries-pie-notests): Likewise.
1303         (binaries-pie): Rewritten.
1304         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
1305         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
1306         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
1307         (make-test-out): Replace $(host-built-program-cmd) with
1308         $(host-test-program-cmd).
1309         * config.make.in (build-hardcoded-path-in-tests): New variable.
1310         * configure.in (--enable-hardcoded-path-in-tests): New configure
1311         option.
1312         (hardcoded_path_in_tests): New AC_SUBST.
1313         * configure: Regenerated.
1314         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
1315         $(built-program-cmd) with $(test-program-cmd).
1316         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
1317         (test_program_cmd): This.
1318         * elf/Makefile ($(objpfx)order.out): Run test with
1319         $(test-program-prefix).
1320         ($(objpfx)order2.out): Likewise.
1321         ($(objpfx)tst-initorder.out): Likewise.
1322         ($(objpfx)tst-initorder2.out): Likewise.
1323         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
1324         $(test-program-cmd).
1325         ($(objpfx)tst-array1-static.out): Likewise.
1326         ($(objpfx)tst-array2.out): Likewise.
1327         ($(objpfx)tst-array3.out): Likewise.
1328         ($(objpfx)tst-array4.out): Likewise.
1329         ($(objpfx)tst-array5.out): Likewise.
1330         ($(objpfx)tst-array5-static.out): Likewise.
1331         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
1332         $(test-program-cmd).
1333         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
1334         $(run-program-prefix) with $(test-program-prefix).
1335         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
1336         (test_program_prefix): This.
1337         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
1338         $(run-program-prefix) with $(test-program-prefix).
1339         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
1340         (test_program_prefix): This.
1341         * iconvdata/tst-tables.sh: Likewise.
1342         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
1343         $(run-program-prefix) with $(test-program-prefix).
1344         ($(objpfx)tst-translit.out): Likewise.
1345         ($(objpfx)tst-gettext2.out): Likewise.
1346         ($(objpfx)tst-gettext4.out): Likewise.
1347         ($(objpfx)tst-gettext6.out): Likewise.
1348         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
1349         (test_program_prefix): This.
1350         * intl/tst-gettext2.sh: Likewise.
1351         * intl/tst-gettext4.sh  Likewise.
1352         * intl/tst-gettext6.sh: Likewise.
1353         * intl/tst-translit.sh: Likewise.
1354         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
1355         with $(test-program-cmd).
1356         * libio/Makefile ($(objpfx)test-freopen.out): Replace
1357         $(run-program-prefix) with $(test-program-prefix).
1358         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
1359         (test_program_prefix): This.
1360         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
1361         $(run-program-prefix) with $(test-program-prefix).
1362         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
1363         (test_program_prefix): This.
1364         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
1365         * posix/Makefile ($(objpfx)globtest.out): Replace
1366         $(run-via-rtld-prefix) and $(test-wrapper) with
1367         $(test-program-prefix) and $(test-via-rtld-prefix).
1368         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
1369         $(test-program-prefix).
1370         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
1371         $(host-test-program-cmd).
1372         (tst-spawn-ARGS): Likewise.
1373         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
1374         $(test-program-prefix).
1375         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
1376         (test_via_rtld_prefix): This.
1377         (test_wrapper): Renamed to ...
1378         (test_program_prefix): This.
1379         (run_program_prefix): Replaced by test_program_prefix.
1380         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
1381         (test_program_prefix): This.
1382         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
1383         with $(host-test-program-cmd).
1384         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
1385         $(run-program-prefix) with $(test-program-prefix).
1386         ($(objpfx)tst-printf.out): Likewise.
1387         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
1388         $(test-program-cmd).
1389         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
1390         (test_program_prefix): This.
1391         * stdio-common/tst-unbputc.sh: Likewise.
1392         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
1393         $(run-program-prefix) with $(test-program-prefix).
1394         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
1395         (test_program_prefix): This.
1396         * string/Makefile ($(objpfx)tst-svc.out):  Replace
1397         $(built-program-cmd) with $(test-program-cmd).
1399 2013-01-11  Andreas Jaeger  <aj@suse.de>
1401         [BZ #15003]
1402         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
1403         value. Sync with Linux 3.7.
1405 2013-01-10  David S. Miller  <davem@davemloft.net>
1407         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
1408         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
1409         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
1411 2013-01-10  Roland McGrath  <roland@hack.frob.com>
1413         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
1414         never set.
1415         * configure: Regenerated.
1417 2013-01-10  David S. Miller  <davem@davemloft.net>
1419         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
1420         sparc V9 rather than using V8 code.
1421         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
1422         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
1424 2013-01-10  Roland McGrath  <roland@hack.frob.com>
1426         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
1427         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
1428         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
1429         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
1430         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
1431         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
1432         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
1433         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
1434         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
1435         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
1436         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
1437         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
1438         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
1439         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
1440         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
1441         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
1442         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
1443         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
1444         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
1445         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
1446         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
1447         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
1448         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
1449         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
1450         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
1451         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
1452         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
1454 2013-01-10  David S. Miller  <davem@davemloft.net>
1456         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1458 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1460         * posix/Makefile (tests-static): New variable.
1461         (tests): Add $(tests-static).
1462         (tst-exec-static-ARGS): New variable.
1463         (tst-spawn-static-ARGS): Likewise.
1464         * posix/tst-exec-static.c: New file.
1465         * posix/tst-spawn-static.c: Likewise.
1466         * posix/tst-exec.c: Support run directly.
1467         * posix/tst-spawn.c: Likewise.
1469 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
1471         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
1472         long.
1473         * math/bits/mathcalls.h (llrint): Likewise.
1474         (llround): Likewise.
1475         * stdlib/stdlib.h (struct drand48_data): Likewise.
1476         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
1477         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
1478         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
1479         Likewise.
1480         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
1481         Likewise.
1482         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
1483         (elf_greg_t): Likewise.
1484         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
1485         (__jmp_buf): Likewise.
1486         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
1487         definitions.
1488         (llrint): Likewise, for all definitions.
1489         (llrintl): Likewise.
1491         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
1492         Remove [__GNUC__] condition.
1493         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
1494         condition to just [__USE_ISOC99].
1495         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
1497 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1499         [BZ #14200]
1500         * sysdeps/unix/sysv/linux/x86/bits/environments.h
1501         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
1502         defined.
1503         (_POSIX_V6_ILP32_OFF32): Likewise.
1504         (_XBS5_ILP32_OFF32): Likewise.
1505         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
1506         (__ILP32_OFFBIG_LDFLAGS): Likewise.
1508 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1510         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
1512         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
1513         doubles __mpexp_twomm1.  Adjust usage.
1514         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
1515         Remove.
1517 2013-01-10  Andreas Schwab  <schwab@suse.de>
1519         [BZ #14964]
1520         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
1521         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
1523 2013-01-09  David S. Miller  <davem@davemloft.net>
1525         [BZ #15003]
1526         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
1527         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
1528         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
1529         TCP_FASTOPEN): Define.
1530         (tcp_repair_opt): New structure.
1531         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
1532         enum values.
1533         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
1534         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
1535         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
1536         (tcp_cookie_transactions): New structure.
1538 2013-01-09  Anton Blanchard  <anton@samba.org>
1540         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
1541         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
1542         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
1543         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
1545 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
1547         * include/features.h (__USE_ANSI): Remove.
1549 2013-01-09  Roland McGrath  <roland@hack.frob.com>
1551         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
1553         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
1555 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
1557         * sysdeps/s390/fpu/libm-test-ulps: Update.
1559         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1561         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
1562         (__acr): Likewise.
1563         (__cpy): Likewise.
1564         (norm): Likewise.
1565         (denorm): Likewise.
1566         (__mp_dbl): Likewise.
1567         (__dbl_mp): Likewise.
1568         (add_magnitudes): Likewise.
1569         (sub_magnitudes): Likewise.
1570         (__add): Likewise.
1571         (__sub): Likewise.
1572         (__mul): Likewise.
1573         (__inv): Likewise.
1574         (__dvd): Likewise.
1575         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
1576         (__acr): Likewise.
1577         (__cpy): Likewise.
1578         (norm): Likewise.
1579         (denorm): Likewise.
1580         (__mp_dbl): Likewise.
1581         (__dbl_mp): Likewise.
1582         (add_magnitudes): Likewise.
1583         (sub_magnitudes): Likewise.
1584         (__add): Likewise.
1585         (__sub): Likewise.
1586         (__mul): Likewise.
1587         (__inv): Likewise.
1588         (__dvd): Likewise.
1589         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
1590         (__acr): Likewise.
1591         (__cpy): Likewise.
1592         (norm): Likewise.
1593         (denorm): Likewise.
1594         (__mp_dbl): Likewise.
1595         (__dbl_mp): Likewise.
1596         (add_magnitudes): Likewise.
1597         (sub_magnitudes): Likewise.
1598         (__add): Likewise.
1599         (__sub): Likewise.
1600         (__mul): Likewise.
1601         (__inv): Likewise.
1602         (__dvd): Likewise.
1604 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
1606         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
1607         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
1608         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
1609         2 && __USE_EXTERN_INLINES]: Likewise.
1611 2013-01-08  Andreas Jaeger  <aj@suse.de>
1613         [BZ# 14985]
1614         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
1615         Remove.
1616         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
1617         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
1619 2013-01-07  Anton Blanchard  <anton@samba.org>
1621         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
1622         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
1623         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
1624         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
1625         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
1626         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1627         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
1628         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
1629         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
1630         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
1631         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1632         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
1633         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
1634         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
1635         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
1636         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1637         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1638         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
1639         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
1640         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
1641         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
1642         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
1643         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
1644         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
1645         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
1646         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
1647         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
1648         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
1649         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
1650         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
1651         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
1652         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1653         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
1654         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
1655         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
1656         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
1657         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
1658         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1659         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
1660         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
1661         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
1662         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
1663         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
1665 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
1667         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
1668         (__MALLOC_PMT): Likewise.
1669         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
1670         [__GNUC__], only on [_LIBC].
1671         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
1672         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
1673         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
1674         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
1675         forward declaration.
1676         (realloc_hook_ini): Likewise.
1677         (memalign_hook_ini): Likewise.
1678         (__libc_memalign): Do not use __MALLOC_PMT in variable
1679         declaration.
1680         (__libc_valloc): Likewise.
1681         (__libc_pvalloc): Likewise.
1682         (__libc_calloc): Likewise.
1683         (__posix_memalign): Likewise.
1685         [BZ #14996]
1686         * math/s_casinh.c: Include <float.h>.
1687         (__casinh): Do not do computation with squaring and square root
1688         for large arguments.
1689         * math/s_casinhf.c: Include <float.h>.
1690         (__casinhf): Do not do computation with squaring and square root
1691         for large arguments.
1692         * math/s_casinhl.c: Include <float.h>.
1693         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
1694         (__casinhl): Do not do computation with squaring and square root
1695         for large arguments.
1696         * math/libm-test.inc (casin_test): Add more tests.
1697         (casinh_test): Likewise.
1698         * sysdeps/i386/fpu/libm-test-ulps: Update.
1699         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1701 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1703         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
1704         (__x86_64_raw_data_cache_size): Likewise.
1705         (__x86_64_data_cache_size_half): Likewise.
1706         (__x86_64_raw_data_cache_size_half): Likewise.
1707         (__x86_64_shared_cache_size): Likewise.
1708         (__x86_64_raw_shared_cache_size): Likewise.
1709         (__x86_64_shared_cache_size_half): Likewise.
1710         (__x86_64_raw_shared_cache_size_half): Likewise.
1711         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
1712         to ...
1713         (__x86_data_cache_size): This.
1714         (__x86_64_raw_data_cache_size): Renamed to ...
1715         (__x86_raw_data_cache_size): This.
1716         (__x86_64_data_cache_size_half): Renamed to ...
1717         (__x86_data_cache_size_half): This.
1718         (__x86_64_raw_data_cache_size_half): Renamed to ...
1719         (__x86_raw_data_cache_size_half): This.
1720         (__x86_64_shared_cache_size): Renamed to ...
1721         (__x86_shared_cache_size): This.
1722         (__x86_64_raw_shared_cache_size): Renamed to ...
1723         (__x86_raw_shared_cache_size): This.
1724         (__x86_64_shared_cache_size_half): Renamed to ...
1725         (__x86_shared_cache_size_half): This.
1726         (__x86_64_raw_shared_cache_size_half): Renamed to ...
1727         (__x86_raw_shared_cache_size_half): This.
1728         * sysdeps/x86_64/memcpy.S: Updated.
1729         * sysdeps/x86_64/memset.S: Likewise.
1730         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1731         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
1732         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1734 2013-01-04  David S. Miller  <davem@davemloft.net>
1736         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1738 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
1740         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
1741         1 to avoid redefinition warning.
1742         (__USE_GNU): Don't define.
1743         (init_signaling_nan): Protoize.
1745         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1747 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1749         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
1750         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
1751         (__cpymn): Likewise.
1752         (norm): Remove commented code.
1753         (denorm): Likewise.
1754         (__mp_dbl): Likewise.
1755         (__inv): Likewise.
1756         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
1757         (__cpymn): Likewise.
1758         (norm): Remove commented code.
1759         (denorm): Likewise.
1760         (__mp_dbl): Likewise.
1761         (__inv): Likewise.
1763         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
1764         mp_no value for 1.0 and 2.0.
1765         (norm): Use RADIXI instead of radixi.d.
1766         (denorm): Likewise.
1767         (__mul): Use 0.0 instead of zero.d.
1768         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
1769         mp_no value for 1.0 and 2.0.
1770         (norm): Use RADIXI instead of radixi.d.
1771         (denorm): Likewise.
1772         (__mul): Use 0.0 instead of zero.d.
1774 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
1776         [BZ #14994]
1777         * math/s_casinh.c (__casinh): Reduce finite argument to first
1778         quadrant then set signs of results at the end.
1779         * math/s_casinhf.c (__casinhf): Likewise.
1780         * math/s_casinhl.c (__casinhl): Likewise.
1781         * math/libm-test.inc (casin_test): Add more tests.
1782         (casinh_test): Likewise.
1783         * sysdeps/i386/fpu/libm-test-ulps: Update.
1784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1786 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1788         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
1790         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
1792         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
1793         declarations.
1794         (denorm): Likewise.
1795         (__mp_dbl): Likewise.
1796         (__inv): Likewise.
1798         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
1799         and adjust the header comment.
1801         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
1802         variable name from declaration.
1804 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
1806         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1807         Initialize COMMON_CPUID_INDEX_7 element.
1808         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
1809         (CPUID_RTM): Likewise.
1810         (HAS_RTM): Likewise.
1811         (COMMON_CPUID_INDEX_7): New enum.
1813 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
1815         [BZ #14981]
1816         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
1817         size is zero, record memory as freed.
1819 2013-01-03  Andreas Jaeger  <aj@suse.de>
1821         * po/ia.po: Add new Interlingua translation.
1823 2012-01-03  Allan McRae  <allan@archlinux.org>
1825         * locale/programs/localedef.c: Fix description of '--posix' flag.
1827 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
1829         * NEWS: Update dates in second copyright notice.
1830         * README: Update copyright dates in example.
1831         * manual/libc.texinfo: Update copyright dates.
1832         * scripts/test-installation.pl: Update copyright date in --version
1833         output.
1835         * hurd/ctty-input.c: Fix copyright notice formatting.
1836         * hurd/ctty-output.c: Likewise.
1837         * hurd/dtable.c: Likewise.
1838         * hurd/hurd-raise.c: Likewise.
1839         * hurd/hurdprio.c: Likewise.
1840         * hurd/msgportdemux.c: Likewise.
1841         * misc/sys/file.h: Likewise.
1842         * misc/sys/ioctl.h: Likewise.
1843         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
1844         * sysdeps/mach/hurd/chdir.c: Likewise.
1845         * sysdeps/mach/hurd/fchdir.c: Likewise.
1846         * sysdeps/mach/hurd/rename.c: Likewise.
1847         * sysdeps/mach/hurd/rmdir.c: Likewise.
1848         * sysdeps/mach/hurd/seekdir.c: Likewise.
1849         * sysdeps/mach/hurd/setsid.c: Likewise.
1850         * sysdeps/posix/wait3.c: Likewise.
1852         * All files with FSF copyright notices: Update copyright dates
1853         using scripts/update-copyrights.
1854         * intl/plural.c: Regenerated.
1855         * locale/programs/charmap-kw.h: Likewise.
1856         * locale/programs/locfile-kw.h: Likewise.
1858 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1860         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
1861         four values.
1863         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
1864         calculation loop and add branch prediction.
1866         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
1867         check access beyond bounds of m1np.
1869         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
1870         MPTWO.
1871         (__inv): Remove local variable MPTWO to use the global
1872         constant.
1873         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
1874         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
1875         variable MPTWO.
1876         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
1877         MP3HALFS static const.
1879 2013-01-01  David S. Miller  <davem@davemloft.net>
1881         * po/ca.po: Update from translation team.
1883 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
1885         * scripts/update-copyrights: New file.
1886         * Makeconfig: Reformat copyright notice.
1887         * ctype/ctype.h: Likewise.
1888         * debug/swprintf_chk.c: Likewise.
1889         * elf/dl-cache.c: Likewise.
1890         * elf/dl-debug.c: Likewise.
1891         * elf/dl-object.c: Likewise.
1892         * grp/initgroups.c: Likewise.
1893         * hurd/Makefile: Likewise.
1894         * hurd/hurd/signal.h: Likewise.
1895         * hurd/hurdfault.c: Likewise.
1896         * hurd/hurdioctl.c: Likewise.
1897         * hurd/hurdlookup.c: Likewise.
1898         * hurd/intr-msg.c: Likewise.
1899         * iconv/gconv_open.c: Likewise.
1900         * libio/swprintf.c: Likewise.
1901         * locale/lc-ctype.c: Likewise.
1902         * locale/nl_langinfo.c: Likewise.
1903         * mach/Machrules: Likewise.
1904         * mach/Makefile: Likewise.
1905         * malloc/obstack.h: Likewise.
1906         * manual/Makefile: Likewise.
1907         * manual/tsort.awk: Likewise.
1908         * misc/bits/stab.def: Likewise.
1909         * nis/nis_print_group_entry.c: Likewise.
1910         * nis/nis_table.c: Likewise.
1911         * nis/nss_compat/compat-pwd.c: Likewise.
1912         * nis/nss_compat/compat-spwd.c: Likewise.
1913         * po/Makefile: Likewise.
1914         * posix/fnmatch.c: Likewise.
1915         * posix/regex.h: Likewise.
1916         * resolv/Makefile: Likewise.
1917         * resolv/nss_dns/dns-network.c: Likewise.
1918         * resolv/res_hconf.c: Likewise.
1919         * scripts/gen-sorted.awk: Likewise.
1920         * soft-fp/soft-fp.h: Likewise.
1921         * stdio-common/printf.h: Likewise.
1922         * stdlib/monetary.h: Likewise.
1923         * stdlib/random.c: Likewise.
1924         * stdlib/random_r.c: Likewise.
1925         * sysdeps/generic/Makefile: Likewise.
1926         * sysdeps/gnu/Makefile: Likewise.
1927         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1928         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1929         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1930         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1931         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1932         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1933         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1934         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1935         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1936         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1937         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1938         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1939         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1940         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1941         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1942         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1943         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1944         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1945         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1946         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1947         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1948         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1949         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1950         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
1951         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
1952         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
1953         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
1954         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
1955         * sysdeps/mach/hurd/errnos.awk: Likewise.
1956         * sysdeps/mach/hurd/fork.c: Likewise.
1957         * sysdeps/mach/hurd/getcwd.c: Likewise.
1958         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
1959         * sysdeps/mach/hurd/mmap.c: Likewise.
1960         * sysdeps/mach/hurd/utimes.c: Likewise.
1961         * sysdeps/mach/hurd/xmknod.c: Likewise.
1962         * sysdeps/posix/profil.c: Likewise.
1963         * sysdeps/posix/readdir_r.c: Likewise.
1964         * sysdeps/powerpc/bits/mathdef.h: Likewise.
1965         * sysdeps/powerpc/bits/setjmp.h: Likewise.
1966         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
1967         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
1968         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
1969         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
1970         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
1971         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
1972         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1973         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
1974         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
1975         * sysdeps/pthread/lio_listio.c: Likewise.
1976         * sysdeps/sparc/dl-procinfo.h: Likewise.
1977         * sysdeps/unix/i386/sysdep.S: Likewise.
1978         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
1979         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
1980         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
1981         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
1982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1983         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
1984         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
1985         * sysdeps/unix/sysv/linux/speed.c: Likewise.
1986         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
1987         * sysdeps/wordsize-32/divdi3.c: Likewise.
1988         * time/sys/time.h: Likewise.
1989         * wcsmbs/Makefile: Likewise.
1991 2013-01-01  David S. Miller  <davem@davemloft.net>
1993         * po/fr.po: Update from translation team.
1995         * catgets/gencat.c: Update copyright year.
1996         * csu/version.c: Likewise.
1997         * debug/catchsegv.sh: Likewise.
1998         * debug/pcprofiledump.c: Likewise.
1999         * debug/xtrace.sh: Likewise.
2000         * elf/ldconfig.c: Likewise.
2001         * elf/ldd.bash.in: Likewise.
2002         * elf/pldd.c: Likewise.
2003         * elf/sotruss.ksh: Likewise.
2004         * elf/sprof.c: Likewise.
2005         * iconv/iconv_prog.c: Likewise.
2006         * iconv/iconvconfig.c: Likewise.
2007         * locale/programs/locale.c: Likewise.
2008         * locale/programs/localedef.c: Likewise.
2009         * login/programs/pt_chown.c: Likewise.
2010         * malloc/memusage.sh: Likewise.
2011         * malloc/memusagestat.c: Likewise.
2012         * malloc/mtrace.pl: Likewise.
2013         * nscd/nscd.c: Likewise.
2014         * nss/getent.c: Likewise.
2015         * nss/makedb.c: Likewise.
2016         * posix/getconf.c: Likewise.
2018 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
2020         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
2021         numbers.
2023 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
2025         * math/bits/mathcalls.h (modf): Use __nonnull.
2027 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2029         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
2030         (split): Use macro CN instead of the bare value.
2031         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
2032         could be used.
2033         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
2034         instead of the bare value.
2035         (power1): Likewise.
2037 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2039         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
2040         __ATAN_TWOM.
2041         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2043         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
2044         their values.
2045         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2046         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
2047         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2048         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2050 2012-12-28  Andreas Jaeger  <aj@suse.de>
2052         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
2053         values are from Linux 3.7.
2055         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
2056         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
2058 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2060         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
2061         TRUE case.
2063         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
2064         (norm): Likewise.
2065         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
2066         variables with preprocessor constants.
2067         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2068         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2069         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2071 2012-12-27  Bruno Haible  <bruno@clisp.org>
2073         [BZ #14317]
2074         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
2075         only if needed.
2077 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2079         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
2080         and use variable directly.
2081         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
2083         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
2084         MPONE.
2085         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
2086         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
2087         variable MPONE.
2088         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
2089         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
2090         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
2091         include directive.  Remove local variable MPONE.
2092         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
2093         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
2094         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
2096 2012-12-25  David S. Miller  <davem@davemloft.net>
2098         * version.h (RELEASE): Set to "development".
2099         (VERSION): Set to "2.17.90".
2100         * NEWS: Add 2.18 section.
2102 2012-12-21  David S. Miller  <davem@davemloft.net>
2104         * po/hr.po: Update from translation team.
2106 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2108         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
2110 2012-12-19  Steve Ellcey  <sellcey@mips.com>
2112         * NEWS:  Mention new memcpy for MIPS.
2114 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2116         * manual/contrib.texi (Contributors): Spelling correction.
2118 2012-12-15  David S. Miller  <davem@davemloft.net>
2120         * po/ru.po: Update from translation team.
2122 2012-12-13  David S. Miller  <davem@davemloft.net>
2124         * NEWS: Mention IFUNC testsuite enhancements.
2126         * po/pl.po: Update from translation team.
2127         * po/bg.po: Likewise.
2129         * manual/contrib.texi (Contributors): Update entries for Hongjiu
2130         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
2132 2012-12-11  David S. Miller  <davem@davemloft.net>
2134         * po/sv.po: Update from translation team.
2136         * po/vi.po: Update from translation team.
2138         * po/cs.po: Update from translation team.
2140         * po/de.po: Update from translation team.
2141         * po/eo.po: Likewise.
2142         * po/nl.po: Likewise.
2144 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2146         [BZ #14246]
2147         * manual/argp.texi (Argp Helper Functions): Move node to follow
2148         Argp Parsing State.
2150         [BZ #14872]
2151         * manual/conf.texi (Limits on File System Capacity): Mention if
2152         terminating null is included in the max size.
2154 2012-12-10  Andreas Jaeger  <aj@suse.de>
2156         * po/cs.po: Update from translation team.
2158 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
2160         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
2161         void pointer and cast to uintptr_t.
2162         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
2163         path.
2164         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2165         * sysdeps/s390/s390-64/memset.S: Likewise.
2167 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
2169         [BZ #14833]
2170         * menual/message.texi (Message Translation): Fix typos.
2171         (Helper programs for gettext): Likewise.
2173 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
2175         [BZ #14898]
2176         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
2177         Change to -1.
2179 2012-12-07  David S. Miller  <davem@davemloft.net>
2181         * po/libc.pot: Update.
2183 2012-12-07  Richard Henderson  <rth@redhat.com>
2185         [BZ #10114]
2186         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
2187         normal/normal case to before the switch.
2188         (_FP_DIV): Likewise.
2190 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
2191             Mike Frysinger  <vapier@gentoo.org>
2193         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
2194         check for __NR_fadvise64_64.
2196 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
2198         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
2199         0, not just to plain "0" as a statement.
2200         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
2201         with cw.
2203 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
2205         * NEWS: Use sourceware.org in Bugzilla URL.
2207 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2210         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
2212         * stdio-common/tst-put-error.c (do_test): Add newline to the
2213         padded test to ensure flush.
2215 2012-12-05  Jeff Law  <law@redhat.com>
2217         * sunrpc/etc.rpc (fedfs_admin): Add entry.
2219 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
2221         * README: Don't refer to ports add-on as distributed separately.
2222         Mention AArch64 in list of systems supported in the ports add-on.
2224         * LICENSES: Add more non-FSF copyright and license notices.
2226         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
2227         ((unused)).
2229         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
2231         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
2232         10000 as width of padded output.
2234 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
2236         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
2238         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
2239         variable LX with __attribute__ ((unused)).
2240         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
2241         Likewise.
2242         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
2243         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2244         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
2245         with __attribute__ ((unused)).
2247 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
2249         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
2251 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
2253         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
2254         (CFLAGS-nldbl-acos.c): New variable.
2255         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
2256         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
2257         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
2258         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
2259         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
2260         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
2261         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
2262         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
2263         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
2264         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
2265         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
2266         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
2267         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
2268         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
2269         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
2270         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
2271         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
2272         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
2273         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
2274         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
2275         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
2276         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
2277         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
2278         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
2279         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
2280         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
2281         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
2282         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
2283         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
2284         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
2285         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
2286         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
2287         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
2288         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
2289         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
2290         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
2291         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
2292         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
2293         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
2294         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
2295         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
2296         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
2297         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
2298         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
2299         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
2300         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
2301         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
2302         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
2303         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
2304         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
2305         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
2306         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
2307         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
2308         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
2309         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
2310         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
2311         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
2312         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
2313         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
2314         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
2315         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
2316         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
2317         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
2318         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
2319         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
2320         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
2321         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
2322         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
2323         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
2324         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
2325         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
2326         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
2327         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
2328         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
2329         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
2330         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
2331         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
2332         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
2333         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
2334         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
2335         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
2336         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
2337         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
2338         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
2339         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
2340         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
2341         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
2342         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
2343         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
2344         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
2345         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
2346         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
2347         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
2348         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
2349         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
2350         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
2351         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
2353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2354         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
2356         [BZ #14914]
2357         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
2358         whole low double instead of just low 47 bits when splitting values
2359         into two parts.
2361 2012-12-03  Allan McRae  <allan@archlinux.org>
2363         * manual/stdio.texi (Predefined Printf Handlers): Remove
2364         @hsep and @vsep usage.
2366 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
2368         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
2369         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
2371 2012-12-03  Jeff Law  <law@redhat.com>
2373         * time/sys/time.h (settimeofday): Do not mark TV argument
2374         as __nonnull.
2376 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
2378         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
2379         when currently writing and seek to current position when not.
2380         * libio/Makefile (tests): Remove bug-fclose1.
2381         * libio/bug-fclose1.c: Delete.
2383 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
2385         * manual/arith.texi (feenableexcept): Fix typo.
2386         (fedisableexcept): Likewise.
2388 2012-11-30  Roland McGrath  <roland@hack.frob.com>
2390         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
2391         second, differently-typed declaration, rather than a cast.
2393 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2395         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
2396         * include/rpc/svc.h: ... here.
2398 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
2400         [BZ #13013]
2401         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
2402         depending n and resplen2 to catch cases where answer
2403         equals answerp2.
2405 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
2407         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
2408         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
2410 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
2412         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
2414 2012-11-29  Roland McGrath  <roland@hack.frob.com>
2416         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
2418 2012-11-28  Jeff Law  <law@redhat.com>
2420         [BZ #13761]
2421         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
2422         dataset_temporary.  Track alloca usage into alloca_used.
2423         If dataset is large allocate and release it via malloc/free.
2425 2012-06-04  Florian Weimer  <fweimer@redhat.com>
2427         [BZ #14197]
2428         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
2430 2012-11-28  David S. Miller  <davem@davemloft.net>
2432         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2434 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
2436         [BZ #14803]
2437         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
2438         of pi/2 rounded to nearest to 64 bits.
2439         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
2440         nearest to 64 bits.
2441         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
2442         bits.
2444 2012-11-28  Jeff Law <law@redhat.com>
2445             Martin Osvald <mosvald@redhat.com>
2447         [BZ #14889]
2448         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
2449         * sunrpc/svc.c: Include time.h.
2450         (__svc_accept_failed): New function.
2451         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
2452         any reason other than EINTR, call __svc_accept_failed.
2453         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
2454         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
2456 2012-11-28  Andreas Schwab  <schwab@suse.de>
2458         * scripts/abilist.awk: Also handle indirect functions in .opd
2459         section.
2461 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
2463         [BZ #13881]
2464         * sysdeps/x86/fpu/powl_helper.c: New file.
2465         * sysdeps/x86/fpu/Makefile: Likewise.
2466         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
2467         (p3): New object.
2468         (__ieee754_powl): Use __powl_helper for finite arguments except
2469         integer exponents below 8.
2470         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
2471         (p3): New object.
2472         (__ieee754_powl): Use __powl_helper for finite arguments except
2473         integer exponents below 8.
2474         * math/libm-test.inc (pow_test): Add more tests and enable some
2475         previously disabled tests.
2476         * sysdeps/i386/fpu/libm-test-ulps: Update.
2477         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2479 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2480             Carlos O'Donell  <carlos_odonell@mentor.com>
2482         * nss/makedb.c (is_prime): Assert that input is odd and greater
2483         than 4.  Note that fact in a comment too.
2484         (next_prime): Add 4 to input.
2486 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2488         [BZ #11741]
2489         * libio/Makefile (tests): Add test case tst-fwrite-error.
2490         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
2491         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2492         * libio/tst-fwrite-error.c: New test case.
2494 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
2496         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
2497         before casting to void *.
2498         * include/libc-internal.h (__pointer_type): New macro.
2499         (__integer_if_pointer_type_sub): Likewise.
2500         (__integer_if_pointer_type): Likewise.
2501         (cast_to_integer): Likewise.
2502         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
2503         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
2504         before casting to atomic64_t.
2505         (atomic_exchange_acq): Likewise.
2506         (__arch_exchange_and_add_body): Likewise.
2507         (__arch_add_body): Likewise.
2508         (atomic_add_negative): Likewise.
2509         (atomic_add_zero): Likewise.
2511 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
2513         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
2514         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
2515         (add_fdes): Likewise.
2516         (linear_search_fdes): Likewise.
2517         (binary_search_unencoded_fdes): Likewise.
2519 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
2521         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
2523 2012-11-24  Adam Conrad  <adconrad@0c3.net>
2525         * configure.in: Autodetect C++ header directories.
2526         * configure: Regenerated.
2528 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
2530         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
2532 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
2534         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2536 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
2538         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
2539         LDBL_MANT_DIG == 106]: Disable some tests.
2540         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
2541         Likewise.
2542         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
2543         Likewise.
2545         [BZ #14871]
2546         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
2547         input for small inputs.  Return +/- pi/2 for large inputs.
2548         * math/libm-test.inc (atan_test): Add more tests.
2550         * sysdeps/generic/unwind-dw2-fde-glibc.c
2551         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
2552         __attribute__ ((unused)).
2554         [BZ #14645]
2555         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
2556         x * y if x and y are nonzero and z is zero.
2558         [BZ #14811]
2559         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
2560         nonzero exponents with absolute value below 0x1p-117 to +/-
2561         0x1p-117.
2563         [BZ #14869]
2564         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
2565         up arguments below 2**-450, not just those below 2**-500.
2566         * math/libm-test.inc (hypot_test): Add another test.
2568         [BZ #14868]
2569         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
2570         Return a+b for ratio over 2**120, not 2**60.
2571         * math/libm-test.inc (hypot_test): Add another test.
2573         * math/libm-test.inc (clog_test): Use
2574         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
2575         (clog10_test): Likewise.
2577         [BZ #6778]
2578         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
2580 2012-11-22  Andreas Schwab  <schwab@suse.de>
2582         * sysdeps/i386/fpu/libm-test-ulps: Update.
2584 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
2586         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
2587         printf output with newline.
2589 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
2591         [BZ #14865]
2592         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
2593         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
2594         -z nodlopen, -z initfirst and -z execstack support.
2595         * configure: Regenerated.
2597         * elf/elf.h (DF_1_NODIRECT): New macro.
2598         (DF_1_IGNMULDEF): Likewise.
2599         (DF_1_NOKSYMS): Likewise.
2600         (DF_1_NOHDR): Likewise.
2601         (DF_1_EDITED): Likewise.
2602         (DF_1_NORELOC): Likewise.
2603         (DF_1_SYMINTPOSE): Likewise.
2604         (DF_1_GLOBAUDIT): Likewise.
2605         (DF_1_SINGLETON): Likewise.
2606         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
2607         DT_1_SUPPORTED_MASK bits.
2608         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
2610 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
2612         * sysdeps/unix/make-syscalls.sh: Document prefixes.
2614 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
2616         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
2617         macro.
2619         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
2620         (sendmmsg): Move declarations...
2621         * socket/sys/socket.h: ... here.
2622         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
2623         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
2624         include it from...
2625         * socket/recvmmsg.c: ... this new file.
2626         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
2627         (sendmmsg): Rename to __sendmmsg, create weak alias and make
2628         definition of __sendmmsg hidden.
2629         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
2630         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
2631         Move ENOSYS stub into and include it from...
2632         * socket/sendmmsg.c: ... this new file.
2633         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
2634         (sysdep_routines): Move recvmmsg and sendmmsg...
2635         * socket/Makefile (routines): ... here.
2636         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
2637         (GLIBC_PRIVATE): Add __sendmmsg.
2638         * include/sys/socket.h (__sendmmsg): Add declarations.
2639         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
2640         sendmmsg.
2642 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
2644         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
2645         variable I1 with __attribute__ ((unused)).
2646         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
2648 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
2650         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
2651         DUMMY variables with __attribute__ ((unused)).
2653         * bits/byteswap.h: Include <bits/types.h>.
2654         (__bswap_64): Use __uint64_t instead of unsigned long long int.
2656 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
2658         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
2659         string_t.  Do not manually set errno.
2660         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
2661         length with __strnlen.  Make sure to both set errno and return it on
2662         failure.
2664 2012-11-19  David S. Miller  <davem@davemloft.net>
2666         With help from Joseph Myers.
2667         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
2668         very large arguments properly.
2669         * math/libm-test.inc (atan_test): New tests.
2670         (atan2_test): New tests.
2671         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2672         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2674 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
2676         [BZ #14856]
2677         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
2678         Define to 3.
2680         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
2681         [POSIX] (EADDRNOTAVAIL): Likewise.
2682         [POSIX] (EAFNOSUPPORT): Likewise.
2683         [POSIX] (EALREADY): Likewise.
2684         [POSIX] (ECONNABORTED): Likewise.
2685         [POSIX] (ECONNREFUSED): Likewise.
2686         [POSIX] (ECONNRESET): Likewise.
2687         [POSIX] (EDESTADDRREQ): Likewise.
2688         [POSIX] (EDQUOT): Likewise.
2689         [POSIX] (EHOSTUNREACH): Likewise.
2690         [POSIX] (EIDRM): Likewise.
2691         [POSIX] (EISCONN): Likewise.
2692         [POSIX] (ELOOP): Likewise.
2693         [POSIX] (EMULTIHOP): Likewise.
2694         [POSIX] (ENETDOWN): Likewise.
2695         [POSIX] (ENETUNREACH): Likewise.
2696         [POSIX] (ENOBUFS): Likewise.
2697         [POSIX] (ENODATA): Likewise.
2698         [POSIX] (ENOLINK): Likewise.
2699         [POSIX] (ENOMSG): Likewise.
2700         [POSIX] (ENOPROTOOPT): Likewise.
2701         [POSIX] (ENOSR): Likewise.
2702         [POSIX] (ENOSTR): Likewise.
2703         [POSIX] (ENOTCONN): Likewise.
2704         [POSIX] (ENOTSOCK): Likewise.
2705         [POSIX] (EOPNOTSUPP): Likewise.
2706         [POSIX] (EOVERFLOW): Likewise.
2707         [POSIX] (EPROTO): Likewise.
2708         [POSIX] (EPROTONOSUPPORT): Likewise.
2709         [POSIX] (EPROTOTYPE): Likewise.
2710         [POSIX] (ESTALE): Likewise.
2711         [POSIX] (ETIME): Likewise.
2712         [POSIX] (ETXTBSY): Likewise.
2713         [POSIX] (EWOULDBLOCK): Likewise.
2714         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
2715         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
2716         [POSIX] (SEEK_CUR): Likewise.
2717         [POSIX] (SEEK_END): Likewise.
2718         [POSIX || UNIX98] (mode_t): Do not require.
2719         [POSIX] (off_t): Likewise.
2720         [POSIX] (pid_t): Likewise.
2721         [POSIX] (sys/stat.h): Do not allow header.
2722         [POSIX] (unistd.h): Likewise.
2723         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
2724         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
2725         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
2726         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
2727         require.
2728         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
2729         sigevent): Specify elements.
2730         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
2731         entry.
2732         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
2733         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
2735         * conform/data/cpio.h-data [POSIX]: Disable whole file.
2736         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
2737         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
2738         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
2739         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
2740         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
2741         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
2742         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
2743         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
2744         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
2745         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
2746         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
2747         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
2748         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
2749         Likewise.
2750         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
2751         Likewise.
2752         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
2753         Likewise.
2754         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
2755         Likewise.
2756         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
2757         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
2758         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
2759         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
2760         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
2761         Specify lower bound on value.
2762         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
2763         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
2764         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
2765         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
2766         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
2767         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
2768         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
2769         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
2770         value.
2771         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
2772         as optional.
2773         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
2774         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
2775         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
2776         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
2777         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
2778         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
2779         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
2780         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
2781         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
2782         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
2783         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
2784         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
2785         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
2786         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
2787         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
2788         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
2789         entry.
2790         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
2791         optional.
2792         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
2793         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
2794         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
2795         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
2796         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
2797         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
2798         Likewise.
2799         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
2800         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
2801         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
2802         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
2803         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
2804         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
2805         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
2806         as optional.
2807         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
2808         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
2809         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
2810         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
2811         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
2812         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
2813         specify as optional.
2814         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
2815         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
2816         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
2817         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
2818         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
2819         [XPG3] (NL_LANGMAX): Likewise.
2820         [POSIX || XPG3] (NL_MSGMAX): Likewise.
2821         [POSIX || XPG3] (NL_NMAX): Likewise.
2822         [POSIX || XPG3] (NL_SETMAX): Likewise.
2823         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
2824         [XPG3] (NZERO): Likewise.
2825         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
2826         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
2827         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
2828         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
2829         (REG_ERANGE): Expect.
2830         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
2831         optional-constant.
2832         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
2833         Use (void) in prototype.
2834         [POSIX] (*_t): Allow.
2835         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
2836         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
2837         (WRDE_BADVAL): Expect.
2839         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
2840         expect.
2841         [XPG3 || XPG4] (O_RSYNC): Likewise.
2842         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
2843         Likewise.
2844         [XPG3 || XPG4] (pthread_sigmask): Likewise.
2845         [XPG3 || XPG4] (sigqueue): Likewise.
2846         [XPG3 || XPG4] (sigtimedwait): Likewise.
2847         [XPG3 || XPG4] (sigwaitinfo): Likewise.
2848         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
2849         [XPG3 || XPG4] (vsnprintf): Likewise.
2850         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
2851         Likewise.
2852         [XPG3 || XPG4] (blksize_t): Likewise.
2853         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
2854         Likewise.
2855         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
2856         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
2857         [XPG3 || XPG4] (struct itimerspec): Likewise.
2858         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
2859         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
2860         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
2861         [XPG3 || XPG4] (clockid_t): Likewise.
2862         [XPG3 || XPG4] (timer_t): Likewise.
2863         [XPG3 || XPG4] (clock_getres): Likewise.
2864         [XPG3 || XPG4] (clock_gettime): Likewise.
2865         [XPG3 || XPG4] (clock_settime): Likewise.
2866         [XPG3 || XPG4] (nanosleep): Likewise.
2867         [XPG3 || XPG4] (timer_create): Likewise.
2868         [XPG3 || XPG4] (timer_delete): Likewise.
2869         [XPG3 || XPG4] (timer_gettime): Likewise.
2870         [XPG3 || XPG4] (timer_getoverrun): Likewise.
2871         [XPG3 || XPG4] (timer_settime): Likewise.
2872         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
2873         [XPG3 || XPG4] (getlogin_r): Likewise.
2874         [XPG3 || XPG4] (pread): Likewise.
2875         [XPG3 || XPG4] (pthread_atfork): Likewise.
2876         [XPG3 || XPG4] (pwrite): Likewise.
2878         [BZ #14835]
2879         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
2880         <bits/siginfo.h>.
2882 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
2884         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
2885         finalizing MALLSTREAM.
2887         * sysdeps/mach/hurd/syncfs.c: New file.
2889 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2891         [BZ #14719]
2892         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
2893         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
2894         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
2895         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
2896         (_nss_dns_gethostbyname4_r): Likewise.
2897         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
2898         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
2900 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
2902         [BZ #13763]
2903         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
2905 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
2907         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
2908         * elf/cache.c (print_entry): Print ",AArch64" for
2909         FLAG_AARCH64_LIB64
2911         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
2912         * elf/cache.c (print_entry): Print ",hard-float" for
2913         FLAG_ARM_LIBHF.
2915 2012-11-18  David S. Miller  <davem@davemloft.net>
2917         With help from Joseph Myers.
2918         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
2919         cutoff to 2**-13.
2920         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
2921         cutoff to 2**-25.
2922         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
2923         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
2924         small.
2925         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
2926         * math/libm-test.inc (y0_test): New tests.
2927         (y1_test): New tests.
2928         * sysdeps/i386/fpu/libm-test-ulps: Update.
2929         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2930         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2932 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
2934         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
2935         64-bit targets.
2936         * configure: Regenerated.
2938 2012-11-17  David S. Miller  <davem@davemloft.net>
2940         [BZ #14811]
2941         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
2942         nonzero exponents with absolute value below 0x1p-128 to +/-
2943         0x1p-128.
2945 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
2947         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
2949         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
2951         * posix/getconf-speclist.c: New file.
2952         * posix/posix-envs.def: Likewise.
2953         * posix/confstr.c (START_ENV_GROUP): New macro.
2954         (END_ENV_GROUP): Likewise.
2955         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
2956         (KNOWN_PRESENT_ENV_STRING): Likewise.
2957         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
2958         (UNKNOWN_ENVIRONMENT): Likewise.
2959         (confstr): Include posix-envs.def instead of handling
2960         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
2961         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
2962         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
2963         (END_ENV_GROUP): Likewise.
2964         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
2965         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
2966         (UNKNOWN_ENVIRONMENT): Likewise.
2967         (__sysconf): Include posix-envs.def instead of handling associated
2968         cases directly here.
2969         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
2970         preprocessing getconf-speclist.c rather than running getconf or
2971         generating empty file.
2973 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
2975         * scripts/check-local-headers.sh: Ignore 'mach' headers.
2977 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
2979         [BZ #14672]
2980         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
2982 2012-11-16  David S. Miller  <davem@davemloft.net>
2984         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
2985         smaller than LDBL_EPSILON/2.0L, just return xm1.
2987 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
2989         * elf/tst-array1.c (init): Set constructor priority to 1000.
2990         (fini): Set destructor priority to 1000.
2991         * elf/tst-array2dep.c: Likewise.
2993 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
2995         [BZ #11741]
2996         * libio/fileops.c (_IO_new_file_write): Correctly return error.
2997         (_IO_new_file_xsputn): Also return EOF if none of the input
2998         data was written when overflow failed.
2999         * libio/iopadn.c (_IO_padn): Likewise.
3000         * libio/iowpadn.c (_IO_wpadn): Likewise.
3001         * stdio-common/tst-put-error.c: Add copyright notice.
3002         (do_test): Add case for printing padded string.
3003         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
3004         _IO_padn returned error.
3005         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
3006         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
3007         return EOF.
3009 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
3011         * libio/libioP.h: Add comment note that the references to C++
3012         bits are now obsolete.
3014 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3016         * math/libm-test.inc (check_complex): Use asprintf.
3018 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
3020         * debug/pcprofiledump.c (print_version): Update copyright year.
3021         * malloc/memusagestat.c (print_version): Likewise.
3023 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
3025         [BZ #14831]
3026         * elf/Makefile (tests): Add tst-audit8.
3027         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
3028         ($(objpfx)tst-audit8.out): New target.
3029         (tst-audit8-ENV): New variable.
3030         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
3031         audit if l_reloc_result is NULL.
3032         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
3033         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
3034         * elf/tst-audit8.c: New file.
3036 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3038         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
3039         * misc/Makefile (CFLAGS-select.c): Define.
3040         * posix/Makefile (CFLAGS-pause.c): Define.
3042 2012-11-13  David S. Miller  <davem@davemloft.net>
3044         * crypt/Makefile: Move test targets after toplevel Rules
3045         inclusion.  Grab any necessary sysdep routines when linking.
3046         * crypt/md5.c (md5_process_block): Remove define, we will always
3047         name it __md5_process_block.
3048         (md5_finish_ctx): Update md5_process_block call.
3049         (md5_stream): Likewise.
3050         (md5_process_bytes): Likewise.
3051         (md5_process_block): Rename to __md5_process_block and move to ...
3052         * crypt/md5-block.c: ... here.
3053         * crypt/sha256.c (sha256_process_block): Move to ...
3054         * crypt/sha256-block.c: ... here.
3055         * crypt/sha512.c (sha512_process_block): Move to ...
3056         * crypt/sha512-block.c: ... here.
3057         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
3058         path.
3059         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
3060         * sysdeps/sparc/sparc64/multiarch/Makefile
3061         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
3062         crypt subdir.
3063         (localedef-aux): Add md5 crypto assembler when in locale subdir.
3064         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
3065         multiarch changes.
3066         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
3067         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
3068         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
3069         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
3070         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
3071         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
3072         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
3073         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
3074         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
3075         file.
3076         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
3077         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
3078         file.
3079         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
3081 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
3083         * timezone/tzselect.ksh: Update from tzcode git revision
3084         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
3085         * timezone/zdump.c: Likewise.
3086         * timezone/zic.c: Likewise.
3087         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
3088         in TZVERSION setting, not $(PKGVERSION).
3089         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
3090         REPORT_BUGS_TO settings.
3092         [BZ #14838]
3093         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
3094         macro.
3096 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3098         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
3099         detection to immediately after _FP_ROUND().
3100         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
3101         bits are 0.
3103 2012-11-11  David S. Miller  <davem@davemloft.net>
3105         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
3106         inttypes.h
3107         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
3108         __close rather than their public counterparts.
3110 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
3112         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
3113         file.
3114         [UNIX98] (sem_timedwait): Do not expect.
3115         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
3116         [XPG4 || UNIX98] (sockatmark): Do not expect.
3117         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
3118         (clock_getcpuclockid): Do not expect.
3119         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
3120         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
3121         Do not expect.
3122         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
3123         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
3124         [UNIX98] (vwscanf): Likewise.
3125         [UNIX98] (vswscanf): Likewise.
3127 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
3129         * timezone/version.h: Remove file.
3130         * timezone/README: Do not refer to version.h.
3131         * timezone/Makefile ($(objpfx)zic.o): New dependency on
3132         $(objpfx)version.h.
3133         ($(objpfx)zdump.o): Likewise.
3134         ($(objpfx)version.h): New target.
3136         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
3137         2012i.
3138         * timezone/README: Don't mention modification to tzselect.ksh.
3139         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
3140         work on unmodified tzselect.ksh.  Substitute version numbers in
3141         tzselect.ksh.
3143         * Makefile (format-me): Remove.
3144         (INSTALL): Adjust indentation.  Use commands directly instead of
3145         using $(format-me).
3147         * aclocal.m4 (ACX_PKGVERSION): New macro.
3148         (ACX_BUGURL): Likewise.
3149         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
3150         (PKGVERSION): New AC_DEFINE_UNQUOTED.
3151         (REPORT_BUGS_TO): Likewise.
3152         * configure: Regenerated.
3153         * config.h.in (PKGVERSION): New macro.
3154         (REPORT_BUGS_TO): Likewise.
3155         * config.make.in (PKGVERSION): New variable.
3156         (PKGVERSION_TEXI): Likewise.
3157         (REPORT_BUGS_TO): Likewise.
3158         (REPORT_BUGS_TEXI): Likewise.
3159         * Makefile (format-me): Use -I$(common-objpfx)manual.
3160         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
3161         ($(common-objpfx)manual/%): New target.
3162         (manual/%): Remove target.
3163         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
3164         (print_version): Use PKGVERSION.
3165         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
3166         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
3167         and REPORT_BUGS_TO.
3168         ($(objpfx)xtrace): Likewise.
3169         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
3170         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
3171         (print_version): Use PKGVERSION.
3172         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
3173         (do_version): Use PKGVERSION.
3174         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
3175         REPORT_BUGS_TO.
3176         (common-ldd-rewrite): Likewise.
3177         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
3178         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
3179         (print_version): Use PKGVERSION.
3180         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
3181         * elf/pldd.c (argp_program_bug_address): Remove variable.
3182         (more_help): New function.
3183         (argp): Use more_help.
3184         (print_version): Use PKGVERSION.
3185         * elf/sln.c (main): Use PKGVERSION.
3186         (usage): Use REPORT_BUGS_TO.
3187         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
3188         (top level): Use PKGVERSION.
3189         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
3190         (print_version): Use PKGVERSION.
3191         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
3192         (print_version): Use PKGVERSION.
3193         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
3194         (print_version): Use PKGVERSION.
3195         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
3196         (print_version): Use PKGVERSION.
3197         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
3198         (print_version): Use PKGVERSION.
3199         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
3200         (print_version): Use PKGVERSION.
3201         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
3202         and BUGURL.
3203         ($(objpfx)memusage): Likewise.
3204         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
3205         (do_version): Use PKGVERSION.
3206         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
3207         (print_version): Use PKGVERSION.
3208         * malloc/mtrace.pl ($PACKAGE): Remove variable.
3209         ($PKGVERSION): New variable.
3210         ($REPORT_BUGS_TO): Likewise.
3211         (usage): Use $REPORT_BUGS_TO.
3212         (top level): Use $PKGVERSION.
3213         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
3214         ($(objpfx)pkgvers.texi): New rule.
3215         ($(objpfx)stamp-pkgvers): Likewise.
3216         * manual/install.texi: Include pkgvers.texi.
3217         (--with-pkgversion): Document new configure option.
3218         (--with-bugurl): Likewise.
3219         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
3220         than necessarily for this particular distribution.  Use
3221         REPORT_BUGS_TO for where to report bugs.
3222         * INSTALL: Regenerated.
3223         * manual/libc.texinfo: Include pkgvers.texi.
3224         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
3225         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
3226         (print_version): Use PKGVERSION.
3227         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
3228         (print_version): Use PKGVERSION.
3229         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
3230         (print_version): Use PKGVERSION.
3231         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
3232         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
3233         macro.
3234         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
3235         (print_version): Use PKGVERSION.
3236         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
3237         (print_version): Use PKGVERSION.
3238         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
3239         and PKGVERSION.
3241         * timezone/checktab.awk: Update from tzcode 2012i.
3242         * timezone/ialloc.c: Likewise.
3243         * timezone/private.h: Likewise.
3244         * timezone/scheck.c: Likewise.
3245         * timezone/tzfile.h: Likewise.
3246         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
3247         (TZVERSION): Hardcode tzcode version number.
3248         * timezone/zdump.c: Update from tzcode 2012i.
3249         * timezone/zic.c: Likewise.
3250         * timezone/version.h: New file.
3251         * timezone/README: Describe version.h.  Update upstream location.
3253         [BZ #14824]
3254         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
3255         (mktemp): Enable declaration.
3256         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
3257         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
3258         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
3259         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
3260         Likewise.
3261         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
3262         Likewise.
3263         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
3264         Likewise.
3265         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
3266         Likewise.
3267         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
3268         Likewise.
3269         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
3270         Likewise.
3272         [BZ #14821]
3273         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
3274         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
3275         for copies of such integer values.
3276         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
3277         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
3279 2012-11-09  Andreas Jaeger  <aj@suse.de>
3281         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
3282         definitions and declarations that are provided by
3283         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
3285 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3287         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
3288         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
3289         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
3290         definition.
3292 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3294         * elf/elf.h: Update comment before AArch64 relocations.
3296 2012-11-07  David S. Miller  <davem@davemloft.net>
3298         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
3299         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
3300         (__start_context): Declare.
3301         (__makecontext_ret): Delete.
3302         (__makecontext): Hook up __start_context instead of
3303         __makecontext_ret.
3304         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
3305         (sysdep_routines): Add __start_context when in stdlib.
3307 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
3309         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
3310         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
3311         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
3312         hardcoded "nm".
3313         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
3314         (READELF): New variable.  Use it instead of hardcoded "readelf".
3316 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3318         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
3319         * sysdeps/x86/Makefile: Here.
3320         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
3321         * sysdeps/x86/tst-xmmymm.sh: This.
3323 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
3325         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
3326         expectations.
3327         [UNIX98] (pthread_barrier_t): Do not expect.
3328         [UNIX98] (pthread_barrierattr_t): Likewise.
3329         [UNIX98] (pthread_spinlock_t): Likewise.
3330         [UNIX98] (pthread_barrier_destroy): Likewise.
3331         [UNIX98] (pthread_barrier_init): Likewise.
3332         [UNIX98] (pthread_barrier_wait): Likewise.
3333         [UNIX98] (pthread_barrierattr_destroy): Likewise.
3334         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
3335         [UNIX98] (pthread_barrierattr_init): Likewise.
3336         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
3337         [UNIX98] (pthread_getcpuclockid): Likewise.
3338         [UNIX98] (pthread_mutex_timedlock): Likewise.
3339         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
3340         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
3341         [UNIX98] (pthread_sigmask): Likewise.
3342         [UNIX98] (pthread_spin_destroy): Likewise.
3343         [UNIX98] (pthread_spin_init): Likewise.
3344         [UNIX98] (pthread_spin_lock): Likewise.
3345         [UNIX98] (pthread_spin_trylock): Likewise.
3346         [UNIX98] (pthread_spin_unlock): Likewise.
3347         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
3348         Do not expect.
3349         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
3350         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
3351         [XPG3 || XPG4] (pthread_cond_t): Likewise.
3352         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
3353         [XPG3 || XPG4] (pthread_key_t): Likewise.
3354         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
3355         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
3356         [XPG3 || XPG4] (pthread_once_t): Likewise.
3357         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
3358         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
3359         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
3360         [XPG3 || XPG4] (pthread_t): Likewise.
3362         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
3363         not expect.
3364         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
3366         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
3367         Change function return type to int.
3369         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
3370         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
3371         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
3372         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
3373         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
3374         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
3375         [!POSIX] (posix_madvise): Likewise.
3376         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
3377         && !UNIX98].
3378         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
3379         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
3380         (mode_t): Likewise.
3381         (posix_mem_offset): Likewise.
3382         (posix_typed_mem_get_info): Likewise.
3383         (posix_typed_mem_open): Likewise.
3385         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
3386         Change condition to [XOPEN2K8].
3388         * conform/conformtest.pl: Preprocess allow-header data with -x c
3389         instead of from stdin.
3390         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
3391         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
3392         [C99-based standards] (cerfc): Likewise.
3393         [C99-based standards] (cexp2): Likewise.
3394         [C99-based standards] (cexpm1): Likewise.
3395         [C99-based standards] (clog10): Likewise.
3396         [C99-based standards] (clog1p): Likewise.
3397         [C99-based standards] (clog2): Likewise.
3398         [C99-based standards] (clgamma): Likewise.
3399         [C99-based standards] (ctgamma): Likewise.
3400         [C99-based standards] (cerff): Likewise.
3401         [C99-based standards] (cerfcf): Likewise.
3402         [C99-based standards] (cexp2f): Likewise.
3403         [C99-based standards] (cexpm1f): Likewise.
3404         [C99-based standards] (clog10f): Likewise.
3405         [C99-based standards] (clog1pf): Likewise.
3406         [C99-based standards] (clog2f): Likewise.
3407         [C99-based standards] (clgammaf): Likewise.
3408         [C99-based standards] (ctgammaf): Likewise.
3409         [C99-based standards] (cerfl): Likewise.
3410         [C99-based standards] (cerfcl): Likewise.
3411         [C99-based standards] (cexp2l): Likewise.
3412         [C99-based standards] (cexpm1l): Likewise.
3413         [C99-based standards] (clog10l): Likewise.
3414         [C99-based standards] (clog1pl): Likewise.
3415         [C99-based standards] (clog2l): Likewise.
3416         [C99-based standards] (clgammal): Likewise.
3417         [C99-based standards] (ctgammal): Likewise.
3418         * conform/data/inttypes.h-data [C99-based standards]: Include
3419         stdint.h-data.  Remove all expectations for stdint.h contents.
3420         [C99-based standards] (PRI*): Do not allow.
3421         [C99-based standards] (SCN*): Likewise.
3422         [C99-based standards] (*_t): Likewise.
3423         [C99-based-standards] (PRId8): Expect macro.
3424         [C99-based-standards] (PRIi8): Likewise.
3425         [C99-based-standards] (PRIo8): Likewise.
3426         [C99-based-standards] (PRIu8): Likewise.
3427         [C99-based-standards] (PRIx8): Likewise.
3428         [C99-based-standards] (PRIX8): Likewise.
3429         [C99-based-standards] (SCNd8): Likewise.
3430         [C99-based-standards] (SCNi8): Likewise.
3431         [C99-based-standards] (SCNo8): Likewise.
3432         [C99-based-standards] (SCNu8): Likewise.
3433         [C99-based-standards] (SCNx8): Likewise.
3434         [C99-based-standards] (PRIdLEAST8): Likewise.
3435         [C99-based-standards] (PRIiLEAST8): Likewise.
3436         [C99-based-standards] (PRIoLEAST8): Likewise.
3437         [C99-based-standards] (PRIuLEAST8): Likewise.
3438         [C99-based-standards] (PRIxLEAST8): Likewise.
3439         [C99-based-standards] (PRIXLEAST8): Likewise.
3440         [C99-based-standards] (SCNdLEAST8): Likewise.
3441         [C99-based-standards] (SCNiLEAST8): Likewise.
3442         [C99-based-standards] (SCNoLEAST8): Likewise.
3443         [C99-based-standards] (SCNuLEAST8): Likewise.
3444         [C99-based-standards] (SCNxLEAST8): Likewise.
3445         [C99-based-standards] (PRIdFAST8): Likewise.
3446         [C99-based-standards] (PRIiFAST8): Likewise.
3447         [C99-based-standards] (PRIoFAST8): Likewise.
3448         [C99-based-standards] (PRIuFAST8): Likewise.
3449         [C99-based-standards] (PRIxFAST8): Likewise.
3450         [C99-based-standards] (PRIXFAST8): Likewise.
3451         [C99-based-standards] (SCNdFAST8): Likewise.
3452         [C99-based-standards] (SCNiFAST8): Likewise.
3453         [C99-based-standards] (SCNoFAST8): Likewise.
3454         [C99-based-standards] (SCNuFAST8): Likewise.
3455         [C99-based-standards] (SCNxFAST8): Likewise.
3456         [C99-based-standards] (PRId16): Likewise.
3457         [C99-based-standards] (PRIi16): Likewise.
3458         [C99-based-standards] (PRIo16): Likewise.
3459         [C99-based-standards] (PRIu16): Likewise.
3460         [C99-based-standards] (PRIx16): Likewise.
3461         [C99-based-standards] (PRIX16): Likewise.
3462         [C99-based-standards] (SCNd16): Likewise.
3463         [C99-based-standards] (SCNi16): Likewise.
3464         [C99-based-standards] (SCNo16): Likewise.
3465         [C99-based-standards] (SCNu16): Likewise.
3466         [C99-based-standards] (SCNx16): Likewise.
3467         [C99-based-standards] (PRIdLEAST16): Likewise.
3468         [C99-based-standards] (PRIiLEAST16): Likewise.
3469         [C99-based-standards] (PRIoLEAST16): Likewise.
3470         [C99-based-standards] (PRIuLEAST16): Likewise.
3471         [C99-based-standards] (PRIxLEAST16): Likewise.
3472         [C99-based-standards] (PRIXLEAST16): Likewise.
3473         [C99-based-standards] (SCNdLEAST16): Likewise.
3474         [C99-based-standards] (SCNiLEAST16): Likewise.
3475         [C99-based-standards] (SCNoLEAST16): Likewise.
3476         [C99-based-standards] (SCNuLEAST16): Likewise.
3477         [C99-based-standards] (SCNxLEAST16): Likewise.
3478         [C99-based-standards] (PRIdFAST16): Likewise.
3479         [C99-based-standards] (PRIiFAST16): Likewise.
3480         [C99-based-standards] (PRIoFAST16): Likewise.
3481         [C99-based-standards] (PRIuFAST16): Likewise.
3482         [C99-based-standards] (PRIxFAST16): Likewise.
3483         [C99-based-standards] (PRIXFAST16): Likewise.
3484         [C99-based-standards] (SCNdFAST16): Likewise.
3485         [C99-based-standards] (SCNiFAST16): Likewise.
3486         [C99-based-standards] (SCNoFAST16): Likewise.
3487         [C99-based-standards] (SCNuFAST16): Likewise.
3488         [C99-based-standards] (SCNxFAST16): Likewise.
3489         [C99-based-standards] (PRId32): Likewise.
3490         [C99-based-standards] (PRIi32): Likewise.
3491         [C99-based-standards] (PRIo32): Likewise.
3492         [C99-based-standards] (PRIu32): Likewise.
3493         [C99-based-standards] (PRIx32): Likewise.
3494         [C99-based-standards] (PRIX32): Likewise.
3495         [C99-based-standards] (SCNd32): Likewise.
3496         [C99-based-standards] (SCNi32): Likewise.
3497         [C99-based-standards] (SCNo32): Likewise.
3498         [C99-based-standards] (SCNu32): Likewise.
3499         [C99-based-standards] (SCNx32): Likewise.
3500         [C99-based-standards] (PRIdLEAST32): Likewise.
3501         [C99-based-standards] (PRIiLEAST32): Likewise.
3502         [C99-based-standards] (PRIoLEAST32): Likewise.
3503         [C99-based-standards] (PRIuLEAST32): Likewise.
3504         [C99-based-standards] (PRIxLEAST32): Likewise.
3505         [C99-based-standards] (PRIXLEAST32): Likewise.
3506         [C99-based-standards] (SCNdLEAST32): Likewise.
3507         [C99-based-standards] (SCNiLEAST32): Likewise.
3508         [C99-based-standards] (SCNoLEAST32): Likewise.
3509         [C99-based-standards] (SCNuLEAST32): Likewise.
3510         [C99-based-standards] (SCNxLEAST32): Likewise.
3511         [C99-based-standards] (PRIdFAST32): Likewise.
3512         [C99-based-standards] (PRIiFAST32): Likewise.
3513         [C99-based-standards] (PRIoFAST32): Likewise.
3514         [C99-based-standards] (PRIuFAST32): Likewise.
3515         [C99-based-standards] (PRIxFAST32): Likewise.
3516         [C99-based-standards] (PRIXFAST32): Likewise.
3517         [C99-based-standards] (SCNdFAST32): Likewise.
3518         [C99-based-standards] (SCNiFAST32): Likewise.
3519         [C99-based-standards] (SCNoFAST32): Likewise.
3520         [C99-based-standards] (SCNuFAST32): Likewise.
3521         [C99-based-standards] (SCNxFAST32): Likewise.
3522         [C99-based-standards] (PRId64): Likewise.
3523         [C99-based-standards] (PRIi64): Likewise.
3524         [C99-based-standards] (PRIo64): Likewise.
3525         [C99-based-standards] (PRIu64): Likewise.
3526         [C99-based-standards] (PRIx64): Likewise.
3527         [C99-based-standards] (PRIX64): Likewise.
3528         [C99-based-standards] (SCNd64): Likewise.
3529         [C99-based-standards] (SCNi64): Likewise.
3530         [C99-based-standards] (SCNo64): Likewise.
3531         [C99-based-standards] (SCNu64): Likewise.
3532         [C99-based-standards] (SCNx64): Likewise.
3533         [C99-based-standards] (PRIdLEAST64): Likewise.
3534         [C99-based-standards] (PRIiLEAST64): Likewise.
3535         [C99-based-standards] (PRIoLEAST64): Likewise.
3536         [C99-based-standards] (PRIuLEAST64): Likewise.
3537         [C99-based-standards] (PRIxLEAST64): Likewise.
3538         [C99-based-standards] (PRIXLEAST64): Likewise.
3539         [C99-based-standards] (SCNdLEAST64): Likewise.
3540         [C99-based-standards] (SCNiLEAST64): Likewise.
3541         [C99-based-standards] (SCNoLEAST64): Likewise.
3542         [C99-based-standards] (SCNuLEAST64): Likewise.
3543         [C99-based-standards] (SCNxLEAST64): Likewise.
3544         [C99-based-standards] (PRIdFAST64): Likewise.
3545         [C99-based-standards] (PRIiFAST64): Likewise.
3546         [C99-based-standards] (PRIoFAST64): Likewise.
3547         [C99-based-standards] (PRIuFAST64): Likewise.
3548         [C99-based-standards] (PRIxFAST64): Likewise.
3549         [C99-based-standards] (PRIXFAST64): Likewise.
3550         [C99-based-standards] (SCNdFAST64): Likewise.
3551         [C99-based-standards] (SCNiFAST64): Likewise.
3552         [C99-based-standards] (SCNoFAST64): Likewise.
3553         [C99-based-standards] (SCNuFAST64): Likewise.
3554         [C99-based-standards] (SCNxFAST64): Likewise.
3555         [C99-based-standards] (PRIdMAX): Likewise.
3556         [C99-based-standards] (PRIiMAX): Likewise.
3557         [C99-based-standards] (PRIoMAX): Likewise.
3558         [C99-based-standards] (PRIuMAX): Likewise.
3559         [C99-based-standards] (PRIxMAX): Likewise.
3560         [C99-based-standards] (PRIXMAX): Likewise.
3561         [C99-based-standards] (SCNdMAX): Likewise.
3562         [C99-based-standards] (SCNiMAX): Likewise.
3563         [C99-based-standards] (SCNoMAX): Likewise.
3564         [C99-based-standards] (SCNuMAX): Likewise.
3565         [C99-based-standards] (SCNxMAX): Likewise.
3566         [C99-based-standards] (PRIdPTR): Likewise.
3567         [C99-based-standards] (PRIiPTR): Likewise.
3568         [C99-based-standards] (PRIoPTR): Likewise.
3569         [C99-based-standards] (PRIuPTR): Likewise.
3570         [C99-based-standards] (PRIxPTR): Likewise.
3571         [C99-based-standards] (PRIXPTR): Likewise.
3572         [C99-based-standards] (SCNdPTR): Likewise.
3573         [C99-based-standards] (SCNiPTR): Likewise.
3574         [C99-based-standards] (SCNoPTR): Likewise.
3575         [C99-based-standards] (SCNuPTR): Likewise.
3576         [C99-based-standards] (SCNxPTR): Likewise.
3577         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
3578         allow.
3579         * conform/data/stdint.h-data: Update comments to clarify
3580         requirements.
3581         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
3582         type.
3583         [C99-based standards] (INT8_MAX): Likewise.
3584         [C99-based standards] (INT16_MIN): Likewise.
3585         [C99-based standards] (INT16_MAX): Likewise.
3586         [C99-based standards] (INT32_MIN): Likewise.
3587         [C99-based standards] (INT32_MAX): Likewise.
3588         [C99-based standards] (INT64_MIN): Likewise.
3589         [C99-based standards] (INT64_MAX): Likewise.
3590         [C99-based standards] (UINT8_MAX): Likewise.
3591         [C99-based standards] (UINT16_MAX): Likewise.
3592         [C99-based standards] (UINT32_MAX): Likewise.
3593         [C99-based standards] (UINT64_MAX): Likewise.
3594         [C99-based standards] (INT_LEAST8_MIN): Likewise.
3595         [C99-based standards] (INT_LEAST8_MAX): Likewise.
3596         [C99-based standards] (INT_LEAST16_MIN): Likewise.
3597         [C99-based standards] (INT_LEAST16_MAX): Likewise.
3598         [C99-based standards] (INT_LEAST32_MIN): Likewise.
3599         [C99-based standards] (INT_LEAST32_MAX): Likewise.
3600         [C99-based standards] (INT_LEAST64_MIN): Likewise.
3601         [C99-based standards] (INT_LEAST64_MAX): Likewise.
3602         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
3603         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
3604         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
3605         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
3606         [C99-based standards] (INT_FAST8_MIN): Likewise.
3607         [C99-based standards] (INT_FAST8_MAX): Likewise.
3608         [C99-based standards] (INT_FAST16_MIN): Likewise.
3609         [C99-based standards] (INT_FAST16_MAX): Likewise.
3610         [C99-based standards] (INT_FAST32_MIN): Likewise.
3611         [C99-based standards] (INT_FAST32_MAX): Likewise.
3612         [C99-based standards] (INT_FAST64_MIN): Likewise.
3613         [C99-based standards] (INT_FAST64_MAX): Likewise.
3614         [C99-based standards] (UINT_FAST8_MAX): Likewise.
3615         [C99-based standards] (UINT_FAST16_MAX): Likewise.
3616         [C99-based standards] (UINT_FAST32_MAX): Likewise.
3617         [C99-based standards] (UINT_FAST64_MAX): Likewise.
3618         [C99-based standards] (INTPTR_MIN): Likewise.
3619         [C99-based standards] (INTPTR_MAX): Likewise.
3620         [C99-based standards] (UINTPTR_MAX): Likewise.
3621         [C99-based standards] (INTMAX_MIN): Likewise.
3622         [C99-based standards] (INTMAX_MAX): Likewise.
3623         [C99-based standards] (UINTMAX_MAX): Likewise.
3624         [C99-based standards] (PTRDIFF_MIN): Likewise.
3625         [C99-based standards] (PTRDIFF_MAX): Likewise.
3626         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
3627         [C99-based standards] (SIZE_MAX): Likewise.
3628         [C99-based standards] (WCHAR_MAX): Likewise.
3629         [C99-based standards] (WINT_MAX): Likewise.
3630         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
3631         constraint on value.
3632         [C99-based standards] (WCHAR_MIN): Likewise.
3633         [C99-based standards] (WINT_MIN): Likewise.
3634         [C99-based standards] (*_t): Allow.
3635         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
3636         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
3637         Include math.h-data and complex.h-data.  Remove all expectations
3638         of math.h and complex.h contents.
3639         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
3640         at end of line.
3641         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
3642         (struct tm): Expect tag.
3643         [C99-based-standards] (wcstof): Expect function.
3644         [C99-based-standards] (wcstold): Likewise.
3645         [C99-based-standards] (wcstoll): Likewise.
3646         [C99-based-standards] (wcstoull): Likewise.
3647         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
3648         macro-int-constant.  Specify type.
3649         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
3650         constraint on value.
3651         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
3652         Specify type.
3653         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
3654         Specify value.
3655         [ISO C standards]: Do not allow headers.
3656         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
3657         wcs[abcdefghijklmnopqrstuvwxyz]*.
3658         [ISO C standards] (*_t): Do not allow.
3659         * conform/data/wctype.h-data [C99-based standards] (iswblank):
3660         Expect function.
3661         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
3662         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
3663         Specify type.
3664         [ISO C standards]: Do not allow headers.
3665         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
3666         is[abcdefghijklmnopqrstuvwxyz]*.
3667         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
3668         to[abcdefghijklmnopqrstuvwxyz]*.
3669         [ISO C standards] (*_t): Do not allow.
3670         * conform/data/stdalign.h-data: New file.
3671         * conform/data/stdbool.h-data: Likewise.
3672         * conform/data/stdnoreturn.h-data: Likewise.
3674 2012-11-07  Roland McGrath  <roland@hack.frob.com>
3676         [BZ #14815]
3677         * manual/filesys.texi (Directory Entries): Typo fix.
3678         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
3680 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3682         * elf/elf.h (EM_AARCH64): New macro.
3683         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
3684         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
3685         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
3686         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
3687         (R_AARCH64_TLSDESC): Likewise.
3688         (NT_ARM_TLS): Likewise.
3689         (NT_ARM_HW_BREAK): Likewise.
3690         (NT_ARM_HW_WATCH): Likewise.
3692 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
3694         [BZ #14811]
3695         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
3696         (__ieee754_powl): Saturate nonzero exponents with absolute value
3697         below 0x1p-79 to +/- 0x1p-79.
3698         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
3699         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
3700         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
3701         nonzero exponents with absolute value below 0x1p-32 to +/-
3702         0x1p-32.
3703         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
3704         (__ieee754_powl): Saturate nonzero exponents with absolute value
3705         below 0x1p-79 to +/- 0x1p-79.
3706         * math/libm-test.inc (pow_test): Add more tests.
3708 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3710         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
3711         _dl_s390_cap_flags with kernel. Increase string length.
3712         (_dl_s390_platforms): Add z196 and zEC12.
3714 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
3716         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
3717         Change XOPEN21K to XOPEN2K.
3719 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
3721         * string/memmove.c: Use memcpy when possible.
3723 2012-11-06  Andreas Jaeger  <aj@suse.de>
3725         * po/eo.po: Update from translation team.
3727 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
3729         [BZ #14793]
3730         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
3731         exponent and small x and y exponents, scale x or y up.  Increase
3732         by 2 the exponent used in scaling up.
3733         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
3734         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3735         * math/libm-test.inc (fma_test): Add more tests.
3736         (fma_test_towardzero): Likewise.
3737         (fma_test_downward): Likewise.
3738         (fma_test_upward): Likewise.
3740 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
3742         [BZ #14805]
3743         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
3744         fenv_t *.
3746         [BZ #14801]
3747         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
3748         namespace for names of struct fields.
3749         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
3750         fenv_t fields.
3751         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
3752         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
3754 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3756         [BZ #3665]
3757         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
3759 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
3761         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
3762         PTR_DEMANGLE.
3764         [BZ #5246]
3765         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
3766         PTR_DEMANGLE.
3768 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
3770         [BZ #14797]
3771         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
3772         definitely overflow as x * y not x * y + z.
3773         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
3774         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3775         * math/libm-test.inc (fma_test): Add more tests.
3776         (fma_test_towardzero): Likewise.
3777         (fma_test_downward): Likewise.
3778         (fma_test_upward): Likewise.
3780 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
3782         [BZ #157]
3784         * include/stub-tag.h: Remove file.
3785         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
3786         '#include' of it.
3787         * manual/maint.texi (Porting): Don't reference it.
3788         * Makerules ($(objpfx)stubs): Likewise.
3789         * dirent/closedir.c: Don't include <stub-tag.h>.
3790         * dirent/dirfd.c: Likewise.
3791         * dirent/fdopendir.c: Likewise.
3792         * dirent/getdents.c: Likewise.
3793         * dirent/getdents64.c: Likewise.
3794         * dirent/opendir.c: Likewise.
3795         * dirent/readdir.c: Likewise.
3796         * dirent/readdir64.c: Likewise.
3797         * dirent/readdir64_r.c: Likewise.
3798         * dirent/readdir_r.c: Likewise.
3799         * dirent/rewinddir.c: Likewise.
3800         * dirent/seekdir.c: Likewise.
3801         * dirent/telldir.c: Likewise.
3802         * gmon/profil.c: Likewise.
3803         * grp/setgroups.c: Likewise.
3804         * inet/if_index.c: Likewise.
3805         * io/access.c: Likewise.
3806         * io/chdir.c: Likewise.
3807         * io/chmod.c: Likewise.
3808         * io/chown.c: Likewise.
3809         * io/close.c: Likewise.
3810         * io/dup.c: Likewise.
3811         * io/dup2.c: Likewise.
3812         * io/dup3.c: Likewise.
3813         * io/euidaccess.c: Likewise.
3814         * io/faccessat.c: Likewise.
3815         * io/fchdir.c: Likewise.
3816         * io/fchmod.c: Likewise.
3817         * io/fchmodat.c: Likewise.
3818         * io/fchown.c: Likewise.
3819         * io/fchownat.c: Likewise.
3820         * io/fcntl.c: Likewise.
3821         * io/flock.c: Likewise.
3822         * io/fstatfs.c: Likewise.
3823         * io/fstatfs64.c: Likewise.
3824         * io/fstatvfs.c: Likewise.
3825         * io/fstatvfs64.c: Likewise.
3826         * io/futimens.c: Likewise.
3827         * io/fxstat.c: Likewise.
3828         * io/fxstat64.c: Likewise.
3829         * io/fxstatat.c: Likewise.
3830         * io/fxstatat64.c: Likewise.
3831         * io/getcwd.c: Likewise.
3832         * io/isatty.c: Likewise.
3833         * io/lchmod.c: Likewise.
3834         * io/lchown.c: Likewise.
3835         * io/link.c: Likewise.
3836         * io/linkat.c: Likewise.
3837         * io/lseek.c: Likewise.
3838         * io/lseek64.c: Likewise.
3839         * io/lxstat64.c: Likewise.
3840         * io/mkdir.c: Likewise.
3841         * io/mkdirat.c: Likewise.
3842         * io/mkfifo.c: Likewise.
3843         * io/mkfifoat.c: Likewise.
3844         * io/open.c: Likewise.
3845         * io/open64.c: Likewise.
3846         * io/openat.c: Likewise.
3847         * io/openat64.c: Likewise.
3848         * io/pipe.c: Likewise.
3849         * io/pipe2.c: Likewise.
3850         * io/poll.c: Likewise.
3851         * io/posix_fadvise.c: Likewise.
3852         * io/posix_fadvise64.c: Likewise.
3853         * io/posix_fallocate.c: Likewise.
3854         * io/posix_fallocate64.c: Likewise.
3855         * io/read.c: Likewise.
3856         * io/readlink.c: Likewise.
3857         * io/readlinkat.c: Likewise.
3858         * io/rmdir.c: Likewise.
3859         * io/sendfile.c: Likewise.
3860         * io/sendfile64.c: Likewise.
3861         * io/statfs.c: Likewise.
3862         * io/statfs64.c: Likewise.
3863         * io/statvfs.c: Likewise.
3864         * io/statvfs64.c: Likewise.
3865         * io/symlink.c: Likewise.
3866         * io/symlinkat.c: Likewise.
3867         * io/ttyname.c: Likewise.
3868         * io/ttyname_r.c: Likewise.
3869         * io/umask.c: Likewise.
3870         * io/unlink.c: Likewise.
3871         * io/unlinkat.c: Likewise.
3872         * io/utime.c: Likewise.
3873         * io/utimensat.c: Likewise.
3874         * io/write.c: Likewise.
3875         * io/xmknod.c: Likewise.
3876         * io/xmknodat.c: Likewise.
3877         * io/xstat.c: Likewise.
3878         * io/xstat64.c: Likewise.
3879         * login/getpt.c: Likewise.
3880         * login/grantpt.c: Likewise.
3881         * login/unlockpt.c: Likewise.
3882         * math/e_acoshl.c: Likewise.
3883         * math/e_acosl.c: Likewise.
3884         * math/e_asinl.c: Likewise.
3885         * math/e_atan2l.c: Likewise.
3886         * math/e_atanhl.c: Likewise.
3887         * math/e_coshl.c: Likewise.
3888         * math/e_expl.c: Likewise.
3889         * math/e_fmodl.c: Likewise.
3890         * math/e_gammal_r.c: Likewise.
3891         * math/e_hypotl.c: Likewise.
3892         * math/e_j0l.c: Likewise.
3893         * math/e_j1l.c: Likewise.
3894         * math/e_jnl.c: Likewise.
3895         * math/e_lgammal_r.c: Likewise.
3896         * math/e_log10l.c: Likewise.
3897         * math/e_log2l.c: Likewise.
3898         * math/e_logl.c: Likewise.
3899         * math/e_powl.c: Likewise.
3900         * math/e_rem_pio2l.c: Likewise.
3901         * math/e_sinhl.c: Likewise.
3902         * math/e_sqrtl.c: Likewise.
3903         * math/fclrexcpt.c: Likewise.
3904         * math/fedisblxcpt.c: Likewise.
3905         * math/feenablxcpt.c: Likewise.
3906         * math/fegetenv.c: Likewise.
3907         * math/fegetexcept.c: Likewise.
3908         * math/fegetround.c: Likewise.
3909         * math/feholdexcpt.c: Likewise.
3910         * math/fesetenv.c: Likewise.
3911         * math/fesetround.c: Likewise.
3912         * math/feupdateenv.c: Likewise.
3913         * math/fgetexcptflg.c: Likewise.
3914         * math/fraiseexcpt.c: Likewise.
3915         * math/fsetexcptflg.c: Likewise.
3916         * math/ftestexcept.c: Likewise.
3917         * math/k_cosl.c: Likewise.
3918         * math/k_rem_pio2l.c: Likewise.
3919         * math/k_sinl.c: Likewise.
3920         * math/k_tanl.c: Likewise.
3921         * math/s_asinhl.c: Likewise.
3922         * math/s_atanl.c: Likewise.
3923         * math/s_cbrtl.c: Likewise.
3924         * math/s_erfl.c: Likewise.
3925         * math/s_expm1l.c: Likewise.
3926         * math/s_log1pl.c: Likewise.
3927         * math/s_tanhl.c: Likewise.
3928         * misc/acct.c: Likewise.
3929         * misc/brk.c: Likewise.
3930         * misc/chflags.c: Likewise.
3931         * misc/chroot.c: Likewise.
3932         * misc/fchflags.c: Likewise.
3933         * misc/fgetxattr.c: Likewise.
3934         * misc/flistxattr.c: Likewise.
3935         * misc/fremovexattr.c: Likewise.
3936         * misc/fsetxattr.c: Likewise.
3937         * misc/fsync.c: Likewise.
3938         * misc/ftruncate.c: Likewise.
3939         * misc/futimes.c: Likewise.
3940         * misc/futimesat.c: Likewise.
3941         * misc/getdomain.c: Likewise.
3942         * misc/getdtsz.c: Likewise.
3943         * misc/gethostid.c: Likewise.
3944         * misc/gethostname.c: Likewise.
3945         * misc/getloadavg.c: Likewise.
3946         * misc/getpagesize.c: Likewise.
3947         * misc/getsysstats.c: Likewise.
3948         * misc/getxattr.c: Likewise.
3949         * misc/gtty.c: Likewise.
3950         * misc/ioctl.c: Likewise.
3951         * misc/lgetxattr.c: Likewise.
3952         * misc/listxattr.c: Likewise.
3953         * misc/llistxattr.c: Likewise.
3954         * misc/lremovexattr.c: Likewise.
3955         * misc/lsetxattr.c: Likewise.
3956         * misc/lutimes.c: Likewise.
3957         * misc/madvise.c: Likewise.
3958         * misc/mincore.c: Likewise.
3959         * misc/mlock.c: Likewise.
3960         * misc/mlockall.c: Likewise.
3961         * misc/mmap.c: Likewise.
3962         * misc/mprotect.c: Likewise.
3963         * misc/msync.c: Likewise.
3964         * misc/munlock.c: Likewise.
3965         * misc/munlockall.c: Likewise.
3966         * misc/munmap.c: Likewise.
3967         * misc/preadv.c: Likewise.
3968         * misc/preadv64.c: Likewise.
3969         * misc/ptrace.c: Likewise.
3970         * misc/pwritev.c: Likewise.
3971         * misc/pwritev64.c: Likewise.
3972         * misc/readv.c: Likewise.
3973         * misc/reboot.c: Likewise.
3974         * misc/remap_file_pages.c: Likewise.
3975         * misc/removexattr.c: Likewise.
3976         * misc/revoke.c: Likewise.
3977         * misc/select.c: Likewise.
3978         * misc/setdomain.c: Likewise.
3979         * misc/setegid.c: Likewise.
3980         * misc/seteuid.c: Likewise.
3981         * misc/sethostid.c: Likewise.
3982         * misc/sethostname.c: Likewise.
3983         * misc/setregid.c: Likewise.
3984         * misc/setreuid.c: Likewise.
3985         * misc/setxattr.c: Likewise.
3986         * misc/sstk.c: Likewise.
3987         * misc/stty.c: Likewise.
3988         * misc/swapoff.c: Likewise.
3989         * misc/swapon.c: Likewise.
3990         * misc/sync.c: Likewise.
3991         * misc/syncfs.c: Likewise.
3992         * misc/syscall.c: Likewise.
3993         * misc/truncate.c: Likewise.
3994         * misc/ualarm.c: Likewise.
3995         * misc/usleep.c: Likewise.
3996         * misc/ustat.c: Likewise.
3997         * misc/utimes.c: Likewise.
3998         * misc/vhangup.c: Likewise.
3999         * misc/writev.c: Likewise.
4000         * posix/_exit.c: Likewise.
4001         * posix/alarm.c: Likewise.
4002         * posix/execve.c: Likewise.
4003         * posix/fexecve.c: Likewise.
4004         * posix/fork.c: Likewise.
4005         * posix/fpathconf.c: Likewise.
4006         * posix/getaddrinfo.c: Likewise.
4007         * posix/getegid.c: Likewise.
4008         * posix/geteuid.c: Likewise.
4009         * posix/getgid.c: Likewise.
4010         * posix/getgroups.c: Likewise.
4011         * posix/getlogin.c: Likewise.
4012         * posix/getlogin_r.c: Likewise.
4013         * posix/getpgid.c: Likewise.
4014         * posix/getpid.c: Likewise.
4015         * posix/getppid.c: Likewise.
4016         * posix/getresgid.c: Likewise.
4017         * posix/getresuid.c: Likewise.
4018         * posix/getsid.c: Likewise.
4019         * posix/getuid.c: Likewise.
4020         * posix/glob64.c: Likewise.
4021         * posix/nanosleep.c: Likewise.
4022         * posix/pathconf.c: Likewise.
4023         * posix/pause.c: Likewise.
4024         * posix/posix_madvise.c: Likewise.
4025         * posix/pread.c: Likewise.
4026         * posix/pread64.c: Likewise.
4027         * posix/pwrite.c: Likewise.
4028         * posix/pwrite64.c: Likewise.
4029         * posix/sched_getaffinity.c: Likewise.
4030         * posix/sched_getp.c: Likewise.
4031         * posix/sched_gets.c: Likewise.
4032         * posix/sched_primax.c: Likewise.
4033         * posix/sched_primin.c: Likewise.
4034         * posix/sched_rr_gi.c: Likewise.
4035         * posix/sched_setaffinity.c: Likewise.
4036         * posix/sched_setp.c: Likewise.
4037         * posix/sched_sets.c: Likewise.
4038         * posix/sched_yield.c: Likewise.
4039         * posix/setgid.c: Likewise.
4040         * posix/setlogin.c: Likewise.
4041         * posix/setpgid.c: Likewise.
4042         * posix/setresgid.c: Likewise.
4043         * posix/setresuid.c: Likewise.
4044         * posix/setsid.c: Likewise.
4045         * posix/setuid.c: Likewise.
4046         * posix/sleep.c: Likewise.
4047         * posix/spawni.c: Likewise.
4048         * posix/sysconf.c: Likewise.
4049         * posix/times.c: Likewise.
4050         * posix/wait.c: Likewise.
4051         * posix/wait3.c: Likewise.
4052         * posix/wait4.c: Likewise.
4053         * posix/waitpid.c: Likewise.
4054         * resolv/gai_sigqueue.c: Likewise.
4055         * resource/getpriority.c: Likewise.
4056         * resource/getrlimit.c: Likewise.
4057         * resource/getrusage.c: Likewise.
4058         * resource/nice.c: Likewise.
4059         * resource/setpriority.c: Likewise.
4060         * resource/setrlimit.c: Likewise.
4061         * resource/ulimit.c: Likewise.
4062         * rt/aio_cancel.c: Likewise.
4063         * rt/aio_fsync.c: Likewise.
4064         * rt/aio_read.c: Likewise.
4065         * rt/aio_sigqueue.c: Likewise.
4066         * rt/aio_suspend.c: Likewise.
4067         * rt/aio_write.c: Likewise.
4068         * rt/clock_getres.c: Likewise.
4069         * rt/clock_gettime.c: Likewise.
4070         * rt/clock_nanosleep.c: Likewise.
4071         * rt/clock_settime.c: Likewise.
4072         * rt/lio_listio.c: Likewise.
4073         * rt/mq_close.c: Likewise.
4074         * rt/mq_getattr.c: Likewise.
4075         * rt/mq_notify.c: Likewise.
4076         * rt/mq_open.c: Likewise.
4077         * rt/mq_receive.c: Likewise.
4078         * rt/mq_send.c: Likewise.
4079         * rt/mq_setattr.c: Likewise.
4080         * rt/mq_timedreceive.c: Likewise.
4081         * rt/mq_timedsend.c: Likewise.
4082         * rt/mq_unlink.c: Likewise.
4083         * rt/shm_open.c: Likewise.
4084         * rt/shm_unlink.c: Likewise.
4085         * rt/timer_create.c: Likewise.
4086         * rt/timer_delete.c: Likewise.
4087         * rt/timer_getoverr.c: Likewise.
4088         * rt/timer_gettime.c: Likewise.
4089         * rt/timer_settime.c: Likewise.
4090         * setjmp/__longjmp.c: Likewise.
4091         * setjmp/setjmp.c: Likewise.
4092         * signal/kill.c: Likewise.
4093         * signal/killpg.c: Likewise.
4094         * signal/raise.c: Likewise.
4095         * signal/sigaction.c: Likewise.
4096         * signal/sigaltstack.c: Likewise.
4097         * signal/sigblock.c: Likewise.
4098         * signal/sigignore.c: Likewise.
4099         * signal/sigintr.c: Likewise.
4100         * signal/signal.c: Likewise.
4101         * signal/sigpause.c: Likewise.
4102         * signal/sigpending.c: Likewise.
4103         * signal/sigqueue.c: Likewise.
4104         * signal/sigreturn.c: Likewise.
4105         * signal/sigset.c: Likewise.
4106         * signal/sigsetmask.c: Likewise.
4107         * signal/sigstack.c: Likewise.
4108         * signal/sigsuspend.c: Likewise.
4109         * signal/sigtimedwait.c: Likewise.
4110         * signal/sigvec.c: Likewise.
4111         * signal/sigwait.c: Likewise.
4112         * signal/sigwaitinfo.c: Likewise.
4113         * signal/sysv_signal.c: Likewise.
4114         * socket/accept.c: Likewise.
4115         * socket/accept4.c: Likewise.
4116         * socket/bind.c: Likewise.
4117         * socket/connect.c: Likewise.
4118         * socket/getpeername.c: Likewise.
4119         * socket/getsockname.c: Likewise.
4120         * socket/getsockopt.c: Likewise.
4121         * socket/isfdtype.c: Likewise.
4122         * socket/listen.c: Likewise.
4123         * socket/recv.c: Likewise.
4124         * socket/recvfrom.c: Likewise.
4125         * socket/recvmsg.c: Likewise.
4126         * socket/send.c: Likewise.
4127         * socket/sendmsg.c: Likewise.
4128         * socket/sendto.c: Likewise.
4129         * socket/setsockopt.c: Likewise.
4130         * socket/shutdown.c: Likewise.
4131         * socket/sockatmark.c: Likewise.
4132         * socket/socket.c: Likewise.
4133         * socket/socketpair.c: Likewise.
4134         * stdio-common/ctermid.c: Likewise.
4135         * stdio-common/cuserid.c: Likewise.
4136         * stdio-common/remove.c: Likewise.
4137         * stdio-common/rename.c: Likewise.
4138         * stdio-common/renameat.c: Likewise.
4139         * stdio-common/tempname.c: Likewise.
4140         * stdlib/getcontext.c: Likewise.
4141         * stdlib/makecontext.c: Likewise.
4142         * stdlib/setcontext.c: Likewise.
4143         * stdlib/swapcontext.c: Likewise.
4144         * stdlib/system.c: Likewise.
4145         * streams/fattach.c: Likewise.
4146         * streams/fdetach.c: Likewise.
4147         * streams/getmsg.c: Likewise.
4148         * streams/getpmsg.c: Likewise.
4149         * streams/putmsg.c: Likewise.
4150         * streams/putpmsg.c: Likewise.
4151         * sysdeps/unix/bsd/getpt.c: Likewise.
4152         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
4153         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
4154         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
4155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
4156         Likewise.
4157         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
4158         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
4159         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
4160         * sysvipc/msgctl.c: Likewise.
4161         * sysvipc/msgget.c: Likewise.
4162         * sysvipc/msgrcv.c: Likewise.
4163         * sysvipc/msgsnd.c: Likewise.
4164         * sysvipc/semctl.c: Likewise.
4165         * sysvipc/semget.c: Likewise.
4166         * sysvipc/semop.c: Likewise.
4167         * sysvipc/semtimedop.c: Likewise.
4168         * sysvipc/shmat.c: Likewise.
4169         * sysvipc/shmctl.c: Likewise.
4170         * sysvipc/shmdt.c: Likewise.
4171         * sysvipc/shmget.c: Likewise.
4172         * termios/tcdrain.c: Likewise.
4173         * termios/tcflow.c: Likewise.
4174         * termios/tcflush.c: Likewise.
4175         * termios/tcgetattr.c: Likewise.
4176         * termios/tcgetpgrp.c: Likewise.
4177         * termios/tcsendbrk.c: Likewise.
4178         * termios/tcsetattr.c: Likewise.
4179         * termios/tcsetpgrp.c: Likewise.
4180         * time/adjtime.c: Likewise.
4181         * time/clock.c: Likewise.
4182         * time/getitimer.c: Likewise.
4183         * time/gettimeofday.c: Likewise.
4184         * time/setitimer.c: Likewise.
4185         * time/settimeofday.c: Likewise.
4186         * time/stime.c: Likewise.
4187         * time/time.c: Likewise.
4189 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
4191         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
4192         /usr/old/bin.
4194         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
4195         instead of spaces.
4196         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
4198 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
4200         [BZ #14796]
4201         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
4202         FE_TONEAREST before applying Dekker multiplication and Knuth
4203         addition.  Clear inexact exceptions and check for exact zero
4204         results afterwards.
4205         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4206         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
4207         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4208         * math/libm-test.inc (fma_test): Add more tests.
4209         (fma_test_towardzero): Likewise.
4210         (fma_test_downward): Likewise.
4211         (fma_test_upward): Likewise.
4212         * sysdeps/generic/math_private.h (default_libc_fesetround): New
4213         function.
4214         (libc_fesetround): New macro.
4215         (libc_fesetroundf): Likewise.
4216         (libc_fesetroundl): Likewise.
4217         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
4218         function.
4219         (libc_fesetround_387): Likewise.
4220         (libc_fesetroundf): New macro.
4221         (libc_fesetround): Likewise.
4222         (libc_fesetroundl): Likewise.
4223         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
4224         function.
4225         (libc_fesetroundf): New macro.
4226         (libc_fesetround): Likewise.
4227         (libc_fesetroundl): Likewise.
4228         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
4229         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
4230         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
4231         libm_hidden_ver.
4232         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
4233         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
4234         libm_hidden_def.
4235         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
4236         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
4237         libm_hidden_ver.
4238         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
4239         libm_hidden_def.
4241         [BZ #3439]
4242         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
4243         integer constant usable in #if and use that to give value to enum
4244         constant.
4245         (FE_DIVBYZERO): Likewise.
4246         (FE_UNDERFLOW): Likewise.
4247         (FE_OVERFLOW): Likewise.
4248         (FE_INVALID): Likewise.
4249         (FE_INVALID_SNAN): Likewise.
4250         (FE_INVALID_ISI): Likewise.
4251         (FE_INVALID_IDI): Likewise.
4252         (FE_INVALID_ZDZ): Likewise.
4253         (FE_INVALID_IMZ): Likewise.
4254         (FE_INVALID_COMPARE): Likewise.
4255         (FE_INVALID_SOFTWARE): Likewise.
4256         (FE_INVALID_SQRT): Likewise.
4257         (FE_INVALID_INTEGER_CONVERSION): Likewise.
4258         (FE_TONEAREST): Likewise.
4259         (FE_TOWARDZERO): Likewise.
4260         (FE_UPWARD): Likewise.
4261         (FE_DOWNWARD): Likewise.
4262         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
4263         (FE_DIVBYZERO): Likewise.
4264         (FE_OVERFLOW): Likewise.
4265         (FE_UNDERFLOW): Likewise.
4266         (FE_INEXACT): Likewise.
4267         (FE_TONEAREST): Likewise.
4268         (FE_DOWNWARD): Likewise.
4269         (FE_UPWARD): Likewise.
4270         (FE_TOWARDZERO): Likewise.
4271         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
4272         (FE_UNDERFLOW): Likewise.
4273         (FE_OVERFLOW): Likewise.
4274         (FE_DIVBYZERO): Likewise.
4275         (FE_INVALID): Likewise.
4276         (FE_TONEAREST): Likewise.
4277         (FE_TOWARDZERO): Likewise.
4278         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
4279         (FE_OVERFLOW): Likewise.
4280         (FE_UNDERFLOW): Likewise.
4281         (FE_DIVBYZERO): Likewise.
4282         (FE_INEXACT): Likewise.
4283         (FE_TONEAREST): Likewise.
4284         (FE_TOWARDZERO): Likewise.
4285         (FE_UPWARD): Likewise.
4286         (FE_DOWNWARD): Likewise.
4287         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
4288         (FE_DIVBYZERO): Likewise.
4289         (FE_OVERFLOW): Likewise.
4290         (FE_UNDERFLOW): Likewise.
4291         (FE_INEXACT): Likewise.
4292         (FE_TONEAREST): Likewise.
4293         (FE_DOWNWARD): Likewise.
4294         (FE_UPWARD): Likewise.
4295         (FE_TOWARDZERO): Likewise.
4297 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
4299         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
4301 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
4303         * scripts/cross-test-ssh.sh (command): Use newlines to separate
4304         commands.  Quote $PWD.
4305         (blacklist_exports): Don't use remove_newlines.  Replace "declare
4306         -x" by "export".
4307         (remove_newlines): Remove.
4309 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
4311         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
4312         * stdlib/stdlib.h (atof): Moved to ...
4313         * include/bits/stdlib-float.h: Here.  New file.
4314         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
4315         * stdlib/bits/stdlib-float.h: New file.
4316         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
4317         -mno-sse -mno-mmx.
4318         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
4319         <xmmintrin.h>.
4321 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
4323         * conform/conformtest.pl (@headers): Add fenv.h.
4324         * conform/data/fenv.h-data: New file.
4325         * include/fenv.h [_ISOMAC]: Disable all contents of file except
4326         include of <math/fenv.h>.
4328         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
4329         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
4330         && !UNIX98].  Enables tests for XOPEN2K8.
4331         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
4332         POSIX2008]: Likewise.
4334         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
4335         (struct rusage): Do not expect type or its members.
4337         [BZ #3439]
4338         * math/math.h (FP_NAN): Define macro to integer constant usable in
4339         #if and use that to give value to enum constant.
4340         (FP_INFINITE): Likewise.
4341         (FP_ZERO): Likewise.
4342         (FP_SUBNORMAL): Likewise.
4343         (FP_NORMAL): Likewise.
4345 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
4347         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
4348         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
4349         arguments.
4351 2012-11-02  Roland McGrath  <roland@hack.frob.com>
4353         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
4354         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
4355         autoconf-time if not.
4356         * configure.in: Remove AC_PREREQ.
4358 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4360         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
4361         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
4362         of the internal implementation.
4364 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
4366         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
4367         except include of <misc/sys/syslog.h>.
4369 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
4371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
4372         function returns with a NULL context exit with zero.
4374 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4376         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
4378 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
4380         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
4381         (run_program_cmd): This.
4382         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
4383         (tst_langinfo): New variable.  Use it.
4385 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
4387         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
4388         floating point opcodes.
4390 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
4392         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
4393         variable.
4395         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
4397         * sysdeps/mach/hurd/powerpc: Remove directory.
4398         * sysdeps/mach/powerpc: Likewise.
4400 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
4402         * scripts/check-local-headers.sh: Ignore c++ headers.
4404 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
4406         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
4407         __libc_cleanup_region_start argument.
4409 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
4411         [BZ #14784]
4412         [BZ #14785]
4413         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
4414         x * y using scaling, not as x * y + z.
4415         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4416         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4417         * math/libm-test.inc (fma_test): Add more tests.
4418         (fma_test_towardzero): Likewise.
4419         (fma_test_downward): Likewise.
4420         (fma_test_upward): Likewise.
4422 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
4424         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
4426 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
4428         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
4429         New variable.
4431 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
4433         * rt/tst-shm.c (worker): Correct checking for mmap failure.
4435 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
4437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4438         Fix sort order.
4439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4440         Likewise.
4442 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4445         Fix the order of the list for glibc 2.17.
4446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4447         Likewise.
4449 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
4451         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4453 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
4455         [BZ #14610]
4456         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
4457         for low part of x being zero before using __atanl (y).
4458         * math/libm-test.inc (atan2_test): Add another test.
4460         * manual/install.texi (Configuring and compiling): Document
4461         general use of test-wrapper and test-wrapper-env.
4462         * INSTALL: Regenerated.
4464         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
4465         (__fma): Do not extract and scale down low bits on after-rounding
4466         systems when result rounded to normal precision would have normal
4467         exponent.
4468         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
4469         (__fmal): Do not extract and scale down low bits on after-rounding
4470         systems when result rounded to normal precision would have normal
4471         exponent.
4472         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
4473         (__fmal): Do not extract and scale down low bits on after-rounding
4474         systems when result rounded to normal precision would have normal
4475         exponent.
4476         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
4477         macro.
4478         (fma_test): Add more tests.
4479         (fma_test_towardzero): Likewise.
4480         (fma_test_downward): Likewise.
4481         (fma_test_upward): Likewise.
4483 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
4485         * sysdeps/i386/tininess.h: Renamed to ...
4486         * sysdeps/x86/tininess.h: This.
4487         * sysdeps/x86_64/tininess.h: Removed.
4489 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
4491         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
4492         input.  Use $(build-program-cmd).
4493         ($(objpfx)tst-array1-static.out): Likewise.
4494         ($(objpfx)tst-array2.out): Likewise.
4495         ($(objpfx)tst-array3.out): Likewise.
4496         ($(objpfx)tst-array4.out): Likewise.
4497         ($(objpfx)tst-array5.out): Likewise.
4498         ($(objpfx)tst-array5-static.out): Likewise.
4500 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
4502         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
4503         if defined.
4505         * nss/nsswitch.h (nss_interface_function): Provide new
4506         macro for use with NSS functions.
4507         * grp/initgroups.c: Use new macro.
4508         * nss/getXXbyYY.c: Likewise.
4509         * nss/getXXbyYY_r.c: Likewise.
4510         * nss/getXXent.c: Likewise.
4511         * nss/getXXent_r.c: Likewise.
4512         * sysdeps/posix/getaddrinfo.c: Likewise.
4514 2012-10-30  Andreas Jaeger  <aj@suse.de>
4516         * po/ru.po: Update Russion translation from translation project.
4518 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
4520         [BZ #14152]
4521         [BZ #14783]
4522         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
4523         result and shift together with sticky bit instead of replicating
4524         round-to-nearest rounding.
4525         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4526         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4527         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
4528         missing underflow exceptions.
4529         (fma_test_towardzero): Add more tests.
4530         (fma_test_downward): Likewise.
4531         (fma_test_upward): Likewise.
4533         [BZ #14047]
4534         * sysdeps/generic/tininess.h: New file.
4535         * sysdeps/i386/tininess.h: Likewise.
4536         * sysdeps/sh/tininess.h: Likewise.
4537         * sysdeps/x86_64/tininess.h: Likewise.
4538         * stdlib/tst-strtod-underflow.c: Likewise.
4539         * stdlib/tst-tininess.c: Likewise.
4540         * stdlib/strtod_l.c: Include <tininess.h>.
4541         (round_and_return): Do not set errno for exact underflow cases.
4542         Force an underflow exception when setting errno for underflow.
4543         Determine underflow based on rounding to normal precision if
4544         TININESS_AFTER_ROUNDING.
4545         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
4546         ERANGE for exact underflow cases.
4547         * stdlib/Makefile (tests): Add tst-tininess and
4548         tst-strtod-underflow.
4549         ($(objpfx)tst-tininess): Use $(link-libm).
4550         ($(objpfx)tst-strtod-underflow): Likewise.
4552 2012-10-30  Andreas Jaeger  <aj@suse.de>
4554         [BZ#14767]
4555         * elf/Makefile (tests): Remove conditional for have-initfini-array
4556         since this is now always required and the variable does not exist
4557         anymore.
4558         (tests-static): Likewise.
4559         (modules-names): Likewise.
4561         * po/eo.po: Add Esperanto translation from translation project.
4563         * elf/tst-array1.c (fini_array): Make writeable so that it can be
4564         merged with constructor/destructor.
4565         (init_array): Likewise.
4566         * elf/tst-array2dep.c (fini_array): Likewise.
4567         (init_array): Likewise.
4569 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
4571         * manual/message.texi: Delete @cartouche tags.
4573 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
4575         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
4576         EOPNOTSUPP.
4577         * sysdeps/mach/hurd/fsync.c: Likewise.
4579         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
4580         [_POSIX_REALTIME_SIGNALS]: Change condition to
4581         [_POSIX_REALTIME_SIGNALS > 0].
4583 2012-10-27  Andreas Jaeger  <aj@suse.de>
4585         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
4586         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
4587         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
4588         [__WORDSIZE != 64]: Likewise.
4590 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
4592         *  iconvdata/tst-table.sh: Remove ${SHELL}.
4593         *  iconvdata/tst-tables.sh: Likewise.
4595 2012-10-25  David S. Miller  <davem@davemloft.net>
4597         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4598         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
4599         of strtoull.
4601         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
4602         ifunc-impl-list.c
4603         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
4604         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
4605         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
4606         file.
4608 2012-10-25  Roland McGrath  <roland@hack.frob.com>
4610         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4611         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
4612         __getdirentries.
4614 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
4615             Jim Blandy  <jimb@codesourcery.com>
4617         * scripts/cross-test-ssh.sh: New file.
4618         * manual/install.texi (Configuring and compiling): Document use of
4619         cross-test-ssh.sh.
4620         * INSTALL: Regenerated.
4622 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
4624         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
4625         EOPNOTSUPP.
4627 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
4629         * Makeconfig (run-program-prefix): Fix comment.
4631 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
4632             Jim Blandy  <jimb@codesourcery.com>
4634         * Makeconfig (test-wrapper): New variable,
4635         (test-wrapper-env): Likewise.
4636         [$(cross-compiling) = yes && $(test-wrapper) != ""]
4637         (run-built-tests): Define to yes.
4638         (run-program-prefix): Use $(test-wrapper).
4639         (built-program-cmd): Likewise.
4640         * Rules (make-test-out): Use $(test-wrapper-env) and
4641         $(host-built-program-cmd).
4642         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
4643         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
4644         tst-pathopt.sh.
4645         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
4646         $(test-wrapper-env) to tst-rtld-load-self.sh.
4647         ($(objpfx)order2.out): Use $(test-wrapper).
4648         ($(objpfx)tst-initorder.out): Likewise.
4649         ($(objpfx)tst-initorder2.out): Likewise.
4650         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
4651         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
4652         (test_wrapper_env): New variable.  Use it to run ld.so.
4653         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
4654         Use it to run ld.so.
4655         (test_wrapper_env): Likewise.
4656         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
4657         $(test-wrapper) to run-iconv-test.sh.
4658         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
4659         (ICONV): Use $test_wrapper.
4660         * posix/Makefile ($(objpfx)globtest.out): Pass
4661         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
4662         globtest.sh, not $(run-program-prefix).
4663         * posix/globtest.sh (run_via_rtld_prefix): New variable.
4664         (test_wrapper): Likewise.
4665         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
4666         set together with run_via_rtld_prefix.
4667         (run_program_prefix): Define in terms of test_wrapper and
4668         run_via_rtld_prefix.
4670 2012-10-24  Roland McGrath  <roland@hack.frob.com>
4672         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
4673         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
4674         Targets removed.
4676         [BZ #14743]
4677         * include/time.h: Remove librt_hidden_proto (clock_gettime).
4678         Declare __clock_getres, __clock_gettime, __clock_settime,
4679         __clock_nanosleep, and __clock_getcpuclockid.
4680         * rt/clock_gettime.c: Define __clock_gettime as an alias.
4681         Remove librt_hidden_def (clock_gettime).
4682         * sysdeps/unix/clock_gettime.c: Likewise.
4683         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
4684         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
4685         * rt/clock_getres.c: Define __clock_getres as an alias.
4686         * sysdeps/posix/clock_getres.c: Likewise.
4687         * rt/clock_settime.c: Define __clock_settime as an alias.
4688         * sysdeps/unix/clock_settime.c: Likewise.
4689         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
4690         * sysdeps/unix/clock_nanosleep.c: Likewise.
4691         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
4692         * rt/clock-compat.c: New file.
4693         * rt/Makefile (librt-routines): Add clock-compat and move
4694         $(clock-routines) to ...
4695         (routines): ... here, new variable.
4696         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
4697         Don't add get_clockfreq here.
4698         * rt/Versions (libc: GLIBC_2.17): New version set.
4699         Add clock_* symbols here.
4700         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
4701         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
4702         (GLIBC_2.17): Add clock_* symbols.
4703         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4704         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4705         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4707         Likewise.
4708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4709         Likewise.
4710         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4711         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4712         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4713         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4714         * NEWS: Mention the move.
4716         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
4717         Use __open, __read, __close rather than their public counterparts.
4718         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4719         (__get_clockfreq_via_cpuinfo): Likewise.
4720         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
4721         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
4723         * config.h.in (HAVE_IFUNC): New #undef.
4724         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
4725         was successful.
4726         * configure: Regenerated.
4728 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
4730         * configure.in: Move READELF check to start of file.
4731         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
4732         libc_cv_asm_gnu_indirect_function in the process.
4733         * configure: Regenerated.
4735 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
4737         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
4738         send the output to /dev/null.
4739         (libc_cv_cc_with_libunwind): Likewise.
4740         (libc_cv_as_noexecstack): Likewise.
4741         * configure: Regenerate.
4743 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
4745         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
4747         * posix/globtest.sh (TMPDIR): Do not set.
4748         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
4749         (testout): Likewise.
4751 2012-10-24  Andreas Jaeger  <aj@suse.de>
4753         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
4754         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
4755         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
4756         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
4757         posix_fadvise64, posix_fallocate64.
4759         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
4760         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
4761         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
4762         Likewise.
4763         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
4764         Likewise.
4765         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
4767         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
4768         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
4769         <bits/fcntl-linux.h>.
4770         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
4772         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
4773         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
4774         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
4775         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
4776         [__WORDSIZE != 64]: Likewise.
4778 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
4780         * Makeconfig (run-built-tests): New variable.
4781         * Rules [$(cross-compiling) = yes]: Change condition to
4782         [$(run-built-tests) = no].
4783         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
4784         to [$(run-built-tests) = yes].
4785         * elf/Makefile [$(cross-compiling) = no]: Likewise
4786         * grp/Makefile [$(cross-compiling) = no]: Likewise.
4787         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
4788         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
4789         * intl/Makefile [$(cross-compiling) = no]: Likewise.
4790         * io/Makefile [$(cross-compiling) = no]: Likewise.
4791         * libio/Makefile [$(cross-compiling) = no]: Likewise.
4792         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
4793         * misc/Makefile [$(cross-compiling) = no]: Likewise.
4794         * posix/Makefile [$(cross-compiling) = no]: Likewise.
4795         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
4796         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
4797         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
4798         * string/Makefile [$(cross-compiling) = no]: Likewise.
4800         * posix/Makefile ($(objpfx)globtest.out): Pass
4801         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
4802         $(rtld-installed-name).
4803         * posix/globtest.sh (elf_objpfx): Remove variable.
4804         (rtld_installed_name): Likewise.
4805         (library_path): Likewise.
4806         (run_program_prefix): New variable.  Use for running globtest
4807         binary.
4809 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
4810             Joseph Myers  <joseph@codesourcery.com>
4812         * Makeconfig (host-built-program-cmd): New variable.
4813         * elf/Makefile (tst-stackguard1-ARGS): Use
4814         $(host-built-program-cmd).
4815         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
4816         (tst-spawn-ARGS): Likewise.
4817         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
4819 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
4820             Jim Blandy  <jimb@codesourcery.com>
4822         * Makeconfig (run-via-rtld-prefix): New variable.
4823         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
4824         (built-program-cmd): Likewise.
4826 2012-10-22  Andreas Jaeger  <aj@suse.de>
4828         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
4829         __O_RSYNC if it exists, otherwise to O_SYNC.
4831 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
4832             Joseph Myers  <joseph@codesourcery.com>
4834         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
4835         /dev/null.
4836         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
4837         from /dev/null
4838         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
4839         /dev/null.
4841 2012-10-22  Andreas Jaeger  <aj@suse.de>
4843         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
4844         Define always.
4845         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
4847         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4848         bits/fcntl-linux.h.
4850         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
4851         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
4853         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
4854         to __O_LARGEFILE.
4855         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
4856         to __O_LARGEFILE.
4858 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
4859             Joseph Myers  <joseph@codesourcery.com>
4861         * config.make.in (NM): New variable.
4863 2012-10-21  Andreas Jaeger  <aj@suse.de>
4865         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
4866         definitions and declarations that are provided by
4867         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
4869 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4871         [BZ #14683]
4872         * elf/Makefile (tests-static): Add tst-leaks1-static.
4873         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
4874         ($(objpfx)tst-leaks1-static): New rule.
4875         ($(objpfx)tst-leaks1-static-mem): Likewise.
4876         (tst-leaks1-static-ENV): New macro.
4877         * elf/dl-open.c (dl_open_worker): Check the main application
4878         only if SHARED is defined.
4879         * elf/tst-leaks1-static.c: New file.
4881 2012-10-20  Andreas Jaeger  <aj@suse.de>
4883         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
4884         generic values for Linux.
4885         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
4886         and declarations that are provided by <bits/fcntl-linux.h> and
4887         include <bits/fcntl-linux.h>.
4888         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4889         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4891 2012-10-20  Roland McGrath  <roland@hack.frob.com>
4893         * io/fcntl.h: Move include of <bits/types.h> to the top and
4894         include it unconditionally.
4896 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4898         * wcsmbs/Makefile (tests-ifunc): New variable.
4899         (tests): Add $(tests-ifunc).
4900         * wcsmbs/test-wcschr-ifunc.c: New file.
4901         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
4902         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
4903         * wcsmbs/test-wcslen-ifunc.c: Likewise.
4904         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
4905         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
4907         * string/Makefile (tests-ifunc): New variable.
4908         (tests): Add $(tests-ifunc).
4909         * string/test-memccpy.c (TEST_NAME): New macro.
4910         * string/test-memchr.c (TEST_NAME): Likewise.
4911         * string/test-memcmp.c (TEST_NAME): Likewise.
4912         * string/test-memcpy.c (TEST_NAME): Likewise.
4913         * string/test-memmem.c (TEST_NAME): Likewise.
4914         * string/test-memmove.c (TEST_NAME): Likewise.
4915         * string/test-memset.c (TEST_NAME): Likewise.
4916         * string/test-rawmemchr.c (TEST_NAME): Likewise.
4917         * string/test-stpcpy.c (TEST_NAME): Likewise.
4918         * string/test-stpncpy.c (TEST_NAME): Likewise.
4919         * string/test-strcasecmp.c (TEST_NAME): Likewise.
4920         * string/test-strcasestr.c (TEST_NAME): Likewise.
4921         * string/test-strcat.c (TEST_NAME): Likewise.
4922         * string/test-strchr.c (TEST_NAME): Likewise.
4923         * string/test-strcmp.c(TEST_NAME): Likewise.
4924         * string/test-strcpy.c (TEST_NAME): Likewise.
4925         * string/test-strcspn.c (TEST_NAME): Likewise.
4926         * string/test-strlen.c (TEST_NAME): Likewise.
4927         * string/test-strncasecmp.c (TEST_NAME): Likewise.
4928         * string/test-strncmp.c (TEST_NAME): Likewise.
4929         * string/test-strncpy.c (TEST_NAME): Likewise.
4930         * string/test-strnlen.c (TEST_NAME): Likewise.
4931         * string/test-strpbrk.c (TEST_NAME): Likewise.
4932         * string/test-strrchr.c (TEST_NAME): Likewise.
4933         * string/test-strspn.c (TEST_NAME): Likewise.
4934         * string/test-strstr.c (TEST_NAME): Likewise.
4935         * string/test-bcopy-ifunc.c: New file.
4936         * string/test-bzero-ifunc.c: Likewise.
4937         * string/test-memccpy-ifunc.c: Likewise.
4938         * string/test-memchr-ifunc.c: Likewise.
4939         * string/test-memcmp-ifunc.c: Likewise.
4940         * string/test-memcpy-ifunc.c: Likewise.
4941         * string/test-memmem-ifunc.c: Likewise.
4942         * string/test-memmove-ifunc.c: Likewise.
4943         * string/test-mempcpy-ifunc.c: Likewise.
4944         * string/test-memset-ifunc.c: Likewise.
4945         * string/test-rawmemchr-ifunc.c: Likewise.
4946         * string/test-stpcpy-ifunc.c: Likewise.
4947         * string/test-stpncpy-ifunc.c: Likewise.
4948         * string/test-strcasecmp-ifunc.c: Likewise.
4949         * string/test-strcasestr-ifunc.c: Likewise.
4950         * string/test-strcat-ifunc.c: Likewise.
4951         * string/test-strchr-ifunc.c: Likewise.
4952         * string/test-strchrnul-ifunc.c: Likewise.
4953         * string/test-strcmp-ifunc.c: Likewise.
4954         * string/test-strcpy-ifunc.c: Likewise.
4955         * string/test-strcspn-ifunc.c: Likewise.
4956         * string/test-strlen-ifunc.c: Likewise.
4957         * string/test-strncasecmp-ifunc.c: Likewise.
4958         * string/test-strncat-ifunc.c: Likewise.
4959         * string/test-strncmp-ifunc.c: Likewise.
4960         * string/test-strncpy-ifunc.c: Likewise.
4961         * string/test-strnlen-ifunc.c: Likewise.
4962         * string/test-strpbrk-ifunc.c: Likewise.
4963         * string/test-strrchr-ifunc.c: Likewise.
4964         * string/test-strspn-ifunc.c: Likewise.
4965         * string/test-strstr-ifunc.c: Likewise.
4967         * debug/Makefile (tests-ifunc): New variable.
4968         (tests): Add $(tests-ifunc).
4969         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
4970         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
4971         * debug/test-stpcpy_chk-ifunc.c: New file.
4972         * debug/test-strcpy_chk-ifunc.c: Likewise.
4974 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
4976         [BZ #13601]
4977         * elf/dl-load.c (open_verify): Retry read if the entire ELF
4978         header is not read in.
4980 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
4982         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
4983         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
4984         directly.  Pass built executable to script as
4985         $(built-program-cmd).
4986         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
4987         $testprogram without using LD_LIBRARY_PATH and $ldso.
4989         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
4990         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
4991         $(rtld-installed-name).
4992         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
4993         (rtld_installed_name): Likewise.
4994         (library_path): Likewise.
4995         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
4996         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
4997         $(run-program-prefix) to tst-tables.sh.
4998         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
4999         it to run tst-table-from and tst-table-to.
5000         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
5001         Pass it to tst-table.sh.
5002         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
5003         $(run-program-prefix) to tst-gettext.sh.
5004         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
5005         tst-translit.sh.
5006         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
5007         tst-gettext2.sh.
5008         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
5009         to run tst-gettext.
5010         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
5011         to run tst-gettext2.
5012         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
5013         to run tst-translit.
5014         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
5015         $(run-program-prefix) to tst-mtrace.sh.
5016         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
5017         to run tst-mtrace.
5018         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
5019         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
5020         $(rtld-installed-name).
5021         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
5022         (rtld_installed_name): Likewise.
5023         (run_program_prefix): New variable.  Use it to run wordexp-test.
5025         * Makeconfig (ARCH): Remove all definitions.
5026         (machine): Likewise.
5027         [ARCH]: Remove conditional code.
5028         [!objdir]: Give error.
5029         [!objdir] (objpfx): Remove.
5030         [!objdir] (common-objpfx): Likewise.
5031         [!objdir] (common-objdir): Likewise.
5032         * configure.in (config_makefile): Remove.  Hardcode Makefile in
5033         AC_CONFIG_FILES call.
5034         * configure: Regenerated.
5036         [BZ #13888]
5037         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
5038         or TMPDIR.
5039         (testout): Likewise.
5041         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
5042         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
5043         $(rtld-installed-name).
5044         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
5045         (rtld_installed_name): Likwise.
5046         (runit): Remove function.
5047         (run_getconf): New variable,  Use it for running getconf binary.
5049 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
5051         [BZ #14716]
5052         * string/test-memmem.c (check_result): New function.
5053         (do_one_test): Use it.
5054         (check1): New function.
5055         (test_main): Use it.
5057 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
5059         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
5061 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
5063         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
5064         (_G_LSEEK64): Likewise.
5065         (_G_MMAP64): Likewise.
5066         (_G_FSTAT64): Likewise.
5067         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
5068         (_G_LSEEK64): Likewise.
5069         (_G_MMAP64): Likewise.
5070         (_G_FSTAT64): Likewise.
5071         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
5072         unconditional.  Call __mmap64 directly.
5073         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
5074         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
5075         __lseek64 directly.
5076         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
5077         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
5078         __mmap64 directly.
5079         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
5080         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
5081         __lseek64 directly.
5082         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
5083         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
5084         __lseek64 directly.
5085         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
5086         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
5087         __lseek64 directly.
5088         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
5089         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
5090         __fxstat64 directly.
5091         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
5092         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
5093         unconditional.
5094         (freopen64) [!_G_OPEN64]: Remove conditional code.
5095         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
5096         unconditional.
5097         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
5098         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
5099         unconditional.
5100         (ftello64) [!_G_LSEEK64]: Remove conditional code.
5101         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
5102         unconditional.
5103         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
5104         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
5105         unconditional.
5106         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
5107         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
5108         unconditional.
5109         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
5110         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
5111         unconditional.
5112         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
5113         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
5114         unconditional.
5115         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
5117 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5119         [BZ #12140]
5120         * manual/memory.texi (Malloc Tunable Parameters): Add note
5121         about free list pointers overwriting some perturb bytes.
5122         Wording suggested by Roland McGrath.
5124 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
5126         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
5127         (lgamma_test): Likewise.
5128         (tgamma_test): Likewise.
5130 2012-10-16  Florian Weimer  <fweimer@redhat.com>
5132         [BZ #14700]
5133         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
5134         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
5136 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
5138         * NEWS: Mention BZ #14716.
5139         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
5140         when removing AVAILABLE1_USES_J macro.
5142 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
5144         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
5145         (__bswap_64): __uint64_t for unsigned 64-bit int.
5147 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
5149         * include/string.h (memmem): Declare libc hidden alias.
5150         * string/memmem.c (memmem): Define libc hidden alias.
5151         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
5152         __read, __close instead of open, read, close.
5154 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
5156         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
5157         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
5158         global and hidden.
5159         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
5160         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
5161         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
5162         Likewise.
5163         (__rawmemchr_sse2): Likewise.
5164         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
5165         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
5166         (__strchr_sse2): Likewise.
5167         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
5168         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
5169         (__strcasecmp_sse2): Likewise.
5170         (__strncasecmp_sse2): Likewise.
5171         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
5172         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
5173         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
5174         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
5175         (__strrchr_sse2): Likewise.
5176         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
5177         ifunc-impl-list.c.
5178         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
5179         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5180         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5181         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5182         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5183         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5184         * sysdeps/x86_64/multiarch/memset.S: Likewise.
5185         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5186         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
5187         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
5188         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
5189         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
5190         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
5191         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
5192         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
5193         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
5194         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
5195         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
5196         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
5197         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
5198         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
5199         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
5200         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
5201         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
5202         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
5203         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5204         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
5205         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
5206         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
5207         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
5209         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
5210         global and hidden.
5211         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
5212         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
5213         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
5214         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
5215         Likewise.
5216         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
5217         Likewise.
5218         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
5219         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
5220         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
5221         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
5222         ifunc-impl-list.c.
5223         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
5224         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
5225         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
5226         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
5227         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
5228         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
5229         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
5230         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
5231         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
5232         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
5233         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
5234         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
5235         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
5236         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
5237         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
5238         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
5239         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
5240         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
5241         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
5242         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
5243         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5244         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
5245         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
5246         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
5247         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5248         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
5249         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
5250         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
5251         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
5252         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
5253         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
5254         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
5255         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
5256         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
5257         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
5258         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
5259         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
5260         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
5261         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
5262         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
5263         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
5265         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
5266         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
5267         * include/ifunc-impl-list.h: New file.
5268         * misc/ifunc-impl-list.c: Likewise.
5269         * misc/Makefile (routines): Add ifunc-impl-list.
5270         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
5271         * string/test-string.h: Include <ifunc-impl-list.h>.
5272         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
5273         impl_array): New variables.
5274         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
5275         are defined.
5276         (test_init): Call __libc_ifunc_impl_list to initialize
5277         func_list if TEST_IFUNC and TEST_NAME are defined.
5279         * string/Makefile (strop-tests): Add bcopy and bzero.
5280         * string/test-bcopy.c: New file.
5281         * string/test-bzero.c: Likewise.
5282         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
5283         defined.
5284         * string/test-memset.c: Support bzero test if TEST_BZERO is
5285         defined.
5286         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
5287         __libc_memmove.
5288         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
5289         __libc_memset.
5290         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
5291         of memset.
5293 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
5295         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
5296         * configure: Regenerated.
5298         * Makeconfig (+link-static-before-libc): Don't include
5299         $(link-static-libc).
5301         * libio/libio.h (_IO_pos_t): Remove.
5303 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
5305         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
5306         McGrath.
5308 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
5310         * crypt/crypt-entry.c: Include fips-private.h.
5311         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
5312         * crypt/md5c-test.c (main): Tolerate disabled MD5.
5313         * sysdeps/unix/sysv/linux/fips-private.h: New file.
5314         * sysdeps/generic/fips-private.h: New file, dummy fallback.
5316 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
5318         * crypt/crypt-private.h: Include stdbool.h.
5319         (_ufc_setup_salt_r): Return bool.
5320         * crypt/crypt-entry.c: Include errno.h.
5321         (__crypt_r): Return NULL with EINVAL for bad salt.
5322         * crypt/crypt_util.c (bad_for_salt): New.
5323         (_ufc_setup_salt_r): Check that salt is long enough and within
5324         the specified alphabet.
5325         * crypt/badsalttest.c: New file.
5326         * crypt/Makefile (tests): Add it.
5327         ($(objpfx)badsalttest): New.
5329 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
5331         * NEWS: Add entry for BZ #14602.
5333 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
5335         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
5336         type-generic.
5337         * math/libm-test.inc: Update comment listing what functions and
5338         macros are tested.
5339         (isgreater_test): New function.
5340         (isgreaterequal_test): Likewise.
5341         (isless_test): Likewise.
5342         (islessequal_test): Likewise.
5343         (islessgreater_test): Likewise.
5344         (isunordered_test): Likewise.
5345         (main): Call the new functions.
5347 2012-10-09  Roland McGrath  <roland@hack.frob.com>
5349         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
5350         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
5351         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
5352         * sysdeps/i386/configure: Regenerated.
5353         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
5354         * sysdeps/mach/configure: Regenerated.
5355         * sysdeps/mach/hurd/configure: Regenerated.
5356         * sysdeps/powerpc/configure: Regenerated.
5357         * sysdeps/powerpc/powerpc32/configure: Regenerated.
5358         * sysdeps/powerpc/powerpc64/configure: Regenerated.
5359         * sysdeps/s390/s390-32/configure: Regenerated.
5360         * sysdeps/s390/s390-64/configure: Regenerated.
5361         * sysdeps/sh/configure: Regenerated.
5362         * sysdeps/sparc/configure: Regenerated.
5363         * sysdeps/unix/sysv/linux/configure: Regenerated.
5364         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
5365         * sysdeps/x86_64/configure: Regenerated.
5367         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
5368         defined.  Don't check if MAP is NULL.
5370 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
5372         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
5373         (_G_stat64): Likewise.
5374         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
5375         (_G_stat64): Likewise.
5376         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
5377         instead of struct _G_stat64.
5378         * libio/fileops.c (mmap_remap_check): Likewise.
5379         (decide_maybe_mmap): Likewise.
5380         (_IO_new_file_seekoff): Likewise.
5381         (_IO_file_stat): Likewise.
5382         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
5383         _G_off64_t.
5384         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
5385         instead of struct _G_stat64.
5386         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
5388 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
5390         [BZ #14602]
5391         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
5392         Replace with ...
5393         (CHECK_EOL): New macro.
5394         (two_way_short_needle): Check beginning of haystack for EOL.  Use
5395         CHECK_EOL.
5396         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
5397         Replace with CHECK_EOL.
5398         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
5399         Replace with CHECK_EOL.
5401 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
5403         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
5404         type-generic.
5405         * math/libm-test.inc: Update comment listing what functions and
5406         macros are tested.
5407         (finite_test): New function.
5408         (isinf_test): Likewise.
5409         (isnan_test): Likewise.
5410         (fpclassify_test): Test subnormal input.
5411         (isfinite_test): Likewise.
5412         (isnormal_test): Likewise.
5413         (main): Call the new functions.
5415 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
5417         [BZ #14660]
5418         * Makerules (%.dynsym): Force C locale when running
5419         $(OBJDUMP) --dynamic-syms.
5421 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
5423         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
5424         <stdint.h>.
5426 2012-10-06  David S. Miller  <davem@davemloft.net>
5428         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
5429         upper 32-bits of the length value in %o2 since we use branch-on-register
5430         tests which consider the entire 64-bit register.
5432 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
5434         * string/test-strstr.c (check2): Add a test for page boundary.
5436 2012-10-05  David S. Miller  <davem@davemloft.net>
5438         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
5439         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
5440         file.
5441         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
5442         sysdep_routines.
5443         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
5444         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
5445         and bzero when HWCAP_SPARC_CRYPTO is present.
5447 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
5449         [BZ #14602]
5450         * string/test-strstr.c (check2): New function.
5451         (test_main): Call check2.
5453         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
5454         and bug-strchr1.
5455         * string/bug-strcasestr1.c (do_test): Moved to ...
5456         * string/test-strcasestr.c (check1): Here.  New function.
5457         (do_one_test): Break out result checking code into ...
5458         (check_result): This.  New function.
5459         (do_one_test): Call check_result.
5460         (test_main): Call check1.
5461         * string/bug-strchr1.c (do_test): Moved to ...
5462         * string/test-strchr.c (check1): Here.  New function.
5463         (do_one_test): Break out result checking code into ...
5464         (check_result): This.  New function.
5465         (do_one_test): Call check_result.
5466         (test_main): Call check1.
5467         * string/bug-strstr1.c (main): Moved to ...
5468         * string/test-strstr.c (check1): Here.  New function.
5469         (do_one_test): Break out result checking code into ...
5470         (check_result): This.  New function.
5471         (do_one_test): Call check_result.
5472         (test_main): Call check1.
5473         * string/bug-strcasestr1.c: Removed.
5474         * string/bug-strchr1.c: Likewise.
5475         * string/bug-strstr1.c: Likewise.
5477         * elf/Makefile (dl-routines): Add hwcaps.
5478         * elf/dl-support.c (_dl_important_hwcaps): Removed.
5479         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
5480         (_dl_important_hwcaps): Moved to ...
5481         * elf/dl-hwcaps.c: Here.  New file.
5482         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
5484         [BZ #14557]
5485         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
5486         if IS_IN_rtld isn't defined.
5488         * elf/dl-support.c (_dl_sysinfo_map): New.
5489         Include "get-dynamic-info.h" and "setup-vdso.h".
5490         (_dl_non_dynamic_init): Call setup_vdso.
5491         * elf/dynamic-link.h: Don't include <assert.h>.
5492         (elf_get_dynamic_info): Moved to ...
5493         * elf/get-dynamic-info.h: Here.  New file.
5494         * elf/dynamic-link.h: Include "get-dynamic-info.h".
5495         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
5496         * elf/setup-vdso.h: Here.  New file.
5497         * elf/rtld.c: Include "setup-vdso.h".
5498         (dl_main): Call setup_vdso.
5500 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
5502         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
5503         creal in comment listing functions tested.  List finite, isinf,
5504         isnan, isless, islessequal, isgreater, isgreaterequal,
5505         islessgreater, isunordered, lgamma_r and pow10 as functions and
5506         macros not tested.  Mention which functions not tested are aliases
5507         for other functions.  Fix typo.  Note that signs of NaNs are not
5508         tested.
5510         * scripts/config.guess: Update from config.git.
5511         * scripts/config.sub: Likewise.
5513 2012-10-04  Roland McGrath  <roland@hack.frob.com>
5515         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
5516         * misc/madvise.c (madvise): Renamed to __madvise.
5517         Make madvise a weak alias.
5518         * include/sys/mman.h: Declare __madvise.
5519         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
5520         * sysdeps/unix/syscalls.list
5521         (madvise): Make __madvise the strong name, and madvise a weak alias.
5522         * sysdeps/unix/sysv/linux/syscalls.list
5523         (madvise, mmap): Remove redundant entries.
5524         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
5525         * malloc/malloc.c (mtrim): Likewise.
5526         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
5528 2012-10-03  Roland McGrath  <roland@hack.frob.com>
5530         * sysdeps/mach/hurd/dl-cache.c: File removed.
5531         * config.h.in (USE_LDCONFIG): New #undef.
5532         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
5533         * configure: Regenerated.
5534         * elf/Makefile (dl-routines): Add dl-cache only under
5535         [$(use-ldconfig) = yes].
5536         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
5537         cache on [USE_LDCONFIG].
5538         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
5539         [USE_LDCONFIG].
5540         * elf/rtld.c (dl_main): Likewise.
5542 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
5544         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
5545         _SC_LEVEL4_CACHE_LINESIZE.
5547 2012-10-03  Roland McGrath  <roland@hack.frob.com>
5549         * sysdeps/unix/bsd/confstr.h: File removed.
5551 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
5553         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
5554         sys/sdt-config.h.
5556 2012-10-02  Roland McGrath  <roland@hack.frob.com>
5558         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
5559         Make 'mapoff' field ElfW(Off) rather than off_t.
5561 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
5563         * nscd/Makefile: Remove nscd-cflags and all its users.
5564         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
5565         (CFLAGS-nonlib): Add compiler flags for nscd modules.
5567         [BZ #10631]
5568         * malloc.c (malloc_printerr): Clarify error message.
5570 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
5572         [BZ #14648]
5573         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5574         Set bit_FMA_Usable if FMA is supported.
5575         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
5576         macro.
5577         (bit_FMA4_Usable): Updated.
5578         (index_FMA_Usable): New macro.
5579         (CPUID_FMA): Likewise
5580         (HAS_FMA): Defined with bit_FMA_Usable.
5582 2012-10-01  Roland McGrath  <roland@hack.frob.com>
5584         * bits/types.h (__swblk_t): Type removed.
5585         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
5586         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
5587         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5588         (__SWBLK_T_TYPE): Likewise.
5589         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
5590         (__SWBLK_T_TYPE): Likewise.
5591         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5592         (__SWBLK_T_TYPE): Likewise.
5593         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5594         (__SWBLK_T_TYPE): Likewise.
5596 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
5597             Honza Horak <hhorak@redhat.com>
5599         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
5600         (xdr_mapname): Use YPMAXMAP as maxsize.
5601         (xdr_peername): Use YPMAXPEER as maxsize.
5602         (xdr_keydat): Use YPAXRECORD as maxsize.
5603         (xdr_valdat): Use YPMAXRECORD as maxsize.
5605 2012-10-01  Roland McGrath  <roland@hack.frob.com>
5607         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
5609         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
5610         * csu/init-first.c: ... here.
5611         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
5612         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
5613         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
5614         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
5615         * sysdeps/i386/init-first.c: File removed.
5616         * sysdeps/sh/init-first.c: File removed.
5618 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
5620         [BZ #14645]
5621         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
5622         if x * y might underflow to zero and z is zero.
5623         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5624         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5625         * math/libm-test.inc (min_subnorm_value): New variable.
5626         (fma_test): Add more tests.
5627         (fma_test_towardzero): Likewise.
5628         (fma_test_downward): Likewise
5629         (fma_test_upward): Likewise.
5630         (initialize): Set min_subnorm_value.
5632 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
5634         [BZ #14638]
5635         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
5636         0 + 0.
5637         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
5638         mode for addition resulting in exact zero.
5639         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
5640         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
5641         exact 0 + 0.
5642         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5643         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5644         * math/libm-test.inc (fma_test): Add more tests.
5645         (fma_test_towardzero): New function.
5646         (fma_test_downward): Likewise.
5647         (fma_test_upward): Likewise.
5648         (main): Call the new functions.
5650 2012-09-28  David S. Miller  <davem@davemloft.net>
5652         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
5654 2012-09-28  Roland McGrath  <roland@hack.frob.com>
5656         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
5657         instead of SIGALRM.
5659         * sysdeps/gnu/_G_config.h: Moved to ...
5660         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
5661         * sysdeps/mach/hurd/_G_config.h: Moved to ...
5662         * sysdeps/generic/_G_config.h: ... here.
5664         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
5666         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
5668         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
5669         Conditionalize target on [libnss_test1.so-version].
5671         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
5673         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
5674         (elfobjdir): Move out of conditionals.
5676         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
5677         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
5678         (__nss_lookup_function): Conditionalize label remove_from_tree on
5679         [!DO_STATIC_NSS || SHARED], matching its only use.
5681 2012-09-28  David S. Miller  <davem@davemloft.net>
5683         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
5684         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
5685         file.
5686         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
5687         sysdep_routines.
5688         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
5689         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
5690         when HWCAP_SPARC_CRYPTO is present.
5692 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
5694         * io/tst-mknodat.c: Create a FIFO instead of a socket.
5696 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
5698         [BZ #6530]
5699         * stdio-common/vfprintf.c (process_string_arg): Revert
5700         2000-07-22 change.
5702 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
5704         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
5705         for testcase.
5706         * stdio-common/tst-sprintf.c: Include <locale.h>
5707         (main): Test sprintf's handling of incomplete multibyte
5708         characters.
5710 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
5712         * elf/dl-runtime.c (VERSYMIDX): Removed.
5713         * elf/dl-version.c (VERSYMIDX): Likewise.
5714         * elf/do-rel.h (VERSYMIDX): Likewise.
5715         (VALIDX): Likewise.
5716         * elf/dynamic-link.h (VERSYMIDX): Likewise.
5717         * elf/rtld.c (VALIDX): Likewise.
5718         (ADDRIDX): Likewise.
5719         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
5720         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
5721         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
5722         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
5723         (VALIDX): Likewise.
5724         (ADDRIDX): Likewise.
5726 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
5728         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
5730 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
5732         [BZ #11438]
5733         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
5734         to global scope.
5735         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
5736         addresses are in the same scope as 192.0.2/24.
5737         * posix/gai.conf: Document new scope table defaults.
5739 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5741         [BZ #5298]
5742         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
5743         for ftell.  Compute offsets from write pointers instead.
5744         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
5746 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5748         [BZ #14543]
5749         * libio/Makefile (tests): New test case tst-fseek.
5750         * libio/tst-fseek.c: New test case to verify that fseek/ftell
5751         combination works in wide mode.
5752         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
5753         state when the external buffer state changes.
5755 2012-09-27  David S. Miller  <davem@davemloft.net>
5757         [BZ #14376]
5758         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
5759         pass reloc->r_addend in as the 'high' argument to
5760         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
5762         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5764 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
5766         * rt/tst-aio2.c: Include <pthread.h>.
5767         * rt/tst-aio3.c: Likewise.
5769 2012-09-27  Steve Ellcey  <sellcey@mips.com>
5771         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
5773 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
5775         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
5776         contents on [SHARED].
5778 2012-09-26  Marek Polacek  <polacek@redhat.com>
5780         [BZ #14530]
5781         [BZ #13741]
5782         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
5783         for C++ and GCC <4.3 as well as for non GCC compilers.
5785 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
5787         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5789 2012-09-25  Roland McGrath  <roland@hack.frob.com>
5791         * Makefile.in (all, install): Declare with .PHONY.
5792         Reported by Michael Hope <michael.hope@linaro.org>.
5794 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5796         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
5797         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
5798         system header.
5799         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
5800         Likewise.
5801         (sydep_routines): Add the new and the internal functions.
5802         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
5803         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
5804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
5805         (GLIBC_2.17): Add the new function.
5806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5807         (GLIBC_2.17): Likewise.
5808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
5809         (GLIBC_2.17): Likewise.
5810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
5811         (GLIBC_2.17): Likewise.
5812         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
5814 2012-09-25  Alan Modra  <amodra@gmail.com>
5816         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
5817         Add release barrier before setting once_control to say
5818         initialisation is done.  Add hints on lwarx.  Use macro in
5819         place of isync.
5820         (clear_once_control): Add release barrier.
5822 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
5824         [BZ #13629]
5825         * math/s_clog.c (__clog): Handle more values close to |z| = 1
5826         specially.
5827         * math/s_clog10.c (__clog10): Likewise.
5828         * math/s_clog10f.c (__clog10f): Likewise.
5829         * math/s_clog10l.c (__clog10l): Likewise.
5830         * math/s_clogf.c (__clogf): Likewise.
5831         * math/s_clogl.c (__clogl): Likewise.
5832         * math/Makefile (libm-calls): Add x2y2m1.
5833         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
5834         (__x2y2m1): Likewise.
5835         (__x2y2m1l): Likewise.
5836         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
5837         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
5838         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
5839         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
5840         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
5841         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
5842         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
5843         * sysdeps/i386/fpu/libm-test-ulps: Update.
5844         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5846         [BZ #14621]
5847         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
5848         int as type of variable DEPTH.
5849         (glob): Use size_t instead of int as type of variables NEWCOUNT
5850         and OLD_PATHC.
5852 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5854         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
5855         Add s_sincosf-sse2.
5856         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
5857         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
5858         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
5859         macros for using routine as __sincosf_ia32.
5860         Use macro for function declaration and weak_alias.
5861         * sysdeps/i386/fpu/libm-test-ulps: Update.
5863         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
5864         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5866         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
5867         subnormal argument.
5868         * math/s_cexpf.c (__cexpf): Likewise.
5869         * math/s_csinf.c (__csinf): Likewise.
5870         * math/s_csinhf.c (__csinhf): Likewise.
5871         * math/s_ctanf.c (__ctanf): Likewise.
5872         * math/s_ctanhf.c (__ctanhf): Likewise.
5873         * math/s_ccosh.c (__ccoshf): Likewise.
5874         * math/s_cexp.c (__cexpl): Likewise.
5875         * math/s_csin.c (__csin): Likewise.
5876         * math/s_csinh.c (__csinh): Likewise.
5877         * math/s_ctan.c (__ctan): Likewise.
5878         * math/s_ctanh.c (ctanh): Likewise.
5879         * math/s_ccoshl.c (__ccoshl): Likewise.
5880         * math/s_cexpl.c (__cexpl): Likewise.
5881         * math/s_csinl.c (__csinl): Likewise.
5882         * math/s_csinhl.c (__csinhl): Likewise.
5883         * math/s_ctanl.c (__ctanl): Likewise.
5884         * math/s_ctanhl.c (__ctanhl): Likewise.
5886 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
5888         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
5889         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
5890         (_IO_off_t): Define to __off_t, not _G_off_t.
5891         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
5892         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
5893         (_IO_wint_t): Define to wint_t, not _G_wint_t.
5894         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
5895         type of __dummy and __dummy2 fields.
5896         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
5897         (_G_ssize_t): Likewise.
5898         (_G_off_t): Likewise.
5899         (_G_pid_t): Likewise.
5900         (_G_uid_t): Likewise.
5901         (_G_wchar_t): Likewise.
5902         (_G_wint_t): Likewise.
5903         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
5904         (_G_ssize_t): Likewise.
5905         (_G_off_t): Likewise.
5906         (_G_pid_t): Likewise.
5907         (_G_uid_t): Likewise.
5908         (_G_wchar_t): Likewise.
5909         (_G_wint_t): Likewise.
5910         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
5911         (_G_ssize_t): Likewise.
5912         (_G_off_t): Likewise.
5913         (_G_pid_t): Likewise.
5914         (_G_uid_t): Likewise.
5915         (_G_wchar_t): Likewise.
5916         (_G_wint_t): Likewise.
5918 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
5920         * malloc/arena.c: Include malloc-sysdep.h.
5921         (shrink_heap): Use check_may_shrink_heap to decide if madvise
5922         is sufficient to shrink the heap or an unmap is needed.
5923         * sysdeps/generic/malloc-sysdep.h: New file.  Define
5924         new function check_may_shrink_heap.
5925         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
5926         new function check_may_shrink_heap.
5928 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
5930         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
5931         comments.
5933 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
5935         * catgets/test-gencat.sh: Add "set -e".
5936         * elf/tst-pathopt.sh: Likewise.
5937         * grp/tst_fgetgrent.sh: Likewise.
5938         * iconvdata/run-iconv-test.sh: Likewise.
5939         * intl/tst-gettext.sh: Likewise.
5940         * intl/tst-gettext2.sh: Likewise.
5941         * intl/tst-gettext4.sh: Likewise.
5942         * intl/tst-gettext6.sh: Likewise.
5943         * intl/tst-translit.sh: Likewise.
5944         * io/ftwtest-sh: Likewise.
5945         * libio/test-freopen.sh: Likewise.
5946         * malloc/tst-mtrace.sh: Likewise.
5947         * posix/globtest.sh: Likewise.
5948         * posix/tst-getconf.sh: Likewise.
5949         * posix/wordexp-tst.sh: Likewise.
5950         * stdio-common/tst-printf.sh: Likewise.
5951         * stdio-common/tst-unbputc.sh: Likewise.
5952         * stdlib/tst-fmtmsg.sh: Likewise.
5953         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
5954         * catgets/Makefile: Do not specify -e option when running
5955         testsuite shell scripts.
5956         * elf/Makefile: Likewise.
5957         * grp/Makefile: Likewise.
5958         * iconvdata/Makefile: Likewise.
5959         * intl/Makefile: Likewise.
5960         * io/Makefile: Likewise.
5961         * libio/Makefile: Likewise.
5962         * malloc/Makefile: Likewise.
5963         * posix/Makefile: Likewise.
5964         * stdio-common/Makefile: Likewise.
5965         * stdlib/Makefile: Likewise.
5966         * sysdeps/x86_64/Makefile: Likewise.
5968         * io/ftwtest-sh: Add copyright header.
5969         * posix/globtest.sh: Likewise.
5970         * posix/tst-getconf.sh: Likewise.
5971         * posix/wordexp-tst.sh: Likewise.
5972         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
5974 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
5976         [BZ #13679]
5977         * Makeconfig (+link): Defined as $(+link-static) if
5978         $(build-shared) isn't yes.
5979         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
5980         isn't yes.
5981         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
5983         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
5985         [BZ #14562]
5986         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
5987         new chunk size with MALLOC_ALIGN_MASK.
5989 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
5991         [BZ #5044]
5992         * stdio-common/printf_fphex.c: Include <stdbool.h> and
5993         <rounding-mode.h>.
5994         (__printf_fphex): Determine rounding using get_rounding_mode and
5995         round_away.
5996         * stdio-common/tst-printf-round.c (struct hex_test): New
5997         structure.
5998         (hex_tests): New variable.
5999         (test_hex_in_one_mode): New function.
6000         (do_test): Also run tests for hex float output.
6002 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
6004         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
6005         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
6006         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
6007         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
6008         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
6009         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
6010         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
6011         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
6013 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
6015         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
6016         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
6017         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
6018         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
6020 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
6022         [BZ #14579]
6023         * elf/rtld.c (dl_main): Limit the check for self loading to normal
6024         mode only.
6025         * elf/tst-rtld-load-self.sh: New test.
6026         * elf/Makefile: Run it.
6028 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
6030         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
6031         (tst-writev-ENV): Remove.
6032         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
6034 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
6036         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
6038 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
6040         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
6041         unconditional.
6042         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
6043         Likewise.
6044         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
6045         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
6046         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
6047         Likewise.
6049 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
6051         [BZ #14587]
6052         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
6053         * config.make.in (have-cpp-asm-debuginfo): Removed.
6054         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
6055         * configure: Regenerated.
6057 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
6059         [BZ #5044]
6060         * stdio-common/printf_fp.c: Include <stdbool.h> and
6061         <rounding-mode.h>.
6062         (___printf_fp): Determine rounding using get_rounding_mode and
6063         round_away.
6064         * stdio-common/tst-printf-round.c: New file.
6065         * stdio-common/Makefile (tests): Add tst-printf-round.
6066         (link-libm): New variable.
6067         ($(objpfx)tst-printf-round): Depend in $(link-libm).
6069 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6071         [BZ #14576]
6072         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
6073         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
6074         Likewise.
6075         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
6076         Likewise.
6078 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
6080         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
6081         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
6082         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
6083         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
6085 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
6087         [BZ #14518]
6088         * include/rounding-mode.h: New file.
6089         * sysdeps/generic/get-rounding-mode.h: Likewise.
6090         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
6091         * stdlib/strtod_l.c: Include <rounding-mode.h>.
6092         (MAX_VALUE): New macro.
6093         (MIN_VALUE): Likewise.
6094         (overflow_value): New function.
6095         (underflow_value): Likewise.
6096         (round_and_return): Use overflow_value and underflow_value to
6097         determine return values in overflow and underflow cases.  Use
6098         round_away to determine rounding depending on rounding mode.
6099         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
6100         determine return values in overflow and underflow cases.
6101         * stdlib/tst-strtod-round.c: Include <fenv.h>.
6102         (struct test_results): New structure.
6103         (struct test): Use struct test_results to store expected results
6104         for all rounding modes.
6105         (TEST): Include expected results for all rounding modes.
6106         (test_in_one_mode): New function.
6107         (do_test): Use test_in_one_mode to compute and check results.
6108         Check results for all rounding modes.
6109         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
6110         $(link-libm).
6112 2012-12-09  Allan McRae  <allan@archlinux.org>
6114         * sysdeps/i386/fpu/libm-test-ulps: Update
6116 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
6118         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
6119         (_G_int32_t): Likewise.
6120         (_G_uint16_t): Likewise.
6121         (_G_uint32_t): Likewise.
6122         (_G_HAVE_BOOL): Likewise.
6123         (_G_HAVE_ATEXIT): Likewise.
6124         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
6125         (_G_HAVE_IO_FILE_OPEN): Likewise.
6126         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
6127         (_G_int32_t): Likewise.
6128         (_G_uint16_t): Likewise.
6129         (_G_uint32_t): Likewise.
6130         (_G_HAVE_BOOL): Likewise.
6131         (_G_HAVE_ATEXIT): Likewise.
6132         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
6133         (_G_HAVE_IO_FILE_OPEN): Likewise.
6134         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
6135         (_G_int32_t): Likewise.
6136         (_G_uint16_t): Likewise.
6137         (_G_uint32_t): Likewise.
6138         (_G_HAVE_BOOL): Likewise.
6139         (_G_HAVE_ATEXIT): Likewise.
6140         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
6141         (_G_HAVE_IO_FILE_OPEN): Likewise.
6143 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6145         * csu/libc-tls.c: Update copyright years.
6147 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
6149         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
6150         [!_G_USING_THUNKS]: Remove conditional code.
6151         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
6152         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
6154         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
6155         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
6156         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
6157         (_G_VTABLE_LABEL_PREFIX): Likewise.
6158         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
6159         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
6160         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
6161         (_G_VTABLE_LABEL_PREFIX): Likewise.
6162         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
6163         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
6164         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
6165         (_G_VTABLE_LABEL_PREFIX): Likewise.
6166         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
6168 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
6170         * libio/Makefile: Include ../Makeconfig before tests.
6171         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
6172         only if $(build-shared) is yes.
6174         * iconv/gconv_db.c: Update copyright years.
6176 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6178         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
6179         unwind info if defined PIC. Fix special cases description.
6180         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
6182         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
6183         DP_HI_MASK entry.
6184         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
6186 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6188         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
6190         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
6191         is NULL.
6193         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
6194         (LDLIBS-tst-chk4): This.
6195         (LDFLAGS-tst-chk5): Renamed to ...
6196         (LDLIBS-tst-chk5): This.
6197         (LDFLAGS-tst-chk6): Renamed to ...
6198         (LDLIBS-tst-chk6): This.
6199         (LDFLAGS-tst-lfschk4): Renamed to ...
6200         (LDLIBS-tst-lfschk4): This.
6201         (LDFLAGS-tst-lfschk5): Renamed to ...
6202         (LDLIBS-tst-lfschk5): This.
6203         (LDFLAGS-tst-lfschk6): Renamed to ...
6204         (LDLIBS-tst-lfschk6): This.
6206         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
6207         on $(common-objpfx)soversions.mk.
6209 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
6211         [BZ #10014]
6212         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
6213         example host name.
6215 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
6217         * malloc/arena.c (arena_get_retry): New function that gets
6218         another arena for the caller to try its request on.
6219         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
6220         current arena cannot fulfill the request.
6221         (__libc_memalign): Likewise.
6222         (__libc_memalign): Likewise.
6223         (__libc_pvalloc): Likewise.
6224         (__libc_calloc): Likewise.
6226 2012-09-05  John Tobey  <john.tobey@gmail.com>
6228         [BZ #13542]
6229         * manual/arith.texi (Operations on Complex): Fix description
6230         of carg branch cut.
6232 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
6234         [BZ #10014]
6235         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
6236         host name.
6238         [BZ #10038]
6239         * manual/memory.texi (Memory): Make order of menu items match
6240         order of sections.
6242 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
6244         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
6245         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
6246         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
6248 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
6250         * csu/libc-tls.c (static_dtv): Renamed to ...
6251         (_dl_static_dtv): This.  Make it global.
6252         (_dl_initial_dtv): Removed.
6253         (__libc_setup_tls): Updated.
6254         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
6255         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
6256         DL_INITIAL_DTV.
6258 2012-09-06  Petr Machata  <pmachata@redhat.com>
6260         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
6261         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
6262         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
6263         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
6265 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
6267         [BZ #14545]
6268         * csu/libc-tls.c (_dl_initial_dtv): New variable.
6269         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
6270         freeing dtv[-1].
6272 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
6274         [BZ #14544]
6275         * Makeconfig (link-static-before-libc): Replace $(+prector)
6276         with $(+prectorT).
6277         (link-static-after-libc): Replace $(+postctor) with
6278         $(+postctorT).
6279         (link-bounded): Replace $(+prector)/$(+postctor) with
6280         $(+prectorT)/$(+postctorT).
6281         (+prectorT): New macro.
6282         (+postctorT): Likewise.
6284 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
6286         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
6287         (round_str): Handle values above the maximum for IBM long double
6288         as inexact.
6289         * stdlib/tst-strtod-round.c (tests): Regenerated.
6291 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6293         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
6294         assembler flag.
6295         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
6296         zarch_nohighgprs around the zarch optimized routines.
6297         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
6298         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
6299         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
6300         for zarch.
6302 2012-09-05  David S. Miller  <davem@davemloft.net>
6304         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6306         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
6307         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
6308         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
6309         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
6310         entries.
6312 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
6314         * malloc/arena.c: Fold copyright years.
6315         * malloc/mcheck.c, malloc/memusage.c: Likewise.
6317 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
6319         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
6321 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
6323         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
6325 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
6327         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
6328         change internal state upon failure.
6330 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
6332         * malloc/mcheck.c (mcheck_check_all): Fix typo.
6333         * malloc/memusage.c (mmap): Likewise.
6334         (mmap64, mremap): Likewise.  Adjust name in comment.
6336 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
6338         * libio/fileops.c: Fix typos in comments.
6339         * libio/oldfileops.c: Likewise.
6340         * libio/wfileops.c: Likewise.
6342 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
6344         [BZ #1349]
6345         * malloc/Makefile (tests): Add tst-malloc-usable test case.
6346         (tst-malloc-usable-ENV): Set environment for test case.
6347         * malloc/hooks.c (malloc_check_get_size): New function to get
6348         requested size.
6349         * malloc/malloc.c (musable): Use malloc_check_get_size.
6350         * malloc/tst-malloc-usable.c: New test case.
6352 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
6354         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
6356 2012-09-05  Allan McRae  <allan@archlinux.org>
6358         [BZ #13966]
6359         * configure.in (CXX_SYSINCLUDES): Use compiler output to
6360         determine header location.
6361         * configure: Regenerated.
6363 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
6365         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
6366         float format.
6367         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
6368         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
6369         format.
6370         (test): Regenerate.
6372 2012-09-04  David S. Miller  <davem@davemloft.net>
6374         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
6375         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
6376         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
6378 2012-09-04  Florian Weimer  <fweimer@redhat.com>
6380         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
6381         failures.
6383         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
6385 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
6387         [BZ #9914]
6388         * libio/iogetdelim.c: Include <limits.h>.
6389         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
6390         + len + 1 would overflow.
6392 2012-09-03  Andreas Jaeger  <aj@suse.de>
6394         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6395         * sysdeps/i386/fpu/libm-test-ulps: Update.
6397 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6399         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
6400         Add s_sinf-sse2, s_conf-sse2.
6402         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
6403         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
6404         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
6405         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
6407         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
6408         for using routine as __sinf_ia32.
6409         Use macro for function declaration and weak_alias.
6410         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
6411         for using routine as __cosf_ia32.
6412         Use macro for function declaration and weak_alias.
6414         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
6415         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
6417         * sysdeps/x86_64/fpu/s_sinf.S: New file.
6418         * sysdeps/x86_64/fpu/s_cosf.S: New file.
6419         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6421         * math/libm-test.inc (cos_test): Add more test cases.
6422         (sin_test): Likewise.
6423         (sincos_test): Likewise.
6425 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6427         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
6428         (IFUNC_RESOLVE): Make pointers to the specialized implementations
6429         hidden.
6430         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
6432 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
6434         [BZ #14538]
6435         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
6436         first element of the GOT.
6437         (elf_machine_load_address): Return the difference between
6438         the runtime address of _DYNAMIC and elf_machine_dynamic ().
6440 2012-09-01  Allan McRae  <allan@archlinux.org>
6442         [BZ #13412]
6443         * configure.in (AWK): Require gawk version 3.0 or later.
6444         * configure: Regenerated.
6446 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
6448         * sysdeps/unix/sysv/linux/kernel-features.h
6449         (__ASSUME_POSIX_CPU_TIMERS): Remove.
6450         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
6451         [__NR_clock_getres]: Make code unconditional.
6452         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
6453         (clock_getcpuclockid): Remove code left unreachable by removal of
6454         conditionals.
6455         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
6456         code unconditional.
6457         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
6458         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
6459         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
6460         Make code unconditional.
6461         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
6462         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
6463         * sysdeps/unix/sysv/linux/clock_settime.c
6464         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
6465         conditional code.
6466         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
6467         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
6469 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
6471         [BZ #14476]
6472         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
6473         scripts/test-installation.pl.
6475         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
6476         and $ld_so_version if it is set.
6478 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
6480         [BZ #14516]
6481         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
6482         failure if reading from procfs failed.
6483         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
6485 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
6487         * sysdeps/unix/sysv/linux/kernel-features.h
6488         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
6489         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
6490         Remove conditional code.
6491         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6492         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
6493         Remove conditional code.
6494         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6495         * sysdeps/unix/sysv/linux/i386/fxstat.c
6496         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
6497         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6498         * sysdeps/unix/sysv/linux/i386/fxstatat.c
6499         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
6500         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6501         * sysdeps/unix/sysv/linux/i386/lxstat.c
6502         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
6503         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6504         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
6505         Remove conditional code.
6506         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6507         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
6508         Remove conditional code.
6509         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6510         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
6511         <kernel-features.h>.
6512         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
6513         Remove.
6514         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
6515         Remove conditional code.
6516         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6517         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
6518         Remove conditional.
6520 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
6522         [BZ #5400]
6523         * NEWS: Add fixed bug number.
6525 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
6527         [BZ #14519]
6528         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
6529         underflowing exponent in case of negative sign.
6530         * stdlib/tst-strtod-round-data: Add more tests.
6531         * stdlib/tst-strtod-round.c (tests): Regenerated.
6533         [BZ #3479]
6534         * stdlib/strtod_l.c (NDIG): Remove.
6535         (HEXNDIG): Likewise.
6536         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
6537         smallest representable value.
6538         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
6539         lie within an exact representation of 1/2 ulp of the result.
6540         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
6541         unconditionally.
6542         (TENS_P9_IDX): Define unconditionally.
6543         (TENS_P9_SIZE): Likewise.
6544         (TENS_P10_IDX): Likewise.
6545         (TENS_P10_SIZE): Likewise.
6546         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
6547         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
6548         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
6549         entries for 10^2^13 and 10^2^14.
6550         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
6551         (TENS_P13_IDX): Define.
6552         (TENS_P13_SIZE): Likewise.
6553         (TENS_P14_IDX): Likewise.
6554         (TENS_P14_SIZE): Likewise.
6555         (_fpioconst_pow10): Change array size to
6556         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
6557         unconditional.
6558         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
6559         1024]: Add entries for 10^2^13 and 10^2^14.
6560         [LAST_POW10 > _LAST_POW10]: Remove #error.
6561         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
6562         (_fpioconst_pow10): Change array size to
6563         FPIOCONST_POW10_ARRAY_SIZE.
6564         * stdlib/gen-fpioconst.c: New file.
6565         * stdlib/gen-tst-strtod-round.c: Likewise.
6566         * stdlib/tst-strtod-round-data: Likewise.
6567         * stdlib/tst-strtod-round.c: Likewise.
6568         * stdlib/Makefile (tests): Add tst-strtod-round.
6570         [BZ #14459]
6571         * stdlib/strtod_l.c: Include <stdint.h>.
6572         (NDEBUG): Do not define.
6573         (round_and_return): Change EXPONENT parameter to type intmax_t.
6574         Rearrange calculations to avoid internal overflow possibilities.
6575         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
6576         Rearrange calculations to avoid internal overflow possibilities.
6577         Assert that number fits inside MPNSIZE limbs.
6578         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
6579         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
6580         calculations and add assertions to avoid internal overflow
6581         possibilities.  Add casts to avoid signed/unsigned operations.
6582         * stdlib/tst-strtod-overflow.c: New file.
6583         * stdlib/Makefile (tests): Add tst-strtod-overflow.
6585 2012-08-25  Marek Polacek  <polacek@redhat.com>
6587         * time/time.h: Fix some typos in comments.
6589 2012-08-23  Roland McGrath  <roland@hack.frob.com>
6591         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
6592         * posix/tst-rfc3484-2.c: Likewise.
6593         * posix/tst-rfc3484-3.c: Likewise.
6595 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
6597         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
6598         (EF_ARM_ABI_FLOAT_HARD): Likewise.
6600 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
6602         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
6603         #include of fxstatat64.c.
6605 2012-08-22  Roland McGrath  <roland@hack.frob.com>
6607         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
6608         * shadow/getspent_r.c: Likewise.
6609         * shadow/getspnam.c: Likewise.
6610         * shadow/getspnam_r.c: Likewise.
6611         * gshadow/getsgent.c: Likewise.
6612         * gshadow/getsgent_r.c: Likewise.
6613         * gshadow/getsgnam.c: Likewise.
6614         * gshadow/getsgnam_r.c: Likewise.
6615         * inet/getnetbyad.c: Likewise.
6616         * inet/getnetbyad_r.c: Likewise.
6617         * inet/getnetbynm.c: Likewise.
6618         * inet/getnetbynm_r.c: Likewise.
6619         * inet/getnetent.c: Likewise.
6620         * inet/getnetent_r.c: Likewise.
6621         * inet/getproto.c: Likewise.
6622         * inet/getproto_r.c: Likewise.
6623         * inet/getprtent.c: Likewise.
6624         * inet/getprtent_r.c: Likewise.
6625         * inet/getprtname.c: Likewise.
6626         * inet/getprtname_r.c: Likewise.
6627         * inet/getrpcbyname.c: Likewise.
6628         * inet/getrpcbyname_r.c: Likewise.
6629         * inet/getrpcbynumber.c: Likewise.
6630         * inet/getrpcbynumber_r.c: Likewise.
6631         * inet/getrpcent.c: Likewise.
6632         * inet/getrpcent_r.c: Likewise.
6633         * inet/getaliasent.c: Likewise.
6634         * inet/getaliasent_r.c: Likewise.
6635         * inet/getaliasname.c: Likewise.
6636         * inet/getaliasname_r.c: Likewise.
6637         * nscd/getgrgid_r.c: Likewise.
6638         * nscd/getgrnam_r.c: Likewise.
6639         * nscd/gethstbyad_r.c: Likewise.
6640         * nscd/gethstbynm3_r.c: Likewise.
6641         * nscd/getpwnam_r.c: Likewise.
6642         * nscd/getpwuid_r.c: Likewise.
6643         * nscd/getsrvbynm_r.c: Likewise.
6644         * nscd/getsrvbypt_r.c: Likewise.
6645         * nscd/gai.c: Likewise.
6647         * configure.in (build_nscd): New substituted variable, set
6648         by --disable-build-nscd and defaults to $use_nscd.
6649         * configure: Regenerated.
6650         * config.make.in (build-nscd): New substituted variable.
6651         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
6652         Change conditional to require [$(build-nscd) = yes] as well.
6653         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
6655         [BZ# 13696]
6656         * configure.in (use_nscd): New substituted variable, set by
6657         --disable-nscd.  If enabled, define USE_NSCD.
6658         * configure: Regenerated.
6659         * config.h.in: Add USE_NSCD.
6660         * config.make.in (use-nscd): New substituted variable.
6661         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
6662         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
6663         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
6664         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
6665         (CFLAGS-getgrnam_r.c): Likewise.
6666         (CFLAGS-initgroups.c): Likewise.
6667         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
6668         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
6669         Variables removed.
6670         * inet/getnetgrent_r.c
6671         (nscd_setnetgrent): New function, broken out of ...
6672         (setnetgrent): ... here.  Call it.
6673         (innetgr): Conditionalize nscd bits on [USE_NSCD].
6674         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
6675         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
6676         * nscd/Makefile (routines, aux): Move definitions after include of
6677         Makeconfig.  Conditionalize on [$(use-nscd) != no].
6678         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
6679         Conditionalize on [USE_NSCD].
6680         (is_nscd, nscd_init_cb): Likewise.
6681         (nss_load_library): Conditionalize init callback on [USE_NSCD].
6682         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
6683         * nss/nss_db/db-init.c: Likewise.
6684         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
6685         [USE_NSCD].
6686         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
6687         (make_request): Use it.
6688         (cache_valid_p): New function.
6689         (__check_pf): Use it.
6690         * NEWS: Add item for --disable-nscd.
6692 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
6694         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
6695         to support sed >= 4.2.1-20-ga9bf076.
6696         * configure: Regenerated.
6698 2012-08-22  Roland McGrath  <roland@hack.frob.com>
6700         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
6701         Conditionalize whole body on [IREL].
6703 2012-08-22  Jeff Law <law@redhat.com>
6705         [BZ #14505]
6706         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
6707         if the family is PF_UNSPEC.
6709 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
6711         * Makerules (lib-version): Rename from V.
6712         (install-lib-nosubdir): Change V to lib-version.
6714 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
6716         [BZ #14252]
6717         * powerpc32/power6/wcschr.c: New file.
6718         * powerpc32/power6/wcscpy.c: New file.
6719         * powerpc32/power6/wcsrchr.c: New file.
6720         * powerpc64/power6/wcschr.c: New file.
6721         * powerpc64/power6/wcscpy.c: New file.
6722         * powerpc64/power6/wcsrchr.c: New file.
6724 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
6726         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
6727         (two_way_short_needle): Use it.
6728         * string/strstr.c (AVAILABLE1_USES_J): Define.
6729         * string/strcasestr.c: Likewise.
6731         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
6732         array references.
6733         * string/strcasestr.c (TOLOWER): Make side-effect safe.
6735         [BZ #11607]
6736         * NEWS: Add an entry.
6737         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
6738         define their defaults.
6739         (two_way_short_needle): Detect end-of-string on-the-fly.
6740         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
6741         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
6742         * string/bug-strcasestr1.c: New test.
6743         * string/Makefile: Run it.
6745 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
6747         [BZ #11607]
6748         * string/str-two-way.h (two_way_short_needle): Optimize matching of
6749         the first character.
6751 2012-08-21  Roland McGrath  <roland@hack.frob.com>
6753         * csu/elf-init.c (__libc_csu_irel): Function removed.
6754         * csu/libc-start.c (apply_irel): New function.
6755         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
6757 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
6759         * sysdeps/unix/sysv/linux/kernel-features.h
6760         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
6761         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
6762         <kernel-features.h>.
6763         [__NR_fadvise64_64]: Make code unconditional.
6764         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
6765         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
6766         !__NR_fadvise64_64)]: Likewise.
6767         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
6768         !__NR_fadvise64_64))]: Likewise.
6769         [__NR_fadvise64]: Make code unconditional.
6770         [!__NR_fadvise64]: Remove conditional code.
6771         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
6772         <kernel-features.h>.
6773         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
6774         unconditional.
6775         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
6776         conditional code.
6777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
6778         not include <kernel-features.h>.
6779         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
6780         unconditional.
6781         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
6782         conditional code.
6783         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
6784         include <kernel-features.h>.
6785         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
6786         unconditional.
6787         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
6788         conditional code.
6790 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
6792         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
6793         slight instruction rearrangements per scrollpipe analysis.
6794         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
6796 2012-08-20  Roland McGrath  <roland@hack.frob.com>
6798         * manual/syslog.texi (syslog; vsyslog, closelog):
6799         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
6800         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
6802         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
6803         DSOCAPS to match condition on defining it.
6805 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
6807         * sysdeps/unix/sysv/linux/kernel-features.h
6808         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
6809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
6810         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
6811         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
6812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
6813         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
6814         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
6815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
6816         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
6817         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
6819         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
6820         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
6822         * sysdeps/unix/sysv/linux/kernel-features.h
6823         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
6824         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
6825         unconditional.
6826         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
6827         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
6828         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
6829         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
6830         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
6831         Make code unconditional.
6832         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
6833         (__mmap64) [!__NR_mmap2]: Likewise.
6834         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
6835         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
6836         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
6837         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
6838         [__NR_mmap2]: Make code unconditional.
6839         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
6840         (__mmap64) [!__NR_mmap2]: Likewise.
6842 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6844         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
6846 2012-08-18  Andreas Jaeger  <aj@suse.de>
6848         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
6850 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
6852         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
6853         * include/unistd.h (__have_sock_cloexec): Likewise.
6854         (__have_pipe2): Likewise.
6855         (__have_dup3): Likewise.
6857 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
6859         [BZ #9685]
6860         * include/unistd.h (__have_pipe2): Change define into an extern int.
6861         (__have_dup3): Likewise.
6862         * socket/have_sock_cloexec.c: Include fcntl.h.
6863         (__have_pipe2): New variable.
6864         (__have_dup3): Likewise.
6866 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
6868         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
6870 2012-08-17  Marek Polacek  <polacek@redhat.com>
6872         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
6873         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
6875 2012-08-17  Roland McGrath  <roland@hack.frob.com>
6877         * configure.in: Add AC_SUBST for sysheaders.
6878         * configure: Regenerated.
6879         * config.make.in (sysheaders): New substituted variable.
6881         * sysdeps/unix/mkfifo.c: Moved ...
6882         * sysdeps/posix/mkfifo.c: ... here.
6883         * sysdeps/unix/mkfifoat.c: Moved ...
6884         * sysdeps/posix/mkfifoat.c: ... here.
6886         * sysdeps/unix/utime.c: Moved ...
6887         * sysdeps/posix/utime.c: ... here.
6889         * sysdeps/unix/time.c: Moved ...
6890         * sysdeps/posix/time.c: ... here.
6891         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
6892         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
6894         * sysdeps/unix/nice.c: Moved ...
6895         * sysdeps/posix/nice.c: ... here.
6897         * sysdeps/unix/alarm.c: Moved ...
6898         * sysdeps/posix/alarm.c: ... here.
6900         * intl/Makefile ($(codeset_mo)): Depend on the input file.
6902 2012-08-17  Jeff Law <law@redhat.com>
6904         * intl/Makefile (codeset_mo): New variable.
6905         ($(codeset_mo)): New target.
6906         (tst-codeset.out): Depend on that.  Remove explicit rule.
6907         (tst-gettext3.out, tst-gettext5.out): Likewise.
6908         (LOCPATH-ENV, tst-codeset-ENV): New variables.
6909         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
6910         * intl/tst-codeset.sh: Remove.
6911         * intl/tst-gettext3.sh: Likewise.
6912         * intl/tst-gettext5.sh: Likewise.
6914 2012-08-17  Roland McGrath  <roland@hack.frob.com>
6916         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
6917         * sysdeps/unix/syscalls.list: ... here.
6919         * sysdeps/posix/getaddrinfo.c
6920         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
6921         (gaiconf_init, gaiconf_reload): Use them.
6922         [!_STATBUF_ST_NSEC]
6923         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
6924         Define using time_t rather than struct timespec.
6926         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
6927         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
6928         Macros removed.
6929         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
6930         [!NO_THREADS].
6931         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
6932         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
6933         Likewise.
6935         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
6936         __libc_cleanup_push argument.
6938         * bits/param.h: New file.
6939         * misc/sys/param.h: New file.
6940         * include/sys/param.h: New file.
6941         * misc/Makefile (headers): Add bits/param.h.
6942         * sysdeps/generic/sys/param.h: File removed.
6943         * sysdeps/unix/sysv/linux/bits/param.h: New file.
6944         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
6945         * sysdeps/mach/hurd/bits/param.h: New file.
6946         * sysdeps/mach/hurd/sys/param.h: File removed.
6948         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
6949         last change.
6951         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
6952         [_IO_MTSAFE_IO].
6953         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
6954         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
6955         New macros.
6957         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
6958         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
6959         rather than -D_IO_MTSAFE_IO conditionally.
6960         * stdio-common/Makefile (CPPFLAGS): Likewise.
6961         * wcsmbs/Makefile (CPPFLAGS): Likewise.
6962         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
6963         Use $(libio-mtsafe).
6964         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
6965         of -D_IO_MTSAFE_IO.
6966         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
6967         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
6968         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
6969         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
6970         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
6971         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
6972         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
6973         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
6974         (CFLAGS-fread_u_chk.c): Likewise.
6975         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
6976         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
6977         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
6978         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
6979         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
6980         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
6981         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
6982         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
6983         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
6985         * libio/Makefile: Test [$(libc-reentrant) = yes]
6986         instead of [$(filter %REENTRANT, $(defines)) nonempty].
6988         * Makeconfig
6989         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
6990         * sysdeps/pthread/configure: File removed.
6991         * sysdeps/pthread/Makeconfig: New file.
6992         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
6993         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
6995 2012-08-16  Gary Benson  <gbenson@redhat.com>
6997         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
6998         unmapping the first object in a namespace.
7000 2012-08-16  Roland McGrath  <roland@hack.frob.com>
7002         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
7003         (__internal_setnetgrent): ... this.  Add internal_function to
7004         definition.  Add libc_hidden_def.
7005         (setnetgrent): Update caller.
7006         (internal_endnetgrent): Renamed to ...
7007         (__internal_endnetgrent): ... this.  Add internal_function to
7008         definition.  Add libc_hidden_def.
7009         (endnetgrent): Update caller.
7010         (internal_getnetgrent_r): Renamed to ...
7011         (__internal_getnetgrent_r): ... this.  Add internal_function to
7012         definition.  Add libc_hidden_def.
7013         (__getnetgrent_r): Update caller.
7014         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
7016 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
7018         * stdlib/longlong.h: Update from GCC.
7020 2012-08-16  Roland McGrath  <roland@hack.frob.com>
7022         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
7023         on _QL, which is set by umul_ppmm but never used.
7024         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
7025         variables, which are set by GMP macros but never used.
7026         * stdio-common/_itowa.c (_itowa): Likewise.
7027         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
7028         * stdlib/mod_1.c (mpn_mod_1): Likewise.
7030 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
7032         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
7033         struct La_sh_regs is not constant.
7034         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
7035         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
7036         and struct La_sparc64_regs are not constant.
7038 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
7040         * sysdeps/unix/sysv/linux/kernel-features.h
7041         (__ASSUME_POSIX_TIMERS): Remove.
7042         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7043         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7044         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
7045         Make code unconditional.
7046         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7047         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
7048         Make code unconditional.
7049         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7050         * sysdeps/unix/sysv/linux/clock_nanosleep.c
7051         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
7052         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7053         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
7054         Make code unconditional.
7055         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7056         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
7057         (__libc_missing_posix_timers): Remove.
7059 2012-08-15  Roland McGrath  <roland@hack.frob.com>
7061         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
7062         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
7064         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
7066         * elf/dl-sym.c: Include <stdlib.h>.
7068         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
7069         constants, which avoids warnings in 32-bit builds.
7071         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
7072         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
7074         * misc/lseek.c: File moved to ...
7075         * io/lseek.c: ... here.
7077         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
7079         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
7080         shifting LEN more than 31 bits at once.
7082 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7084         [BZ #14195]
7085         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
7086         segmentation fault for a case of two empty input strings.
7087         * string/test-strncasecmp.c (check1): Renamed to...
7088         (bz12205): ...this.
7089         (bz14195): Add new testcase for two empty input strings and N > 0.
7090         (test_main): Call new testcase, adapt for renamed function.
7092 2012-08-15  Andreas Jaeger  <aj@suse.de>
7094         [BZ #14090]
7095         * crypt/md5test2.c: New test, based on test supplied by Serge
7096         Belyshev <belyshev@depni.sinp.msu.ru>.
7097         * crypt/Makefile (xtests): Add md5test-giant..
7098         * crypt/Makefile ($(objpfx)md5test-giant): Add.
7100 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7102         [BZ #14090]
7103         * crypt/md5.c (md5_process_block): Don't assume the buffer
7104         length is less than 2**32.
7105         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
7106         length is less than 2**64.
7108 2012-08-15  Roland McGrath  <roland@hack.frob.com>
7110         * string/str-two-way.h: Include <sys/param.h>.
7111         (MAX): Macro removed.
7113         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
7114         Move #define and #undef of memmove to just before and after
7115         including <string.h>.
7117         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
7118         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
7119         and after including <string.h>.  Move declarations of
7120         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
7121         to before #include "string/memmove.c".
7123         * include/dirent.h: Declare __getdirentries.
7125         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
7126         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
7128 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
7130         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
7131         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
7132         * sysdeps/i386/configure: Regenerated.
7133         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
7134         STABS_CURRENT_FILE, and STABS_FUN.
7135         (END): Remove call to STABS_FUN_END.
7136         (STABS_CURRENT_FILE1): Delete.
7137         (STABS_CURRENT_FILE): Likewise.
7138         (STABS_FUN): Likewise.
7139         (STABS_FUN_END): Likewise.
7140         (STABS_FUN2): Likewise.
7141         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
7142         * sysdeps/x86_64/configure: Regenerated.
7144 2012-08-14  Roland McGrath  <roland@hack.frob.com>
7146         * elf/dl-open.c: Include <atomic.h>.
7147         * elf/dl-lookup.c: Likewise.
7149 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
7151         * sysdeps/unix/sysv/linux/kernel-features.h
7152         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
7153         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
7154         unconditionally.
7155         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
7156         unconditionally.
7157         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
7158         condition on __ASSUME_CLONE_THREAD_FLAGS.
7160 2012-08-14  Andreas Jaeger  <aj@suse.de>
7162         * sysdeps/i386/fpu/libm-test-ulps: Update.
7164 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
7166         * include/atomic.h (atomic_exchange_and_add): Split into ...
7167         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
7168         New atomic macros.
7170 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
7172         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7174 2012-08-13  Jeff Law <law@redhat.com>
7176         * manual/stdio.texi (snprintf): Clarify handling of the trailing
7177         null byte in the output string.
7179 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
7181         * sysdeps/unix/sysv/linux/kernel-features.h
7182         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
7183         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
7184         (__ASSUME_ARG_MAX_STACK_BASED): Define.
7185         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
7186         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
7187         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
7188         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
7190 2012-08-09  Jeff Law <law@redhat.com>
7192         [BZ #13939]
7193         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
7194         When avoid_arena is set, don't retry in the that arena.  Pick the
7195         next one, whatever it might be.
7196         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
7197         (arena_lock): Pass in new parameter to arena_get2.
7198         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
7199         arena_get2.
7200         (__libc_malloc): Unify retrying after main arena failure with
7201         __libc_memalign version.
7202         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
7204 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
7206         [BZ #14166]
7207         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
7208         to __redirect_strstr.
7209         (__strstr_sse42): Use typeof __redirect_strstr.
7210         (__strstr_ia32): Likewise.
7211         (__libc_strstr): New prototype.
7212         (strstr): Renamed to ...
7213         (__libc_strstr): This.
7214         (strstr): New strong alias of __libc_strstr.
7215         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
7216         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
7217         __redirect_time.
7218         Include <time.h>.
7219         (__libc_time): New prototype.
7220         (time_ifunc): Replace time with __libc_time.
7221         (time): New strong alias and hidden definition of __libc_time.
7222         (__GI_time): Remove strong alias.
7223         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
7224         Include <stddef.h>.
7225         (memmove): Redefined to __redirect_memmove.
7226         (__memmove_sse2): Use typeof __redirect_memmove.
7227         (__memmove_ssse3): Likewise.
7228         (__memmove_ssse3_back): Likewise.
7229         (__libc_memmove): New prototype.
7230         (memmove): Renamed to ...
7231         (__libc_memmove): This.
7232         (memmove): New strong alias of __libc_memmove.
7234 2012-08-08  Mark Salter  <msalter@redhat.com>
7236         * elf/elf.h
7237         (R_MN10300_TLS_GD): Define.
7238         (R_MN10300_TLS_LD): Likewise.
7239         (R_MN10300_TLS_LDO): Likewise.
7240         (R_MN10300_TLS_GOTIE): Likewise.
7241         (R_MN10300_TLS_IE): Likewise.
7242         (R_MN10300_TLS_LE): Likewise.
7243         (R_MN10300_TLS_DTPMOD): Likewise.
7244         (R_MN10300_TLS_DTPOFF): Likewise.
7245         (R_MN10300_TLS_TPOFF): Likewise.
7246         (R_MN10300_SYM_DIFF): Likewise.
7247         (R_MN10300_ALIGN): Likewise.
7248         (R_MN10300_NUM): Update.
7250 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
7252         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
7253         Remove.
7255 2012-08-08  Roland McGrath  <roland@hack.frob.com>
7257         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
7259         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
7260         sysdeps/unix -> sysdeps/posix move.
7261         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
7263 2012-08-07      Allan McRae     <allan@archlinux.org>
7265         [BZ #14303]
7266         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
7267         (SUNOS_CPP): Likewise.
7268         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
7269         not found.
7270         (open_input): Call CPP using execvp.
7272 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
7274         * sysdeps/unix/sysv/linux/kernel-features.h
7275         (__ASSUME_PROT_GROWSUPDOWN): Remove.
7276         (__ASSUME_NO_CLONE_DETACHED): Likewise.
7277         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
7278         (__ASSUME_WAITID_SYSCALL): Likewise.
7279         * sysdeps/unix/sysv/linux/dl-execstack.c
7280         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
7281         code unconditional.
7282         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
7283         conditional code.
7284         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
7285         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
7286         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
7287         code.
7288         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
7289         unconditional.
7290         [__ASSUME_WAITID_SYSCALL]: Likewise.
7291         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
7293 2012-08-07  Roland McGrath  <roland@hack.frob.com>
7295         * sysdeps/unix/closedir.c: Renamed to ...
7296         * sysdeps/posix/closedir.c: ... here.
7297         * sysdeps/unix/dirfd.c: Renamed to ...
7298         * sysdeps/posix/dirfd.c: ... here.
7299         * sysdeps/unix/dirstream.h: Renamed to ...
7300         * sysdeps/posix/dirstream.h: ... here.
7301         * sysdeps/unix/fdopendir.c: Renamed to ...
7302         * sysdeps/posix/fdopendir.c: ... here.
7303         * sysdeps/unix/opendir.c: Renamed to ...
7304         * sysdeps/posix/opendir.c: ... here.
7305         * sysdeps/unix/readdir.c: Renamed to ...
7306         * sysdeps/posix/readdir.c: ... here.
7307         * sysdeps/unix/readdir_r.c: Renamed to ...
7308         * sysdeps/posix/readdir_r.c: ... here.
7309         * sysdeps/unix/rewinddir.c: Renamed to ...
7310         * sysdeps/posix/rewinddir.c: ... here.
7311         * sysdeps/unix/seekdir.c: Renamed to ...
7312         * sysdeps/posix/seekdir.c: ... here.
7313         * sysdeps/unix/telldir.c: Renamed to ...
7314         * sysdeps/posix/telldir.c: ... here.
7315         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
7316         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
7317         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
7318         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
7320         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
7321         * bits/fcntl.h: ... here.
7323         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
7324         not 0.
7325         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
7326         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
7327         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
7328         (struct flock): Move l_start, l_len to the beginning.
7329         Use __pid_t for l_pid.
7330         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
7331         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
7332         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
7333         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
7334         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
7335         [__USE_LARGEFILE64] (struct flock64): New type.
7336         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
7338         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
7339         * bits/dirent.h: ... here.
7341         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
7342         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
7344 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
7346         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
7347         Change from 2.6.0 to 2.6.16.
7348         * sysdeps/unix/sysv/linux/configure: Regenerated.
7349         * sysdeps/unix/sysv/linux/kernel-features.h
7350         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
7351         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
7352         version.
7353         (__ASSUME_UTIMES): Likewise.
7354         (__ASSUME_CLONE_STOPPED): Remove.
7355         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
7356         architectures, not kernel version.
7357         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
7358         (__ASSUME_NO_CLONE_DETACHED): Likewise.
7359         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
7360         (__ASSUME_WAITID_SYSCALL): Likewise.
7361         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
7362         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
7363         * README: State 2.6.16 as minimum Linux kernel version.  Do not
7364         refer to older versions.
7366 2012-08-06  Roland McGrath  <roland@hack.frob.com>
7368         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
7369         Define alphasort64 as an alias.
7370         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
7371         Define versionsort64 as an alias.
7372         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
7373         Define scandir64 as an alias.
7374         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
7375         Define scandirat64 as an alias.
7376         * dirent/alphasort64.c (alphasort64):
7377         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
7378         * dirent/versionsort64.c: Likewise.
7379         * dirent/scandir64.c: Likewise.
7380         * dirent/scandirat64.c: Likewise.
7381         * sysdeps/wordsize-64/alphasort.c: File removed.
7382         * sysdeps/wordsize-64/alphasort64.c: File removed.
7383         * sysdeps/wordsize-64/scandir.c: File removed.
7384         * sysdeps/wordsize-64/scandir64.c: File removed.
7385         * sysdeps/wordsize-64/scandirat.c: File removed.
7386         * sysdeps/wordsize-64/scandirat64.c: File removed.
7387         * sysdeps/wordsize-64/versionsort.c: File removed.
7388         * sysdeps/wordsize-64/versionsort64.c: File removed.
7389         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
7390         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
7391         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
7392         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
7393         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
7394         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
7395         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
7396         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
7398         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
7399         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
7400         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
7401         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7402         [defined __arch64__ || defined __sparcv9]
7403         (__INO_T_MATCHES_INO64_T): New macro.
7404         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
7405         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
7406         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
7407         * sysdeps/unix/sysv/linux/bits/dirent.h
7408         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
7409         (_DIRENT_MATCHES_DIRENT64): New macro.
7411         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
7412         Define lockf64 as an alias.
7413         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
7414         Define fseeko64 as an alias.
7415         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
7416         Define ftello64 as an alias.
7417         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
7418         Define _IO_fgetpos64 and fgetpos64 as aliases.
7419         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
7420         Define _IO_fsetpos64 and fsetpos64 as aliases.
7421         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
7422         Conditionalize body on this.
7423         * libio/fseeko64.c: Likewise.
7424         * libio/ftello64.c: Likewise.
7425         * libio/iofgetpos64.c: Likewise.
7426         * libio/iofsetpos64.c: Likewise.
7427         * sysdeps/wordsize-64/lockf.c: File removed.
7428         * sysdeps/wordsize-64/lockf64.c: File removed.
7429         * sysdeps/wordsize-64/fseeko.c: File removed.
7430         * sysdeps/wordsize-64/fseeko64.c: File removed.
7431         * sysdeps/wordsize-64/ftello.c: File removed.
7432         * sysdeps/wordsize-64/ftello64.c: File removed.
7433         * sysdeps/wordsize-64/iofgetpos.c: File removed.
7434         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
7435         * sysdeps/wordsize-64/iofsetpos.c: File removed.
7436         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
7437         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
7438         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
7439         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
7440         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
7441         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
7442         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
7443         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
7444         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
7445         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
7446         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
7448         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
7449         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
7450         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
7451         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7452         [defined __arch64__ || defined __sparcv9]
7453         (__OFF_T_MATCHES_OFF64_T): New macro.
7454         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
7455         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
7456         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7457         (__OFF_T_MATCHES_OFF64_T): New macro.
7459 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
7461         * stdlib/secure-getenv.c (__secure_getenv): Replace
7462         GLIBC_2_16 with GLIBC_2_17.
7464 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
7466         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
7467         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7469 2012-08-03  David S. Miller  <davem@davemloft.net>
7471         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7473 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
7475         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
7476         Remove.
7477         (__ASSUME_CORRECT_SI_PID): Likewise.
7478         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
7479         (__ASSUME_TMPFS_NAME): Likewise.
7480         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
7481         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
7482         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
7483         (HAVE_AUX_SECURE): Make definition unconditional.
7484         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
7485         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
7487 2012-08-03  Roland McGrath  <roland@hack.frob.com>
7489         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
7490         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
7491         * sysdeps/mach/hurd/eloop-threshold.h: New file.
7492         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7493         __eloop_threshold instead of SYMLOOP_MAX.
7495         * sysdeps/generic/eloop-threshold.h: New file.
7496         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
7497         of MAXSYMLINKS.
7498         * elf/chroot_canon.c (chroot_canon): Likewise.
7500 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
7502         [BZ #13717]
7503         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
7504         Change to 2.6.0 everywhere.
7505         * sysdeps/unix/sysv/linux/configure: Regenerated.
7506         * sysdeps/unix/sysv/linux/kernel-features.h
7507         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
7508         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
7509         kernel versions.
7510         (__ASSUME_POSIX_TIMERS): Define unconditionally.
7511         (__ASSUME_FUTEX_REQUEUE): Remove.
7512         (__ASSUME_STATFS64): Define unconditionally.
7513         (__ASSUME_AT_SECURE): Likewise.
7514         (__ASSUME_CORRECT_SI_PID): Likewise.
7515         (__ASSUME_TGKILL): Define without depending on kernel version for
7516         i386.
7517         (__ASSUME_UTIMES): Likewise.
7518         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
7519         kernel version.
7520         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
7521         (__ASSUME_TMPFS_NAME): Likewise.
7522         * README: Update reference to Linux kernel versions.
7524 2012-08-02  Marek Polacek  <polacek@redhat.com>
7526         [BZ# 14150]
7527         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
7528         libc_cv_asm_type_prefix with %.
7529         * configure: Regenerated.
7530         * include/libc-symbols.h: Remove comment about
7531         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
7532         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
7533         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
7534         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
7535         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
7536         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
7537         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
7538         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
7539         * elf/tst-unique2mod1.c: Likewise.
7540         * elf/tst-unique1mod2.c: Likewise.
7541         * elf/tst-unique1mod1.c: Likewise.
7542         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
7543         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
7544         Replace ASM_TYPE_DIRECTIVE with .type.
7545         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7546         * sysdeps/i386/sysdep.h: Likewise.
7547         * sysdeps/x86_64/sysdep.h: Likewise.
7548         * sysdeps/sh/sysdep.h: Likewise.
7549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
7550         Do not define ASM_TYPE_DIRECTIVE.
7551         * sysdeps/powerpc/sysdep.h: Likewise.
7552         * sysdeps/powerpc/powerpc32/sysdep.h:
7553         Replace ASM_TYPE_DIRECTIVE with .type.
7554         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
7555         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
7556         * sysdeps/i386/fpu/e_powf.S: Likewise.
7557         * sysdeps/i386/fpu/e_expl.S: Likewise.
7558         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
7559         * sysdeps/i386/fpu/e_acosh.S: Likewise.
7560         * sysdeps/i386/fpu/e_pow.S: Likewise.
7561         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
7562         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
7563         * sysdeps/i386/fpu/s_expm1.S: Likewise.
7564         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
7565         * sysdeps/i386/fpu/e_log2.S: Likewise.
7566         * sysdeps/i386/fpu/e_log2l.S: Likewise.
7567         * sysdeps/i386/fpu/e_scalb.S: Likewise.
7568         * sysdeps/i386/fpu/e_powl.S: Likewise.
7569         * sysdeps/i386/fpu/e_log10f.S: Likewise.
7570         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
7571         * sysdeps/i386/fpu/e_logl.S: Likewise.
7572         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
7573         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
7574         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
7575         * sysdeps/i386/fpu/e_log2f.S: Likewise.
7576         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
7577         * sysdeps/i386/fpu/e_log.S: Likewise.
7578         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
7579         * sysdeps/i386/fpu/e_logf.S: Likewise.
7580         * sysdeps/i386/fpu/e_log10l.S: Likewise.
7581         * sysdeps/i386/fpu/e_atanh.S: Likewise.
7582         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
7583         * sysdeps/i386/fpu/e_log10.S: Likewise.
7584         * sysdeps/i386/fpu/s_frexp.S: Likewise.
7585         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
7586         * sysdeps/i386/fpu/s_asinh.S: Likewise.
7587         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
7588         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
7589         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
7590         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
7591         * sysdeps/i386/i686/strtok.S: Likewise.
7592         * sysdeps/i386/i386-mcount.S: Likewise.
7593         * sysdeps/i386/strtok.S: Likewise.
7594         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
7595         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7596         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7597         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7598         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
7599         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7600         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
7601         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
7602         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7603         * sysdeps/x86_64/_mcount.S: Likewise.
7604         * sysdeps/x86_64/strtok.S: Likewise.
7605         * sysdeps/sh/_mcount.S: Likewise.
7607 2012-08-01  Roland McGrath  <roland@hack.frob.com>
7609         * libio/iofopen.c: Include <fcntl.h>.
7610         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
7611         (_IO_fopen64, fopen64): Define as aliases.
7612         * libio/iofopen64.c: Include <fcntl.h>.
7613         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
7614         Conditionalize body on this.
7615         * sysdeps/wordsize-64/iofopen.c: File removed.
7616         * sysdeps/wordsize-64/iofopen64.c: File removed.
7618 2012-08-01  Marek Polacek  <polacek@redhat.com>
7620         * libc/Makeconfig: Use elf in place of binfmt-subdir.
7621         Use dlfcn directly instead of a variable.
7622         (binfmt-subdir): Do not define.
7623         (dlfcn): Likewise.
7625 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
7627         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
7628         Remove all definitions.
7629         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
7630         <kernel-features.h>.
7631         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
7632         (miss_F_GETOWN_EX): Remove all definitions.
7633         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
7634         macro definition.
7635         [!__ASSUME_FCNTL64]: Remove conditional code.
7636         [__ASSUME_FCNTL64]: Make code unconditional.
7637         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
7638         <kernel-features.h>.
7639         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
7640         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
7641         (lockf64) [__NR_fcntl64]: Make code unconditional.
7642         (lockf64) [__ASSUME_FCNTL64]: Likewise.
7644         * sysdeps/unix/sysv/linux/kernel-features.h
7645         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
7646         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
7647         Make code unconditional.
7648         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
7649         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
7650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
7651         [__NR_vfork]: Make code unconditional.
7652         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
7653         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
7654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
7655         [__NR_vfork]: Make code unconditional.
7656         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
7657         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
7659 2012-08-01  Roland McGrath  <roland@hack.frob.com>
7661         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
7662         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
7664         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
7665         Define mkstemp64 as an alias.
7666         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
7667         Define mkstemps64 as an alias.
7668         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
7669         Define mkostemp64 as an alias.
7670         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
7671         Define mkostemps64 as an alias.
7672         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
7673         Conditionalize body on this.
7674         * misc/mkostemp64.c: Likewise.
7675         * misc/mkostemps64.c: Likewise.
7676         * misc/mkstemps64.c: Likewise.
7677         * sysdeps/wordsize-64/mkstemp64.c: File removed.
7678         * sysdeps/wordsize-64/mkostemp64.c: File removed.
7679         * sysdeps/wordsize-64/mkostemp.c: File removed.
7680         * sysdeps/wordsize-64/mkstemp.c: File removed.
7681         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
7682         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
7683         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
7684         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
7686         [BZ #14138]
7687         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
7688         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
7689         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
7690         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
7692         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
7693         compat_symbol macros from <shlib-compat.h> rather than the underlying
7694         default_symbol_version and symbol_version macros, so that DEFAULT
7695         lines in shlib-versions are respected.
7696         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
7698 2012-08-01  Florian Weimer  <fweimer@redhat.com>
7700         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
7701         Declare with warn_unused_result.
7702         (setgid, setregid, setegid, setresgid): Likewise.
7703         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
7704         Likewise.
7705         * WUR-REPORT: Remove set*id functions.
7707 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
7709         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
7711 2012-07-31  Roland McGrath  <roland@hack.frob.com>
7713         * include/sys/socket.h (__libc_accept, __libc_accept4):
7714         Add attribute_hidden.
7715         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
7717         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
7718         use of PTR_MANGLE.
7719         * inet/getnetgrent_r.c (setup): Likewise.
7721         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
7723 2012-07-31  David S. Miller  <davem@davemloft.net>
7725         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7727 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
7729         [BZ #13629]
7730         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
7731         value between 1.0 and 2.0 and smaller part has absolute value less
7732         than 1.0.
7733         * math/s_clog10.c (__clog10): Likewise.
7734         * math/s_clog10f.c (__clog10f): Likewise.
7735         * math/s_clog10l.c (__clog10l): Likewise.
7736         * math/s_clogf.c (__clogf): Likewise.
7737         * math/s_clogl.c (__clogl): Likewise.
7738         * math/libm-test.inc (clog_test): Add more tests.
7739         (clog10_test): Likewise.
7740         * sysdeps/i386/fpu/libm-test-ulps: Update.
7741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7743 2012-07-31  Florian Weimer  <fweimer@redhat.com>
7745         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
7746         Exit with zero in case no suitable GID is found, and write a
7747         message to standard error.
7749 2012-07-30  Roland McGrath  <roland@hack.frob.com>
7751         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
7752         rather than to 1.
7753         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
7754         (MAXPATHLEN): Removed.
7755         (NOGROUP, NODEV): New macros.
7756         (setbit, clrbit, isset, isclr): New macros.
7757         (howmany, roundup, powerof2): New macros.
7758         (DEV_BSIZE): New macro.
7760         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
7761         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
7763         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
7764         definition on [!__NO_LONG_DOUBLE_MATH].
7766         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
7767         PTR_MANGLE and PTR_DEMANGLE.
7769         * socket/accept4.c (accept4): Rename to __libc_accept4.
7770         Define accept4 as a weak alias.
7772         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
7773         on [_DIRENT_HAVE_D_TYPE].
7774         * io/ftw.c (ftw_dir): Likewise.
7776         * io/xmknod.c (__xmknod): Don't check PATH for being null.
7778         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
7780         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
7781         Use the BSD numbers rather than the arbitrary ones we had.
7782         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
7783         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
7784         (SIGXCPU, SIGXFSZ): New macros.
7785         (_NSIG): Now 32.
7787         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
7788         initializer on [_LIBC_REENTRANT].
7790         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
7791         definitions inside [_POSIX_MAPPED_FILES].
7793         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
7795         * dirent/opendir.c: Include <fcntl.h>.
7797         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
7798         (__libc_getspecific): Likewise.
7799         (__libc_key_create): Likewise.
7801         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
7802         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
7803         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
7804         (tmpfile64): Define as alias.
7805         * sysdeps/wordsize-64/tmpfile.c: File removed.
7806         * sysdeps/wordsize-64/tmpfile64.c: File removed.
7807         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
7808         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
7810         * stdio-common/vfscanf.c: Include <stdbool.h>.
7811         * nss/makedb.c: Likewise.
7812         * stdio-common/_i18n_number.h: Likewise.
7813         * argp/argp-help.c: Likewise.
7814         * posix/wordexp.c: Likewise.
7815         * sysdeps/posix/spawni.c: Likewise.
7816         * nss/nss_files/files-initgroups.c: Likewise.
7817         * stdio-common/reg-modifier.c: Include <stdlib.h>.
7818         * nss/nss_files/files-initgroups.c: Likewise.
7819         * nss/nss_db/db-netgrp.c: Likewise.
7820         * nss/nss_db/db-initgroups.c: Likewise.
7821         * io/fchmodat.c: Include <sys/stat.h>.
7823         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
7824         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
7826         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
7827         [HAVE_MMAP].
7829         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
7830         Add multiple inclusion protection.
7832 2012-07-27  David S. Miller  <davem@davemloft.net>
7834         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7836 2012-07-27  Gary Benson  <gbenson@redhat.com>
7838         [BZ #14298]
7839         * elf/rtld.c: Include <stap-probe.h>.
7840         (dl_main): Added static probes "init_start" and "init_complete".
7841         * elf/dl-load.c: Include <stap-probe.h>.
7842         (lose): Take new parameter "nsid".
7843         Added static probe "map_failed".
7844         (_dl_map_object_from_fd): Pass namespace id to lose.
7845         Added static probe "map_start".
7846         (open_verify): Pass namespace id to lose.
7847         * elf/dl-open.c: Include <stap-probe.h>.
7848         (dl_open_worker) Added static probes "map_complete", "reloc_start"
7849         and "reloc_complete".
7850         * elf/dl-close.c: Include <stap-probe.h>.
7851         (_dl_close_worker): Added static probes "unmap_start" and
7852         "unmap_complete".
7853         * elf/rtld-debugger-interface.txt: New file documenting the above.
7855 2012-07-26  Roland McGrath  <roland@hack.frob.com>
7857         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
7858         rather than a string variable.
7859         * sunrpc/rpc_main.c (h_output): Likewise.
7860         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
7862 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
7864         * inet/check_native.c: New file.
7866 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
7868         [BZ #13629]
7869         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
7870         if larger part has absolute value 1.0.
7871         * math/s_clog10.c (__clog10): Likewise.
7872         * math/s_clog10f.c (__clog10f): Likewise.
7873         * math/s_clog10l.c (__clog10l): Likewise.
7874         * math/s_clogf.c (__clogf): Likewise.
7875         * math/s_clogl.c (__clogl): Likewise.
7876         * math/libm-test.inc (clog_test): Add more tests.
7877         (clog10_test): Likewise.
7878         * sysdeps/i386/fpu/libm-test-ulps: Update.
7879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7881         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
7882         (pltexit): Likewise.
7883         (La_regs): Likewise.
7884         (La_retval): Likewise.
7885         (int_retval): Likewise.
7886         Update #error for removed macros to refer only to definitions in
7887         tst-audit.h.
7888         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
7889         macro.
7890         (pltexit): Likewise.
7891         (La_regs): Likewise.
7892         (La_retval): Likewise.
7893         (int_retval): Likewise.
7894         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
7895         macro.
7896         (pltexit): Likewise.
7897         (La_regs): Likewise.
7898         (La_retval): Likewise.
7899         (int_retval): Likewise.
7900         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
7901         macro.
7902         (pltexit): Likewise.
7903         (La_regs): Likewise.
7904         (La_retval): Likewise.
7905         (int_retval): Likewise.
7906         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
7907         macro.
7908         (pltexit): Likewise.
7909         (La_regs): Likewise.
7910         (La_retval): Likewise.
7911         (int_retval): Likewise.
7912         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
7913         macro.
7914         (pltexit): Likewise.
7915         (La_regs): Likewise.
7916         (La_retval): Likewise.
7917         (int_retval): Likewise.
7918         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
7919         macro.
7920         (pltexit): Likewise.
7921         (La_regs): Likewise.
7922         (La_retval): Likewise.
7923         (int_retval): Likewise.
7924         * sysdeps/generic/tst-audit.h: Update comment to refer only to
7925         macro definitions in tst-audit.h.
7926         * sysdeps/i386/tst-audit.h: New file.
7927         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
7928         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
7929         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
7930         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
7931         * sysdeps/sh/tst-audit.h: Likewise.
7932         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
7933         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
7934         * sysdeps/x86_64/tst-audit.h: Likewise.
7936 2012-07-26  Andreas Jaeger  <aj@suse.de>
7938         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
7939         ptrace.
7941         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
7942         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
7943         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
7944         PTRACE_O_MASK.
7945         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
7946         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
7947         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
7949         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
7950         value.
7952         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
7953         _sigsys.
7954         (si_call_addr, si_syscall, si_arch): Define new macro.
7955         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
7956         _sigsys.
7957         (si_call_addr, si_syscall, si_arch): Define new marcro.
7958         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
7959         _sigsys.
7960         (si_call_addr, si_syscall, si_arch): Define new macro.
7961         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
7962         _sigsys.
7963         (si_call_addr, si_syscall, si_arch): Define new macro.
7965 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
7967         [BZ #13717]
7968         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
7969         Change to 2.4.21 where previously 2.4.1.
7970         * sysdeps/unix/sysv/linux/configure: Regenerated.
7971         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
7972         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
7973         Linux kernel version.
7974         (__ASSUME_STD_AUXV): Remove.
7975         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
7976         kernel version.
7977         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
7978         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
7979         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
7980         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
7981         (__ASSUME_NETLINK_SUPPORT): Likewise.
7982         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
7983         (__no_netlink_support): Remove conditional definition.
7984         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
7985         Remove.
7986         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
7987         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
7988         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
7989         (if_nameindex_ioctl): Remove.
7990         (if_nameindex_netlink): Do not handle __no_netlink_support.
7991         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
7992         code.
7993         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
7994         Remove conditional code.
7995         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
7996         code.
7997         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
7998         unconditional.
7999         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
8000         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
8001         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
8002         Remove.
8003         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8004         [!__ASSUME_STD_AUXV]: Remove conditional code.
8005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
8006         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
8007         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
8008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
8009         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
8010         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
8011         code.
8012         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
8013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
8014         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
8015         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
8016         conditional code.
8017         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
8018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
8019         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
8020         code.
8021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
8022         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
8023         conditional code.
8024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
8025         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
8026         code unconditional.
8027         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8028         conditional code.
8029         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8030         unconditional.
8031         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8032         conditional code.
8033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
8034         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8035         unconditional.
8036         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8037         conditional code.
8038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
8039         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
8040         code unconditional.
8041         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8042         conditional code.
8043         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8044         unconditional.
8045         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8046         conditional code.
8047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
8048         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
8049         code unconditional.
8050         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8051         conditional code.
8052         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8053         unconditional.
8054         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8055         conditional code.
8057 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
8059         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
8060         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
8061         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
8062         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
8063         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
8064         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8065         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
8066         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
8067         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
8068         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8069         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
8070         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8071         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
8072         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8073         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8074         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
8075         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
8076         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
8077         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
8078         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
8079         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
8080         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8081         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8083 2012-07-25  Florian Weimer  <fweimer@redhat.com>
8085         * Versions.def: Add GLIBC_2.17.
8086         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
8087         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
8088         Introduce __libc_secure_getenv.
8089         * stdlib/Versions (2.17): Add secure_getenv
8090         (GLIBC_PRIVATE): Add __libc_secure_getenv.
8091         * stdlib/secure-getenv.c: Rename __secure_getenv to
8092         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
8093         symbol __secure_getenv for GLIBC_2.0.
8094         * stdlib/tst-secure-getenv.c: New.
8095         * stdlib/Makefile (tests): Add testcase.
8096         * manual/startup.texi (Environment Access): Document
8097         secure_getenv.
8098         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
8099         __libc_secure_getenv.
8100         * inet/ruserpass.c (ruserpass): Likewise.
8101         * malloc/mtrace.c (mtrace): Likewise.
8102         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
8103         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8104         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
8105         * sysdeps/posix/tempname.c: Likewise.  Evaluate
8106         HAVE_SECURE_GETENV.
8107         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
8108         __secure_getenv to __libc_secure_getenv.
8109         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
8110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8111         Likewise.
8112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8113         Likewise.
8114         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
8115         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
8116         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8117         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
8118         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
8119         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8120         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
8122 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
8124         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
8125         (struct La_i86_retval): Likewise.
8126         (struct La_x86_64_regs): Likewise.
8127         (struct La_x86_64_retval): Likewise.
8128         (struct La_x32_regs): Likewise.
8129         (struct La_x32_retval): Likewise.
8130         (struct La_ppc32_regs): Likewise.
8131         (struct La_ppc32_retval): Likewise.
8132         (struct La_ppc64_regs): Likewise.
8133         (struct La_ppc64_retval): Likewise.
8134         (struct La_sh_regs): Likewise.
8135         (struct La_sh_retval): Likewise.
8136         (struct La_s390_32_regs): Likewise.
8137         (struct La_s390_32_retval): Likewise.
8138         (struct La_s390_64_regs): Likewise.
8139         (struct La_s390_64_retval): Likewise.
8140         (struct La_sparc32_regs): Likewise.
8141         (struct La_sparc32_retval): Likewise.
8142         (struct La_sparc64_regs): Likewise.
8143         (struct La_sparc64_retval): Likewise.
8144         (struct audit_ifaces): Remove architecture-specific pltenter and
8145         pltexit members.
8146         * sysdeps/i386/ldsodefs.h: New file.
8147         * sysdeps/powerpc/ldsodefs.h: Likewise.
8148         * sysdeps/s390/ldsodefs.h: Likewise.
8149         * sysdeps/sh/ldsodefs.h: Likewise.
8150         * sysdeps/sparc/ldsodefs.h: Likewise.
8151         * sysdeps/x86_64/ldsodefs.h: Likewise.
8153 2012-07-25  Marek Polacek  <polacek@redhat.com>
8155         [BZ #6808]
8156         * math/libm-test.inc (yn_test): Add another test.
8157         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
8158         to ERANGE when the result is +-Inf.
8159         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
8160         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
8161         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
8162         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
8164 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
8166         * conform/data/time.h-data (NULL): Use macro-constant.  Require
8167         equal to 0.
8168         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
8169         clock_t.
8170         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
8172 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
8174         * configure.in <sysdeps resolving>: Correct printing
8175         Implies_before.
8176         * configure: Regenerate.
8178 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
8180         * math/w_ilogb.c: Include <limits.h>.
8181         * math/w_ilogbl.c: Likewise.
8183 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
8185         * manual/lang.texi (__va_copy): Document primarily as ISO C99
8186         va_copy.  Document allowing for unavailable va_copy only as
8187         pre-C99 compatibility.
8188         * manual/string.texi (Copying and Concatenation): Use va_copy
8189         instead of __va_copy in concat example.
8191 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
8193         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
8194         (__sendto): Use create_address_port.  Initialize APORT and deallocate
8195         it if not null.
8197         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
8198         with O_NOLINK passed to __file_name_lookup.
8200         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
8201         with O_NOLINK passed to __file_name_lookup.
8203         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
8204         negative N or less than NGIDS.
8206         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
8207         type to string_t.  Set ERANGE as errno and return it if NAME is not big
8208         enough.  Use memcpy instead of strncpy.
8210 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
8212         * elf/Makefile (check-data): Remove.
8213         (localplt.data): New vpath directive.
8214         ($(objpfx)check-localplt.out): Use localplt.data from vpath
8215         instead of $(check-data).
8216         * scripts/data/localplt-generic.data: Move to ...
8217         * sysdeps/generic/localplt.data: ... here.
8218         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
8219         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
8220         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
8221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
8222         ... here.
8223         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
8224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
8225         ... here.
8226         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
8227         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
8228         ... here.
8229         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
8230         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
8231         ... here.
8232         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
8233         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
8234         ... here.
8235         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
8236         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
8237         ... here.
8239 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8241         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
8242         PPC32 and PPC64 files.
8243         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
8244         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
8246 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8248         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
8249         __makecontext_ret to ...
8250         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
8251         ... here and call exit if uc_link is NULL.  New file.
8252         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
8253         __makecontext_ret.S.
8254         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
8255         __makecontext_ret to ...
8256         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
8257         ... here and call exit if uc_link is NULL.  New file.
8258         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
8259         __makecontext_ret.S.
8261 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8263         * elf/elf.h (R_390_IRELATIVE): New definition.
8264         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
8265         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
8266         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
8267         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
8268         (elf_machine_lazy_rel): Likewise.
8269         * sysdeps/s390/dl-irel.h: New file.
8270         * sysdeps/s390/s390-64/memcpy.S: New asm code.
8271         * sysdeps/s390/s390-64/memset.S: New asm code.
8272         * sysdeps/s390/s390-64/memcmp.S: New asm code.
8273         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
8274         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
8275         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
8276         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
8277         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
8278         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
8279         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
8280         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
8281         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
8282         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
8283         * sysdeps/s390/s390-32/memcpy.S: New asm code.
8284         * sysdeps/s390/s390-32/memset.S: New asm code.
8285         * sysdeps/s390/s390-32/memcmp.S: New asm code.
8287 2012-07-17  Marek Polacek  <polacek@redhat.com>
8289         [BZ #14349]
8290         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
8291         * sysdeps/s390/s390-64/configure.in: Likewise.
8292         * sysdeps/sparc/configure.in: Likewise.
8293         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
8294         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
8295         * sysdeps/i386/configure.in: Likewise.
8296         * sysdeps/x86_64/configure.in: Likewise.
8297         * sysdeps/sh/configure.in: Likewise.
8298         * sysdeps/s390/s390-32/configure: Regenerated.
8299         * sysdeps/s390/s390-64/configure: Likewise.
8300         * sysdeps/x86_64/configure: Likewise.
8301         * sysdeps/sh/configure: Likewise.
8302         * sysdeps/powerpc/powerpc64/configure: Likewise.
8303         * sysdeps/powerpc/powerpc32/configure: Likewise.
8304         * sysdeps/sparc/configure: Likwise.
8305         * sysdeps/i386/configure: Likewise.
8307         * elf/dl-open.c: Comment fixes.
8309 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
8311         * Makefile [CXX] (check-data): Remove.
8312         [CXX] (c++-types.data): New vpath directive.
8313         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
8314         vpath.  Do not allow for C++ type data being missing.
8315         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
8316         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
8317         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
8318         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
8319         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
8320         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
8321         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
8322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
8323         ... here.
8324         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
8325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
8326         ... here.
8327         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
8328         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
8329         ... here.
8330         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
8331         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
8332         ... here.
8333         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
8334         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
8335         ... here.
8336         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
8337         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
8338         ... here.
8339         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
8340         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
8341         ... here.
8342         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
8343         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
8345         * elf/tls-macros.h (TLS_LE): Move architecture-specific
8346         definitions to architecture-specific files.
8347         (TLS_IE): Likewise.
8348         (TLS_LD): Likewise.
8349         (TLS_GD): Likewise.
8350         * sysdeps/i386/tls-macros.h: New file.
8351         * sysdeps/powerpc/tls-macros.h: Likewise.
8352         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
8353         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
8354         * sysdeps/sh/tls-macros.h: Likewise.
8355         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
8356         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
8357         * sysdeps/x86_64/tls-macros.h: Likewise.
8359 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
8361         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
8362         zero value for regular exit case.
8364         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
8365         (__start_context): Preserve zero value for regular exit case.
8367 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
8368             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8370         * manual/setjmp.texi (setcontext): Clarify normal process
8371         termination when uc_link is the null pointer.
8372         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
8373         exit call.
8375 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
8377         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
8378         preprocessor.  Test for each exception mask separately.
8380 2012-07-16  Andreas Jaeger  <aj@suse.de>
8382         * po/ru.po: Update from translation team.
8384 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
8386         * conform/data/string.h-data (NULL): Use macro-constant.  Require
8387         equal to 0.
8388         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
8389         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
8390         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
8391         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
8392         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8394 2012-07-13  Andreas Jaeger  <aj@suse.de>
8396         * po/fr.po: Update from translation team.
8398 2012-07-12  Marek Polacek  <polacek@redhat.com>
8400         [BZ #14173]
8401         * math/libm-test.inc (yn_test): Add test for BZ #14173.
8402         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
8403         loop condition.
8405 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
8407         [BZ #13717]
8408         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8409         Change to 2.4.1 where previously 2.4.0.
8410         * sysdeps/unix/sysv/linux/configure: Regenerated.
8411         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
8412         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
8413         version.
8414         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
8415         (__ASSUME_AT_CLKTCK): Remove.
8416         (__ASSUME_AT_PAGESIZE): Likewise.
8417         (__ASSUME_AT_XID): Likewise.
8418         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
8419         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
8420         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
8421         unconditionally.
8422         (HAVE_AUX_PAGESIZE): Likewise.
8423         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
8424         [__ASSUME_AT_CLKTCK]: Make code unconditional.
8425         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
8427 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
8429         [BZ #14307]
8430         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
8431         the temporary buffer used to invoke __gethostbyname2_r,
8432         __gethostbyaddr_r and gethostbyname4_r to make room for struct
8433         host_data / struct gaih_addrtuple.
8434         * resolv/nss_dns/dns-host.c (global scope): Move definition of
8435         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
8436         header file nss/nsswitch.h.
8437         * nss/nsswitch.h (global scope): Add definition of implementation
8438         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
8439         resolv/nss_dns/dns-host.c).
8441 2012-07-11  Andreas Jaeger  <aj@suse.de>
8443         * po/fr.po: Update from translation team.
8445         * po/sv.po: Update from translation team
8446         * po/fr.po: Another update from translation team.
8448 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8450         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
8451         for subnormals or multiply small sinh result by itself.
8452         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
8453         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8455 2012-07-11  David S. Miller  <davem@davemloft.net>
8457         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8459 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
8461         [BZ #14347]
8462         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
8463         (INTERNAL_MARK): Shift it here.
8465 2012-07-10  Marek Polacek  <polacek@redhat.com>
8467         [BZ #14151]
8468         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
8469         libc_cv_asm_global_directive with .globl.
8470         * configure: Regenerated.
8471         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
8472         with .globl.
8473         * sysdeps/i386/configure: Regenerated.
8474         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
8475         with .globl.
8476         * sysdeps/x86_64/configure: Regenerated.
8477         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
8478         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
8479         * elf/tst-unique2mod2.c: Likewise.
8480         * elf/tst-unique2mod1.c: Likewise.
8481         * elf/tst-unique1mod2.c: Likewise.
8482         * elf/tst-unique1mod1.c: Likewise.
8483         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8484         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
8485         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8486         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
8487         * sysdeps/mach/sysdep.h: Likewise.
8488         * sysdeps/i386/sysdep.h: Likewise.
8489         * sysdeps/i386/i386-mcount.S: Likewise.
8490         * sysdeps/x86_64/_mcount.S: Likewise.
8491         * sysdeps/x86_64/sysdep.h: Likewise.
8492         * sysdeps/sh/_mcount.S: Likewise.
8493         * sysdeps/sh/sysdep.h: Likewise.
8494         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
8495         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
8496         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
8497         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8498         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
8499         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
8500         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
8501         * locale/localeinfo.h: Likewise.
8502         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
8503         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
8505 2012-07-09  Roland McGrath  <roland@hack.frob.com>
8507         [BZ #14336]
8508         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
8509         system".
8510         * manual/message.texi (The Uniforum approach): Likewise.
8511         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
8512         (glibc iconv Implementation): Likewise.
8514 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
8516         [BZ #14337]
8517         * math/s_clog.c (__clog): Avoid scaling a value down where that
8518         could result in underflow.
8519         * math/s_clog10.c (__clog10): Likewise.
8520         * math/s_clog10f.c (__clog10f): Likewise.
8521         * math/s_clog10l.c (__clog10l): Likewise.
8522         * math/s_clogf.c (__clogf): Likewise.
8523         * math/s_clogl.c (__clogl): Likewise.
8524         * math/libm-test.inc (clog_test): Add more tests.
8525         (clog10_test): Likewise.
8526         * sysdeps/i386/fpu/libm-test-ulps: Update.
8527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8529 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
8531         [BZ #14283]
8532         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
8533         by 7 not 8 to examine high bit of fractional part.
8535         [BZ #14042]
8536         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
8537         for call to __mcount_internal.
8538         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
8539         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
8540         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
8542 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
8544         [BZ #14154]
8545         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
8546         approximation for values within 0x1p-13f of an odd multiple of
8547         pi/4.
8548         * math/libm-test.inc (tan_test): Do not allow spurious underflow
8549         exception.  Add more tests.
8550         * sysdeps/i386/fpu/libm-test-ulps: Update.
8552         [BZ #6778]
8553         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
8554         inputs and return -1 for them.  Do not check for +Inf in case not
8555         reachable for +Inf.
8556         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
8557         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
8558         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
8559         and return -1 for them.  Do not check for +Inf in case not
8560         reachable for +Inf.
8561         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
8562         define.
8563         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
8564         and return -1 for them.  Do not check for +Inf in case not
8565         reachable for +Inf.
8566         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
8567         spurious underflow.
8568         * sysdeps/i386/fpu/libm-test-ulps: Update.
8569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8571 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
8573         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
8575 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
8577         [BZ #14157]
8578         [BZ #14331]
8579         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
8580         could result in spurious underflow.  Scale down values above
8581         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
8582         * math/s_csqrtf.c (__csqrtf): Likewise.
8583         * math/s_csqrtl.c (__csqrtl): Likewise.
8584         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
8585         spurious underflow.
8586         * sysdeps/i386/fpu/libm-test-ulps: Update.
8587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8589 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
8591         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
8592         xopen-msg.sed.
8593         * catgets/xopen-msg.awk: New file.
8594         * catgets/xopen-msg.sed: Removed.
8596         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
8597         po2text.sed.
8598         * intl/po2test.awk: New file.
8599         * intl/po2test.sed: Removed.
8601 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
8603         [BZ #14328]
8604         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
8605         or multiply small sinh result by itself.
8606         * math/s_ctanf.c (__ctanf): Likewise.
8607         * math/s_ctanh.c (__ctanh): Likewise.
8608         * math/s_ctanhf.c (__ctanhf): Likewise.
8609         * math/s_ctanhl.c (__ctanhl): Likewise.
8610         * math/s_ctanl.c (__ctanl): Likewise.
8611         * math/libm-test.inc (ctan_test_tonearest): New function.
8612         (ctan_test_towardzero): Likewise.
8613         (ctan_test_downward): Likewise.
8614         (ctan_test_upward): Likewise.
8615         (ctanh_test_tonearest): Likewise.
8616         (ctanh_test_towardzero): Likewise.
8617         (ctanh_test_downward): Likewise.
8618         (ctanh_test_upward): Likewise.
8619         (main): Call these new functions.
8620         * sysdeps/i386/fpu/libm-test-ulps: Update.
8621         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8623 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
8625         * .gitignore: Delete /ports entry.
8627 2012-07-03  Andreas Jaeger  <aj@suse.de>
8629         * po/bg.po: Update from translation team.
8630         * po/cs.po: Likewise.
8631         * po/de.po: Likewise.
8632         * po/hr.po: Likewise.
8633         * po/nl.pl: Likewise.
8634         * po/pl.po: Likewise.
8635         * po/vi.po: Likewise.
8637 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
8639         * Makeconfig [!+link] (+link-before-libc): New variable.
8640         [!+link] (+link-after-libc): Likewise.
8641         [!+link] (+link-tests): Likewise.
8642         [!+link] (+link): Define in terms of $(+link-before-libc) and
8643         $(+link-after-libc).
8644         [!+link-static] (+link-static-before-libc): New variable.
8645         [!+link-static] (+link-static-after-libc): Likewise.
8646         [!+link-static] (+link-static-tests): Likewise.
8647         [!+link-static] (+link-static): Define in terms of
8648         $(+link-static-before-libc) and $(+link-static-after-libc).
8649         [build-shared] (link-libc-before-gnulib): New variable.
8650         [build-shared] (link-libc-tests): Likewise.
8651         [build-shared] (link-libc): Define in terms of
8652         $(link-libc-before-gnulib).
8653         [!build-shared] (link-libc-tests): New variable.
8654         (link-libc-static-tests): New variable.
8655         [!gnulib] (gnulib-arch): New variable.
8656         [!gnulib] (gnulib-tests): Likewise.
8657         [!gnulib] (static-gnulib-arch): Likewise.
8658         [!gnulib] (static-gnulib-tests): Likewise.
8659         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
8660         Define with "=" instead of ":=".
8661         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
8662         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
8663         * Rules (binaries-all-notests): New variable.
8664         (binaries-all-tests): Likewise.
8665         (binaries-static-notests): Likewise.
8666         (binaries-static-tests): Likewise.
8667         (binaries-all): Define using $(binaries-all-notests) and
8668         $(binaries-all-tests).
8669         (binaries-static): Define using $(binaries-static-notests) and
8670         $(binaries-static-tests).
8671         (binaries-shared-tests): New variable.
8672         (binaries-shared-notests): Likewise.
8673         (binaries-shared): Remove variable.
8674         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
8675         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
8676         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
8677         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
8678         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
8679         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
8680         * elf/Makefile (sln-modules): New variable.
8681         (extra-objs): Add $(sln-modules:=.o).
8682         (ldconfig-modules): Add static-stubs.
8683         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
8684         * elf/static-stubs.c: New file.
8686         [BZ #14283]
8687         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
8688         by 7 not 8 to examine high bit of fractional part.  Use volatile
8689         variables when splitting into final array of floats if
8690         __FLT_EVAL_METHOD__ != 0.
8691         * math/libm-test.inc (cos_test): Add another test.
8692         (sin_test): Likewise.
8693         * sysdeps/i386/fpu/libm-test-ulps: Update.
8695         [BZ #14273]
8696         * math/libm-test.inc (cosh_test): Add more tests.
8698         * version.h (RELEASE): Set to "development".
8699         (VERSION): Set to "2.16.90".
8701 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
8703         * NEWS: Update copyright. Remove last-updated date.
8704         Mention math library bug fixes and timezone data changes.
8705         * README: Mention GNU/Hurd, x32, and HPPA support status.
8707 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
8709         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
8711 2012-06-27  Andreas Jaeger  <aj@suse.de>
8713         * manual/contrib.texi (Contributors): Add Samuel Thibault.
8715 2012-06-25  Andreas Jaeger  <aj@suse.de>
8717         * sysdeps/s390/fpu/libm-test-ulps: Update.
8719 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
8720             Thomas Schwinge  <thomas@codesourcery.com>
8722         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
8723         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
8724         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
8725         fanotify_mark.
8727 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
8729         * sysdeps/mach/start.c: Remove file.
8730         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
8731         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
8732         * sysdeps/sh/init-first.c: Likewise.
8734         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
8735         registers for frame unwinding purposes, add CFI directives.
8736         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
8737         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
8738         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
8739         Likewise.
8741         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
8742         __fortify_fail returning.
8743         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
8745         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
8746         sysdeps/sh/____longjmp_chk.S.
8747         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
8748         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
8749         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
8750         (gen-as-const-headers): Append sigaltstack-offsets.sym.
8752         * sysdeps/sh/abort-instr.h: New file.
8753         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
8754         process in case exit returns.
8756         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
8757         initialize the GOT register before use.
8759         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
8760         calculation of ARGC > 4.
8762         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
8763         meaningful names to some local labels.
8765 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8766             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8768         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
8769         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
8770         (__arch_compare_and_exchange_val_16_acq): Likewise.
8771         (__arch_compare_and_exchange_val_32_acq): Likewise.
8772         (atomic_exchange_and_add): Fix gUSA sequence.
8773         (atomic_add): Likewise.
8774         (atomic_add_negative): Likewise.
8775         (atomic_add_zero): Likewise.
8776         (atomic_bit_test_set): Likewise.
8778 2012-06-22  Andreas Schwab  <schwab@redhat.com>
8780         [BZ #13579]
8781         * include/link.h (struct link_map): Add l_free_initfini.
8782         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
8783         l_initfini.
8784         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
8785         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
8786         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
8787         set.
8789 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
8791         * configure.in: Use AC_LANG_SOURCE.
8792         * configure: Regenerate.
8794 2012-06-22  Roland McGrath  <roland@hack.frob.com>
8796         * configure.in (libc_cv_localstatedir): New substituted variable.
8797         * configure: Regenerated.
8798         * config.make.in (localstatedir): New variable, substituted from
8799         libc_cv_localstatedir.
8800         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
8801         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
8802         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
8803         * sysdeps/gnu/configure: Regenerated.
8805 2012-06-21  Jeff Law  <law@redhat.com>
8807         [BZ #14277]
8808         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
8809         free.  Simplify list management for _LIBC case.
8811 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
8813         [BZ #14273]
8814         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
8815         Clear sign bit of 64-bit integer value before comparing against
8816         overflow value.
8818         * sysdeps/mach/configure: Regenerated.
8820 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8822         [BZ #14278]
8823         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
8825 2012-06-21  Jeff Law  <law@redhat.com>
8827         [BZ #13882]
8828         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
8829         uint16_t for elements in the "seen" array to avoid char overflows.
8830         * elf/dl-fini.c (_dl_sort_fini): Likewise.
8831         * elf/dl-open.c (dl_open_worker): Likewise.
8833 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
8835         * scripts/list-sources.sh: Scan PORTS for translations.
8836         * po/libc.pot: Regenerated.
8838 2012-06-21  Andreas Jaeger  <aj@suse.de>
8840         [BZ #12194]
8841         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
8842         warning.
8843         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
8844         * bits/byteswap-16.h (__bswap_16): Likewise.
8845         * bits/byteswap.h (__bswap_constant_16): Likewise.
8847 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8849         [BZ #14117]
8850         * sysdeps/i386/fpu_control.h: Removed.
8851         * sysdeps/x86_64/fpu_control.h: Moved to ...
8852         * sysdeps/x86/fpu_control.h: Here.
8854         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
8855         (_FPU_SETCW): Likewise.
8857 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
8859         [BZ #14117]
8860         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
8861         * sysdeps/x86/fpu/bits/mathinline.h: This.
8862         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
8864         [BZ #14050]
8865         [BZ #14117]
8866         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
8867         functions if __x86_64__ is defined.
8869 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
8871         * string/endian.h: Add !__ASSEMBLER__ condition for including
8872         conversion interfaces.
8874 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
8876         [BZ #14241]
8877         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
8878         of ABS(x) in calculating zero to negative powers other than odd
8879         integers.
8880         * math/libm-test.inc (pow_test): Add more tests.
8882 2012-06-15  Andreas Jaeger  <aj@suse.de>
8884         * manual/contrib.texi (Contributors): Update entry of Liubov
8885         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
8886         Machado Filho.
8888 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
8890         * string/string.h: Add __wur to GNU version of strerror_r.
8892 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
8894         [BZ #14229]
8895         * string/Makefile (tests): Add tst-strtok_r.
8896         * string/tst-strtok_r.c: New file.
8897         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
8898         RAX_LP/RDX_LP on SAVE_PTR.
8900 2012-06-14  Roland McGrath  <roland@hack.frob.com>
8902         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
8904 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
8906         * libm_test.inc (csqrt_test): Allow more spurious underflow
8907         exceptions.
8908         (j0_test): Likewise.
8909         (j1_test): Likewise.
8910         (y0_test): Likewise.
8911         (y1_test): Likewise.
8913 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
8915         * po/Makefile (libc.pot): Use UTF-8 charset.
8917 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
8919         [BZ #14210]
8920         Suppress sign-conversion warning from FD_SET.
8921         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
8922         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
8923         not unsigned long int.
8924         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
8926 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
8928         [BZ #14050]
8929         [BZ #14117]
8930         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
8931         __extern_always_inline instead of __extern_inline.
8932         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
8933         (__signbit): Likewise.
8934         (__signbitl): Support C++ namespace.
8935         (lrintf): New inline function.
8936         (lrint): Likewise.
8937         (llrintf): Likewise.
8938         (llrint): Likewise.
8939         (fmaxf): Likewise.
8940         (fmax): Likewise.
8941         (fminf): Likewise.
8942         (fmin): Likewise.
8943         (rint): Likewise.
8944         (rintf): Likewise.
8945         (ceil): Likewise.
8946         (ceilf): Likewise.
8947         (floor): Likewise.
8948         (floorf): Likewise.
8949         (nearbyint): Likewise.
8950         (nearbyintf): Likewise.
8952 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
8954         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
8955         non-default versions.
8957 2012-06-11  Roland McGrath  <roland@hack.frob.com>
8959         [BZ #14218]
8960         * manual/argp.texi (Argp): Reword argp_parse description slightly.
8962 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
8964         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
8965         (FE_UPWARD, FE_DOWNWARD): Don't define.
8966         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
8967         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
8969         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
8970         reading it.
8971         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
8972         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
8974 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8976         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8977         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
8978         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
8979         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
8981 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
8983         [BZ #14117]
8984         * sysdeps/i386/fpu/bits/fenv.h: Removed.
8985         * sysdeps/i386/fpu/Implies: New file.
8986         * sysdeps/x86_64/fpu/Implies: Likewise.
8987         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
8988         * sysdeps/x86/fpu/bits/fenv.h: This.
8990         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
8991         __SSE_MATH__.
8993 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8995         [BZ #14134]
8996         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
8997         character 0xffff that matches the last element of the
8998         conversion table.
9000 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9002         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
9003         fmodl commit.
9005 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9007         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
9008         values higher than 25.6283.
9010 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9012         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
9013         subnormal exponent extraction and add some __builtin_expect.
9014         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
9015         Fix for subnormal mantissa calculation.
9017 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
9019         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
9020         cpu2 is -1 and errno is not ENOSYS.
9022 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
9024         [BZ #14117]
9025         * sysdeps/i386/i486/bits/string.h: Renamed to ...
9026         * sysdeps/x86/bits/string.h: This.
9027         * sysdeps/x86_64/bits/string.h: Removed.
9029         * sysdeps/i386/i486/bits/string.h: Define inline functions only
9030         if not compiling for x86-64, but compiling for >= i486.
9032         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
9033         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
9035         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
9036         New macro from Linux kernel 3.4.0.
9037         (FP_XSTATE_MAGIC2): Likewise.
9038         (FP_XSTATE_MAGIC2_SIZE): Likewise.
9039         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
9040         (struct _fpx_sw_bytes): New struct.
9041         (struct _xsave_hdr): Likewise.
9042         (struct _ymmh_state): Likewise.
9043         (struct _xstate): Likewise.
9045         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
9046         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
9047         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
9048         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
9049         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
9050         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
9052         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
9053         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
9054         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
9055         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
9056         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
9057         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
9059 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9061         [BZ #13743]
9062         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
9063         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
9064         (sysdep_headers): Include sys/platform/ppc.h.
9065         * sysdeps/powerpc/test-gettimebase.c: Test for
9066         __ppc_get_timebase() to catch future ISA opcode/insn changes.
9067         * manual/Makefile (appendices): Include platform.texi.
9068         * manual/contrib.texi (Contributors): Update @node pointers.
9069         * manual/maint.texi (Maintenance): Likewise.
9070         (Platform): New node.
9071         * manual/platform.texi: New file.  Document the new features.
9073 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
9074             Jakub Jelinek  <jakub@redhat.com>
9076         [BZ #14188]
9077         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
9078         where __builtin_expect is unavailable.
9080 2012-06-03  David S. Miller  <davem@davemloft.net>
9082         * stdlib/longlong.h: Updated from GCC.
9084 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
9086         [BZ #14042]
9087         * sysdeps/powerpc/powerpc32/mcount.c: New file.
9088         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
9089         __mcount_internal.
9090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
9091         (GLIBC_2.16): Likewise.
9093 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
9095         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
9097 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
9099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
9100         (default-abi): New variable.
9101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
9102         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
9103         variable.
9104         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
9105         Likewise.
9106         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
9107         Likewise.
9108         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
9109         Likewise.
9111         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
9112         definition.  Document in comment.
9114 2012-06-01  David S. Miller  <davem@davemloft.net>
9116         * stdlib/longlong.h: Updated from GCC.
9118 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
9120         [BZ #14117]
9121         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
9122         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
9123         sys/debugreg.h sys/io.h here.
9124         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
9125         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
9126         sys/io.h.
9127         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
9128         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
9129         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
9130         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
9131         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
9132         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
9134         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
9135         Define only if __x86_64__ is defined.
9137 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
9139         [BZ #14048]
9140         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
9141         Use int64_t for variable i.
9142         * math/libm-test.inc (fmod_test): Add more tests.
9144         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
9145         z computation is not scheduled after fetestexcept.
9146         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
9147         Use math_force_eval instead of asm to ensure calculation scheduled
9148         before exception test.
9149         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
9150         Ensure a1 + u.d computation is not scheduled after fetestexcept.
9152 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
9154         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
9155         computation is not scheduled after fetestexcept.
9157 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
9159         [BZ #14117]
9160         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
9161         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
9163 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9165         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
9166         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9168 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
9170         [BZ #14117]
9171         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
9172         <bits/wordsize.h>.
9173         (__WCHAR_MIN): Support __WORDSIZE == 64.
9174         (__WCHAR_MAX): Likewise.
9176         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
9177         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
9179         [BZ #14183]
9180         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
9181         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
9183         [BZ #14117]
9184         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
9185         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
9187         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
9188         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
9190         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
9191         Defined to 1 if __x86_64__ isn't defined.
9192         (_STAT_VER_LINUX_OLD): New.
9193         (st_atime): Remove duplicate.
9194         (st_mtime): Likewise.
9195         (st_ctime): Likewise.
9197 2012-05-31  David S. Miller  <davem@davemloft.net>
9199         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
9200         entries.
9202 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
9204         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
9205         gen-libm-test.pl.
9207         [BZ #14132]
9208         * elf/dl-reloc.c: Include <_itoa.h>.
9209         (_dl_reloc_bad_type): Remove use of INTUSE.
9210         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
9211         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
9212         * stdio-common/psiginfo.c (psiginfo): Likewise.
9213         * stdio-common/psignal.c (psignal): Likewise.
9214         * string/strsignal.c (strsignal): Likewise.
9215         * include/signal.h (_sys_siglist): Declare hidden proto.
9216         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
9217         INTVARDEF with libc_hidden_data_def.
9218         * stdio-common/itoa-udigits.c: Likewise.
9219         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
9220         (_itoa_lower_digits_internal): Remove declaration.
9221         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
9222         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
9223         (_sys_sigabbrev_internal): Remove aliases.
9224         (_sys_siglist): Define hidden alias.
9226 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
9228         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9229         bits/sysctl.h.
9231 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
9233         [BZ #14117]
9234         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
9235         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
9237         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
9238         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
9239         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
9240         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
9241         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
9242         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
9244         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
9245         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
9246         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
9248         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
9249         with __addr.
9250         (insw): Likewise.
9251         (insl): Likewise.
9252         (outsb): Likewise.
9253         (outsw): Likewise.
9254         (outsl): Likewise.
9256         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
9257         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
9258         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
9260         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
9261         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
9262         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
9263         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
9264         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
9265         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
9267         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
9268         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
9270         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
9271         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
9273         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
9274         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
9275         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
9277         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
9278         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
9279         to ...
9280         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
9282         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
9283         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
9284         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
9286         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
9287         for x86-64.
9288         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
9290 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
9292         * math/math.h (M_El): Use two more decimal places.
9293         (M_LOG2El): Likewise.
9294         (M_LOG10El): Likewise.
9295         (M_LN2l): Likewise.
9296         (M_LN10l): Likewise.
9297         (M_PIl): Likewise.
9298         (M_PI_2l): Likewise.
9299         (M_PI_4l): Likewise.
9300         (M_1_PIl): Likewise.
9301         (M_2_PIl): Likewise.
9302         (M_2_SQRTPIl): Likewise.
9303         (M_SQRT2l): Likewise.
9304         (M_SQRT1_2l): Likewise.
9306 2012-05-31  David S. Miller  <davem@davemloft.net>
9308         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
9309         values between float registers.
9310         * sysdeps/sparc/sparc64/memset.S: Likewise.
9311         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9313 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
9315         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
9316         -D_FORTIFY_SOURCE=1.
9317         (CPPFLAGS-tst-longjmp_chk.c): Define.
9318         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
9319         (CPPFLAGS-tst-longjmp_chk2.c): Define.
9320         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
9321         CFLAGS-tst-wchar-h.c.
9323 2012-05-31  Marek Polacek  <polacek@redhat.com>
9325         [BZ #14132]
9326         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
9327         __endmntent_internal): Remove declaration.
9328         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
9329         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
9330         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
9332 2012-05-30  David S. Miller  <davem@davemloft.net>
9334         * sysdeps/sparc/sparc32/soft-fp/q_util.c
9335         (___Q_simulate_exceptions): Use real FP ops rather than writing
9336         into the %fsr.
9337         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
9338         Likewise.
9340 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
9342         [BZ #14117]
9343         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
9344         * sysdeps/x86/bits/xtitypes.h: This.
9346         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
9347         * sysdeps/x86/bits/wordsize.h: This.
9349         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
9350         * sysdeps/x86/bits/huge_vall.h: This.
9352         * sysdeps/i386/bits/select.h: Removed.
9353         * sysdeps/x86_64/bits/select.h: Renamed to ...
9354         * sysdeps/x86/bits/select.h: This.
9356         * sysdeps/i386/bits/setjmp.h: Removed.
9357         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
9358         * sysdeps/x86/bits/setjmp.h: This.
9360         * sysdeps/i386/bits/mathdef.h: Removed.
9361         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
9362         * sysdeps/x86/bits/mathdef.h: This.
9364 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
9366         [BZ #14132]
9367         * include/sys/socket.h (__connect_internal)
9368         (__libc_sa_len_internal): Remove declaration.
9369         (__connect, __libc_sa_len): Declare hidden_proto.
9370         (SA_LEN): Remove use of INTUSE.
9371         * socket/connect.c: Add libc_hidden_def.
9372         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
9373         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
9374         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
9375         alias.
9376         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9377         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9378         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
9379         of adding _internal alias.
9381 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
9383         [BZ #14117]
9384         * sysdeps/i386/bits/link.h: Removed.
9385         * sysdeps/i386/bits/linkmap.h: Likewise.
9386         * sysdeps/x86_64/bits/link.h: Renamed to ...
9387         * sysdeps/x86/bits/link.h: This.
9388         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
9389         * sysdeps/x86/bits/linkmap.h: This.
9391         * sysdeps/i386/bits/endian.h: Removed.
9392         * sysdeps/x86_64/bits/endian.h: Renamed to ...
9393         * sysdeps/x86/bits/endian.h: This.
9395         * sysdeps/i386/bits/byteswap.h: Removed.
9396         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9397         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
9398         * sysdeps/x86/bits/byteswap.h: This.
9399         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
9400         * sysdeps/x86/bits/byteswap-16.h: This.
9401         * sysdeps/i386/Implies: Add x86.
9402         * sysdeps/x86_64/Implies: Likewise.
9404 2012-05-30  David S. Miller  <davem@davemloft.net>
9406         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
9407         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
9408         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
9409         (FP_TRAPPING_EXCEPTIONS): Define.
9410         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
9411         (FP_TRAPPING_EXCEPTIONS): Define.
9412         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
9413         subnormals only when inexact has been signalled or underflow
9414         exceptions are enabled.
9415         (_FP_PACK_CANONICAL): Likewise.
9417 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
9419         [BZ #14183]
9420         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
9421         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
9423 2012-05-30  Richard Henderson  <rth@twiddle.net>
9425         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
9426         with #ifndef NOT_IN_libc.
9428         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
9429         marked to avoid plt entry.
9431 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
9433         [BZ #14112]
9434         * Makeconfig (default-abi): New macro.
9435         (abi-includes): Likewise.
9436         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
9437         $(abi-$(default-abi)-lib-soname) for soname if defined.
9438         ($(common-objpfx)gnu/lib-names.stmp): Generate from
9439         abi-variants.
9440         * Makefile (installed-stubs): Likewise.
9441         * include/stubs-biarch.h: Removed.
9442         * scripts/lib-names.awk: Only handle one library at a time.
9443         * scripts/soversions.awk: Remove WORDSIZE support.
9444         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
9445         entries.
9446         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
9447         Removed.
9448         (syscall-list-default-condition): Likewise.
9449         (syscall-list-default-condition): Likewise.
9450         (syscall-list-includes): Likewise.
9451         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
9452         syscall-list-* with abi-*.  Handle undefined abi-variants.
9453         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
9454         * sysdeps/unix/sysv/linux/i386/Implies: New file.
9455         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
9456         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
9457         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
9458         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
9459         Removed.
9460         (syscall-list-32-options): Likewise.
9461         (syscall-list-32-condition): Likewise.
9462         (syscall-list-64-options): Likewise.
9463         (syscall-list-64-condition): Likewise.
9464         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
9465         macro.
9466         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
9467         Renamed to ...
9468         (abi-*): This.
9469         (abi-64-ld-soname): New macro.
9470         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
9471         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
9472         Renamed to ...
9473         (abi-*): This.
9474         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
9475         * sysdeps/x86_64/x32/shlib-versions: Likewise.
9477 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
9479         * sysdeps/unix/sysv/linux/kernel-features.h
9480         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
9481         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
9482         include <kernel-features.h>.
9483         [!__NR_ftruncate64]: Remove conditional code.
9484         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9485         [__NR_ftruncate64]: Make code unconditional.
9486         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9487         * sysdeps/unix/sysv/linux/truncate64.c: Do not
9488         include <kernel-features.h>.
9489         [!__NR_ftruncate64]: Remove conditional code.
9490         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9491         [__NR_ftruncate64]: Make code unconditional.
9492         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
9494         include <kernel-features.h>.
9495         [!__NR_ftruncate64]: Remove conditional code.
9496         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9497         [__NR_ftruncate64]: Make code unconditional.
9498         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
9500         include <kernel-features.h>.
9501         [!__NR_ftruncate64]: Remove conditional code.
9502         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9503         [__NR_ftruncate64]: Make code unconditional.
9504         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9506         * configure.in (libc_cv_fpie): Weaken to a compile test using
9507         LIBC_TRY_CC_OPTION.
9508         * configure: Regenerated.
9510 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9512         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
9513         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
9514         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
9515         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9516         Refreshed.
9517         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
9518         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
9519         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
9520         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
9521         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
9522         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9523         Refreshed.
9525 2012-05-27  David S. Miller  <davem@davemloft.net>
9527         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
9528         (___Q_zero): New.
9529         (__Q_simulate_exceptions): Return void.  Change to simulate
9530         exceptions by writing into the %fsr.
9531         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
9532         (__Qp_handle_exceptions): Likewise.
9533         (numbers): Delete.
9534         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
9535         __Qp_handle_exceptions.
9536         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
9537         __Qp_handle_exceptions.
9538         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
9539         as unused and give dummy FP_RND_NEAREST initializer.
9540         (FP_INHIBIT_RESULTS): Define.
9541         (___Q_simulate_exceptions): Update declaration.
9542         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
9543         formatting.
9544         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
9545         as unused and give dummy FP_RND_NEAREST initializer.
9546         (__Qp_handle_exceptions): Update declaration.
9547         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
9548         formatting.
9550 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
9552         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
9553         the temporary FPU control word.
9554         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9555         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
9556         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
9557         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
9558         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
9559         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
9560         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
9561         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
9562         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
9563         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
9564         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
9566 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9568         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
9569         fields.
9571 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
9573         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
9574         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
9575         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
9576         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
9577         Likewise.
9578         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
9579         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
9580         Likewise.
9582 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
9584         * po/h.po: Update from translation team.
9586 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
9588         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
9590         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
9591         handling of denormals.
9592         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
9593         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
9594         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
9595         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
9596         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
9597         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
9598         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
9599         Likewise.
9601 2012-05-26  Marek Polacek  <polacek@redhat.com>
9603         [BZ #14152]
9604         * math/libm-test.inc (fma_test): Don't always expect underflow
9605         exception.
9607 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9609         [BZ #12416]
9610         * elf/tst-execstack.c: Include stackinfo.h.
9611         (do_test): Adjust test case to ensure that pthread_getattr_np
9612         behaviour remains the same after marking stack executable.
9614 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
9616         * sysdeps/unix/sysv/linux/kernel-features.h
9617         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
9618         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
9619         kernel-features.h.
9620         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
9621         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
9622         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
9623         kernel-features.h.
9624         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
9625         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
9627 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
9629         * configure.in: Define the default includes to being none.
9630         * configure: Regenerated.
9632 2012-05-25  Roland McGrath  <roland@hack.frob.com>
9634         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
9635         * sysdeps/x86_64/setjmp.S: Likewise.
9636         * sysdeps/i386/bsd-setjmp.S: Likewise.
9637         * sysdeps/i386/bsd-_setjmp.S: Likewise.
9638         * sysdeps/i386/setjmp.S: Likewise.
9639         * sysdeps/i386/__longjmp.S: Likewise.
9640         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
9641         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
9643         * include/stap-probe.h: New file.
9644         * configure.in: Handle --enable-systemtap.
9645         * configure: Regenerated.
9646         * config.h.in (USE_STAP_PROBE): New #undef.
9647         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
9648         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
9649         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
9651 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
9653         [BZ #13717]
9654         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
9655         to 2.4.0 where earlier.
9656         * sysdeps/unix/sysv/linux/configure: Regenerated.
9657         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
9658         <kernel-features.h>.
9659         [__ASSUME_32BITUIDS]: Make code unconditional.
9660         [!__ASSUME_32BITUIDS]: Remove conditional code.
9661         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
9662         <kernel-features.h>.
9663         [__ASSUME_32BITUIDS]: Make code unconditional.
9664         [!__ASSUME_32BITUIDS]: Remove conditional code.
9665         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
9666         [__ASSUME_32BITUIDS]: Make code unconditional.
9667         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
9668         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
9669         <kernel-features.h>.
9670         [__ASSUME_32BITUIDS]: Make code unconditional.
9671         [!__ASSUME_32BITUIDS]: Remove conditional code.
9672         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
9673         <kernel-features.h>.
9674         [__ASSUME_32BITUIDS]: Make code unconditional.
9675         [!__ASSUME_32BITUIDS]: Remove conditional code.
9676         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
9677         <kernel-features.h>.
9678         [__ASSUME_32BITUIDS]: Make code unconditional.
9679         [!__ASSUME_32BITUIDS]: Remove conditional code.
9680         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
9681         <kernel-features.h>.
9682         [__ASSUME_32BITUIDS]: Make code unconditional.
9683         [!__ASSUME_32BITUIDS]: Remove conditional code.
9684         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
9685         <kernel-features.h>.
9686         [__ASSUME_32BITUIDS]: Make code unconditional.
9687         [!__ASSUME_32BITUIDS]: Remove conditional code.
9688         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
9689         <kernel-features.h>.
9690         [__ASSUME_32BITUIDS]: Make code unconditional.
9691         [!__ASSUME_32BITUIDS]: Remove conditional code.
9692         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
9693         <kernel-features.h>.
9694         [__ASSUME_32BITUIDS]: Make code unconditional.
9695         [!__ASSUME_32BITUIDS]: Remove conditional code.
9696         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
9697         <kernel-features.h>.
9698         [__ASSUME_32BITUIDS]: Make code unconditional.
9699         [!__ASSUME_32BITUIDS]: Remove conditional code.
9700         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
9701         <kernel-features.h>.
9702         [__ASSUME_32BITUIDS]: Make code unconditional.
9703         [!__ASSUME_32BITUIDS]: Remove conditional code.
9704         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
9705         <kernel-features.h>.
9706         [__ASSUME_32BITUIDS]: Make code unconditional.
9707         [!__ASSUME_32BITUIDS]: Remove conditional code.
9708         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
9709         <kernel-features.h>.
9710         [__NR_setresgid] (__setresgid): Do not declare.
9711         [__ASSUME_32BITUIDS]: Make code unconditional.
9712         [!__ASSUME_32BITUIDS]: Remove conditional code.
9713         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
9714         <kernel-features.h>.
9715         [__NR_setresuid] (__setresuid): Do not declare.
9716         [__ASSUME_32BITUIDS]: Make code unconditional.
9717         [!__ASSUME_32BITUIDS]: Remove conditional code.
9718         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
9719         <kernel-features.h>.
9720         [__ASSUME_32BITUIDS]: Make code unconditional.
9721         [!__ASSUME_32BITUIDS]: Remove conditional code.
9722         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
9723         <kernel-features.h>.
9724         [__ASSUME_32BITUIDS]: Make code unconditional.
9725         [!__ASSUME_32BITUIDS]: Remove conditional code.
9726         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
9727         <kernel-features.h>.
9728         [__ASSUME_32BITUIDS]: Make code unconditional.
9729         [!__ASSUME_32BITUIDS]: Remove conditional code.
9730         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
9731         <kernel-features.h>.
9732         [__ASSUME_32BITUIDS]: Make code unconditional.
9733         [!__ASSUME_32BITUIDS]: Remove conditional code.
9734         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
9735         <kernel-features.h>.
9736         [__ASSUME_32BITUIDS]: Make code unconditional.
9737         [!__ASSUME_32BITUIDS]: Remove conditional code.
9738         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
9739         <kernel-features.h>.
9740         [__ASSUME_32BITUIDS]: Make code unconditional.
9741         [!__ASSUME_32BITUIDS]: Remove conditional code.
9742         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
9743         <kernel-features.h>.
9744         [__ASSUME_32BITUIDS]: Make code unconditional.
9745         [!__ASSUME_32BITUIDS]: Remove conditional code.
9746         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
9747         <kernel-features.h>.
9748         [__ASSUME_32BITUIDS]: Make code unconditional.
9749         [!__ASSUME_32BITUIDS]: Remove conditional code.
9750         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
9751         <kernel-features.h>.
9752         [__ASSUME_32BITUIDS]: Make code unconditional.
9753         [!__ASSUME_32BITUIDS]: Remove conditional code.
9754         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
9755         <kernel-features.h>.
9756         [__ASSUME_32BITUIDS]: Make code unconditional.
9757         [!__ASSUME_32BITUIDS]: Remove conditional code.
9758         * sysdeps/unix/sysv/linux/kernel-features.h
9759         (__ASSUME_SETRESUID_SYSCALL): Remove.
9760         (__ASSUME_SETRESGID_SYSCALL): Likewise.
9761         (__ASSUME_32BITUIDS): Likewise.
9762         (__ASSUME_LDT_WORKS): Likewise.
9763         (__ASSUME_O_DIRECTORY): Likewise.
9764         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
9765         architecture but not kernel version.
9766         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
9767         (__ASSUME_MMAP2_SYSCALL): Likewise.
9768         (__ASSUME_STAT64_SYSCALL): Likewise.
9769         (__ASSUME_IPC64): Likewise.
9770         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
9771         <kernel-features.h>.
9772         [__ASSUME_32BITUIDS]: Make code unconditional.
9773         [!__ASSUME_32BITUIDS]: Remove conditional code.
9774         * sysdeps/unix/sysv/linux/opendir.c: Do not include
9775         <kernel-features.h>.
9776         [__ASSUME_O_DIRECTORY]: Make code unconditional.
9777         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
9778         132096]: Remove conditional code.
9779         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
9780         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
9781         <kernel-features.h>.
9782         [__ASSUME_32BITUIDS]: Make code unconditional.
9783         [!__ASSUME_32BITUIDS]: Remove conditional code.
9784         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
9785         <kernel-features.h>.
9786         [__ASSUME_32BITUIDS]: Make code unconditional.
9787         [!__ASSUME_32BITUIDS]: Remove conditional code.
9788         * sysdeps/unix/sysv/linux/setegid.c: Do not include
9789         <kernel-features.h>.
9790         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
9791         unconditional.
9792         (__setresgid): Do not declare.
9793         [__ASSUME_32BITUIDS]: Make code unconditional.
9794         [!__ASSUME_32BITUIDS]: Remove conditional code.
9795         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
9796         <kernel-features.h>.
9797         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
9798         unconditional.
9799         (__setresuid): Do not declare.
9800         [__ASSUME_32BITUIDS]: Make code unconditional.
9801         [!__ASSUME_32BITUIDS]: Remove conditional code.
9802         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
9803         <kernel-features.h>.
9804         [__ASSUME_32BITUIDS]: Make code unconditional.
9805         [!__ASSUME_32BITUIDS]: Remove conditional code.
9806         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
9807         <kernel-features.h>.
9808         [__ASSUME_32BITUIDS]: Make code unconditional.
9809         [!__ASSUME_32BITUIDS]: Remove conditional code.
9811 2012-05-25  Richard Henderson  <rth@twiddle.net>
9813         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
9814         dl_hwcap to ifunc resolver.
9815         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
9816         elf_ifunc_invoke.
9817         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
9818         dl_hwcap to ifunc resolver.
9819         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
9821 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
9823         [BZ #14153]
9824         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
9825         for |x| <= 2**-26, not 2**-57.
9826         * math/libm-test.inc (acos_test): Do not allow spurious underflow
9827         exception.
9829 2012-05-24  Jeff Law  <law@redhat.com>
9831         * stdio-common/Makefile (tests): Add bug25.
9832         * stdio-common/bug25.c: New test.
9834 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
9836         [BZ #13576]
9837         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
9838         multiple of MALLOC_ALIGNMENT in size.
9839         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
9841 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
9843         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
9844         Require >= 256.
9845         (FILENAME_MAX): Use macro-int-constant.
9846         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
9847         (_IOFBF): Use macro-int-constant.
9848         (_IOLBF): Likewise.
9849         (_IONBF): Likewise.
9850         (SEEK_CUR): Likewise.
9851         (SEEK_END): Likewise.
9852         (SEEK_SET): Likewise.
9853         (TMP_MAX): Likewise.
9854         (EOF): Use macro-int-constant.  Require < 0.
9855         (NULL): Use macro-constant.  Require == 0.
9856         (stdin): Require type to be FILE *.
9857         (stdout): Likewise.
9858         (stderr): Likewise.
9859         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
9860         macro-int-constant.
9861         (EXIT_SUCCESS): Likewise.
9862         (NULL): Use macro-constant.  Require == 0.
9863         (RAND_MAX): Use macro-int-constant.
9864         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
9865         [C99-based standards] (strtof): Require function.
9866         [C99-based standards] (strtold): Likewise.
9867         [C99-based standards] (strtoll): Likewise.
9868         [C99-based standards] (strtoull): Likewise.
9869         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
9870         [ISO || ISO99 || ISO11] (limits.h): Likewise.
9871         [ISO || ISO99 || ISO11] (math.h): Likewise.
9872         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
9873         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
9874         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9876 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
9878         [BZ #14132]
9879         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
9880         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
9881         * intl/dgettext.c (DCGETTEXT): Likewise.
9882         * intl/gettext.c (DCGETTEXT): Likewise.
9883         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
9884         * posix/regex_internal.h (gettext): Likewise.
9885         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
9886         Remove declaration.
9887         * include/argz.h (__argz_count_internal)
9888         (__argz_stringify_internal): Remove declaration.
9889         (__argz_count, __argz_stringify): Declare hidden proto.
9890         * intl/dcgettext.c: Remove use of INTDEF.
9891         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
9892         * string/argz-stringify.c: Likewise.
9893         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
9894         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
9895         Declare hidden proto.
9896         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
9897         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
9898         Declare hidden proto.
9899         * include/stdio.h (__asprintf_internal): Don't declare.
9900         (__asprintf): Don't define as macro.  Declare hidden proto.
9901         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
9902         (__fsetlocking): Declare hidden proto.
9903         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
9904         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
9905         hidden proto.
9906         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
9907         (_IO_setlinebuf): Remove use of INTUSE.
9908         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
9909         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
9910         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
9911         Remove declaration.
9912         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
9913         (_IO_do_flush): Remove use of INTUSE.
9914         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
9915         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
9916         (_IO_adjust_column, _IO_least_wmarker)
9917         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
9918         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
9919         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
9920         (_IO_default_doallocate, _IO_wdefault_doallocate)
9921         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
9922         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
9923         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
9924         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
9925         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
9926         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
9927         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
9928         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
9929         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
9930         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
9931         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
9932         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
9933         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
9934         proto.
9935         (_IO_flush_all_internal, _IO_adjust_column_internal)
9936         (_IO_default_uflow_internal, _IO_default_finish_internal)
9937         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
9938         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
9939         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
9940         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
9941         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
9942         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
9943         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
9944         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
9945         (_IO_file_close_internal, _IO_file_close_it_internal)
9946         (_IO_file_underflow_internal, _IO_file_overflow_internal)
9947         (_IO_file_init_internal, _IO_file_attach_internal)
9948         (_IO_file_fopen_internal, _IO_file_read_internal)
9949         (_IO_file_sync_internal, _IO_file_seek_internal)
9950         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
9951         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
9952         (_IO_str_underflow_internal, _IO_str_overflow_internal)
9953         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
9954         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
9955         (_IO_list_all_internal, _IO_link_in_internal)
9956         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
9957         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
9958         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
9959         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
9960         (_IO_do_write_internal, _IO_padn_internal)
9961         (_IO_getline_info_internal, _IO_getline_internal)
9962         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
9963         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
9964         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
9965         (_IO_vfscanf_internal, _IO_vfprintf_internal)
9966         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
9967         (_IO_init_internal, _IO_un_link_internal): Don't declare.
9968         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
9969         with libc_hidden_ver, remove use of INTUSE.
9970         * libio/genops.c: Likewise.
9971         * libio/freopen.c: Likewise.
9972         * libio/freopen64.c: Likewise.
9973         * libio/iofclose.c: Likewise.
9974         * libio/iofdopen.c: Likewise.
9975         * libio/iofflush.c: Likewise.
9976         * libio/iofflush_u.c: Likewise.
9977         * libio/iofgets.c: Likewise.
9978         * libio/iofgets_u.c: Likewise.
9979         * libio/iofopen.c: Likewise.
9980         * libio/iofopncook.c: Likewise.
9981         * libio/iofread.c: Likewise.
9982         * libio/iofread_u.c: Likewise.
9983         * libio/ioftell.c: Likewise.
9984         * libio/iofwrite.c: Likewise.
9985         * libio/iogetline.c: Likewise.
9986         * libio/iogets.c: Likewise.
9987         * libio/iogetwline.c: Likewise.
9988         * libio/iopadn.c: Likewise.
9989         * libio/iopopen.c: Likewise.
9990         * libio/ioseekoff.c: Likewise.
9991         * libio/ioseekpos.c: Likewise.
9992         * libio/iosetbuffer.c: Likewise.
9993         * libio/iosetvbuf.c: Likewise.
9994         * libio/ioungetc.c: Likewise.
9995         * libio/ioungetwc.c: Likewise.
9996         * libio/iovdprintf.c: Likewise.
9997         * libio/iovsprintf.c: Likewise.
9998         * libio/iovsscanf.c: Likewise.
9999         * libio/memstream.c: Likewise.
10000         * libio/obprintf.c: Likewise.
10001         * libio/oldfileops.c: Likewise.
10002         * libio/oldiofclose.c: Likewise.
10003         * libio/oldiofdopen.c: Likewise.
10004         * libio/oldiofopen.c: Likewise.
10005         * libio/oldiopopen.c: Likewise.
10006         * libio/oldstdfiles.c: Likewise.
10007         * libio/putc.c: Likewise.
10008         * libio/setbuf.c: Likewise.
10009         * libio/setlinebuf.c: Likewise.
10010         * libio/stdfiles.c: Likewise.
10011         * libio/strops.c: Likewise.
10012         * libio/vasprintf.c: Likewise.
10013         * libio/vscanf.c: Likewise.
10014         * libio/vsnprintf.c: Likewise.
10015         * libio/vswprintf.c: Likewise.
10016         * libio/wfiledoalloc.c: Likewise.
10017         * libio/wfileops.c: Likewise.
10018         * libio/wgenops.c: Likewise.
10019         * libio/wmemstream.c: Likewise.
10020         * libio/wstrops.c: Likewise.
10021         * libio/__fpurge.c: Likewise.
10022         * libio/__fsetlocking.c: Likewise.
10023         * assert/assert.c: Likewise.
10024         * debug/fgets_chk.c: Likewise.
10025         * debug/fgets_u_chk.c: Likewise.
10026         * debug/fread_chk.c: Likewise.
10027         * debug/fread_u_chk.c: Likewise.
10028         * debug/gets_chk.c: Likewise.
10029         * debug/obprintf_chk.c: Likewise.
10030         * debug/vasprintf_chk.c: Likewise.
10031         * debug/vdprintf_chk.c: Likewise.
10032         * debug/vsnprintf_chk.c: Likewise.
10033         * debug/vsprintf_chk.c: Likewise.
10034         * malloc/mtrace.c: Likewise.
10035         * misc/error.c: Likewise.
10036         * misc/syslog.c: Likewise.
10037         * stdio-common/asprintf.c: Likewise.
10038         * stdio-common/fxprintf.c: Likewise.
10039         * stdio-common/getw.c: Likewise.
10040         * stdio-common/isoc99_fscanf.c: Likewise.
10041         * stdio-common/isoc99_scanf.c: Likewise.
10042         * stdio-common/isoc99_vfscanf.c: Likewise.
10043         * stdio-common/isoc99_vscanf.c: Likewise.
10044         * stdio-common/isoc99_vsscanf.c: Likewise.
10045         * stdio-common/printf-prs.c: Likewise.
10046         * stdio-common/printf_fp.c: Likewise.
10047         * stdio-common/printf_fphex.c: Likewise.
10048         * stdio-common/printf_size.c: Likewise.
10049         * stdio-common/putw.c: Likewise.
10050         * stdio-common/scanf.c: Likewise.
10051         * stdio-common/sprintf.c: Likewise.
10052         * stdio-common/tmpfile.c: Likewise.
10053         * stdio-common/vfprintf.c: Likewise.
10054         * stdio-common/vfscanf.c: Likewise.
10055         * stdlib/strfmon_l.c: Likewise.
10056         * sunrpc/openchild.c: Likewise.
10057         * sunrpc/xdr_stdio.c: Likewise.
10058         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
10059         * sysdeps/mach/hurd/tmpfile.c: Likewise.
10061 2012-05-24  Roland McGrath  <roland@hack.frob.com>
10063         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
10065         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
10066         in the third column, to generate for the shared library an IFUNC
10067         that uses _dl_vdso_vsym.
10068         * Makerules (COMPILE.c, compile-stdin.c): New variables.
10069         * Makeconfig (object-suffixes-noshared): New variable.
10071         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
10072         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
10073         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
10074         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
10076         [BZ #14132]
10077         * include/sys/time.h (__gettimeofday): Remove macro.
10078         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
10079         * time/gettimeofday.c (__gettimeofday): Remove #undef.
10080         Remove INTDEF.
10081         (__gettimeofday): Add libc_hidden_def.
10082         (gettimeofday): Add libc_hidden_weak.
10083         * sysdeps/mach/gettimeofday.c: Likewise.
10084         * sysdeps/posix/gettimeofday.c: Likewise.
10085         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
10086         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
10087         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
10088         (__gettimeofday_internal): Remove strong_alias.
10089         (__gettimeofday): Add libc_hidden_def.
10090         (gettimeofday): Add libc_hidden_weak.
10091         * sysdeps/unix/syscalls.list (gettimeofday):
10092         Remove __gettimeofday_internal alias.
10094 2012-05-24  Daniel Jacobowitz  <drow@false.org>
10095             H.J. Lu  <hongjiu.lu@intel.com>
10097         [BZ #12495]
10098         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
10099         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
10100         (largebin_index_32_big): New.
10101         (largebin_index): Use it for 16-byte alignment.
10102         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
10103         correction with front_misalign.
10105 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
10107         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
10108         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
10109         Likewise.
10110         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
10111         Likewise.
10112         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
10113         Likewise.
10114         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
10115         Likewise.
10116         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
10117         Likewise.
10118         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
10119         Likewise.
10120         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
10121         Likewise.
10122         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
10123         Likewise.
10124         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
10125         Likewise.
10126         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
10127         Likewise.
10128         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
10129         Likewise.
10130         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
10131         Likewise.
10133         * scripts/data/c++-types-x32-linux-gnu.data: New file.
10134         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
10136 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
10138         [BZ #10846]
10139         [BZ #14036]
10140         * math/libm-test.inc (exp_test): Add test from bug 14036.
10141         (pow_test): Add test from bug 10846.
10143         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
10144         and other flags.
10145         (special_function): Do not include flags in test name.
10146         (parse_args): Likewise.
10147         * sysdeps/i386/fpu/libm-test-ulps: Update.
10148         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10149         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
10150         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
10151         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10153         * math/gen-libm-test.pl (%beautify): Add entries for underflow
10154         exceptions.
10155         * math/libm-test.inc ("Philosophy"): Update comment about
10156         exception testing.
10157         (UNDERFLOW_EXCEPTION): New macro.
10158         (UNDERFLOW_EXCEPTION_OK): Likewise.
10159         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
10160         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
10161         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
10162         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
10163         (INVALID_EXCEPTION_OK): Update value.
10164         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10165         (OVERFLOW_EXCEPTION_OK): Likewise.
10166         (IGNORE_ZERO_INF_SIGN): Likewise.
10167         (test_exceptions): Handle underflow exceptions.
10168         (acos_test): Update for underflow exception expectations.
10169         (cexp_test): Likewise.
10170         (clog_test): Likewise.
10171         (clog10_test): Likewise.
10172         (csqrt_test): Likewise.
10173         (ctan_test): Likewise.
10174         (ctanh_test): Likewise.
10175         (exp_test): Likewise.
10176         (exp10_test): Likewise.
10177         (exp2_test): Likewise.
10178         (expm1_test): Likewise.
10179         (fma_test): Likewise.
10180         (j0_test): Likewise.
10181         (jn_test): Likewise.
10182         (nexttoward_test): Likewise.
10183         (pow_test): Likewise.
10184         (scalbn_test): Likewise.
10185         (scalbln_test): Likewise.
10186         (tan_test): Likewise.
10187         (y1_test): Likewise.
10188         * sysdeps/i386/fpu/libm-test-ulps: Update.
10189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10191 2012-05-23  David S. Miller  <davem@davemloft.net>
10193         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
10194         (__libc_sigaction): Remove unused local variables.
10196 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
10198         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
10200 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10202         mktime: avoid signed integer overflow
10203         * time/mktime.c (__mktime_internal): Do not mishandle the case
10204         where diff == INT_MIN.
10206         mktime: simplify computation of average
10207         * time/mktime.c (ranged_convert): Use new time_t_avg function
10208         instead of rolling our own (probably-slower) code.
10210         mktime: do not assume signed right shift propagates sign bit
10211         * time/mktime.c (isdst_differ): New static function.
10212         (__mktime_internal): No need to normalize tm_isdst now.
10213         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
10214         tm_isdst values.
10216         mktime: merge another wrapv change from gnulib
10217         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
10218         from some compilers.
10220         mktime: remove incorrect attempt at unusual arithmetics
10221         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
10222         The code didn't really work on such machines anyway.
10223         (TYPE_MINIMUM): Assume two's complement.
10224         (twos_complement_arithmetic): Verify that long_int and time_t
10225         are two's complement (or unsigned, in the latter case).
10227         mktime: check signed shifts on long_int and time_t, too
10228         * time/mktime.c (SHR): Check that shifts work as desired
10229         on the types long_int and time_t too, as SHR is used on
10230         such types.
10232         mktime: do not assume 'long' is wide enough
10233         * time/mktime.c (verify): Move decl up.
10234         (long_int): New type.
10235         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
10236         to remove assumption in the code that 'long' is wide enough to
10237         store year values.  This assumption is not true on x32 and on
10238         some non-glibc platforms.
10240         mktime: merge wrapv change from gnulib
10241         * time/mktime.c (WRAPV): New macro.
10242         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
10243         (guess_time_tm, __mktime_internal): Do not assume that signed
10244         integer overflow wraps around; modern compilers generate code
10245         where this assumption is no longer valid.
10247 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
10249         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10250         Replace "jmp L(pseudo_end)" with "ret".
10251         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10252         Likewise.
10254 2012-05-23  Andreas Jaeger  <aj@suse.de>
10256         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
10257         * sysdeps/unix/sysv/linux/poll.c: Remove file.
10259 2012-05-23  Andreas Jaeger  <aj@suse.de>
10260             Maximilian Attems  <max@stro.at>
10262         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
10263         New macros.
10265 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
10267         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
10268         code so that pseudo_end is just ret and the stack pointer is
10269         correct also for static library in error case.
10271 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
10273         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
10274         move to syscalls.list.
10275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
10276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
10277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
10278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
10280         * manual/install.texi (Running make install): Do not mention Linux
10281         kernel version for which pt_chown is not needed.
10282         (Linux): Do not mention problems with nscd with 2.0 kernels.
10283         * INSTALL: Regenerated.
10285 2012-05-23  Andreas Jaeger  <aj@suse.de>
10287         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
10288         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
10289         macro.
10290         * sysdeps/unix/sysv/linux/s390/bits/mman.h
10291         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
10292         * sysdeps/unix/sysv/linux/sh/bits/mman.h
10293         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
10294         * sysdeps/unix/sysv/linux/i386/bits/mman.h
10295         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
10296         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
10297         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
10298         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
10299         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
10300         * sysdeps/unix/sysv/linux/bits/in.h
10301         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
10303 2012-05-22  Roland McGrath  <roland@hack.frob.com>
10305         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
10306         (PREPARE_VERSION): Just use assert instead, it will be elided
10307         under [NDEBUG] anyway.
10309 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
10311         * sysdeps/unix/sysv/linux/Makefile: Include
10312         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
10313         (sysdep_routines): Remove sysctl.
10314         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
10315         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
10316         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
10317         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
10318         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
10320 2012-05-22  Andreas Jaeger  <aj@suse.de>
10322         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
10323         that pseudo_end is just ret and the stack pointer is correct also
10324         for static library in error case.
10326 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
10328         [BZ #14122]
10329         * nss/nsswitch.c (defconfig_entries): New variable.
10330         (__nss_database_lookup): Don't leak defconfig entries.
10331         (nss_parse_service_list): Don't leak on error paths.
10332         (free_database_entries): New function.
10333         (free_defconfig): New function.
10334         (free_mem): Move common code to free_database_entries.
10336 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
10338         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
10339         Add arch_prctl.
10340         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
10342         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
10343         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
10344         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
10345         New macro.
10346         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
10347         (INTERNAL_SYSCALL_TYPES): Likewise.
10348         (LOAD_ARGS_TYPES_[1-6]): Likewise.
10349         (LOAD_REGS_TYPES_[1-6]): Likewise.
10350         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
10351         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
10353 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10355         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
10356         copysignl for GLIBC_2_0.
10357         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
10358         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
10359         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
10360         logbl for GLIBC_2_0.
10361         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
10362         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
10364 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
10366         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
10367         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
10369         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10370         Use "neg %eax".
10372         * time/mktime.c: Update copyright years.
10374 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10376         mktime: merge comment-quoting-style change from gnulib
10377         * time/mktime.c: Quote 'like this' in comments.
10378         The GNU coding standards suggest that we no longer quote `like this',
10379         as "`" and "'" are typically rendered asymmetrically nowadays.
10380         The typical gnulib style is to quote 'like this' when quoting
10381         code, and "like this" when quoting English.
10383         * time/mktime.c (compile-command): Add "-I.".
10385         mktime: merge mktime-internal.h change from gnulib
10386         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
10388         mktime: merge time_r change from gnulib
10389         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
10391         mktime: merge DEBUG change from gnulib
10392         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
10393         case system <time.h> has a #define.
10395         mktime: merge <sys/types.h> change from gnulib
10396         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
10397         since <time.t> is now guaranteed to define time_t.
10399         mktime: merge HAVE_CONFIG_H change from gnulib
10400         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
10402 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
10404         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
10405         Use "neg %eax".
10407         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
10408         __rlim_t cast.
10409         (struct rusage): Use anonymous union to pad each field to
10410         __syscall_slong_t.
10412 2012-05-21  David S. Miller  <davem@davemloft.net>
10414         * Makefules (o-iterator): Remove .s cases.
10415         (compile-command.s): Delete.
10416         (COMPILE.s): Delete.
10417         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
10419 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
10421         * configure.in (libc_cv_predef_stack_protector): Only consider
10422         "foobar" and "__stack_chk_fail" lines in libc_undefs.
10423         * configure: Regenerated.
10425 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
10427         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
10428         New macro.  Use R*LP on int and pointer.
10429         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
10430         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
10431         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
10432         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
10434         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
10435         [__WORDSIZE_TIME64_COMPAT32] instead of
10436         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
10437         (struct utmp): Likewise.
10438         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
10439         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
10440         Renamed to ...
10441         (__WORDSIZE_TIME64_COMPAT32): This.
10442         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
10443         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
10444         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
10445         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
10446         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
10447         (__WORDSIZE_TIME64_COMPAT32): New macro.
10449 2012-05-21  Andreas Jaeger  <aj@suse.de>
10451         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
10452         only if [SHARED]. Add prototype for __wcschr_ia32.
10454 2012-05-21  Roland McGrath  <roland@hack.frob.com>
10456         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
10457         of %rbp unmolested in the jmp_buf while mangling the low bits.
10458         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
10459         unmolested high bits of %rbp while demangling the low bits.
10460         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
10462 2012-05-21  Andreas Jaeger  <aj@suse.de>
10464         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
10465         * sunrpc/svc_simple.c: Use it for registerrpc.
10466         * sunrpc/xcrypt.c: Use it for passwd2des.
10468         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
10470 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
10472         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
10473         Don't define if [__SYSCALL_WORDSIZE != 32].
10474         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
10475         New macro.
10477 2012-05-21  Bruno Haible  <bruno@clisp.org>
10478             Andreas Jaeger  <aj@suse.de>
10480         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
10481         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
10482         inptr and inend for must_buffer_ch.
10483         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
10484         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
10485         * stdio-common/Makefile (tests): Remove bug15.
10486         (bug15-ENV): Remove macro.
10487         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
10488         anymore.
10490 2012-05-19  Andreas Jaeger  <aj@suse.de>
10491             Roland McGrath  <roland@hack.frob.com>
10493         * manual/contrib.texi: Completely rewritten. It contains now an
10494         alphabetical list of contributors and their contributions.
10496 2012-05-21  Richard Henderson  <rth@twiddle.net>
10498         * misc/getauxval.c (__getauxval): Use unsigned long int.
10499         * misc/sys/auxv.h: Include <sys/cdefs.h>.
10500         (getauxval): Use unsigned long int.
10502 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
10504         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
10506 2012-05-21  Roland McGrath  <roland@hack.frob.com>
10508         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
10509         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
10510         __alignof__ (long double).
10512 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10514         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10516 2012-05-20  Richard Henderson  <rth@twiddle.net>
10518         * misc/getauxval.c: New file.
10519         * misc/sys/auxv.h: New file.
10520         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
10521         (routines): Add getauxval.
10522         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
10523         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
10524         * elf/dl-sysdep.c (_dl_auxv): Remove.
10525         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
10526         * elf/dl-support.c (_dl_auxv): New variable.
10527         (_dl_aux_init): Initialize it.
10528         * manual/startup.texi (Auxiliary Vector): New node.
10529         * sysdeps/generic/bits/hwcap.h: New file.
10530         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
10531         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
10532         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
10533         * sysdeps/sparc/sysdep.h: ... here.  Include it.
10534         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
10535         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
10536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10537         Update.
10538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
10539         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
10540         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
10541         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
10542         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
10543         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
10544         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
10545         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
10547 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10549         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10551 2012-05-19  David S. Miller  <davem@davemloft.net>
10553         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10555 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
10557         [BZ #14123]
10558         * math/s_ccosh.c: Include <float.h>
10559         (__ccosh): Avoid internal overflow calculating sinh and cosh
10560         values before multiplying by sin and cos values.
10561         * math/s_ccoshf.c: Likewise.
10562         * math/s_ccoshl.c: Likewise.
10563         * math/s_csin.c: Likewise.
10564         * math/s_csinf.c: Likewise.
10565         * math/s_csinl.c: Likewise.
10566         * math/s_csinh.c: Likewise.
10567         * math/s_csinhf.c: Likewise.
10568         * math/s_csinhl.c: Likewise.
10569         * math/libm-test.inc (ccos_test): Add more tests.
10570         (ccosh_test): Likewise.
10571         (csin_test): Likewise.
10572         (csinh_test): Likewise.
10573         * sysdeps/i386/fpu/libm-test-ulps: Update.
10574         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10576 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
10578         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
10579         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
10581         * sysdeps/x86_64/x32/_itoa.h: Add comment.
10583 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
10585         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
10586         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
10587         * sysdeps/powerpc/soft-fp/Versions: Likewise.
10588         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
10589         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
10590         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
10591         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
10592         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
10593         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
10594         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
10595         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
10596         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
10597         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
10598         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
10599         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
10600         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
10601         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
10602         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
10603         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
10604         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
10605         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
10606         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
10607         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
10608         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
10609         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
10610         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
10611         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
10612         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
10613         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
10614         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
10615         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
10617 2012-05-18  Andreas Jaeger  <aj@suse.de>
10619         * csu/.gitignore: Delete.
10621 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
10623         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
10624         (timex): Use __syscall_slong_t.
10626 2012-05-18  Andreas Jaeger  <aj@suse.de>
10627             Carlos O'Donell  <carlos_odonell@mentor.com>
10629         * manual/install.texi (Configuring and compiling): Update
10630         description about files modified in the source directory.
10631         * INSTALL: Regenerated.
10633 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
10635         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
10636         value.  Use "or" to set return value to -1.
10637         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
10638         negate return value.
10640 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10642         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
10643         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
10644         failure if the compiler has Graphite support disabled.
10645         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
10646         Likewise.
10647         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
10648         CFLAGS-memmove.c): Likewise.
10649         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
10650         Likewise.
10652 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
10654         * sysdeps/x86_64/x32/_itoa.h: New file.
10656         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
10657         getdents system call only if kernel and user dirents have the
10658         same d_ino and d_off.
10660         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10661         LLONG_MAX != LONG_MAX.
10662         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10663         (_fitoa_word): Likewise.
10665         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
10666         years.
10667         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
10668         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
10669         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
10671         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
10672         include <bits/wordsize.h>.  Check __x86_64__ instead of
10673         __WORDSIZE.
10674         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
10675         if __x86_64__ is defined.  Use anonymous union on fpstate.
10677         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
10678         anonymous union.
10680 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
10682         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
10683         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
10684         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
10685         Refer to _rtld_local_ro instead of _rtld_global_ro.
10686         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
10687         Likewise.
10688         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
10689         Likewise.
10690         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
10691         Likewise.
10692         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
10693         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
10694         of _rtld_global, and rtld_progname instead of _dl_argv[0].
10696         * sysdeps/powerpc/powerpc32/dl-machine.c
10697         (__elf_machine_runtime_setup) [PROF]: Don't reference
10698         _dl_prof_resolve.
10700 2012-05-18  Andreas Jaeger  <aj@suse.de>
10702         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
10703         function only available for GCCs before 3.4 since GCC 3.4
10704         introduced a builtin.
10705         (lrint): Likewise.
10706         (llrintf): Likewise.
10707         (llrint): Likewise.
10708         (fmaxf): Likewise.
10709         (fmax): Likewise.
10710         (fminf): Likewise.
10711         (fmin): Likewise.
10712         (rint): Likewise.
10713         (rintf): Likewise.
10714         (nearbyint): Likewise.
10715         (nearbyintf): Likewise.
10716         (ceil): Likewise.
10717         (ceilf): Likewise.
10718         (floor): Likewise.
10719         (floorf): Likewise.
10721 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
10723         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
10724         on both fields and cast pointer to __syscall_ulong_t.
10726         * bits/types.h (__fsword_t): New type.
10727         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
10728         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
10729         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10730         (__FSWORD_T_TYPE): Likewise.
10731         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10732         (__FSWORD_T_TYPE): Likewise.
10733         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10734         (__FSWORD_T_TYPE): Likewise.
10735         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
10736         (__FSWORD_T_TYPE): Likewise.
10737         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
10738         __SWORD_TYPE with __fsword_t.
10739         (statfs64): Likewise.
10741 2012-05-17  David S. Miller  <davem@davemloft.net>
10743         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
10745 2012-05-17  Andreas Jaeger  <aj@suse.de>
10747         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
10748         warning.
10750 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
10752         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
10754 2012-05-17  Andreas Jaeger  <aj@suse.de>
10756         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
10757         when it is used.
10759 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
10761         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
10763 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
10765         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
10766         * sysdeps/x86_64/tst-mallocalign1.c: New file.
10768 2012-05-17  Andreas Jaeger  <aj@suse.de>
10769             Carlos O'Donell  <carlos_odonell@mentor.com>
10771         [BZ #14059]
10772         * sysdeps/x86_64/multiarch/init-arch.h
10773         (bit_YMM_Usable): Rename to...
10774         (bit_AVX_Usable): ... this.
10775         (bit_FMA4_Usable): New macro.
10776         (bit_XMM_state): New macro.
10777         (bit_YMM_state): New macro.
10778         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
10779         [__ASSEMBLER__] (index_AVX_Usable): ... this.
10780         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
10781         (CPUID_OSXSAVE): New macro.
10782         (CPUID_AVX): New macro.
10783         (CPUID_FMA4): New macro.
10784         (index_YMM_Usable): Rename to...
10785         (index_AVX_Usable): ... this.
10786         (HAS_AVX): Use HAS_ARCH_FEATURE.
10787         (HAS_FMA4): Likewise.
10788         (HAS_YMM_USABLE): Remove.
10789         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10790         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
10791         are present.
10792         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
10793         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
10794         * sysdeps/x86_64/multiarch/Makefile: Likewise.
10795         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
10796         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
10798 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
10800         * math/libm-test.c: Support platforms without multiple rounding modes.
10801         * math/bug-nextafter.c: Support platforms without FP exceptions.
10802         * math/bug-nexttoward.c: Likewise.
10803         * math/test-fenv.c: Likewise.
10804         * math/test-misc.c: Likewise.
10805         * stdlib/bug-getcontext.c: Likewise.
10807 2012-05-17  Andreas Jaeger  <aj@suse.de>
10809         * manual/examples/search.c (critter_cmp): Change signature to
10810         avoid warnings.
10811         * manual/string.texi (Collation Functions): Likewise.
10813 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10815         * bits/types.h: Fold copyright years.
10816         * bits/typesizes.h: Likewise.
10817         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
10818         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
10819         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
10820         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
10821         * time/time.h: Likewise.
10823 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
10825         [BZ #208]
10826         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
10827         in instead of returning them.  Return void.
10828         (__libc_mallinfo): Accumulate over all arenas.
10829         (__malloc_stats): Adjust for change in int_mallinfo interface.
10831 2012-05-16  Roland McGrath  <roland@hack.frob.com>
10833         [BZ #10375]
10834         * configure.in (NM): Add AC_CHECK_TOOL for it.
10835         (libc_extra_cflags): New substituted variable.
10836         Check for -fstack-protector being used implicitly.
10837         * configure: Regenerated.
10838         * config.make.in (config-extra-cflags): New variable,
10839         gets @libc_extra_cflags@.
10840         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
10842         [BZ #10375]
10843         * configure.in: Check for _FORTIFY_SOURCE being predefined.
10844         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
10845         * configure: Regenerated.
10846         * config.make.in (CPPUNDEFS): New substituted variable.
10847         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
10848         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
10849         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
10851 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10853         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
10854         (mq_attr): Use __syscall_slong_t.
10856 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10858         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
10859         Check __x86_64__ instead of __WORDSIZE.
10860         (_STAT_VER_LINUX): Likewise.
10861         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
10862         __syscall_ulong_t and __syscall_slong_t.
10863         (stat64): Likewise.
10865 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10867         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
10869 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10871         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
10873 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10875         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
10876         __syscall_ulong_t.
10878         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
10879         include <bits/wordsize.h>.  Check __x86_64__ instead of
10880         __WORDSIZE.
10881         (greg_t): Use "__extension__ long long int" if __x86_64__ is
10882         defined.
10883         (mcontext_t): Replace "unsigned long" with "unsigned long long".
10885         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
10886         include <bits/wordsize.h>.  Check __x86_64__ instead of
10887         __WORDSIZE.
10888         (user_regs_struct): Use "__extension__ unsigned long long"
10889         instead of "unsigned long" if __x86_64__ is defined.
10890         (user): Likewise.  Pad after pointer field if __ILP32__ is
10891         defined.
10893 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
10895         * configure.in (makeinfo): Require version 4.5 or later.  Allow
10896         versions 5 to 9.
10897         * configure: Regenerated.
10898         * manual/install.texi (texinfo): Increase version requirement to
10899         4.5 or later.
10900         * INSTALL: Regenerated.
10902         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
10904 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10906         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
10908         * sysdeps/x86_64/x32/ffs.c: New file.
10910         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
10911         __syscall_ulong_t.
10912         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
10913         defined.  Use __syscall_ulong_t.
10914         (shminfo): Use __syscall_ulong_t.
10915         (shm_info): Likewise.
10917         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
10918         __syscall_ulong_t.
10920         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
10921         <bits/wordsize.h>.
10922         (msgqnum_t): Use __syscall_ulong_t.
10923         (msglen_t): Likewise.
10924         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
10925         __syscall_ulong_t.
10927         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
10928         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
10930         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
10932         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
10933         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
10935         * sysvipc/sys/msg.h (msgbuf): Replace long int with
10936         __syscall_slong_t.
10938         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
10939         include <bits/wordsize.h>.  Check __x86_64__ instead of
10940         __WORDSIZE.
10942         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
10943         "unsigned long long int" if __x86_64__ is defined.
10944         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
10946         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
10947         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
10948         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
10950         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
10951         <stdint.h>.
10952         (GET_PC): Cast to uintptr_t first.
10953         (GET_FRAME): Likewise.
10954         (GET_STACK): Likewise.
10956         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
10957         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
10958         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
10959         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
10960         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
10961         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
10962         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
10963         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
10964         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
10965         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
10966         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
10967         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
10968         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
10969         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
10970         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
10971         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
10972         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
10973         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
10974         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
10975         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
10976         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
10977         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
10978         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
10979         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
10980         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
10981         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
10982         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
10983         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
10984         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
10986 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
10988         * Makerules (+depfiles): Also collect depfiles from .oS in
10989         $(extra-objs).
10990         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
10991         .oS, $(libnldbl-routines)).
10993         * Makerules (native-compile-mkdep-flags): Define.
10994         * sunrpc/Makefile (extra-objs): Add $(addprefix
10995         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
10996         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
10997         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
10998         calling $(make-target-directory).
11000 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11002         * bits/types.h (__snseconds_t): Removed.
11003         * time/time.h (struct timespec): Replace __snseconds_t with
11004         __syscall_slong_t.
11005         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
11006         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
11007         Likewise.
11008         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11009         (__SNSECONDS_T_TYPE): Likewise.
11010         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11011         (__SNSECONDS_T_TYPE): Likewise.
11012         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11013         (__SNSECONDS_T_TYPE): Likewise.
11015 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11017         * sysdeps/mach/hurd/bits/typesizes.h
11018         (__SYSCALL_SLONG_TYPE): New macro.
11019         (__SYSCALL_ULONG_TYPE): Likewise.
11021 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11023         * bits/types.h (__syscall_slong_t): New type.
11024         (__syscall_ulong_t): Likewise.
11026         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
11027         (__SYSCALL_ULONG_TYPE): Likewise.
11028         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11029         (__SYSCALL_SLONG_TYPE): Likewise.
11030         (__SYSCALL_ULONG_TYPE): Likewise.
11031         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11032         (__SYSCALL_SLONG_TYPE): Likewise.
11033         (__SYSCALL_ULONG_TYPE): Likewise.
11034         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11035         (__SYSCALL_SLONG_TYPE): Likewise.
11036         (__SYSCALL_ULONG_TYPE): Likewise.
11038 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11040         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
11041         Add sigaltstack-offsets.sym.
11042         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11043         <sigaltstack-offsets.h>.
11044         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
11045         longjmp_msg pointer.
11046         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
11047         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
11048         signal stack.
11049         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
11051 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
11053         * elf/stackguard-macros.h: Remove file.
11054         * sysdeps/generic/stackguard-macros.h: New file.
11055         * sysdeps/i386/stackguard-macros.h: Likewise.
11056         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
11057         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
11058         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
11059         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
11060         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
11061         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
11062         * sysdeps/x86_64/stackguard-macros.h: Likewise.
11063         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
11064         <elf/stackguard-macros.h>.
11066         [BZ #14109]
11067         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
11068         __aligned__ in attribute.
11069         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
11070         (gregset_t): Likewise.
11072 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11074         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
11075         * sysdeps/x86_64/64/Implies-after: Here.  New file.
11076         * sysdeps/x86_64/x32/Implies-after: New file.
11078 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11080         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
11081         and access return value for _dl_profile_fixup.  Use R10_LP to
11082         load frame size.
11084 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11086         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
11088 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11090         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
11091         * sysdeps/x86_64/x32/sysdep.h: New file.
11093 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11095         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
11096         * sysdeps/x86_64/setjmp.S: Likewise.
11098 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11100         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
11101         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
11102         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
11103         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
11104         remove unused global constant.
11106 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
11108         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
11109         include of <not-cancel.h>.
11111 2012-05-15  Roland McGrath  <roland@hack.frob.com>
11113         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
11115 2012-05-15  Jeff Law  <law@redhat.com>
11116             Andreas Jaeger  <aj@suse.de>
11118         [BZ #13594]
11119         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
11120         out from...
11121         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
11122         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
11123         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
11124         code changing __hst_map_handle.map.
11126 2012-05-15  Roland McGrath  <roland@hack.frob.com>
11128         * configure.in (sysnames): Look for Implies-before and Implies-after
11129         files.
11130         * configure: Regenerated.
11132 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11134         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
11135         8-byte data alignment with LP_SIZE alignment.
11137 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11139         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
11140         into R10_LP.
11142 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11144         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
11146 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11148         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
11149         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
11150         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
11151         Likewise.
11152         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
11154 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11156         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
11157         (stackinfo_sub_sp): Likewise.
11159 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11161         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
11162         RAX_LP.
11164 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11166         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
11167         into R*_LP.
11169 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11171         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
11172         sizes into R*_LP.
11174 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11176         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
11178 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11180         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
11181         into R11_LP and load __x86_64_shared_cache_size_half into
11182         R8_LP.
11184 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11186         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
11187         R8_LP.
11189 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11191         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
11192         logb for POWER7.
11193         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
11194         logbf for POWER7.
11195         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
11196         logbl for POWER7.
11197         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
11198         powerpc32/power7/fpu/s_logb.c via #include.
11199         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
11200         powerpc32/power7/fpu/s_logbf.c via #include.
11201         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
11202         powerpc32/power7/fpu/s_logbl.c via #include.
11204 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
11206         * README.libm: Remove file.
11208 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11210         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
11211         count for x32.  Use R*_LP and omit operand-size suffix.
11213 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11215         * shlib-versions: Move x86_64-.*-linux.* entries to ...
11216         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
11217         * sysdeps/x86_64/x32/shlib-versions: New file.
11219 2012-05-14  Roland McGrath  <roland@hack.frob.com>
11221         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
11222         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
11223         Use _dl_fatal_printf instead.
11225 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
11227         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
11228         set if not set by the user.  Do not allow for being unset.
11229         * sysdeps/unix/sysv/linux/configure: Regenerated.
11231 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11233         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
11234         the `q' suffix from lea and replace .quad with ASM_ADDR.
11236 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11238         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
11239         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
11240         instead of $17.
11241         (PTR_DEMANGLE): Likewise.
11243 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11245         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
11246         (LP_OP): Likewise.
11247         (ASM_ADDR): Likewise.
11248         (RAX_LP): Likewise.
11249         (RBP_LP): Likewise.
11250         (RBX_LP): Likewise.
11251         (RCX_LP): Likewise.
11252         (RDI_LP): Likewise.
11253         (RSI_LP): Likewise.
11254         (RSP_LP): Likewise.
11255         (R8_LP): Likewise.
11256         (R9_LP): Likewise.
11257         (R10_LP): Likewise.
11258         (R10_LP): Likewise.
11259         (R11_LP): Likewise.
11260         (R12_LP): Likewise.
11261         (R13_LP): Likewise.
11262         (R14_LP): Likewise.
11263         (R15_LP): Likewise.
11265 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11267         * sysdeps/x86_64/x32/dl-machine.h: New file.
11269 2012-05-14  Andreas Jaeger  <aj@suse.de>
11271         * manual/Makefile (subdir): Remove export of subdir.
11272         (all): Remove target.
11273         (.PHONY): Remove all from list.
11274         (mkinstalldirs): Remove.
11275         (.PHONY): Remove installdirs from list.
11276         ($(inst_infodir)/libc.info): Use make-target-directory.
11277         (installdirs): Remove.
11278         (subdir_%): Remove.
11279         (glibc-targets): Remove.
11280         (lib): Remove.
11281         (stubs): Remove.
11282         ($(objpfx)stubs ../po/manual.pot): Remove.
11283         ($(objpfx)stamp%): Remove.
11284         (make-target-directory): Remove.
11285         (subdir_install): Remove.
11286         (routines): Remove.
11287         (aux): Remove.
11288         (sources): Remove.
11289         (objects): Remove.
11290         (headers): Remove.
11292         [BZ #13750]
11293         * manual/.gitignore: Remove, it's not needed anymore.
11294         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
11295         all files in it.
11296         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
11297         directory.
11298         (texis): Renamed to $(objpfx)texis.
11299         (texis-path): New, contains path to generated files.
11300         (chapters.%): Use texis-path for complete path, add extra argument
11301         libc-texinfo.sh.
11302         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
11303         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
11304         (summary,texi, stamp-summary): Use complete path of
11305         files. Generate files in build dir.
11306         (dir-add.texi): Build in build dir.
11307         (libm-err.texi,stamp-libm-err): Likewise.
11308         (version.texi, stamp-version): Likewise.
11309         (.%c.texi): Likewise.
11310         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
11311         (mostlyclean): Remove target.
11312         (realclean): Remove target.
11313         (generated): Add new variable with contents from mostlyclean and
11314         realclean, remove entries duplicated in common-mostlyclean, add
11315         stamp-libm-err and stamp-version.
11316         (generated-dirs): Add libc directory.
11317         ($(inst_infodir)/libc.info): Install files from build dir.
11319         * manual/install.texi (Configuring and compiling): Adjust since
11320         the info files are not part of the tar ball anymore.
11322 2012-05-14  Andreas Jaeger  <aj@suse.de>
11324         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
11325         variable.
11327 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
11329         [BZ #13717]
11330         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
11331         to 2.2.0 where earlier.
11332         * sysdeps/unix/sysv/linux/configure: Regenerated.
11333         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
11334         Remove conditional code.
11335         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
11336         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
11337         Remove conditional code.
11338         [!__NR_lchown]: Likewise.
11339         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
11340         [__NR_lchown]: Likewise.
11341         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
11342         comment referencing __ASSUME_LCHOWN_SYSCALL.
11343         * sysdeps/unix/sysv/linux/i386/sigaction.c
11344         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
11345         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
11346         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
11347         Remove conditional code.
11348         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
11349         (__protocol_available): Remove #if 0 code.
11350         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
11351         conditional code.
11352         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
11353         * sysdeps/unix/sysv/linux/kernel-features.h
11354         (__ASSUME_GETCWD_SYSCALL): Don't define.
11355         (__ASSUME_REALTIME_SIGNALS): Likewise.
11356         (__ASSUME_PREAD_SYSCALL): Likewise.
11357         (__ASSUME_PWRITE_SYSCALL): Likewise.
11358         (__ASSUME_POLL_SYSCALL): Likewise.
11359         (__ASSUME_LCHOWN_SYSCALL): Likewise.
11360         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
11361         non-SPARC.
11362         (__ASSUME_SIOCGIFNAME): Don't define.
11363         (__ASSUME_MSG_NOSIGNAL): Likewise.
11364         (__ASSUME_SENDFILE): Define unconditionally.
11365         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
11366         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
11367         conditional code.
11368         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
11369         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
11370         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
11371         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
11372         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
11373         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
11374         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
11375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
11376         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
11377         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
11379         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
11380         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
11382         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
11383         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
11385         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
11386         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
11388         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
11389         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
11391         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
11392         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
11394         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
11395         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
11397         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
11398         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11399         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
11400         Remove conditional code.
11401         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11402         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
11403         Remove conditional code.
11404         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11405         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
11406         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
11407         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
11408         Remove conditional code.
11409         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11410         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
11411         Remove conditional code.
11412         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11413         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
11414         Remove conditional code.
11415         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11416         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
11417         Remove conditional code.
11418         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11419         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
11420         Remove conditional code.
11421         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11422         * sysdeps/unix/sysv/linux/sh/pwrite64.c
11423         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
11424         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11425         * sysdeps/unix/sysv/linux/sigaction.c
11426         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
11427         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
11428         * sysdeps/unix/sysv/linux/sigpending.c
11429         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
11430         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
11431         * sysdeps/unix/sysv/linux/sigprocmask.c
11432         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
11433         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
11434         * sysdeps/unix/sysv/linux/sigsuspend.c
11435         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
11436         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
11437         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
11438         (__libc_missing_rt_sigs): Remove.
11439         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
11440         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
11441         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
11442         Remove conditional code.
11443         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
11444         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
11445         return 1.
11446         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
11447         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
11448         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
11449         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
11451 2012-05-14  Andreas Jaeger  <aj@suse.de>
11453         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
11454         it's not used in glibc.
11455         (__coshm1): Likewise.
11456         (__acosh1p): Likewise.
11457         (__sgn): Likewise.
11459         * manual/string.texi (Copying and Concatenation): Add missing
11460         variable in concat example.
11461         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
11463 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11465         [BZ #14103]
11466         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
11467         __builtin_clzl with __builtin_clzll.
11469 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11471         [BZ #14104]
11472         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
11473         libc_freeres_ptr.
11475 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11477         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
11478         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
11479         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
11480         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
11482 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
11484         * NEWS: Update ia64 info.
11486 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
11488         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
11489         used as bcopy.
11491 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
11493         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
11494         * sysdeps/unix/syscalls.list (dup3): Likewise.
11495         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
11496         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
11498 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
11500         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
11501         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
11503 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
11505         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
11506         thread pointer.
11507         (TLS_IE): Use mov/add instead of movq/addq to load thread
11508         pointer.
11509         (TLS_GD_PREFIX): New.
11510         (TLS_GD): Use it.
11512 2012-05-11  David S. Miller  <davem@davemloft.net>
11514         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
11515         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
11516         (_FPU_SETCW): Likewise.
11518 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
11520         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
11521         is 32-byte aligned.
11523 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
11525         [BZ #11837]
11526         * iconvdata/gb18030.c: Update tables.
11527         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
11528         characters specially.
11529         (BODY for TO_LOOP): Add encoding of missing ranges.
11531 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
11533         [BZ #13673]
11534         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
11535         * sysdeps/mach/hurd/dup3.c: Likewise.
11536         * sysdeps/mach/hurd/readlinkat.c: Likewise.
11537         * sysdeps/powerpc/memmove.c:: Likewise.
11539 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
11541         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
11542         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
11544 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
11546         * elf/elf.h (R_X86_64_RELATIVE64): New.
11547         (R_X86_64_NUM): Updated.
11548         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
11549         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
11550         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
11551         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
11552         tst-quad1pie tst-quad2pie
11553         (modules-names): Add tst-quadmod1 tst-quadmod2.
11554         ($(objpfx)tst-quad1): New dependency.
11555         ($(objpfx)tst-quad2): Likewise.
11556         ($(objpfx)tst-quad1pie): Likewise.
11557         ($(objpfx)tst-quad2pie): Likewise.
11558         * sysdeps/x86_64/tst-quad1.c: New file.
11559         * sysdeps/x86_64/tst-quad1pie.c: New file.
11560         * sysdeps/x86_64/tst-quad2.c: Likewise.
11561         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
11562         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
11563         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
11564         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
11565         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
11567 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11569         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
11570         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
11571         * streams/stropts.h (t_scalar_t): Define type.
11573         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
11574         (_PATH_PRESERVE): Set to "/var/lib".
11575         (_PATH_RWHODIR): Set to "/var/spool/rwho".
11577         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
11578         instead of int.
11580         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
11581         if __dir_mkfile succeeded.
11583         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
11584         checking for _hurd_dtablesize.  Unlock it right after having
11585         finished _hurd_dtable allocation.
11587 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
11589         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
11590         * sysdeps/mach/hurd/configure: Regenerated.
11591         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
11592         special-casing to...
11593         * sysdeps/gnu/configure.in: ... this new file.
11594         * sysdeps/unix/sysv/linux/configure: Regenerated.
11595         * sysdeps/gnu/configure: New generated file.
11597         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
11598         for Linux: use nsec instead of usec, as well as:
11599         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
11600         members of type struct timespec.
11601         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
11602         New macros.
11603         (struct stat64): Likewise.
11604         (_STATBUF_ST_NSEC): New macro.
11605         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
11607         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
11608         __strtoul_internal rather than strtoul.
11610 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
11612         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
11613         and reject them.
11615 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11617         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
11618         which preserves existing values.
11619         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
11621 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
11623         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
11624         TIMEOUT values.  Return EINVAL for NFDS values either negative or
11625         greater than FD_SETSIZE.
11627 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11629         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
11630         allocated, call __vm_protect to finish enabling the existing space, and
11631         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
11632         allocate the remainder.
11634 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
11636         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
11637         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
11639 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11641         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
11642         sysdeps/mach/hurd/readlink.c.
11644         * posix/tst-sysconf.c (posix_options): Only use
11645         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
11646         _POSIX_SYNCHRONIZED_IO when they are defined
11647         * sysdeps/mach/hurd/bits/posix_opt.h:
11648         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
11649         (_XOPEN_REALTIME): Undefine macro.
11650         (_XOPEN_REALTIME_THREADS): Undefine macro.
11651         (_XOPEN_SHM): Undefine macro.
11652         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
11653         macro to -1.
11654         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
11655         macro to -1.
11656         (_POSIX_ASYNC_IO): Undefine macro.
11657         (_POSIX_PRIORITIZED_IO): Undefine macro.
11658         (_POSIX_SPIN_LOCKS): Define macro to -1.
11660         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
11661         SA_NODEFER, SA_RESETHAND.
11662         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
11663         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
11664         F_DUPFD_CLOEXEC.
11666 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
11668         * elf/Makefile (pldd-modules): Define unconditionally.
11670 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
11672         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
11674 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11676         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
11677         Return ENOENT when name is empty.
11678         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
11680 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
11682         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
11684         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
11686 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11688         Fix mlock in all cases except non-readable pages.
11689         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
11690         instead of VM_PROT_ALL as parameter to __vm_wire function.
11692         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
11693         (__mkdir): When path is `/', just fail with EEXIST.
11694         * sysdeps/mach/hurd/mkdirat.c: Likewise.
11696 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
11698         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
11699         <sys/uio.h> (for writev).
11700         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
11701         and <sys/param.h> (for MIN).
11703 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
11705         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
11706         REQUESTED_TIME.  Properly set the remaining time and return EINTR
11707         if interrupted.
11709 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
11711         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
11712         Depend on against $(link-rpcuserlibs).
11714 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11716         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
11717         (__libc_stack_end): Do not use attribute_relro.
11718         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
11719         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
11720         to libthread-provided value.
11721         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
11722         attribute_relro.
11724 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
11726         [BZ #3748]
11727         * bits/libc-lock.h (__libc_once_get): New macro.
11728         * sysdeps/mach/bits/libc-lock.h: Likewise.
11729         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
11730         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
11731         instead of using implementation details.
11733         * libio/fileops.c: Unconditionally include <kernel-features.h>.
11734         * libio/freopen.c: Likewise.
11735         * libio/freopen64.c: Likewise.
11736         * misc/syslog.c: Likewise.
11737         * nscd/connections.c: Likewise.
11738         * nscd/netgroupcache.c: Likewise.
11739         * sysdeps/posix/getcwd.c: Likewise.
11741 2012-05-10  Roland McGrath  <roland@hack.frob.com>
11743         * math/w_ilogbf.c: Add #include <limits.h>.
11745 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11747         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
11748         path instead of returning without unlocking.
11750         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
11751         immediate-write ioctls.
11752         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
11754 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
11756         * sysdeps/mach/hurd/i386/init-first.c (init): Use
11757         __builtin_frame_address instead of making assumptions about the
11758         location of the return address relative to DATA.  Force early load of
11759         the return address.
11760         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
11761         __builtin_frame_address.
11763         dup3 for GNU Hurd.
11764         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
11765         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
11766         implement dup3 and do some further code clean-ups.
11767         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
11768         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
11770 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11772         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
11774         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
11775         HURD_CRITICAL_END around holding _hurd_dtable_lock.
11776         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
11777         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
11778         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
11779         d->port.lock.
11781         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
11782         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
11783         when handler == SIG_ERR, not when handler != SIG_ERR.
11785 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
11787         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
11788         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
11789         definitions.
11791         accept4 for GNU Hurd.
11792         * include/sys/socket.h (__libc_accept4): New prototype.
11793         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
11794         to implement __libc_accept4.
11795         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
11796         __libc_accept4.
11797         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
11799         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
11800         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
11801         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
11802         signal-defines.sym.
11804 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11806         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
11808 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
11810         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
11811         assertion on O_CLOEXEC flag.
11812         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
11813         * hurd/intern-fd.c: Likewise.
11814         * hurd/port2fd.c: Likewise.
11816 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11818         [BZ #3906]
11819         * bits/in.h (IPV6_PKTINFO): Define new macro.
11820         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
11822 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11824         [BZ #13954]
11825         [BZ #13955]
11826         [BZ #13956]
11827         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
11828         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
11829         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
11830         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
11831         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11832         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
11833         * math/libm-test.inc (logb_test) : Additional logb tests.
11835 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
11836             Andreas Jaeger  <aj@suse.de>
11838         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
11839         * configure: Regenerated.
11840         * config.h.in (LINK_OBSOLETE_RPC): New macro.
11841         * config.make.in (link-obsolete-rpc): New substituted variable.
11842         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
11843         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
11844         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
11845         (shared-only-routines): Don't set it under [link-obsolete-rpc],
11846         so that libc.a contains the symbols.
11847         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
11848         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
11849         * sunrpc/auth_none.c: Likewise.
11850         * sunrpc/auth_unix.c: Likewise.
11851         * sunrpc/authdes_prot.c: Likewise.
11852         * sunrpc/authuxprot.c: Likewise.
11853         * sunrpc/clnt_gen.c: Likewise.
11854         * sunrpc/clnt_perr.c: Likewise.
11855         * sunrpc/clnt_raw.c: Likewise.
11856         * sunrpc/clnt_simp.c: Likewise.
11857         * sunrpc/clnt_tcp.c: Likewise.
11858         * sunrpc/clnt_udp.c: Likewise.
11859         * sunrpc/clnt_unix.c: Likewise.
11860         * sunrpc/des_crypt.c: Likewise.
11861         * sunrpc/des_soft.c: Likewise.
11862         * sunrpc/get_myaddr.c: Likewise.
11863         * sunrpc/key_call.c: Likewise.
11864         * sunrpc/key_prot.c: Likewise.
11865         * sunrpc/netname.c: Likewise.
11866         * sunrpc/pm_getmaps.c: Likewise.
11867         * sunrpc/pm_getport.c: Likewise.
11868         * sunrpc/pmap_clnt.c: Likewise.
11869         * sunrpc/pmap_prot.c: Likewise.
11870         * sunrpc/pmap_prot2.c: Likewise.
11871         * sunrpc/pmap_rmt.c: Likewise.
11872         * sunrpc/publickey.c: Likewise.
11873         * sunrpc/rpc_cmsg.c: Likewise.
11874         * sunrpc/rpc_common.c: Likewise.
11875         * sunrpc/rpc_dtable.c: Likewise.
11876         * sunrpc/rpc_prot.c: Likewise.
11877         * sunrpc/rpc_thread.c: Likewise.
11878         * sunrpc/rtime.c: Likewise.
11879         * sunrpc/svc.c: Likewise.
11880         * sunrpc/svc_auth.c: Likewise.
11881         * sunrpc/svc_raw.c: Likewise.
11882         * sunrpc/svc_run.c: Likewise.
11883         * sunrpc/svc_tcp.c: Likewise.
11884         * sunrpc/svc_udp.c: Likewise.
11885         * sunrpc/svc_unix.c: Likewise.
11886         * sunrpc/svcauth_des.c: Likewise.
11887         * sunrpc/xcrypt.c: Likewise.
11888         * sunrpc/xdr.c: Likewise.
11889         * sunrpc/xdr_array.c: Likewise.
11890         * sunrpc/xdr_float.c: Likewise.
11891         * sunrpc/xdr_intXX_t.c: Likewise.
11892         * sunrpc/xdr_mem.c: Likewise.
11893         * sunrpc/xdr_rec.c: Likewise.
11894         * sunrpc/xdr_ref.c: Likewise.
11895         * sunrpc/xdr_sizeof.c: Likewise.
11896         * sunrpc/xdr_stdio.c: Likewise.
11898 2012-05-10  Roland McGrath  <roland@hack.frob.com>
11900         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
11901         change.  Update copyright years.
11903 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
11905         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
11907 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
11908             Joseph Myers  <joseph@codesourcery.com>
11909             Paul Pluzhnikov  <ppluzhnikov@google.com>
11911         [BZ #14012]
11912         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
11913         requiring rpcgen.
11914         [cross-compiling] (extra-libs): Likewise.
11915         [cross-compiling] (extra-libs-others): Likewise.
11916         [cross-compiling] (librpcsvc-routines): Likewise.
11917         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
11918         [cross-compiling] (omit-deps): Likewise.
11919         (sunrpc-CPPFLAGS): New variable.
11920         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
11921         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
11922         (cross-rpcgen-objs): New variable.
11923         (extra-objs): Append $(cross-rpcgen-objs).
11924         ($(cross-rpcgen-objs)): New rule.
11925         ($(objpfx)cross-rpcgen): Likewise.
11926         (rpcgen-cmd): Define to use $(built-program-file).  Expand
11927         comment.
11928         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
11929         ($(objpfx)x%.stmp): Likewise.
11930         * sunrpc/proto.h [IS_IN_build] (_): Define.
11931         [IS_IN_build] (_libc_intl_domainname): Likewise.
11933 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
11935         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
11936         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
11937         and R_X86_64_TPOFF64.
11939 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
11941         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
11942         sysdeps/unix/sysv/syscalls.list.
11943         (stime): Likewise.
11944         (utime): Likewise.
11945         * sysdeps/unix/sysv/syscalls.list: Remove file.
11947 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
11949         [BZ #3440]
11950         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
11951         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
11952         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
11953         (__LC_IDENTIFICATION): Make these macros useful in #if
11954         expressions, as required by C99.
11956 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
11958         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
11959         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
11960         after this.
11962 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
11964         * stdlib/longlong.h: Updated from GCC.
11966 2012-05-09  Andreas Jaeger  <aj@suse.de>
11968         * nscd/nscd.c (run_modes): Make named enum, reorder so that
11969         default is first entry.
11970         (run_mode): Set type.
11971         (main): Remove informal message about syslog.
11972         (options): Fix typo.
11974         [BZ #14053]
11975         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
11976         to asm.
11977         (lrint): Likewise.
11978         (llrintf): Likewise.
11979         (llrint): Likewise.
11980         (rint): Likewise.
11981         (rintf): Likewise.
11982         (nearbyint): Likewise.
11983         (nearbyintf): Likewise.
11985 2012-05-09  Andreas Jaeger  <aj@suse.de>
11986             Pedro Alves  <palves@redhat.com>
11988         * nscd/nscd.c (run_mode): Use enum.
11989         (main): Cleanup coding style issue.
11991 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
11992             Andreas Jaeger  <aj@suse.de>
11994         * nscd/nscd.c (go_background): Replaced with...
11995         (run_mode): ... this.
11996         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
11997         (options): Add -F --foreground.
11998         (main): Implement it.
11999         (parse_opt): Parse it.
12001 2012-05-09  Andreas Jaeger  <aj@suse.de>
12003         [BZ #14083]
12004         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
12005         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
12006         -Wconversion warning.
12007         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
12008         Likewise.
12010 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
12012         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
12013         == 0.
12014         (LC_ALL): Use macro-int-constant.
12015         (LC_COLLATE): Likewise.
12016         (LC_CTYPE): Likewise.
12017         (LC_MESSAGES): Likewise.
12018         (LC_MONETARY): Likewise.
12019         (LC_NUMERIC): Likewise.
12020         (LC_TIME): Likewise.
12021         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
12022         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
12023         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12024         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
12025         Specify type.
12026         [C99-based standards] (float_t): Expect type.
12027         [C99-based standards] (double_t): Expect type.
12028         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
12029         type.
12030         [C99-based standards] (HUGE_VALL): Likewise.
12031         [C99-based standards] (INFINITY): Likewise.
12032         [C99-based standards] (NAN): Likewise.
12033         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
12034         [C99-based standards] (FP_NAN): Likewise.
12035         [C99-based standards] (FP_NORMAL): Likewise.
12036         [C99-based standards] (FP_SUBNORMAL): Likewise.
12037         [C99-based standards] (FP_ZERO): Likewise.
12038         [C99-based standards] (FP_FAST_FMA): Use
12039         optional-macro-int-constant.  Specify type.  Require == 1.
12040         [C99-based standards] (FP_FAST_FMAF): Likewise.
12041         [C99-based standards] (FP_FAST_FMAL): Likewise.
12042         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
12043         [C99-based standards] (FP_ILOGBNAN): Likewise.
12044         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
12045         Specify type.
12046         [C99-based standards] (MATH_ERREXCEPT): Likewise.
12047         [C99-based standards] (math_errhandling): Specify type.
12048         [ISO99 || ISO11] (signgam): Do not allow.
12049         [non-C99-based standards] (copysignf): Do not allow.
12050         [non-C99-based standards] (exp2f): Likewise.
12051         [non-C99-based standards] (log2f): Likewise.
12052         [non-C99-based standards] (modff): Allow.
12053         [non-C99-based standards] (erff): Do not allow.
12054         [non-C99-based standards] (erfcf): Likewise.
12055         [non-C99-based standards] (gammaf): Likewise.
12056         [non-C99-based standards] (hypotf): Likewise.
12057         [non-C99-based standards] (j0f): Likewise.
12058         [non-C99-based standards] (j1f): Likewise.
12059         [non-C99-based standards] (jnf): Likewise.
12060         [non-C99-based standards] (lgammaf): Likewise.
12061         [non-C99-based standards] (tgammaf): Likewise.
12062         [non-C99-based standards] (y0f): Likewise.
12063         [non-C99-based standards] (y1f): Likewise.
12064         [non-C99-based standards] (ynf): Likewise.
12065         [non-C99-based standards] (isnanf): Likewise.
12066         [non-C99-based standards] (acoshf): Likewise.
12067         [non-C99-based standards] (asinhf): Likewise.
12068         [non-C99-based standards] (atanhf): Likewise.
12069         [non-C99-based standards] (cbrtf): Likewise.
12070         [non-C99-based standards] (expm1f): Likewise.
12071         [non-C99-based standards] (ilogbf): Likewise.
12072         [non-C99-based standards] (log1pf): Likewise.
12073         [non-C99-based standards] (logbf): Likewise.
12074         [non-C99-based standards] (nextafterf): Likewise.
12075         [non-C99-based standards] (remainderf): Likewise.
12076         [non-C99-based standards] (rintf): Likewise.
12077         [non-C99-based standards] (scalbf): Likewise.
12078         [non-C99-based standards] (copysignl): Likewise.
12079         [non-C99-based standards] (exp2l): Likewise.
12080         [non-C99-based standards] (log2l): Likewise.
12081         [non-C99-based standards] (modfl): Allow.
12082         [non-C99-based standards] (erfl): Do not allow.
12083         [non-C99-based standards] (erfcl): Likewise.
12084         [non-C99-based standards] (gammal): Likewise.
12085         [non-C99-based standards] (hypotl): Likewise.
12086         [non-C99-based standards] (j0l): Likewise.
12087         [non-C99-based standards] (j1l): Likewise.
12088         [non-C99-based standards] (jnl): Likewise.
12089         [non-C99-based standards] (lgammal): Likewise.
12090         [non-C99-based standards] (tgammal): Likewise.
12091         [non-C99-based standards] (y0l): Likewise.
12092         [non-C99-based standards] (y1l): Likewise.
12093         [non-C99-based standards] (ynl): Likewise.
12094         [non-C99-based standards] (isnanl): Likewise.
12095         [non-C99-based standards] (acoshl): Likewise.
12096         [non-C99-based standards] (asinhl): Likewise.
12097         [non-C99-based standards] (atanhl): Likewise.
12098         [non-C99-based standards] (cbrtl): Likewise.
12099         [non-C99-based standards] (expm1l): Likewise.
12100         [non-C99-based standards] (ilogbl): Likewise.
12101         [non-C99-based standards] (log1pl): Likewise.
12102         [non-C99-based standards] (logbl): Likewise.
12103         [non-C99-based standards] (nextafterl): Likewise.
12104         [non-C99-based standards] (remainderl): Likewise.
12105         [non-C99-based standards] (rintl): Likewise.
12106         [non-C99-based standards] (scalbl): Likewise.
12107         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12108         [non-C99-based standards] (FP_*): Do not allow.
12109         [C99-based standards] (FP_*): Change to
12110         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
12111         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
12112         allow.
12113         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
12114         (SIG_ERR): Likewise.
12115         [X/Open-based standards] (SIG_HOLD): Likewise.
12116         (SIG_IGN): Likewise.
12117         (SIGABRT): Use macro-int-constant.  Specify type.  Require
12118         positive value.
12119         (SIGFPE): Likewise.
12120         (SIGILL): Likewise.
12121         (SIGINT): Likewise.
12122         (SIGSEGV): Likewise.
12123         (SIGTER): Likewise.
12124         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
12125         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
12126         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
12127         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
12128         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
12129         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
12130         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
12131         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
12132         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
12133         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
12134         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
12135         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
12136         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
12137         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
12138         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
12139         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
12140         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
12141         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
12142         [X/Open-based standards] (SIGTRAP): Likewise.
12143         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
12144         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
12145         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
12146         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
12147         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
12148         allow.
12150 2012-05-08  Ian Wienand  <ianw@vmware.com>
12152         [BZ #14080]
12153         * time/tzset.c (__tzset_parse_tz): Update default rules for
12154         daylight time changes in the Energy Policy Act of 2005.
12156 2012-05-09  Andreas Jaeger  <aj@suse.de>
12158         [BZ #13983]
12159         * elf/ldconfig.c (parse_conf): Change string to make clear that
12160         ldconfig only issued a warning if ld.so.conf does not exist.
12162 2012-05-08  David S. Miller  <davem@davemloft.net>
12164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
12165         movxtod instead of popping the value on the stack.
12167         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12169 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
12171         * config.h.in: Add HAVE_ARM_PCS_VFP.
12173 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
12175         [BZ #13979]
12176         * include/features.h: Warn if user requests __FORTIFY_SOURCE
12177         checking but the checks are disabled for any reason.
12179 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
12181         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
12182         and ELF64_R_TYPE with ELFW(R_TYPE).
12184 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
12186         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
12187         (ulimit): Likewise.
12189         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
12190         (settimeofday): Likewise.
12192 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
12194         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
12195         a struct th_u2 inside the union, and move tu_block/tu_code into
12196         a new th_u3 union of tu_block/tu_code inside of that.  Move
12197         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
12198         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
12199         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
12200         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
12201         (th_stuff): Change to th_u1.tu_stuff.
12202         (th_data): Define.
12203         (th_msg): Change to th_u1.th_u2.tu_data.
12205 2012-05-07  David S. Miller  <davem@davemloft.net>
12207         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12209         [BZ #14074]
12210         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
12211         (SETUP_PIC_REG): Use it.
12212         (SETUP_PIC_REG_LEAF): Use it.
12214 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
12216         [BZ #13885]
12217         [BZ #13923]
12218         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
12219         USE_AS_EXPM1L.
12220         (EXPL_FINITE): Likewise.
12221         (FLDLOG): Likewise.
12222         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
12223         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
12224         e_expl.S.
12225         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
12226         USE_AS_EXPM1L.
12227         (EXPL_FINITE): Likewise.
12228         (FLDLOG): Likewise.
12229         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
12230         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
12231         e_expl.S.
12232         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
12233         test of -max_value argument for long double.
12234         * sysdeps/i386/fpu/libm-test-ulps: Update.
12235         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12237 2012-05-06  David S. Miller  <davem@davemloft.net>
12239         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
12240         quad soft-float symbols whose references which are compiler
12241         generated.
12242         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
12244 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
12246         [BZ #13884]
12247         [BZ #13914]
12248         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
12249         USE_AS_EXP10L.
12250         (EXPL_FINITE): Likewise.
12251         (FLDLOG): Likewise.
12252         (c0): Likewise.
12253         (c1): Likewise.
12254         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
12255         Adjust comments for base varying.
12256         (__expl_finite): Change alias to EXPL_FINITE.
12257         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
12258         e_expl.S.
12259         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
12260         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
12261         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
12262         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
12263         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
12264         USE_AS_EXP10L.
12265         (EXPL_FINITE): Likewise.
12266         (FLDLOG): Likewise.
12267         (c0): Likewise.
12268         (c1): Likewise.
12269         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
12270         Adjust comments for base varying.
12271         (__expl_finite): Change alias to EXPL_FINITE.
12272         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
12273         tests for bugs.
12274         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12276         [BZ #14064]
12277         * math/libm-test.inc (check_float_internal): Correct ulp
12278         calculation for subnormal expected results.
12280 2012-05-06  Andreas Jaeger  <aj@suse.de>
12282         * Makeconfig (+math-flags): New, set to -frounding-math.
12283         (+cflags): Add +math-flags so that all of glibc gets compiled with
12284         it.
12286         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
12288 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
12290         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
12291         Disable one test.
12293         [BZ #13787]
12294         [BZ #13922]
12295         [BZ #14036]
12296         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
12297         (__ieee754_expl): Allow for and saturate large arguments.
12298         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
12299         (u_threshold): Likewise.
12300         (__exp): Call __ieee754_exp before checking for overflow and
12301         underflow.
12302         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
12303         (u_threshold): Likewise.
12304         (__expf): Call __ieee754_expf before checking for overflow and
12305         underflow.
12306         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
12307         (u_threshold): Likewise.
12308         (__expl): Call __ieee754_expl before checking for overflow and
12309         underflow.
12310         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
12311         (__ieee754_expl): Allow for and saturate large arguments.
12312         * math/libm-test.inc (exp_test): Add another test.  Do not allow
12313         missing overflow exception on overflow.
12314         (expm1_test): Do not allow missing overflow exception on overflow.
12316         * sysdeps/i386/fpu/e_expl.c: Move to ...
12317         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
12318         rather than using inline asm.
12319         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
12320         * sysdeps/x86_64/fpu/e_expl.S: Copy from
12321         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
12323         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
12324         (nice): Likewise.
12325         (poll): Likewise.
12326         (signal): Likewise.
12327         (time): Likewise.
12328         (times): Likewise.
12330 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
12332         * sysdeps/unix/syscalls.list (adjtime): Add entry from
12333         sysdeps/unix/common/syscalls.list.
12334         (fchmod): Likewise.
12335         (fchown): Likewise.
12336         (ftruncate): Likewise.
12337         (getrusage): Likewise.
12338         (gettimeofday): Likewise.
12339         (setpgid): Likewise.
12340         (setregid): Likewise.
12341         (setreuid): Likewise.
12342         (sigaction): Likewise.
12343         (truncate): Likewise.
12344         (vhangup): Likewise.
12345         * sysdeps/unix/common/syscalls.list: Remove file.
12346         * sysdeps/unix/bsd/Implies: Don't include unix/common.
12347         * sysdeps/unix/sysv/linux/Implies: Likewise.
12349 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
12351         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
12352         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
12353         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
12354         Moved to ...
12355         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
12356         Here.
12357         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
12358         to ...
12359         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
12360         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
12361         to ...
12362         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
12363         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
12364         to ...
12365         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
12366         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
12367         to ...
12368         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
12369         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
12370         to ...
12371         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
12372         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
12373         to ...
12374         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
12375         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
12376         to ...
12377         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
12378         Here.
12379         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
12380         to ...
12381         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
12382         Here.
12383         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
12384         to ...
12385         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
12386         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
12387         Moved to ...
12388         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
12389         Here.
12390         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
12391         to ...
12392         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
12394 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
12396         * sysdeps/unix/common/bits/dirent.h: Remove file.
12397         * sysdeps/unix/common/bits/fcntl.h: Likewise.
12399         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
12400         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
12401         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
12402         * sysdeps/unix/bsd/isatty.c: Likewise.
12403         * sysdeps/unix/bsd/tcdrain.c: Likewise.
12404         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
12405         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
12407 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12409         [BZ #13563]
12410         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
12411         long double comparison inaccuracies.
12412         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
12413         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12415 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
12417         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
12418         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
12420 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
12422         [BZ #14049]
12423         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
12424         nonzero digits before rounding a hex value.
12425         * stdlib/tst-strtod.c (tests): Add another test.
12427 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12429         * sysdeps/s390/fpu/libm-test-ulps: Update.
12431 2012-05-03  Andreas Jaeger  <aj@suse.de>
12433         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
12434         does not get optimized out.
12435         (malloc_opt_barrier): New.
12437 2012-05-03  Andreas Jaeger  <aj@suse.de>
12438             Roland McGrath  <roland@hack.frob.com>
12440         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
12441         intermediate file deletion.
12442         (generated): Add .symlist files.
12444 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
12446         [BZ #13775]
12447         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
12448         Redirect under this condition.
12449         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
12450         [__USE_GNU] (__dprintf_chk): Not under this condition.
12451         [__USE_GNU] (__vdprintf_chk): Likewise.
12452         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
12453         under this condition.
12454         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
12455         [__USE_XOPEN2K8] (dprintf): Define under this condition.
12456         [__USE_XOPEN2K8] (vdprintf): Likewise.
12457         [__USE_GNU] (__dprintf_chk): Not under this condition.
12458         [__USE_GNU] (__vdprintf_chk): Likewise.
12459         [__USE_GNU] (dprintf): Likewise.
12460         [__USE_GNU] (vdprintf): Likewise.
12462 2012-05-03  Roland McGrath  <roland@hack.frob.com>
12464         * elf/Makefile (common-generated): Set this instead of generated for
12465         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
12466         $(all-built-dso)-derived lists.
12468 2012-05-03  Andreas Jaeger  <aj@suse.de>
12470         * sysdeps/i386/fpu/libm-test-ulps: Update.
12472         * FAQ: Removed.
12473         * FAQ.in: Likewise.
12474         * scripts/gen-FAQ.pl: Likewise.
12475         * manual/install.texi (Installation): Point to online location of
12476         FAQ.
12477         * Makefile (files-for-dist): Remove FAQ.
12478         (FAQ): Remove.
12480 2012-05-02  Allan McRae  <allan@archlinux.org>
12482         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
12483         (LDFLAGS-reldepmod5.so): Likewise.
12484         (LDFLAGS-reldep6mod1.so): Likewise.
12485         (LDFLAGS-reldep6mod4.so): Likewise.
12486         (LDFLAGS-reldep8mod3.so): Likewise.
12487         (LDFLAGS-unload4mod1.so): Likewise.
12488         (LDFLAGS-unload4mod2.so): Likewise.
12489         (LDFLAGS-tst-initorder): Likewise.
12490         (LDFLAGS-tst-initordera2.so): Likewise.
12491         (LDFLAGS-tst-initordera3.so): Likewise.
12492         (LDFLAGS-tst-initordera4.so): Likewise.
12493         (LDFLAGS-tst-initorderb2.so): Likewise.
12494         (LDFLAGS-noload): Likewise.
12495         (LDFLAGS-next): Likewise.
12496         (LDFLAGS-order2mod1.so): Likewise.
12497         (LDFLAGS-order2mod2.so): Likewise.
12498         (LDFLAGS-tst-initorder2): Likewise.
12499         (LDFLAGS-tst-initorder2a.so): Likewise.
12500         (LDFLAGS-tst-initorder2b.so): Likewise.
12501         (LDFLAGS-tst-initorder2c.so): Likewise.
12502         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
12504 2012-05-02  David S. Miller  <davem@davemloft.net>
12506         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12508 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
12510         [BZ #14055]
12511         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
12513 2012-05-02  Andreas Jaeger  <aj@suse.de>
12515         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
12516         since we manipulate rounding mode.
12517         (CPPFLAGS-test-idouble.c): Likewise.
12518         (CPPFLAGS-test-ifloat.c): Likewise.
12519         (CFLAGS-test-ldouble.c): Likewise.
12520         (CFLAGS-test-double.c): Likewise.
12521         (CFLAGS-test-float.c): Likewise.
12522         (CFLAGS-test-misc.c): Likewise.
12523         (CFLAGS-test-test-fenv.c): Likewise.
12525 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12527         [BZ #2550]
12528         [BZ #2570]
12529         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
12530         comparisons to determine direction to adjust input.
12532 2012-05-01  Roland McGrath  <roland@hack.frob.com>
12534         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
12535         output to the target.
12537         * scripts/localplt.awk: New file.
12538         * elf/Makefile ($(objpfx)check-localplt): Target removed.
12539         (check-localplt-CFLAGS): Variable removed.
12540         ($(all-built-dso:=.jmprel)): New static pattern rule.
12541         (generated): Add those targets.
12542         (localplt-built-dso): New variable.
12543         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
12545         * elf/check-localplt.c: File removed.
12547         * scripts/check-execstack.awk: New file.
12548         * elf/Makefile ($(objpfx)check-execstack): Target removed.
12549         (check-execstack-CFLAGS): Variable removed.
12550         ($(objpfx)check-execstack.h): Target removed.
12551         ($(objpfx)execstack-default): New target.
12552         (generated): Add that instead of check-execstack.h.
12553         ($(all-built-dso:=.phdr)): New static pattern rule.
12554         (generated): Add those targets.
12555         * elf/check-execstack.c: File removed.
12557         * scripts/check-textrel.awk: New file.
12558         * elf/Makefile ($(objpfx)check-textrel): Target removed.
12559         (check-textrel-CFLAGS): Variable removed.
12560         (all-built-dso): Use := to define.o
12561         ($(all-built-dso:=.dyn)): New static pattern rule.
12562         (generated): Add those targets.
12563         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
12564         * config.make.in (READELF): New substituted variable.
12565         * elf/check-textrel.c: File removed.
12567 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
12569         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
12570         allow.
12571         * conform/data/ctype.h-data [C99-based standards] (isblank):
12572         Expect function.
12573         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
12574         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
12575         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12576         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
12577         Specify type.  Require positive value.
12578         (EILSEQ): Likewise.
12579         (ERANGE): Likewise.
12580         [ISO || POSIX] (EILSEQ): Do not expect.
12581         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
12582         Specify type.  Require positive value.
12583         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
12584         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
12585         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
12586         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
12587         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
12588         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
12589         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
12590         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
12591         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
12592         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
12593         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
12594         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
12595         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
12596         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
12597         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
12598         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
12599         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
12600         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
12601         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
12602         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
12603         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
12604         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
12605         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
12606         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
12607         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
12608         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
12609         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
12610         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
12611         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
12612         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
12613         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
12614         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
12615         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
12616         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
12617         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
12618         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
12619         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
12620         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
12621         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
12622         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
12623         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
12624         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
12625         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
12626         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
12627         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
12628         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
12629         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
12630         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
12631         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
12632         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
12633         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
12634         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
12635         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
12636         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
12637         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
12638         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
12639         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
12640         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
12641         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
12642         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
12643         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
12644         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
12645         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
12646         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
12647         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
12648         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
12649         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
12650         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
12651         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
12652         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
12653         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
12654         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
12655         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
12656         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
12657         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
12658         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
12659         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
12660         Require >= 2.
12661         (FLT_ROUNDS): Expect as macro, not constant.
12662         (FLT_MANT_DIG): Use macro-int-constant.
12663         (DBL_MANT_DIG): Likewise.
12664         (LDBL_MANT_DIG): Likewise.
12665         (FLT_DIG): Likewise.
12666         (DBL_DIG): Likewise.
12667         (LDBL_DIG): Likewise.
12668         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
12669         (DBL_MIN_EXP): Likewise.
12670         (LDBL_MIN_EXP): Likewise.
12671         (FLT_MAX_EXP): Use macro-int-constant.
12672         (DBL_MAX_EXP): Likewise.
12673         (LDBL_MAX_EXP): Likewise.
12674         (FLT_MAX_10_EXP): Likewise.
12675         (DBL_MAX_10_EXP): Likewise.
12676         (LDBL_MAX_10_EXP): Likewise.
12677         (FLT_MAX): Use macro-constant.
12678         (DBL_MAX): Likewise.
12679         (LDBL_MAX): Likewise.
12680         (FLT_EPSILON): Use macro-constant.  Give upper bound.
12681         (DBL_EPSILON): Likewise.
12682         (LDBL_EPSILON): Likewise.
12683         (FLT_MIN): Likewise.
12684         (DBL_MIN): Likewise.
12685         (LDBL_MIN): Likewise.
12686         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
12687         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
12688         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
12689         [ISO11] (FLT_HAS_SUBNORM): Likewise.
12690         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
12691         [ISO11] (DBL_DECIMAL_DIG): Likewise.
12692         [ISO11] (FLT_DECIMAL_DIG): Likewise.
12693         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
12694         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
12695         [ISO11] (FLT_TRUE_MIN): Likewise.
12696         [ISO11] (LDBL_TRUE_MIN): Likewise.
12697         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12698         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
12699         (SCHAR_MIN): Use macro-int-constant.  Specify type.
12700         (SCHAR_MAX): Likewise.
12701         (UCHAR_MAX): Likewise.
12702         (CHAR_MIN): Likewise.
12703         (CHAR_MAX): Likewise.
12704         (MB_LEN_MAX): Use macro-int-constant.
12705         (SHRT_MIN): Use macro-int-constant.  Specify type.
12706         (SHRT_MAX): Likewise.
12707         (USHRT_MAX): Likewise.
12708         (INT_MAX): Likewise.
12709         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
12710         bound negative.
12711         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
12712         bound with "U".
12713         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
12714         bound with "L".
12715         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
12716         bound negative.  Suffix upper bound with "L".
12717         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
12718         bound with "UL".
12719         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
12720         Specify type.
12721         [C99-based standards] (LLONG_MAX): Likewise.
12722         [C99-based standards] (ULLONG_MAX): Likewise.
12723         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
12724         == 0.
12725         [ISO11] (max_align_t): Require type.
12726         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12728         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
12729         from $CFLAGS, without defining away __attribute__ calls.
12730         (checknamespace): Use $CFLAGS_namespace.
12732         * conform/conformtest.pl (@keywords): Only include C99 keywords
12733         for standards based on C99 or C11.
12735         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
12736         Disable tests.
12737         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
12738         UNIX98]: Likewise.
12740         * conform/conformtest.pl: Handle "macro-int-constant" and test for
12741         usability of symbols in #if.
12743         * conform/conformtest.pl: If macro or constant types start
12744         "promoted:", expect the symbol to be of the following type
12745         promoted by the integer promotions.
12747         * conform/conformtest.pl: Parse all "constant" and "macro" lines
12748         in one place.  Also handle "macro-constant".
12750         * conform/conformtest.pl: Only accept expected macro values with
12751         "==".  Parse all "macro" lines in one place.
12752         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
12754         * conform/conformtest.pl: Handle braced types on "constant" lines
12755         instead of handling "typed-constant".
12756         * conform/data/signal.h-data: Use "constant" instead of
12757         "typed-constant".
12759         * conform/conformtest.pl: Handle "optional-" at start of lines in
12760         one place rather than duplicating several cases.  Handle each
12761         format of "macro" line with initial "optional-".
12763         * conform/conformtest.pl: Only accept expected constant or
12764         optional-constant values with "==".  Parse all "constant" lines in
12765         one place.  Parse all "optional-constant" lines in one place.
12766         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
12767         * conform/data/fmtmsg.h-data: Likewise.
12768         * conform/data/netinet/in.h-data: Likewise.
12769         * conform/data/tar.h-data: Likewise.
12770         * conform/data/limits.h-data: Use "==" form on "constant" and
12771         "optional-constant" lines.
12773         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
12774         Use -std=c99 for XOPEN2K.
12775         (@knownproblems): Remove.
12776         (newtoken): Don't check %isknown.
12778         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
12779         Do not expect macro.
12780         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
12781         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
12782         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
12783         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
12784         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
12785         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
12786         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
12787         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
12788         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
12789         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
12790         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
12791         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
12792         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
12793         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
12794         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
12795         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
12796         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
12797         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
12798         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
12799         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
12800         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
12801         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
12802         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
12803         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
12804         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
12805         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
12806         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
12807         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
12808         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
12809         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
12810         [XPG3] (acosh): Likewise.
12811         [XPG3] (asinh): Likewise.
12812         [XPG3] (atanh): Likewise.
12813         [XPG3] (cbrt): Likewise.
12814         [XPG3] (expm1): Likewise.
12815         [XPG3] (ilogb): Likewise.
12816         [XPG3] (log1p): Likewise.
12817         [XPG3] (logb): Likewise.
12818         [XPG3] (nextafter): Likewise.
12819         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
12820         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
12821         [XPG3] (remainder): Likewise.
12822         [XPG3] (rint): Likewise.
12823         [XPG3 || XPG4 || UNIX98] (round): Likewise.
12824         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
12825         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
12826         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
12827         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
12828         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
12829         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
12830         [UNIX98 || XOPEN2K] (scalb): Expect.
12831         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
12832         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
12833         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
12834         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
12835         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
12836         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
12837         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
12838         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
12839         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
12840         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
12841         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
12842         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
12843         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
12844         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
12845         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
12846         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
12847         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
12848         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
12849         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
12850         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
12851         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
12852         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
12853         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
12854         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
12855         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
12856         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
12857         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
12858         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
12859         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
12860         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
12861         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
12862         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
12863         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
12864         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
12865         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
12866         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
12867         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
12868         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
12869         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
12870         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
12871         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
12872         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
12873         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
12874         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
12875         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
12876         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
12877         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
12878         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
12879         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
12880         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
12881         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
12882         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
12883         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
12884         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
12885         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
12886         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
12887         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
12888         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
12889         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
12890         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
12891         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
12892         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
12893         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
12894         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
12895         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
12896         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
12897         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
12898         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
12899         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
12900         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
12901         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
12902         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
12903         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
12904         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
12905         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
12906         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
12907         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
12908         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
12909         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
12910         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
12911         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
12912         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
12913         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
12914         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
12915         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
12916         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
12917         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
12918         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
12919         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
12920         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
12921         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
12922         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
12923         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
12924         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
12925         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
12926         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
12927         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
12928         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
12929         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
12930         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
12931         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
12932         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
12933         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
12934         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
12935         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
12936         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
12937         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
12938         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
12939         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
12940         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
12941         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
12942         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
12943         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
12944         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
12945         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
12946         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
12947         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
12948         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
12949         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
12950         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
12951         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
12952         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
12953         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
12954         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
12955         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
12956         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
12957         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
12958         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
12959         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
12960         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
12961         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
12962         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
12963         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
12964         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
12965         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
12966         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
12967         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
12969         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
12970         _XOPEN_SOURCE_EXTENDED for XPG4.
12972         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
12974         * Makeconfig (localtime): Remove variable.
12975         (inst_localtime-file): Likewise.
12977 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
12979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
12980         Update.
12981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12982         Update.
12983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
12984         Update.
12985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
12986         Update.
12987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
12988         Update.
12989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
12990         Update.
12991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12992         Update.
12993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
12994         Update.
12995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
12996         Update.
12998 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
13000         [BZ #2550]
13001         [BZ #2570]
13002         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
13003         comparisons to determine direction to adjust input.
13004         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
13005         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
13006         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
13007         Likewise.
13008         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
13009         Likewise.
13010         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13011         Likewise.
13012         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
13013         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
13014         Likewise.
13015         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
13016         Likewise.
13017         * math/libm-test.inc (nexttoward_test): Add more tests.
13019 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
13021         [BZ #14040]
13022         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
13023         in version GLIBC_2.1, not GLIBC_2.0.
13024         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
13025         Likewise.
13027 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
13029         [BZ #13942]
13030         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
13031         (1 - x) * (1 + x).
13032         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
13033         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
13034         * math/libm-test.inc (acos_test): Add more tests.
13035         (asin_test): Likewise.
13036         * sysdeps/i386/fpu/libm-test-ulps: Update.
13037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13039         [BZ #14034]
13040         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
13041         of square root.
13042         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
13043         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
13044         * math/libm-test.inc (acos_test_tonearest): New function.
13045         (acos_test_towardzero): Likewise.
13046         (acos_test_downward): Likewise.
13047         (acos_test_upward): Likewise.
13048         (asin_test_tonearest): Likewise.
13049         (asin_test_towardzero): Likewise.
13050         (asin_test_downward): Likewise.
13051         (asin_test_upward): Likewise.
13052         (main): Call the new functions.
13053         * sysdeps/i386/fpu/libm-test-ulps: Update.
13054         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13056         [BZ #13884]
13057         [BZ #13924]
13058         * math/e_exp10.c: Include <float.h>.
13059         (__ieee754_exp10): Handle underflow here rather than multiplying
13060         large negative argument by M_LN10.
13061         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
13062         of __ieee754_expf.
13063         * math/e_exp10l.c: Include <float.h>.
13064         (__ieee754_exp10l): Handle underflow here rather than multiplying
13065         large negative argument by M_LN10l.
13066         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
13067         spurious overflow exception on underflow.
13069 2012-04-29  Marek Polacek  <polacek@redhat.com>
13071         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
13072         (__fortify_function): New macro.
13073         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
13074         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
13075         __extern_always_inline.
13076         * libio/bits/stdio2.h: Likewise.
13077         * libio/bits/stdio.h: Likewise.
13078         * string/string.h: Likewise.
13079         * string/bits/string3.h: Likewise.
13080         * include/stdio.h: Likewise.
13081         * stdlib/bits/stdlib.h: Likewise.
13082         * stdlib/stdlib.h: Likewise.
13083         * rt/bits/mqueue2.h: Likewise.
13084         * rt/mqueue.h: Likewise.
13085         * posix/bits/unistd.h: Likewise.
13086         * posix/unistd.h: Likewise.
13087         * io/bits/poll2.h: Likewise.
13088         * io/bits/fcntl2.h: Likewise.
13089         * io/fcntl.h: Likewise.
13090         * io/sys/poll.h: Likewise.
13091         * misc/bits/syslog.h: Likewise.
13092         * misc/bits/syslog-ldbl.h: Likewise.
13093         * misc/sys/syslog.h: Likewise.
13094         * socket/bits/socket2.h: Likewise.
13095         * socket/sys/socket.h: Likewise.
13096         * debug/tst-chk1.c: Likewise.
13097         * wcsmbs/bits/wchar2.h: Likewise.
13098         * wcsmbs/bits/wchar-ldbl.h: Likewise.
13099         * wcsmbs/wchar.h: Likewise.
13101 2012-04-29  Andreas Jaeger  <aj@suse.de>
13103         * Makerules (tests): Remove enable-check-abi protection.
13104         (check-abi-warn): Remove.
13105         (check-abi-%): Remove check-abi-warn usage.
13107         * configure.in: Remove check-abi configure option.
13108         * configure: Regenerated.
13109         * config.make.in (enable-check-abi): Remove.
13111 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
13113         [BZ #14033]
13114         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
13115         double functions to double *_finite functions.
13117         [BZ #13941]
13118         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
13119         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
13120         LDBL_MIN_EXP.
13121         * stdio-common/Makefile (tests): Add tst-sprintf3.
13122         * stdio-common/tst-sprintf3.c: New file.
13124         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
13125         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
13127 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
13129         * conform/conformtest.pl: Remove duplicate typed-constant
13130         handling.
13132 2012-04-28  David S. Miller  <davem@davemloft.net>
13134         * Makerules (%.abilist): Add vpath on sysdep_dirs.
13135         (check-abi-%): Remove AWK script prerequisite and explicit
13136         abilist directory.
13137         (check-abi): Rewrite to just diff the symlist with the abilist.
13138         (config-tls, config-abi-config): Delete, no longer used.
13139         (update-abi-%): Remove AWK script and explicit abilist directory.
13140         (update-abi): Rewrite to simply compare and conditionally copy the
13141         symlist and the sysdep abilist file.  Remove update-abi-config
13142         checks.
13143         * abilist/ld.abilist: Remove.
13144         * abilist/libBrokenLocale.abilist: Remove.
13145         * abilist/libanl.abilist: Remove.
13146         * abilist/libcrypt.abilist: Remove.
13147         * abilist/libdl.abilist: Remove.
13148         * abilist/librt.abilist: Remove.
13149         * abilist/libthread_db.abilist: Remove.
13150         * abilist/libutil.abilist: Remove.
13151         * scripts/extract-abilist.awk: Remove.
13152         * scripts/merge-abilist.awk: Remove.
13153         * sysdeps/generic/libcidn.abilist: New file.
13154         * sysdeps/generic/libnss_compat.abilist: New file.
13155         * sysdeps/generic/libnss_db.abilist: New file.
13156         * sysdeps/generic/libnss_dns.abilist: New file.
13157         * sysdeps/generic/libnss_files.abilist: New file.
13158         * sysdeps/generic/libnss_hesiod.abilist: New file.
13159         * sysdeps/generic/libnss_nis.abilist: New file.
13160         * sysdeps/generic/libnss_nisplus.abilist: New file.
13161         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
13162         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
13163         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
13164         file.
13165         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
13166         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
13167         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
13168         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
13169         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
13170         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
13171         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
13172         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
13173         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
13174         file.
13175         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
13176         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
13177         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
13178         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
13179         file.
13180         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
13181         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
13182         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
13183         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
13184         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
13185         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
13186         file.
13187         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
13188         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
13189         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
13190         file.
13191         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
13192         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
13193         New file.
13194         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
13195         New file.
13196         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
13197         New file.
13198         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
13199         New file.
13200         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
13201         New file.
13202         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
13203         New file.
13204         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
13205         New file.
13206         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
13207         New file.
13208         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
13209         New file.
13210         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
13211         New file.
13212         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
13213         New file.
13214         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
13215         New file.
13216         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
13217         New file.
13218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
13219         file.
13220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
13221         New file.
13222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
13223         New file.
13224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
13225         file.
13226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
13227         New file.
13228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
13229         New file.
13230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
13231         file.
13232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
13233         New file.
13234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
13235         New file.
13236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
13237         New file.
13238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
13239         New file.
13240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
13241         New file.
13242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
13243         New file.
13244         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
13245         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
13246         file.
13247         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
13248         New file.
13249         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
13250         file.
13251         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
13252         file.
13253         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
13254         file.
13255         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
13256         file.
13257         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
13258         file.
13259         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13260         New file.
13261         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
13262         file.
13263         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
13264         file.
13265         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
13266         New file.
13267         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
13268         file.
13269         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
13270         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
13271         file.
13272         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
13273         New file.
13274         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
13275         file.
13276         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
13277         file.
13278         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
13279         file.
13280         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
13281         file.
13282         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
13283         file.
13284         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13285         New file.
13286         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
13287         file.
13288         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
13289         file.
13290         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
13291         New file.
13292         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
13293         file.
13294         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
13295         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
13296         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
13297         file.
13298         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
13299         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
13300         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
13301         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
13302         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
13303         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
13304         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
13305         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
13306         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
13307         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
13308         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
13309         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
13310         file.
13311         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
13312         New file.
13313         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
13314         file.
13315         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
13316         file.
13317         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
13318         file.
13319         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
13320         file.
13321         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
13322         file.
13323         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
13324         New file.
13325         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
13326         New file.
13327         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
13328         file.
13329         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
13330         New file.
13331         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
13332         file.
13333         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
13334         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
13335         file.
13336         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
13337         New file.
13338         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
13339         file.
13340         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
13341         file.
13342         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
13343         file.
13344         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
13345         file.
13346         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
13347         file.
13348         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
13349         New file.
13350         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
13351         New file.
13352         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
13353         file.
13354         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
13355         New file.
13356         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
13357         file.
13359 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
13361         * conform/conformtest.pl: Fix typo in handling typed-constant from
13362         allow-header.
13364 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
13366         * README: Cut down references to pre-2.6 Linux kernels and
13367         Linuxthreads.  Update lists of configurations in libc and ports
13368         and sort alphabetically.  Say "or newer" with Linux kernel version
13369         requirements.
13371         * config.h.in [IS_IN_build]: Allow compiling without optimization.
13373 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13375         [BZ #887]
13376         * math/libm-test.inc (logb_test_downward): New test to expose
13377         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
13378         rounding mode.
13380 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
13382         [BZ #14027]
13383         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
13384         to be done.
13385         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
13386         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
13388 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
13390         * sysdeps/unix/i386/brk.S: Remove file.
13391         * sysdeps/unix/i386/dl-brk.S: Likewise.
13392         * sysdeps/unix/i386/pipe.S: Likewise.
13393         * sysdeps/unix/i386/sigreturn.S: Likewise.
13394         * sysdeps/unix/i386/syscall.S: Likewise.
13395         * sysdeps/unix/i386/vfork.S: Likewise.
13396         * sysdeps/unix/i386/wait.S: Likewise.
13398         * sysdeps/unix/common/tcsendbrk.c: Move to ...
13399         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
13401         * configure.in (arm*-none*): Do not allow without
13402         --enable-hacker-mode.
13403         (netbsd*): Remove case setting base_os.
13404         (386bsd*): Likewise.
13405         (freebsd*): Likewise.
13406         (bsdi*): Likewise.
13407         (osf*): Likewise.
13408         (sunos*): Likewise.
13409         (ultrix*): Likewise.
13410         (newsos*): Likewise.
13411         (dynix*): Likewise.
13412         (*bsd*): Likewise.
13413         (sysv*): Likewise.
13414         (isc*): Likewise.
13415         (esix*): Likewise.
13416         (sco*): Likewise.
13417         (minix*): Likewise.
13418         (irix4*): Likewise.
13419         (irix6*): Likewise.
13420         (solaris[2-9]*): Likewise.
13421         (none): Likewise.
13422         * configure: Regenerated.
13424 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13426         [BZ #11521]
13427         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
13428         overflow or cancellation in calculating denominator.
13429         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
13430         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
13431         down expression to avoid unexpected rounding in newer GCCs.
13432         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
13434 2012-04-26  David S. Miller  <davem@davemloft.net>
13436         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
13437         long-double compat symbols.
13438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
13440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
13441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
13442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
13443         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
13444         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
13445         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
13446         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
13447         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
13448         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
13449         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
13450         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13452 2012-04-25  David S. Miller  <davem@davemloft.net>
13454         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
13455         HWCAP_* values only after the memory barriers have been defined.
13456         (atomic_full_barrier): Define.
13457         (atomic_read_barrier): Define.
13458         (atomic_write_barrier): Define.
13460 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13462         * shlib-versions: Add libgcc_s version information.
13463         * sysdeps/generic/libgcc_s.h: Remove.
13464         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
13465         libgcc_s.h.
13466         * sysdeps/gnu/unwind-resume.c: Likewise.
13467         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
13469 2012-04-25  David S. Miller  <davem@davemloft.net>
13471         * sysdeps/unix/sparc/brk.S: Delete.
13472         * sysdeps/unix/sparc/dl-brk.S: Delete.
13473         * sysdeps/unix/sparc/pipe.S: Delete.
13474         * sysdeps/unix/sparc/sysdep.S: Delete.
13475         * sysdeps/unix/sparc/sysdep.h: Delete.
13476         * sysdeps/unix/sparc/vfork.S: Delete.
13477         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
13478         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
13479         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
13480         ret_ERRVAL, r0, r1, MOVE): Define.
13481         (JUMPTARGET): Remove.
13482         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
13483         sysdeps/unix/sparc/sysdep.h
13484         (ENTRY, END): Remove.
13485         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13487 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
13489         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
13490         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
13491         -DIS_IN_build.
13493         * timezone/README: Update upstream location and email address for
13494         tzcode and tzdata.
13495         * timezone/zdump.c: Update from tzcode 2012b.
13496         * timezone/zic.c: Likewise.
13498         * configure.in (libc_cv_as_needed): Remove test.
13499         * configure: Regenerated.
13500         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
13501         conditional definition.
13502         [$(have-as-needed) != yes] (no-as-needed): Likewise.
13503         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
13504         * config.make.in (have-as-needed): Remove variable.
13506 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
13507             Paul Pluzhnikov  <ppluzhnikov@google.com>
13509         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
13510         strings correctly.
13512 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
13514         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
13515         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
13516         * sysdeps/sh/strlen.S: Likewise.
13518 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
13520         * sysdeps/unix/fork.S: Remove file.
13521         * sysdeps/unix/i386/fork.S: Likewise.
13522         * sysdeps/unix/sparc/fork.S: Likewise.
13524         * sysdeps/unix/system.c: Remove file.
13525         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
13527         * sysdeps/unix/getegid.S: Remove file.
13528         * sysdeps/unix/geteuid.S: Likewise.
13530 2012-04-24  Roland McGrath  <roland@hack.frob.com>
13532         * scripts/check-localplt.awk: New file.
13533         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
13534         of diff.
13535         * scripts/data/localplt-generic.data: Add a comment.
13537         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
13538         NODE when __dir_mkfile failed.
13539         * sysdeps/mach/hurd/symlinkat.c: Likewise.
13540         Reported by Ludovic Courtès <ludo@gnu.org>.
13542 2012-04-24  Andreas Jaeger  <aj@suse.de>
13544         * Makerules (common-clean): Also remove gen-as-const-headers
13545         files.
13547 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
13549         * Makerules (native-compile): Do not change working directory for
13550         build.  Use $(OUTPUT_OPTION) in command.
13551         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
13553 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13555         [BZ #13886]
13556         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
13557         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
13558         * math/libm-test.inc (floor_test): Add more tests.
13559         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
13561 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
13563         * sysdeps/unix/getdents.c: Remove file.
13564         * sysdeps/unix/sysv/getdents.c: Likewise.
13565         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
13567         * sysdeps/unix/syscalls.list (madvise): Add syscall from
13568         sysdeps/unix/mman/syscalls.list.
13569         (mmap): Likewise.
13570         (mprotect): Likewise.
13571         (msync): Likewise.
13572         (munmap): Likewise.
13573         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
13574         * sysdeps/unix/mman/syscalls.list: Remove.
13575         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
13577         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
13578         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
13579         * configure: Regenerated.
13580         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
13581         $(libgcc_s_suffix).
13582         * config.make.in (libgcc_s_suffix): Remove variable.
13584 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
13586         * sysdeps/unix/sysv/gethostname.c: Move to ...
13587         * sysdeps/posix/gethostname.c: ... here.
13589         * sysdeps/unix/execve.S: Remove file.
13591         * sysdeps/unix/_exit.S: Remove file.
13593 2012-04-23  Andreas Jaeger  <aj@suse.de>
13595         [BZ #13739]
13596         * manual/Makefile: Remove make dist support, there's no
13597         need for a stand-alone documentation tar ball.
13598         (TEXI2DVI): Define always, it's not in Makeconfig.
13599         (dist): Removed.
13600         (tar-it): Removed.
13601         (edition): Removed.
13602         (glibc-doc-$(edition).tar): Removed
13603         (%.Z): Removed.
13604         (%.gz): Removed.
13605         (%.uu): Removed.
13606         (ETAGS): Remove, it's in Makeconfig.
13607         (move-if-change): Remove, it's in Makeconfig.
13609 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
13611         [BZ #13970]
13612         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
13613         (strtod, strtof, strtold, strtol, strtoul, strtoq)
13614         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
13615         (strtod_l, strtof_l, strtold_l): Remove __wur.
13616         It is not necessarily an error to ignore strtol's return value.
13617         One can reliably look at the stored endptr to decide whether
13618         the number had valid syntax.
13620 2012-04-21  Andreas Jaeger  <aj@suse.de>
13622         [BZ #13739]
13623         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
13625 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
13627         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
13628         * sysdeps/unix/sysv/Versions: Remove file.
13630 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
13632         [BZ #13927]
13633         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13635 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
13637         [BZ #7064]
13638         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
13639         version from __vm86.
13641 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
13643         * sysdeps/unix/common/lxstat.c: Remove file.
13644         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
13646         * sysdeps/unix/sysv/Makefile: Remove file.
13648         * sysdeps/unix/sysv/direct.h: Remove file.
13650         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
13651         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
13652         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
13653         * sysdeps/unix/sysv/bits/signum.h: Likewise.
13654         * sysdeps/unix/sysv/bits/stat.h: Likewise.
13655         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
13656         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
13658         * sysdeps/unix/sysv/setrlimit.c: Remove file.
13660         * sysdeps/unix/xmknod.c: Remove file.
13661         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
13663         * sysdeps/unix/sysv/settimeofday.c: Remove file.
13665         * sysdeps/unix/sysv/i386/time.S: Remove file.
13667         * sysdeps/unix/fxstat.c: Remove file.
13668         * sysdeps/unix/xstat.c: Likewise.
13669         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
13671         * sysdeps/unix/sysv/sigaction.c: Remove file.
13673         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
13674         (sysdep_headers): Remove variable.
13675         [termio.h not in sysdep_headers] (generated): Likewise.
13676         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
13677         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
13678         * sysdeps/unix/sysv/tcdrain.c: Likewise.
13679         * sysdeps/unix/sysv/tcflow.c: Likewise.
13680         * sysdeps/unix/sysv/tcflush.c: Likewise.
13681         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
13682         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
13683         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
13684         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
13685         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
13687         * sysdeps/unix/siglist.c: Remove file.
13689         * sysdeps/unix/getppid.S: Remove file.
13691         * sysdeps/unix/mkdir.c: Remove file.
13692         * sysdeps/unix/rmdir.c: Likewise.
13694 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
13696         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
13697         ERR_MAX value.
13698         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
13699         errlist-compat value.
13701 2012-04-18  David S. Miller  <davem@davemloft.net>
13703         * sysdeps/generic/memcopy.h (reg_char): Delete.
13704         * debug/strcat_chk.c: Use char, not reg_char.
13705         * debug/strcpy_chk.c: Likewise.
13706         * debug/strncat_chk.c: Likewise.
13707         * debug/strncpy_chk.c: Likewise.
13708         * string/memchr.c: Likewise.
13709         * string/memrchr.c: Likewise.
13710         * string/rawmemchr.c: Likewise.
13711         * string/strcat.c: Likewise.
13712         * string/strchr.c: Likewise.
13713         * string/strchrnul.c: Likewise.
13714         * string/strcmp.c: Likewise.
13715         * string/strcpy.c: Likewise.
13716         * string/strncat.c: Likewise.
13717         * string/strncmp.c: Likewise.
13718         * string/strncpy.c: Likewise.
13720 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
13722         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
13723         __builtin_memcopy is called when src and dest ranges are known to not
13724         overlap.
13726 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
13728         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
13729         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
13730         fwd_align_merge macro call.
13731         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
13732         bwd_align_merge macro call.
13733         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
13735 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
13737         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
13738         bwd_align_merge macros.
13739         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
13740         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
13741         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
13743 2012-04-18  David S. Miller  <davem@davemloft.net>
13745         * sysdeps/sparc/sparc64/memcopy.h: Delete.
13747 2012-04-18  Andreas Jaeger  <aj@suse.de>
13749         [BZ# 6794]
13750         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
13751         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
13752         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
13754         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
13755         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
13756         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
13758         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
13759         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
13760         Adjust for changed ldbl-128 files.
13762         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
13763         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
13764         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
13766 2012-04-17  David S. Miller  <davem@davemloft.net>
13768         * sysdeps/sparc/sparc32/memcopy.h: Delete.
13770 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
13772         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
13773         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
13774         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
13775         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
13776         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
13777         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
13779 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13781         [BZ #6794]
13782         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
13783         * math/libm-test.inc: Add ilogb errno and exception tests.
13784         * math/w_ilogb.c: New file: ilogb wrapper.
13785         * math/w_ilogbf.c: New file: ilogbf wrapper.
13786         * math/w_ilogbl.c: New file: ilogbl wrapper.
13787         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
13788         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
13789         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
13790         exception being thrown with 0.0 as argument.
13791         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
13792         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
13793         exception being thrown with 0.0 as argument.
13794         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
13795         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
13796         exception being thrown with 0.0 as argument.
13797         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
13798         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
13799         exception being thrown with 0.0 as argument.
13800         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
13801         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
13802         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
13803         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
13804         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
13805         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
13806         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
13807         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
13808         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
13810 2012-04-17  Petr Baudis  <pasky@ucw.cz>
13812         * include/sys/uio.h: Change __vector to __iovec to avoid clash
13813         with altivec.
13815 2012-04-16  Marek Polacek  <polacek@redhat.com>
13817         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
13819 2012-04-16  Marek Polacek  <polacek@redhat.com>
13821         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
13822         operands of fdivp instruction.
13824 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
13826         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
13827         * elf/tst-auditmod3b.c: Likewise.
13828         * elf/tst-auditmod4b.c: Likewise.
13829         * elf/tst-auditmod5b.c: Likewise.
13830         * elf/tst-auditmod6b.c: Likewise.
13831         * elf/tst-auditmod6c.c: Likewise.
13832         * elf/tst-auditmod7b.c: Likewise.
13833         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
13834         * sysdeps/x86_64/preconfigure.in: Likewise.
13835         * sysdeps/x86_64/preconfigure: Regenerated.
13837 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
13839         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
13840         __ILP32__.
13842 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
13844         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13845         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
13847 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
13849         [BZ #13973]
13850         * locale/iso-639.def: Fix gl language name. Spotted by
13851         Yaron Shahrabani.
13853 2012-04-12  Roland McGrath  <roland@hack.frob.com>
13855         [BZ #2074]
13856         * libio/libio.h (__io_write_fn): Update comment.
13858 2012-04-12  Petr Baudis  <pasky@ucw.cz>
13860         [BZ #2074]
13861         * stdio.texi (Hook Functions): The user provided writer function
13862         is not allowed to return -1.
13864 2012-04-11  David S. Miller  <davem@davemloft.net>
13866         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13868 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
13870         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
13871         Add a leading slash to rtkaio.
13873 2012-04-11  Jim Meyering  <meyering@redhat.com>
13875         [BZ #11959]
13876         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
13877         It is not necessarily an error to ignore fwrite's return
13878         value.  One can reliably use ferror to test for errors after
13879         the fact.
13881 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
13883         * bits/types.h (__snseconds_t): New type.
13884         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
13886         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
13887         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13888         (__SNSECONDS_T_TYPE): Likewise.
13889         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13890         (__SNSECONDS_T_TYPE): Likewise.
13891         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13892         (__SNSECONDS_T_TYPE): Likewise.
13894 2012-04-10  Andreas Jaeger  <aj@suse.de>
13896         [BZ #2636]
13897         * manual/time.texi (Processor Time): Return type of times is
13898         elapsed real time since an arbitrary point in the past.
13899         (CPU Time): Move CLK_TCK from here...
13900         (Processor Time): ...to here.  Correct description.
13901         * manual/conf.texi (Constants for Sysconf): Correct description of
13902         _SC_CLK_TCK.
13904 2012-04-10  David S. Miller  <davem@davemloft.net>
13906         [BZ #13967]
13907         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
13908         where the is a gap between DT_REL(A) and DT_JMPREL.
13910 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
13912         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
13913         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
13914         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
13916 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
13918         * elf/dl-support.c (_dl_inhibit_cache): New variable.
13919         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
13920         (dl_main): Handle --inhibit-cache.
13921         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
13922         _dl_inhibit_cache.
13923         * elf/dl-load.c (_dl_map_object): Use it.
13924         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
13926 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
13928         [BZ #13872]
13929         * sysdeps/i386/fpu/e_powl.S (p78): New object.
13930         (__ieee754_powl): Saturate large exponents rather than testing for
13931         overflow of y*log2(x).
13932         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13933         * math/libm-test.inc (pow_test): Do not permit spurious overflow
13934         exceptions.
13936         [BZ #11521]
13937         * math/s_ctan.c: Include <float.h>.
13938         (__ctan): Avoid internal overflow or cancellation in calculating
13939         denominator.
13940         * math/s_ctanf.c: Likewise.
13941         * math/s_ctanl.c: Likewise.
13942         * math/s_ctanh.c: Likewise.
13943         * math/s_ctanhf.c: Likewise.
13944         * math/s_ctanhl.c: Likewise.
13945         * math/libm-test.inc (ctan_test): Add more tests.
13946         (ctanh_test): Likewise.
13947         * sysdeps/i386/fpu/libm-test-ulps: Update.
13948         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13950 2012-04-09  Andreas Jaeger  <aj@suse.de>
13952         [BZ #6894]
13953         * manual/filesys.texi (Directory Entries): Mention that d_namlen
13954         is an optional BSD extension.
13956         [BZ #10254]
13957         * manual/stdio.texi (Opening Streams): Document additional fopen
13958         parameters.
13960 2012-04-09  Roland McGrath  <roland@hack.frob.com>
13962         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
13963         %eax without telling the compiler.
13965 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
13967         [BZ # 13963]
13968         * manual/install.texi: Use sourceware.org.
13970 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
13972         [BZ #13873]
13973         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
13974         (__ieee754_pow): Generate overflow and underflow using huge*huge
13975         and tiny*tiny rather than just returning constant infinity or zero
13976         for large exponents.
13977         * math/libm-test.inc (pow_test): Require overflow exceptions for
13978         applicable cases of large exponents.
13980         [BZ #706]
13981         * sysdeps/i386/fpu/e_pow.S (p10): New object.
13982         (__ieee754_pow): Use iterative multiplication algorithm only for
13983         integer exponents with absolute value below 1024.  Check for odd
13984         integer exponents when using algorithm for real exponents.
13985         * math/libm-test.inc (pow_test): Add more tests.
13986         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13988 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
13990         [BZ #13705]
13991         * math/libm-test.inc (exp_test): Do not allow overflow exception
13992         on underflow test.
13994 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
13996         [BZ #13705]
13997         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
13998         instead of __kernel_standard_f.
14000 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
14002         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
14003         * sysdeps/x86_64/memset_chk.S: Likewise.
14005 2012-04-08  Andreas Jaeger  <aj@suse.de>
14007         [BZ #10153]
14008         * manual/startup.texi (Environment Access): Describe return value
14009         for putenv and setenv.
14011         [BZ #6895]
14012         * manual/filesys.texi (Directory Entries): Add description for
14013         DT_LNK.
14015         [BZ #6890]
14016         * manual/filesys.texi (Directory Entries): Clarify that it's file
14017         system not operating system in the description of DT_UNKNOWN.
14019         [BZ #6578]
14020         * manual/syslog.texi (closelog): Fix reference, it's openlog.
14022 2012-04-08  Stephen Compall  <s11@member.fsf.org>
14024         [BZ #6649]
14025         * manual/llio.texi (Opening and Closing Files): Add cross
14026         reference to explain mode argument.
14028 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
14030         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
14031         * sysdeps/x86_64/memset_chk.S: Likewise.
14033 2012-04-07  David S. Miller  <davem@davemloft.net>
14035         * elf/elf.h (R_SPARC_WDISP10): Define.
14036         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
14037         R_SPARC_SIZE32.
14038         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
14039         R_SPARC_SIZE64 and R_SPARC_H34.
14041 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
14043         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
14044         conditions and remove no longer applicable assertion.
14046 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
14048         * bits/byteswap.h: Include <features.h>.
14049         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
14050         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
14052 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
14054         * bits/byteswap.h (__bswap_16): Removed.
14055         Include <bits/byteswap-16.h> to get __bswap_16.
14056         * sysdeps/i386/bits/byteswap.h: Likewise.
14057         * sysdeps/s390/bits/byteswap.h: Likewise.
14058         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14059         * bits/byteswap-16.h: New file.
14060         * sysdeps/i386/bits/byteswap-16.h: Likewise.
14061         * sysdeps/s390/bits/byteswap-16.h: Likewise.
14062         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
14063         * string/Makefile (headers): Add bits/byteswap-16.h.
14065 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14067         [BZ #13895]
14068         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
14069         extra indirection.
14070         * nss/Makefile (tests-static, tests): Add tst-nss-static.
14071         * nss/tst-nss-static.c: New.
14073 2012-04-06  Robert Millan  <rmh@gnu.org>
14075         [BZ #6486]
14076         * manual/llio.texi (File Position Primitive): lseek
14077         refers to WHENCE when it really means OFFSET.
14079 2012-04-06  Andreas Jaeger  <aj@suse.de>
14081         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
14082         strncmp declarations.
14084         * abilist/libc.abilist: Add __poll and __ppoll.
14086 2012-04-05  David S. Miller  <davem@davemloft.net>
14088         * scripts/check-local-headers.sh: Accept a host triplet in the
14089         path matched by the exclude regexp.
14091         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
14092         definition.
14093         * sysdeps/powerpc/powerpc32/dl-machine.h
14094         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
14095         * sysdeps/s390/s390-32/dl-machine.h
14096         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
14097         * sysdeps/sparc/sparc32/dl-machine.h
14098         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
14099         * sysdeps/sparc/sparc64/dl-machine.h
14100         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
14102         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
14103         lazy binding.
14104         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
14105         undefined symbol errors.
14107         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
14108         DT_NEEDED entries.
14110 2012-04-05  Michael Matz  <matz@suse.de>
14112         [BZ #13592]
14113         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
14115 2012-04-05  Andreas Jaeger  <aj@suse.de>
14117         [BZ #13908]
14118         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
14119         comment.
14121 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14123         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
14124         which ROUND is no valid rounding mode.
14126 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14128         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
14129         read again.
14130         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
14132 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14134         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
14135         an exception using FPU order intentionally.
14137 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14139         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
14140         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
14141         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
14142         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
14144 2012-04-05  Simon Josefsson  <simon@josefsson.org>
14146         [BZ #12340]
14147         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
14148         EINVAL when BUFLEN is too smal.
14150 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
14152         [BZ #13553]
14153         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
14154         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
14156 2012-04-03  Andreas Jaeger  <aj@suse.de>
14158         [BZ #13938]
14159         * manual/setjmp.texi (System V contexts): Fix sentence.
14161         [BZ #13926]
14162         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
14163         New macro for this case.
14164         [!__GNUC__] (__bswap_64): New inline function for this case.
14165         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14166         * bits/byteswap.h: Likewise.
14167         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
14168         ull, guard with __GLIBC_HAVE_LONG_LONG.
14170         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
14171         __GLIBC_HAVE_LONG_LONG.
14173         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
14174         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
14176 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14178         [BZ #13691]
14179         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
14180         inptr and inend, rather than using last_ch.
14182 2012-04-02  David S. Miller  <davem@davemloft.net>
14184         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
14185         * stdio-common/printf-parse.h (read_int): Change return type to
14186         'int', return -1 on INT_MAX overflow.
14187         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
14188         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
14189         overflows INT_MAX.  Check for overflow of in-format-string precision
14190         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
14191         SIZE_MAX not INT_MAX for integer overflow test.
14192         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
14193         skip the construct in the format string but do not record anything.
14194         * stdio-common/bug22.c: Adjust to test both width/prevision
14195         INT_MAX overflow as well as total length INT_MAX overflow.  Check
14196         explicitly for proper errno values.
14198 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
14200         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
14201         CHAR_MAX.
14202         * string/test-strcmp.c [! WIDE]: Likewise.
14203         * time/tst-mktime2.c: Likewise for INT_MAX.
14204         * string/test-string.h: #include <sys/param.h> for MIN.
14206         * csu/init-first.c (__libc_init_first): Call __ctype_init.
14207         * sysdeps/i386/init-first.c (init): Likewise.
14208         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
14209         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
14210         * sysdeps/sh/init-first.c (init): Likewise.
14212 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
14214         * po/ru.po: Update from translation team.
14215         * po/vi.po: Likewise.
14217 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
14219         * resolv/nss_dns/dns-host.c: Merge copyright years.
14221 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14223         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14224         Optimize memcpy with prefetch if
14225         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
14226         src, dst pointers have unequal 16 byte alignments.
14228 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
14230         [BZ #13928]
14231         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
14232         from a CNAME entry and return the minimum ttl for the query.
14233         (gaih_getanswer_slice): Likewise.
14235 2012-03-30  Jeff Law  <law@redhat.com>
14237         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
14238         due to long keys.
14239         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
14240         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
14242         * resolv/nss_dns/dns-host.c: Update copyright year.
14244 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
14246         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
14247         requests to save a system call.  Fix check that all bytes are sent.
14249         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
14250         comments for sendmmsg.
14252 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14254         [BZ #13691]
14255         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
14256         with only 1 character between 0x0041 and 0x01b0.
14257         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
14258         * wcsmbs/tst-mbsnrtowcs.c: New file.
14260 2012-03-29  David S. Miller  <davem@davemloft.net>
14262         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
14263         small copies by hand.
14265 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14267         [BZ #13761]
14268         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
14269         _nss_compat_initgroups_dyn): Fall back to malloc/free
14270         for large group memberships.
14272 2012-03-28  David S. Miller  <davem@davemloft.net>
14274         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
14275         that branches into memcpy.
14276         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
14277         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
14278         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
14279         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
14280         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
14281         bits.
14282         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
14283         implementation too.
14284         * sysdeps/sparc/mempcpy.S: New file.
14286         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
14287         the IFUNC routine in the libc case.
14288         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14290         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
14291         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
14292         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
14293         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
14294         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
14295         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
14296         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
14297         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
14299         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
14300         loop to 256 bytes instead of 64 bytes and fix test signedness.
14302         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
14303         * sysdeps/sparc/sparc32/Makefile: rather than here...
14304         * sysdeps/sparc/sparc64/Makefile: and here.
14306 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
14308         * malloc/mallocbug.c: Avoid warnings about unused variables.
14310 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
14312         [BZ #13760]
14313         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
14314         in the right place. Discard and retry query if response is
14315         larger than input buffer size.
14317 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
14319         [BZ #369]
14320         [BZ #2678]
14321         [BZ #3866]
14322         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
14323         x for large integer exponent.
14324         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
14325         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
14326         sign of result as needed afterwards.
14327         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
14328         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
14329         result for underflowing pow the same as for overflow.
14330         (__kernel_standard_l): Handle powl overflow and underflow here
14331         rather than calling __kernel_standard.
14332         * math/libm-test.inc (pow_test): Add more tests.
14334         [BZ #3868]
14335         [BZ #13879]
14336         [BZ #13910]
14337         [BZ #13911]
14338         [BZ #13912]
14339         [BZ #13913]
14340         [BZ #13915]
14341         [BZ #13916]
14342         [BZ #13917]
14343         [BZ #13918]
14344         [BZ #13919]
14345         [BZ #13920]
14346         [BZ #13921]
14347         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
14348         * sysdeps/ieee754/k_standard.c: Include <float.h>.
14349         (__kernel_standard_l): New function.
14350         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
14351         __kernel_standard.
14352         * math/w_acosl.c (__acosl): Likewise.
14353         * math/w_asinl.c (__asinl): Likewise.
14354         * math/w_atan2l.c (__atan2l): Likewise.
14355         * math/w_atanhl.c (__atanhl): Likewise.
14356         * math/w_coshl.c (__coshl): Likewise.
14357         * math/w_exp10l.c (__exp10l): Likewise.
14358         * math/w_exp2l.c (__exp2l): Likewise.
14359         * math/w_fmodl.c (__fmodl): Likewise.
14360         * math/w_hypotl.c (__hypotl): Likewise.
14361         * math/w_j0l.c (__j0l, __y0l): Likewise.
14362         * math/w_j1l.c (__j1l, __y1l): Likewise.
14363         * math/w_jnl.c (__jnl, __ynl): Likewise.
14364         * math/w_lgammal.c (__lgammal): Likewise.
14365         * math/w_log10l.c (__log10l): Likewise.
14366         * math/w_log2l.c (__log2l): Likewise.
14367         * math/w_logl.c (__logl): Likewise.
14368         * math/w_powl.c (__powl): Likewise.
14369         * math/w_remainderl.c (__remainderl): Likewise.
14370         * math/w_scalbl.c (sysv_scalbl): Likewise.
14371         * math/w_sinhl.c (__sinhl): Likewise.
14372         * math/w_sqrtl.c (__sqrtl): Likewise.
14373         * math/w_tgammal.c (__tgammal): Likewise.
14374         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
14375         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
14376         * math/libm-test.inc (acos_test): Add more tests.
14377         (acosh_test): Likewise.
14378         (asin_test): Likewise.
14379         (atanh_test): Likewise.
14380         (exp_test): Likewise.
14381         (exp10_test): Likewise.
14382         (exp2_test): Likewise.
14383         (expm1_test): Likewise.
14384         (lgamma_test): Likewise.
14385         (log_test): Likewise.
14386         (log10_test): Likewise.
14387         (log1p_test): Likewise.
14388         (log2_test): Likewise.
14389         (pow_test): Do not allow some spurious overflow exceptions.
14390         (sqrt_test): Add more tests.
14391         (tgamma_test): Likewise.
14392         (y0_test): Likewise.
14393         (y1_test): Likewise.
14394         (yn_test): Likewise.
14396 2012-03-27  Anton Blanchard  <anton@samba.org>
14398         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
14399         MAP_HUGETLB.
14400         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
14401         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
14402         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
14404 2012-03-27  David S. Miller  <davem@davemloft.net>
14406         * conform/Makefile: Run run-conformtest.sh using $(BASH).
14408         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
14409         have-as-vis3 check.
14411 2012-03-27  Andreas Jaeger  <aj@suse.de>
14413         * sysdeps/x86_64/elf/configure.in: Moved to ...
14414         * sysdeps/x86_64/configure.in: ... here.
14415         * sysdeps/x86_64/elf/start.S: Moved to ...
14416         * sysdeps/x86_64/start.S: ... here.
14417         * sysdeps/x86_64/elf/configure: Delete.
14419         * sysdeps/x86_64/configure.in: Merge contents from
14420         sysdeps/i386/configure.in (without i686 check).
14422         * sysdeps/i386/elf/Versions: Merge into ...
14423         * sysdeps/i386/Versions: ... this.
14424         * sysdeps/i386/elf/Versions: Delete file.
14425         * sysdeps/i386/elf/start.S: Moved to ...
14426         * sysdeps/i386/start.S: ...here.
14427         * sysdeps/i386/elf/configure.in: Merge into...
14428         * sysdeps/i386/configure.in: ...here.
14429         * sysdeps/i386/elf/configure.in: Delete file.
14430         * sysdeps/i386/elf/configure: Delete file.
14432         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
14433         * debug/backtracesyms.c: ... here.
14434         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
14435         * debug/backtracesymsfd.c: ... here.
14436         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
14437         * sysdeps/generic/ifunc-sel.h: ... here.
14439         * sysdeps/unix/i386/start.c: Delete file.
14440         * sysdeps/unix/sparc/start.c: Delete file.
14441         * sysdeps/unix/start.c: Delete file.
14443         * sysdeps/sh/elf/configure.in: Moved to ...
14444         * sysdeps/sh/configure.in: ... here.
14445         * sysdeps/sh/elf/start.S: Moved to ...
14446         * sysdeps/sh/start.S: ... here.
14447         * sysdeps/sh/elf/configure: Delete file.
14449         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
14450         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
14451         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
14452         * sysdeps/powerpc/powerpc64/entry.h: ... here.
14453         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
14454         * sysdeps/powerpc/powerpc64/start.S: here.
14455         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
14456         * sysdeps/powerpc/powerpc64/Makefile: ... this.
14457         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
14458         * sysdeps/powerpc/powerpc64/configure.in: ... this.
14459         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
14461         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
14462         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
14463         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
14464         * sysdeps/powerpc/powerpc32/start.S: ... here.
14465         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
14466         * sysdeps/powerpc/powerpc32/configure.in: ... this.
14467         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
14469         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
14470         * sysdeps/powerpc/ifunc-sel.h: ... here.
14471         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
14472         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
14474         * sysdeps/sparc/elf/configure.in: Moved to ...
14475         * sysdeps/sparc/configure.in: ... here.
14476         * sysdeps/sparc/elf/configure: Delete file.
14477         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
14478         * sysdeps/sparc/sparc32/start.S: ... here.
14479         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
14480         * sysdeps/sparc/sparc64/start.S: ... here.
14481         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
14482         * sysdeps/sparc/sparc32/Makefile: ... this.
14483         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
14484         * sysdeps/sparc/sparc64/Makefile: ... this.
14486         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
14487         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
14488         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
14489         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
14490         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
14491         * sysdeps/s390/s390-32/setjmp.S: ... here.
14492         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
14493         * sysdeps/s390/s390-32/configure.in: ... here.
14494         * sysdeps/s390/s390-32/elf/configure: Delete file.
14495         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
14496         * sysdeps/s390/s390-32/start.S: ... here.
14498         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
14499         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
14500         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
14501         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
14502         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
14503         * sysdeps/s390/s390-64/setjmp.S: ... here.
14504         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
14505         * sysdeps/s390/s390-64/configure.in: ... here
14506         * sysdeps/s390/s390-64/elf/configure: Delete file.
14507         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
14508         * sysdeps/s390/s390-64/start.S: ... here.
14509         * sysdeps/s390/s390-64/elf/configure: Delete.
14511         * configure.in: Remove support for elf directories in sysdeps.
14513         * configure: Regenerated.
14514         * sysdeps/i386/configure: Regenerated.
14515         * sysdeps/powerpc/powerpc32/configure: Regenerated.
14516         * sysdeps/powerpc/powerpc64/configure: Regenerated.
14517         * sysdeps/s390/s390-32/configure: Regenerated.
14518         * sysdeps/s390/s390-64/configure: Regenerated.
14519         * sysdeps/sh/configure: Regenerated.
14520         * sysdeps/sparc/configure: Regenerated.
14521         * sysdeps/x86_64/configure: Regenerated.
14523 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
14525         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14527         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
14528         denormal result into account.
14530 2012-03-25  Roland McGrath  <roland@hack.frob.com>
14532         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
14533         Reported by Allan McRae <allan@archlinux.org>.
14535 2012-03-23  Jeff Law  <law@redhat.com>
14537         * nss/getnssent.c (__nss_getent): Fix typo.
14539 2012-03-23  David S. Miller  <davem@davemloft.net>
14541         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14543 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
14545         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
14546         to pad to uint64_t for each field.
14547         (dl_tls_index): Replace unsigned long with uint64_t.
14549 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
14550         Paul Pluzhnikov  <ppluzhnikov@google.com>
14552         [BZ #6528]
14553         * grp/Makefile (otherlibs): Don't set it.
14554         * inet/Makefile (otherlibs): Likewise.
14555         * login/Makefile (otherlibs): Likewise.
14556         * nscd/Makefile (otherlibs): Likewise.
14557         * posix/Makefile (otherlibs): Likewise.
14558         * pwd/Makefile (otherlibs): Likewise.
14559         * rt/Makefile (otherlibs): Likewise.
14560         * sunrpc/Makefile (otherlibs): Likewise.
14561         * nss/Makefile (otherlibs): Likewise.
14562         Add libnss_files to routines and static-only-routines.
14563         ($(objpfx)getent): Remove rule.
14564         * resolv/Makefile: Add libnss_dns and libresolv to routines and
14565         static-only-routines.
14567 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
14569         [BZ #13892]
14570         * math/s_cexp.c: Include <float.h>.
14571         (__cexp): Handle exp result overflowing not necessarily
14572         overflowing both real and imaginary parts of result.
14573         * math/s_cexpf.c: Likewise.
14574         * math/s_cexpl.c: Likewise.
14575         * math/libm-test.inc (cexp_test): Add more tests.
14576         * sysdeps/i386/fpu/libm-test-ulps: Update.
14577         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14579 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
14581         * include/link.h (ELFW): New macro.
14582         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
14583         Replace ELF64_R_TYPE with ELFW(R_TYPE).
14585 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
14587         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
14588         with uint64_t.
14590 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
14592         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
14593         declaration.
14594         (struct La_x32_retval): Likewise.
14596 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
14598         * sysdeps/x86_64/preconfigure.in: New file.
14599         * sysdeps/x86_64/preconfigure: New generated file.
14601 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
14603         [BZ #13824]
14604         * math/e_exp2l.c: Include <float.h>.
14605         (__ieee754_exp2l): Handle overflow and underflow cases
14606         separately.  Only pass fractional part of argument to
14607         __ieee754_expl.
14608         * math/libm-test.inc (exp2_test): Add more tests.
14610         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
14611         negating x to take absolute value.
14612         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
14613         Likewise.
14614         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
14615         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
14616         Likewise.
14617         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
14618         computing low part if x was negated.
14619         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
14621 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
14623         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
14624         la_x32_gnu_pltexit.
14625         (pltexit): Cast int_retval to ptrdiff_t.
14626         * elf/tst-auditmod3b.c: Likewise.
14627         * elf/tst-auditmod4b.c: Likewise.
14628         * elf/tst-auditmod5b.c: Likewise.
14629         * elf/tst-auditmod6b.c: Likewise.
14630         * elf/tst-auditmod6c.c: Likewise.
14631         * elf/tst-auditmod7b.c: Likewise.
14633         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
14634         and x32_gnu_pltexit.
14636         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
14637         __ELF_NATIVE_CLASS.
14638         (La_x32_regs): New macro.
14639         (La_x32_retval): Likewise.
14640         (la_x32_gnu_pltenter): New function prototype.
14641         (la_x32_gnu_pltexit): Likewise.
14643 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
14645         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
14646         exponent.
14648         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14650         * configure.in (libc_cv_cc_nofma): Check for option to disable
14651         generation of FMA instructions.
14652         * configure: Regenerate.
14653         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
14654         * sysdeps/ieee754/dbl-64/Makefile: New file.
14655         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14656         Remove brandred-fma4.
14657         (CFLAGS-brandred-fma4.c): Remove.
14658         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
14659         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
14660         define.
14661         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
14662         define.
14664 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
14666         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
14667         LLONG_MAX != LONG_MAX.
14668         (_itoa_word): Use _ITOA_WORD_TYPE on value.
14669         (_fitoa_word): Likewise.
14670         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
14671         LLONG_MAX != LONG_MAX.
14672         * stdio-common/_itowa.h: Include <_itoa.h>.
14673         (_itowa_word): Use _ITOA_WORD_TYPE on value.
14674         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
14675         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
14676         only if not defined.
14677         (_ITOA_WORD_TYPE): Likewise.
14678         (_itoa_word): Use _ITOA_WORD_TYPE on value.
14679         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
14681 2012-03-21  David S. Miller  <davem@davemloft.net>
14683         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14685 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
14687         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
14688         of x86_64 when setting libc_cv_slibdir, libdir and
14689         libc_cv_localedir.
14690         * sysdeps/unix/sysv/linux/configure: Regenerated.
14692 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
14694         * manual/lang.texi (Old Varargs): Remove section.
14695         (How Variadic): Update menu.
14696         (va_start): Do not mention varargs.h.
14698 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
14699             Joseph Myers  <joseph@codesourcery.com>
14701         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
14702         link test.
14703         * configure: Regenerated.
14705 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
14707         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
14708         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
14709         conformtest.pl
14711 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
14713         * NOTES: Remove.
14714         * Makefile (files-for-dist): Remove NOTES.
14715         (NOTES): Remove rule.
14716         * README: Don't refer to NOTES.
14717         * manual/creature.texi: Don't include macros.texi.
14718         * manual/intro.texi (creature.texi): Remove comment referring to
14719         NOTES.
14721         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
14722         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
14723         * configure: Regenerated.
14724         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
14725         LIBC_TRY_CC_OPTION.
14726         (libc_cv_as_i686): Likewise.
14727         (libc_cv_cc_avx): Likewise.
14728         (libc_cv_cc_sse2avx): Likewise.
14729         (libc_cv_cc_fma4): Likewise.
14730         (libc_cv_cc_novzeroupper): Likewise.
14731         * sysdeps/i386/configure: Regenerated.
14733         [BZ #13883]
14734         * sysdeps/i386/fpu/s_cexp.S: Remove.
14735         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14736         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14737         * math/libm-test.inc (cexp_test): Add more tests.
14738         * sysdeps/i386/fpu/libm-test-ulps: Update.
14739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14741 2012-03-21  Allan McRae  <allan@archlinux.org>
14743         * timezone/Makefile: Do not install iso3166.tab and zone.tab
14745 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
14747         [BZ #13871]
14748         * math/w_exp2.c: Do not include <float.h>.
14749         (o_threshold, u_threshold): Remove.
14750         (__exp2): Calculate result before checking finiteness and calling
14751         __kernel_standard.
14752         * math/w_exp2f.c: Likewise.
14753         * math/w_exp2l.c: Likewise.
14754         * math/libm-test.inc (exp2_test): Require overflow exception for
14755         1e6 input.
14757         [BZ #3866]
14758         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
14759         range of signed 64-bit integers before using fistpll.  Remove
14760         checks for whether integers fit in mantissa bits.
14761         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
14762         the range of signed 32-bit integers before using fistpl.  Remove
14763         checks for whether integers fit in mantissa bits.
14764         * sysdeps/i386/fpu/e_powl.S (p64): New object.
14765         (__ieee754_powl): Test for y outside the range of signed 64-bit
14766         integers before using fistpll.  Reduce 64-bit values to 63-bit
14767         ones as needed.
14768         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
14769         divide-by-zero is raised for zero to large negative powers.
14770         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
14771         (__ieee754_powl): Test for y outside the range of signed 64-bit
14772         integers before using fistpll.  Reduce 64-bit values to 63-bit
14773         ones as needed.
14774         * math/libm-test.inc (pow_test): Add more tests.
14776 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
14778         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
14779         <stdio-common/_itoa.h>.
14780         * debug/segfault.c: Likewise.
14781         * elf/dl-cache.c: Likewise.
14782         * elf/dl-minimal.c: Likewise.
14783         * elf/dl-misc.c: Likewise.
14784         * elf/dl-sysdep.c: Likewise.
14785         * elf/dl-version.c: Likewise.
14786         * elf/rtld.c: Likewise.
14787         * hurd/hurdsock.c: Likewise.
14788         * hurd/lookup-retry.c: Likewise.
14789         * malloc/malloc.c: Likewise.
14790         * malloc/mtrace.c: Likewise.
14791         * nscd/nscd_getgr_r.c: Likewise.
14792         * nscd/nscd_getpw_r.c: Likewise.
14793         * nscd/nscd_getserv_r.c: Likewise.
14794         * posix/getopt_init.c: Likewise.
14795         * posix/wordexp.c: Likewise.
14796         * stdio-common/_itoa.c: Likewise.
14797         * stdio-common/printf_fphex.c: Likewise.
14798         * stdio-common/vfprintf.c: Likewise.
14799         * string/_strerror.c: Likewise.
14800         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
14801         * sysdeps/i386/i686/hp-timing.h: Likewise.
14802         * sysdeps/mach/_strerror.c: Likewise.
14803         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
14804         * sysdeps/mach/hurd/sethostid.c: Likewise.
14805         * sysdeps/mach/hurd/xmknodat.c: Likewise.
14806         * sysdeps/mach/xpg-strerror.c: Likewise.
14807         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
14808         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
14809         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
14810         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
14811         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
14812         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
14813         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
14814         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
14815         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
14816         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
14817         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
14818         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
14819         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
14820         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
14821         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
14822         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
14823         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
14824         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
14825         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
14826         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
14827         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
14829         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
14831         * stdio-common/_itoa.h: Moved to ...
14832         * sysdeps/generic/_itoa.h: Here.
14834         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
14836         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
14837         instead of "_itoa.h" and "_itowa.h".
14838         * stdio-common/vfprintf.: Likewise.
14840 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
14842         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
14843         <bits/wordsize.h>.
14844         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
14845         (__signbit): Likwise.
14846         (llrintf): Likwise.
14847         (llrint): Likwise.
14849 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
14851         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
14852         __WORDSIZE != 64.
14854 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
14856         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
14857         OVERFLOW_EXCEPTION_OK.
14858         * math/libm-test.inc ("Philosophy"): Update comment about
14859         exception testing.
14860         (OVERFLOW_EXCEPTION): Define.
14861         (OVERFLOW_EXCEPTION_OK): Likewise.
14862         (INVALID_EXCEPTION_OK): Renumber.
14863         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
14864         (IGNORE_ZERO_INF_SIGN): Likewise.
14865         (test_exceptions): Handle FE_OVERFLOW.
14866         (exp10_test): Expect overflow exceptions.
14867         (exp2_test): Likewise.
14868         (expm1_test): Likewise.
14869         (nextafter_test): Likewise.
14870         (pow_test): Likewise.
14871         (scalbn_test): Likewise.
14872         (scalbln_test): Likewise.
14874 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
14876         * sysdeps/x86_64/bits/atomic.h
14877         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
14878         64bit integer.
14879         (atomic_exchange_acq): Likewise.
14880         (__arch_exchange_and_add_body): Likewise.
14881         (__arch_add_body): Likewise.
14882         (atomic_add_negative): Likewise.
14883         (atomic_add_zero): Likewise.
14885 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
14887         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
14888         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
14890 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
14892         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
14893         Check __x86_64__ instead of __WORDSIZE.
14895 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
14897         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
14899 2012-03-19  David S. Miller  <davem@davemloft.net>
14901         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14903         * sysdeps/sparc/fpu/fenv_private.h: New file.
14904         * sysdeps/sparc/fpu/math_private.h: Use it.
14905         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
14906         Remove.
14907         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
14908         (libc_feholdexcept_setroundl): Remove.
14909         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
14910         Remove.
14911         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
14912         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
14914 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
14916         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
14917         int64_t instead of long int.
14918         (INSERT_WORDS64): Likwise.
14920 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
14922         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
14923         _Unwind_GetCFA return to _Unwind_Ptr first.
14925 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
14927         [BZ #13629]
14928         * math/s_clog.c: Include <float.h>.
14929         (__clog): Scale large or subnormal inputs.
14930         * math/s_clogf.c: Likewise.
14931         * math/s_clogl.c: Likewise.
14932         * math/s_clog10.c: Include <float.h>.
14933         (M_LOG10_2): Define.
14934         (__clog10): Scale large or subnormal inputs.
14935         * math/s_clog10f.c: Likewise.
14936         * math/s_clog10l.c: Likewise.
14937         * math/libm-test.inc (clog_test): Add more tests.
14938         (clog10_test): Likewise.
14939         * sysdeps/i386/fpu/libm-test-ulps: Update.
14940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14942         [BZ #11451]
14943         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
14944         x and y.
14945         * math/libm-test.inc (atan2_test): Add another test.
14947         * Makerules (common-objdir-compile): Remove.
14948         * sysdeps/unix/Makefile (config-generated): Do not add
14949         $(unix-generated) to variable.
14950         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
14951         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
14952         Remove rule.
14953         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
14954         Likewise.
14955         [generic bits/local_lim.h] (before-compile): Do not append to
14956         variable.
14957         [generic bits/local_lim.h] (common-generated): Likewise.
14958         [generic sys/param.h] (before-compile): Do not append to variable.
14959         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
14960         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
14961         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
14962         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
14963         include.
14964         [generic sys/param.h] (sys/param.h-includes): Remove variable.
14965         [generic sys/param.h] (sys/param.h-includes): Remove rule.
14966         [generic sys/param.h] ($(addprefix
14967         $(common-objpfx),$(sys/param.h-includes))): Likewise.
14968         [generic sys/param.h] (common-generated): Do not append to
14969         variable.
14970         [generic sys/param.h] (sysdep_headers): Likewise.
14971         [generic bits/errno.h] (before-compile): Do not append to
14972         variable.
14973         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
14974         rule.
14975         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
14976         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
14977         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
14978         [generic bits/errno.h] (common-generated): Do not append to
14979         variable.
14980         [generic bits/ioctls.h] (before-compile): Do not append to
14981         variable.
14982         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
14983         rule.
14984         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
14985         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
14986         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
14987         rule.
14988         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
14989         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
14990         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
14991         [generic bits/ioctls.h] (common-generated): Do not append to
14992         variable.
14993         [generic sys/syscall.h] (syscall.h): Remove variable.
14994         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
14995         rule.
14996         [generic sys/syscall.h] (before-compile): Do not append to
14997         variable.
14998         [generic sys/syscall.h] (common-generated): Likewise.
14999         * sysdeps/unix/errnos-tmpl.c: Remove file.
15000         * sysdeps/unix/errnos.awk: Likewise.
15001         * sysdeps/unix/ioctls-tmpl.c: Likewise.
15002         * sysdeps/unix/ioctls.awk: Likewise.
15003         * sysdeps/unix/mk-local_lim.c: Likewise.
15004         * sysdeps/unix/snarf-ioctls: Likewise.
15006 2012-03-19  Richard Henderson  <rth@twiddle.net>
15008         * sysdeps/i386/fpu/fenv_private.h: New file.
15009         * sysdeps/i386/fpu/math_private.h: Use it.
15010         (math_opt_barrier, math_force_eval): Remove.
15011         (libc_feholdexcept_setround_53bit): Remove.
15012         (libc_feupdateenv_53bit): Remove.
15013         * sysdeps/x86_64/fpu/math_private.h: Likewise.
15014         (math_opt_barrier, math_force_eval): Remove.
15015         (libc_feholdexcept): Remove.
15016         (libc_feholdexcept_setround): Remove.
15017         (libc_fetestexcept, libc_fesetenv): Remove.
15018         (libc_feupdateenv_test): Remove.
15019         (libc_feupdateenv, libc_feholdsetround): Remove.
15020         (libc_feresetround): Remove.
15022         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
15023         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
15025         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
15026         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
15027         (libc_feupdateenv_testl): New.
15028         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
15029         (libc_feupdateenv_testf): New.
15030         (libc_feupdateenv): Use libc_feupdateenv_test.
15031         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
15032         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
15034         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
15035         (libc_feholdsetroundf, libc_feholdsetroundl): New.
15036         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
15037         (libc_feresetround_noex): New.
15038         (libc_feresetround_noexf): New.
15039         (libc_feresetround_noexl): New.
15040         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
15041         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
15042         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
15043         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
15044         SET_RESTORE_ROUND.
15045         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
15046         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
15047         (__cos): Likewise.
15048         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
15049         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
15050         SET_RESTORE_ROUND_NOEX.
15051         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
15052         SET_RESTORE_ROUND_NOEXF.
15053         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
15054         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
15055         (libc_feholdsetroundf): New.
15056         (libc_feresetround, libc_feresetroundf): New.
15058         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
15059         (libc_feholdexcept_setround_53bit): Convert from macro to function.
15060         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
15062         * sysdeps/generic/math_private.h: Include <fenv.h>.
15063         (default_libc_feholdexcept): New.
15064         (default_libc_feholdexcept_setround): New.
15065         (default_libc_fesetenv, default_libc_feupdateenv): New.
15066         (libc_feholdexcept): Only define if undefined.
15067         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
15068         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
15069         (libc_feholdexcept_setroundl): Likewise.
15070         (libc_feholdexcept_setround_53bit): Likewise.
15071         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
15072         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
15073         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
15074         (libc_feupdateenv_53bit): Likewise.
15075         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
15076         (libc_feholdexcept): Convert from macro to inline function.
15077         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
15078         (libc_fesetenv, libc_feupdateenv): Likewise.
15080         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
15081         not previously defined.
15082         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
15083         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
15084         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
15085         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
15086         * sysdeps/ieee754/flt-32/math_private.h: New file.
15087         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
15088         math_private.h below SET_FLOAT_WORD.
15089         (__isnan, __isinf_ns, __finite): Remove.
15090         (__isnanf, __isinf_nsf, __finitef): Remove.
15092 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
15094         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15096 2012-03-17  David S. Miller  <davem@davemloft.net>
15098         [BZ #6471]
15099         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
15100         for 2.16.
15102 2012-03-16  David S. Miller  <davem@davemloft.net>
15104         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
15105         warnings.
15107         [BZ #6471]
15108         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
15109         properly.
15110         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
15111         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
15112         sysdep_routines when subdir is sysvipc.
15113         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
15114         __getshmlba helper.
15116         * sysdeps/sparc/fpu/libm-test/ulps: Update.
15118 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15120         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
15121         [__LP64__].
15123 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15125         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
15126         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
15127         (__lround): Renamed to ...
15128         (__llround): This.  Replace long int with long long int.
15129         Define lround functions as aliases of llround functions.
15130         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
15132 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15134         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
15135         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
15136         adresses to uintptr_t.  Replace "long int" and "unsigned long
15137         int" with "greg_t" on va_arg.
15139 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15141         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
15142         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
15144         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
15145         Move e_machine check before EI_CLASS check.  Handle x32
15146         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
15147         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
15148         SKIP_EM_IA_64 and include
15149         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
15151         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
15152         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
15153         (add_system_dir): New macro.
15155         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
15156         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
15158 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
15160         [BZ #2551]
15161         [BZ #2552]
15162         [BZ #2553]
15163         [BZ #2554]
15164         [BZ #2562]
15165         [BZ #2563]
15166         [BZ #2565]
15167         [BZ #2566]
15168         [BZ #2576]
15169         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
15170         (y0): Likewise.
15171         * math/w_j0f.c (j0f): Likewise.
15172         (y0f): Likewise.
15173         * math/w_j0l.c (__j0l): Likewise.
15174         (__y0l): Likewise.
15175         * math/w_j1.c (j1): Likewise.
15176         (y1): Likewise.
15177         * math/w_j1f.c (j1f): Likewise.
15178         (y1f): Likewise.
15179         * math/w_j1l.c (__j1l): Likewise.
15180         (__y1l): Likewise.
15181         * math/w_jn.c (jn): Likewise.
15182         (yn): Likewise.
15183         * math/w_jnf.c (jnf): Likewise.
15184         (ynf): Likewise.
15185         * math/w_jnl.c (__jnl): Likewise.
15186         (__ynl): Likewise.
15187         * math/libm-test.inc (j0_test): Add more tests.
15188         (j1_test): Likewise.
15189         (jn_test): Likewise.  Add trailing semicolon to existing test.
15190         (y0_test): Likewise.
15191         (y1_test): Likewise.
15192         * sysdeps/i386/fpu/libm-test-ulps: Update.
15193         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15195         [BZ #13851]
15196         [BZ #13854]
15197         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
15198         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
15199         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
15200         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
15201         (__tanl): Set errno for infinite argument.
15202         * sysdeps/i386/fpu/mptan.c: Remove.
15203         * sysdeps/i386/fpu/s_tan.S: Likewise.
15204         * sysdeps/i386/fpu/s_tanl.S: Likewise.
15205         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
15206         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
15207         * math/libm-test.inc (tan_test): Add more tests and enable more
15208         tests for double and long double.
15209         * sysdeps/i386/fpu/libm-test-ulps: Update.
15210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15212 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15214         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
15215         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
15217 2012-03-16  Roland McGrath  <roland@hack.frob.com>
15219         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
15220         * configure.in: Use it for both main tree and add-ons.
15221         * configure: Regenerated.
15223 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15225         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
15227 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
15229         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
15230         in comment.
15232         [BZ #13851]
15233         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
15234         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
15235         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
15236         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
15237         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
15238         infinite argument.
15239         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
15240         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
15241         != 0 for prec == 2.
15242         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
15243         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
15244         * sysdeps/i386/fpu/s_cosl.S: Likewise.
15245         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
15246         * sysdeps/i386/fpu/s_sinl.S: Likewise.
15247         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
15248         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
15249         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
15250         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
15251         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
15252         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
15253         * math/libm-test.inc (cos_test): Add more tests and enable more
15254         tests for long double.
15255         (sin_test): Likewise.
15256         (sincos_test): Likewise.
15257         * sysdeps/i386/fpu/libm-test-ulps: Update.
15258         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15260 2012-03-16  David S. Miller  <davem@davemloft.net>
15262         * sysdeps/sparc/fpu/math_private.h: New file.
15264 2012-03-15  David S. Miller  <davem@davemloft.net>
15266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
15267         file.
15268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
15269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
15270         file.
15271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
15272         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
15273         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
15274         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
15275         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
15276         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
15277         sysdep routines.
15278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
15280         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
15281         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
15283         * sysdeps/sparc/sparc-ifunc.h: New file.
15284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
15285         sparc-ifunc.h
15286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
15287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
15288         Likewise.
15289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
15290         Likewise.
15291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
15292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
15293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
15294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
15295         Likewise.
15296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
15297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
15298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
15299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
15300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
15301         Likewise.
15302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
15303         Likewise.
15304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
15305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
15306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
15307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
15308         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
15309         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
15310         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
15311         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
15312         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
15313         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
15314         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
15315         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
15316         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
15317         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
15318         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
15319         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
15320         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
15321         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
15322         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
15323         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
15324         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
15325         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
15326         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
15327         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
15329 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
15331         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
15332         scaling.
15333         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15335 2012-03-15  Andreas Jaeger  <aj@suse.de>
15337         [BZ #13852]
15338         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
15339         ieee754/flt-32 implementation for sin, cos and sincos.
15340         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
15341         * sysdeps/i386/fpu/s_cosf.S: Likewise.
15342         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
15343         * sysdeps/i386/fpu/s_sinf.S: Likewise.
15344         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
15345         ieee754/flt-32 implementation for tan.
15347         * math/libm-test.inc (cos_test): Enable some large input tests for
15348         float as well
15349         (sin_test): Likewise.
15350         (sincos_test): Likewise.
15351         (tan_test): Add tests for large input.
15353         * sysdeps/i386/fpu/libm-test-ulps: Update.
15355 2012-03-15  Andreas Jaeger  <aj@suse.de>
15357         [BZ #13658]
15358         * math/libm-test.inc (cos_test): Add more test cases.
15359         (sin_test): Likewise.
15360         (sincos_test): Likewise.
15362 2012-03-15  Andreas Jaeger  <aj@suse.de>
15364         [BZ #13837]
15365         * math/libm-test.inc (cos_test): Add a test case for large input
15366         value.
15367         (sin_test): Likewise.
15368         (sincos_test): Likewise.
15370 2012-03-15  Andreas Jaeger  <aj@suse.de>,
15371         Joseph Myers  <joseph@codesourcery.com>
15373         [BZ #13658]
15374         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
15375         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
15376         * sysdeps/i386/fpu/branred.c: Likewise.
15377         * sysdeps/i386/fpu/dosincos.c: Likewise.
15378         * sysdeps/i386/fpu/mpa.c: Likewise.
15379         * sysdeps/i386/fpu/s_cos.S: Likewise.
15380         * sysdeps/i386/fpu/s_sin.S: Likewise.
15381         * sysdeps/i386/fpu/s_sincos.S: Likewise.
15382         * sysdeps/i386/fpu/sincos32.c: Likewise.
15384         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
15385         Define.
15386         (libc_feupdateenv_53bit): Define.
15387         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
15388         Define.
15389         (libc_feupdateenv_53bit): Define.
15391         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
15392         53 bit (without extend i386 double precision).
15394         * math/libm-test.inc (sincos_test): Add tests for large input.
15395         (sin): Likewise.
15396         (cos): Likewise.
15398         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
15400 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
15402         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15404 2012-03-15  David S. Miller  <davem@davemloft.net>
15406         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
15407         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
15408         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
15409         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
15410         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
15411         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
15412         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
15413         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
15414         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
15415         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
15416         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
15417         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
15418         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
15419         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
15420         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
15421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
15422         file.
15423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
15424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
15425         file.
15426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
15427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
15428         file.
15429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
15430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
15431         file.
15432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
15433         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
15434         fmin/fmax sysdep routines.
15435         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
15437 2012-03-14  David S. Miller  <davem@davemloft.net>
15439         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
15440         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
15441         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
15442         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
15443         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
15444         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
15445         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
15446         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
15447         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
15448         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
15449         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
15450         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
15451         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
15452         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
15453         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
15454         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
15455         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
15456         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
15457         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
15458         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
15459         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
15460         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
15461         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
15462         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
15463         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
15464         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
15465         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
15466         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
15467         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
15468         routines.
15469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
15470         file.
15471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
15472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
15473         file.
15474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
15475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
15476         file.
15477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
15478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
15479         file.
15480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
15481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
15482         file.
15483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
15484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
15485         file.
15486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
15487         file.
15488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
15489         file.
15490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
15491         file.
15492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
15493         New file.
15494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
15495         file.
15496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
15497         file.
15498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
15499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
15500         file.
15501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
15502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
15503         file.
15504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
15505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
15506         file.
15507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
15508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
15509         VIS3 routines.
15511         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
15512         New file.
15514         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15516         * sysdeps/sparc/configure.in: New file.
15517         * sysdeps/sparc/configure: Generate.
15518         * configure.in (libc_cv_sparc_as_vis3): Substitute.
15519         * configure: Regenerate.
15520         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
15521         * config.make.in (have-as-vis3): New.
15522         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
15523         available use -Av9d instead of -Av9a.
15524         * sysdeps/sparc/sparc64/Makefile: Likewise.
15525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
15526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
15527         New file.
15528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
15529         file.
15530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
15531         New file.
15532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
15533         file.
15534         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
15535         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
15536         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
15537         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
15538         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
15540         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
15541         fzeros/fnegs to load 0x80000000 into a float register instead of
15542         using the stack.
15543         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
15545 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
15547         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15548         bits/syscall.h.
15549         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
15550         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
15551         ($(inst_includedir)/bits/syscall.h): Remove rule.
15552         ($(objpfx)bits/syscall.d): Include instead of
15553         $(objpfx)syscall-list.d.
15554         (generated): Change syscall-list.h and syscall-list.d to
15555         bits/syscall.h and bits/syscall.d.
15557 2012-03-14  Roland McGrath  <roland@hack.frob.com>
15559         [BZ #13846]
15560         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
15562 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
15564         [BZ #13841]
15565         * math/s_csqrt.c: Include <float.h>.
15566         (__csqrt): Scale large or subnormal inputs.
15567         * math/s_csqrtf.c: Likewise.
15568         * math/s_csqrtl.c: Likewise.
15569         * math/libm-test.inc (csqrt_test): Add more tests.
15570         * sysdeps/i386/fpu/libm-test-ulps: Update.
15571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15573         [BZ #13840]
15574         * math/libm-test.inc (hypot_test): Add more tests.
15576 2012-03-13  David S. Miller  <davem@davemloft.net>
15578         [BZ #13840]
15579         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
15580         double-precision for the calculation instead of scaling.
15582 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
15584         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
15585         manipulate bits before adding and subtracting TWO52[sx].
15586         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
15587         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
15588         Likewise.
15589         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
15591 2012-03-13  David S. Miller  <davem@davemloft.net>
15593         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
15594         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
15595         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
15596         rtld-global-offsets.h
15597         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15599         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
15600         large parameters.
15602         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
15604         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
15605         'err' in the ifdef scope in which it is actually used.
15607         * nss/nss_db/db-init.c: Include string.h
15609 2012-03-12  David S. Miller  <davem@davemloft.net>
15611         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
15612         masking out of the most significant byte of random value used.
15613         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15614         Fix coding style in previous change.
15616         * sysdeps/unix/sysv/linux/kernel-features.h
15617         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
15618         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
15619         expression.
15620         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
15621         later.
15623 2012-03-11  David S. Miller  <davem@davemloft.net>
15625         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
15626         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
15627         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
15628         for 'resultvar' otherwise things get truncated on 64-bit.
15630         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15631         Fix masking out of the most significant byte of random value used.
15633         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15635 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
15637         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15639 2012-03-09  David S. Miller  <davem@davemloft.net>
15641         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
15642         variables with appropriate CPP guards.
15643         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
15644         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
15645         on resulting framesize and the management of the outregs buffer for pltexit.
15646         Preserve floating point return values across _dl_call_pltexit call.
15647         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
15648         framesize and the management of the outregs buffer for pltexit.
15649         Preserve floating point return values across _dl_call_pltexit
15650         call.
15651         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
15652         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
15653         (print_exit): Fix format string for return register value.
15655 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
15657         * sunrpc/Makefile (others): Add rpcgen.
15658         ($(objpfx)rpcgen): Remove special build rule and dependency on
15659         libc.
15660         * sunrpc/rpcgen.c: New file.
15662 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
15664         [BZ #13673]
15665         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
15666         * stdio-common/bug-vfprintf-nargs.c: Likewise.
15667         * sysdeps/i386/crti.S: Likewise.
15668         * sysdeps/i386/crtn.S: Likewise.
15669         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
15670         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
15671         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
15672         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
15673         * sysdeps/sh/crti.S: Likewise.
15674         * sysdeps/sh/crtn.S: Likewise.
15675         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
15677         [BZ #13673]
15678         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
15679         with URL.
15680         * locale/programs/locfile-kw.gperf: Likewise.
15681         * locale/programs/charmap-kw.h: Regenerated.
15682         * locale/programs/locfile-kw.h: Likewise.
15684         [BZ #13673]
15685         * intl/plural.y: Replace FSF snail mail address with URL.
15686         * intl/plural.c: Regenerated.
15688 2012-03-09  Richard Henderson  <rth@twiddle.net>
15690         * include/math_private.h: Remove file.
15691         * math/math_private.h: Move file ...
15692         * sysdeps/generic/math_private.h: ... here.
15694         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
15695         * sysdeps/powerpc/fpu/math_private.h: Likewise.
15696         * sysdeps/x86_64/fpu/math_private.h: Likewise.
15698         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
15699         and <math_private.h>.
15700         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
15701         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
15702         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
15703         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
15704         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
15705         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
15706         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15707         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15708         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15709         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15710         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15711         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15712         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15713         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15714         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15715         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15716         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15717         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15718         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15719         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15720         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15721         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15722         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15723         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15724         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
15725         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15726         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15727         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15728         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15729         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
15730         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15731         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15732         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
15733         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15734         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
15735         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15736         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15737         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
15738         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
15739         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15740         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
15741         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
15742         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
15743         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
15744         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
15745         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
15746         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
15747         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
15748         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15749         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
15750         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
15751         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
15752         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
15753         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
15754         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
15755         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15756         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15757         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
15758         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
15759         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
15760         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15761         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
15762         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15763         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
15764         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
15765         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15766         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15767         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15768         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
15769         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
15770         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
15771         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15772         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
15773         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15774         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
15775         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
15776         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
15777         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
15778         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
15779         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
15780         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
15781         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
15782         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
15783         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15784         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15785         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
15786         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
15787         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
15788         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15789         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15790         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15791         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15792         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15793         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15794         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15795         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15796         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15797         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15798         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15799         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15800         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15801         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15802         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15803         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15804         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
15805         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15806         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15807         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15808         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
15809         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15810         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
15811         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
15812         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15813         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
15814         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
15815         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15816         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
15817         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
15818         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15819         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15820         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
15821         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
15822         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15823         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
15824         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
15825         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
15826         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15827         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
15828         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
15829         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
15830         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
15831         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15832         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
15833         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
15834         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
15835         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15836         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15837         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
15838         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
15839         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15840         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15841         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15842         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15843         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
15844         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
15845         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
15846         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
15847         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
15848         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
15849         * sysdeps/ieee754/k_standard.c: Likewise.
15850         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15851         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15852         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15853         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15854         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15855         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15856         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15857         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15858         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15859         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15860         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15861         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15862         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15863         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15864         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15865         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15866         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
15867         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15868         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15869         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
15870         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
15871         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
15872         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15873         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
15874         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
15875         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
15876         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
15877         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
15878         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
15879         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15880         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
15881         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
15882         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
15883         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
15884         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
15885         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
15886         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
15887         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
15888         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
15889         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
15890         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
15891         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
15892         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
15893         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
15894         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
15895         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
15896         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
15897         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
15898         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
15899         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15900         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
15901         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
15902         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
15903         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
15904         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
15905         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
15906         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
15907         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
15908         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
15909         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
15910         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
15911         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
15912         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
15913         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15914         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15915         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15916         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15917         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15918         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15919         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15920         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15921         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15922         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15923         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15924         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15925         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15926         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
15927         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15928         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15929         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
15930         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
15931         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
15932         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
15933         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
15934         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
15935         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
15936         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
15937         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
15938         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
15939         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
15940         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
15941         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
15942         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
15943         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
15944         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
15945         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
15946         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
15947         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
15948         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
15949         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
15950         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
15951         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
15952         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15953         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
15954         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
15955         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15956         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15957         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
15958         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
15959         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
15960         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
15961         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
15962         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15963         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15964         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15965         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15966         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15967         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15968         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15969         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15970         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15971         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15972         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15973         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15974         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15975         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
15976         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
15977         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
15978         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
15979         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15980         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
15981         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
15982         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
15983         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
15984         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
15985         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
15986         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
15987         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
15988         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
15989         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
15990         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
15991         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
15992         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
15993         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
15994         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15995         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
15996         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
15997         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15998         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15999         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
16000         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
16001         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16002         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
16003         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
16004         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
16005         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
16006         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
16007         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
16008         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
16009         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
16010         * sysdeps/ieee754/s_lib_version.c: Likewise.
16011         * sysdeps/ieee754/s_matherr.c: Likewise.
16012         * sysdeps/ieee754/s_signgam.c: Likewise.
16013         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16014         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16015         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
16016         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
16017         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
16018         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
16019         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
16020         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
16021         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
16022         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
16023         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
16024         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
16025         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
16026         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
16027         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
16028         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
16029         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
16030         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
16031         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
16032         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16033         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16035 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
16037         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
16038         * sunrpc/rpc_main.c: Likewise.
16039         * sunrpc/rpc_svcout.c: Likewise.
16041 2012-03-09  David S. Miller  <davem@davemloft.net>
16043         * include/math_private.h: New file.
16045 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
16047         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
16048         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
16049         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
16050         from <bits/socket_type.h>.
16051         (enum __socket_type): Don't define here.
16052         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
16053         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16054         bits/socket_type.h.
16056         [BZ #13566]
16057         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
16058         checking __USE_GNU.
16060         * Makerules ($(inst_includedir)/%.h): New rule.
16061         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
16062         (install-others): Remove variable setting.
16063         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
16065 2012-03-08  Richard Henderson  <rth@twiddle.net>
16067         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
16068         from macro to inline function; merge with the
16069         !__LIBC_INTERNAL_MATH_INLINES version.
16070         (__ieee754_sqrtf): Likewise.
16072         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
16073         to inline function.
16074         (__rintf, __floor, __floorf): Likewise.
16076         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
16077         macro to inline function.
16078         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
16080         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
16081         not <math/math_private.h>.
16083 2012-03-08  David S. Miller  <davem@davemloft.net>
16085         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
16086         copyright year.
16087         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
16089 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
16091         * resolv/gai_misc.c (handle_requests): Fix struct timespec
16092         normalization.
16093         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
16094         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
16096 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
16098         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
16099         be defined individually, they must be defined as a block.  Define
16100         S for printing a string instead of hidint the different by using a
16101         macro for adding the 'l'.
16102         * stdio-common/tst-fphex-wide.c: Adjust.
16104 2012-03-07  Marek Polacek  <polacek@redhat.com>
16106         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
16108 2012-03-08  Marek Polacek  <polacek@redhat.com>
16110         [BZ #13806]
16111         * stdio-common/Makefile (tests): Add tst-fphex-wide.
16112         * stdio-common/tst-fphex.c: Define a few macros to make the
16113         test reusable.  Use them.
16114         * stdio-common/tst-fphex-wide.c: New file.
16116 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
16118         [BZ #6911]
16119         * manual/macros.texi (gnusystems): New macro.
16120         (nongnusystems): Likewise.
16121         (gnulinuxhurdsystems): Likewise.
16122         (gnuhurdsystems): Likewise..
16123         (gnulinuxsystems): Likewise.
16124         * manual/charset.texi: Use new macros or @theglibc{} to refer to
16125         variants of the GNU system, not "GNU system".
16126         * manual/conf.texi: Likewise.
16127         * manual/errno.texi: Likewise.  Update example of errno macro
16128         expansion.
16129         * manual/filesys.texi: Likewise.
16130         (getumask): Document as specific to GNU/Hurd.
16131         * manual/install.texi: Likewise.  Reword some references to
16132         GNU/Linux.
16133         * manual/intro.texi: Likewise.
16134         * manual/io.texi: Likewise.
16135         (File Name Portability): Detail which constraints are inapplicable
16136         to all GNU systems and which are only inapplicable to GNU/Hurd.
16137         * manual/job.texi: Likewise.
16138         * manual/llio.texi: Likewise.
16139         (O_NOCTTY): Document as present on GNU/Linux.
16140         * manual/maint.texi: Likewise.
16141         * manual/memory.texi: Likewise.
16142         * manual/pattern.texi: Likewise.
16143         * manual/pipe.texi: Likewise.
16144         * manual/process.texi: Likewise.
16145         * manual/resource.texi: Likewise.
16146         (RUSAGE_CHILDREN): Remove statement about specifying a particular
16147         child on GNU/Hurd.
16148         * manual/setjmp.texi: Likewise.
16149         * manual/signal.texi: Likewise.
16150         * manual/startup.texi: Likewise.
16151         * manual/stdio.texi: Likewise.
16152         * manual/terminal.texi: Likewise.
16153         (ONLCR): Document as POSIX.
16154         (OXTABS): Document availability on GNU/Linux as XTABS.
16155         (ONOEOT): Document availability separately from other bits.
16156         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
16157         * manual/time.texi: Likewise.
16158         * manual/users.texi: Likewise.
16159         * INSTALL: Regenerated.
16160         * sysdeps/gnu/errlist.c: Regenerated.
16162         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
16163         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
16164         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
16165         puts.
16166         * configure: Regenerated.
16168 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
16170         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
16171         default includes instead of AC_HEADER_CHECK.
16172         * sysdeps/i386/configure: Regenerated.
16174         [BZ #10716]
16175         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
16176         * math/s_cacoshf.c (__cacoshf): Likewise.
16177         * math/s_cacoshl.c (__cacoshl): Likewise.
16178         * math/s_casinh.c (__casinh): Set signs of result from argument.
16179         * math/s_casinhf.c (__casinhf): Likewise.
16180         * math/s_casinhl.c (__casinhl): Likewise.
16181         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
16182         (casinh_test): Add more tests.
16183         * sysdeps/i386/fpu/libm-test-ulps: Update.
16184         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16186 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
16188         * po/zh_TW.po: Update from translation team.
16190         * login/Makefile (distribute): Remove variable.
16191         * catgets/Makefile: Likewise.
16192         * mach/Makefile: Likewise.
16193         * malloc/Makefile: Likewise.
16194         * misc/Makefile: Likewise.
16195         * iconv/Makefile: Likewise.
16196         * nscd/Makefile: Likewise.
16197         * hurd/Makefile: Likewise.
16198         * manual/Makefile: Likewise.
16199         * locale/Makefile: Likewise.
16200         * intl/Makefile: Likewise.
16201         * conform/Makefile: Likewise.
16202         * nss/Makefile: Likewise.
16203         * time/Makefile: Likewise.
16204         * soft-fp/Makefile: Likewise.
16205         * dirent/Makefile: Likewise.
16206         * gmon/Makefile: Likewise.
16207         * po/Makefile: Likewise.
16208         * rt/Makefile: Likewise.
16209         * socket/Makefile: Likewise.
16210         * math/Makefile: Likewise.
16211         * signal/Makefile: Likewise.
16212         * debug/Makefile: Likewise.
16213         * elf/Makefile: Likewise.
16214         * timezone/Makefile: Likewise.
16215         * stdlib/Makefile: Likewise.
16216         * iconvdata/Makefile: Likewise.
16217         * sunrpc/Makefile: Likewise.
16218         * io/Makefile: Likewise.
16219         * argp/Makefile: Likewise.
16220         * inet/Makefile: Likewise.
16221         * hesiod/Makefile: Likewise.
16222         * grp/Makefile: Likewise.
16223         * csu/Makefile: Likewise.
16224         * wctype/Makefile: Likewise.
16225         * crypt/Makefile: Likewise.
16226         * libio/Makefile: Likewise.
16227         * string/Makefile: Likewise.
16228         * nis/Makefile: Likewise.
16229         * resolv/Makefile: Likewise.
16230         * stdio-common/Makefile: Likewise.
16231         * wcsmbs/Makefile: Likewise.
16232         * dlfcn/Makefile: Likewise.
16233         * posix/Makefile: Likewise.
16235         [BZ #6959]
16236         * timezone/Makefile: Don't install timezone files, just the programs
16237         and scripts.
16239 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
16241         * nss/databases.def: Add missing gshadow entry.
16243         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
16245 2012-03-06  Marek Polacek  <polacek@redhat.com>
16247         [BZ #13726]
16248         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
16249         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
16250         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
16251         * stdio-common/tst-long-dbl-fphex.c: New file.
16253 2012-03-06  David S. Miller  <davem@davemloft.net>
16255         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16256         (set_obp_int): New function.
16257         (get_obp_int): New function.
16258         (__get_clockfreq_via_dev_openprom): Likewise.
16259         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
16260         Avoid unused variable warnings on 'val' and use builtin_expect.
16261         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
16262         __builtin_expect.
16263         (INLINE_CLONE_SYSCALL): Likewise.
16265 2012-03-05  David S. Miller  <davem@davemloft.net>
16267         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16269 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
16271         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16273         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
16274         only for |x| >= 40.
16275         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16277 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
16279         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
16280         Replace gettimeofday with __vdso_gettimeofday.
16282         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16283         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
16284         __vdso_clock_gettime and __vdso_getcpu.
16286         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
16287         time with __vdso_time.
16289 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
16291         * manual/lang.texi (size_t): Note types to which size_t may be
16292         equivalent with the GNU C Library, but do not describe when
16293         differences between them are significant.
16295 2012-03-05  Andreas Jaeger  <aj@suse.de>
16297         * sysdeps/i386/fpu/libm-test-ulps: Update.
16299 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
16301         [BZ #3976]
16302         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
16303         (__ieee754_pow): Save and restore rounding mode and use
16304         round-to-nearest for main computations.
16305         * math/libm-test.inc (pow_test_tonearest): New function.
16306         (pow_test_towardzero): Likewise.
16307         (pow_test_downward): Likewise.
16308         (pow_test_upward): Likewise.
16309         (main): Call the new functions.
16310         * sysdeps/i386/fpu/libm-test-ulps: Update.
16311         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16313         [BZ #3976]
16314         * math/libm-test.inc (cosh_test_tonearest): New function.
16315         (cosh_test_towardzero): Likewise.
16316         (cosh_test_downward): Likewise.
16317         (cosh_test_upward): Likewise.
16318         (sinh_test_tonearest): Likewise.
16319         (sinh_test_towardzero): Likewise.
16320         (sinh_test_downward): Likewise.
16321         (sinh_test_upward): Likewise.
16322         (main): Call the new functions.
16323         * sysdeps/i386/fpu/libm-test-ulps: Update.
16324         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16326 2012-03-05  Tom de Vries  <tom@codesourcery.com>
16328         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
16329         default stack guard is set in last bytes.
16330         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
16332 2012-03-05  Kees Cook  <keescook@chromium.org>
16334         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
16336         [BZ #13656]
16337         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
16338         possibly allocate from heap instead of stack.
16339         * stdio-common/bug-vfprintf-nargs.c: New file.
16340         * stdio-common/Makefile (tests): Add nargs overflow test.
16342 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
16344         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16346 2012-03-03  Marek Polacek  <polacek@redhat.com>
16348         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
16349         * math/math_private.h: Likewise.
16350         * stdlib/tst-strtod.c: Likewise.
16351         * sysdeps/i386/i486/bits/atomic.h: Likewise.
16352         * sysdeps/x86_64/bits/atomic.h: Likewise.
16354 2012-03-02  David S. Miller  <davem@davemloft.net>
16356         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
16357         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
16358         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
16359         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
16360         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
16361         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
16362         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
16363         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
16365 2012-03-02  Roland McGrath  <roland@hack.frob.com>
16367         [BZ #13792]
16368         * manual/examples/README: New file, says the example source files
16369         can be used under GPL>=2.
16370         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
16371         line containing just "*/".
16372         * manual/examples/add.c: Add copyright header (GPL>=2).
16373         * manual/examples/argp-ex1.c: Likewise.
16374         * manual/examples/argp-ex2.c: Likewise.
16375         * manual/examples/argp-ex3.c: Likewise.
16376         * manual/examples/argp-ex4.c: Likewise.
16377         * manual/examples/atexit.c: Likewise.
16378         * manual/examples/db.c: Likewise.
16379         * manual/examples/dir.c: Likewise.
16380         * manual/examples/dir2.c: Likewise.
16381         * manual/examples/execinfo.c: Likewise.
16382         * manual/examples/filecli.c: Likewise.
16383         * manual/examples/filesrv.c: Likewise.
16384         * manual/examples/fmtmsgexpl.c: Likewise.
16385         * manual/examples/genpass.c: Likewise.
16386         * manual/examples/inetcli.c: Likewise.
16387         * manual/examples/inetsrv.c: Likewise.
16388         * manual/examples/isockad.c: Likewise.
16389         * manual/examples/longopt.c: Likewise.
16390         * manual/examples/memopen.c: Likewise.
16391         * manual/examples/memstrm.c: Likewise.
16392         * manual/examples/mkfsock.c: Likewise.
16393         * manual/examples/mkisock.c: Likewise.
16394         * manual/examples/mygetpass.c: Likewise.
16395         * manual/examples/pipe.c: Likewise.
16396         * manual/examples/popen.c: Likewise.
16397         * manual/examples/rprintf.c: Likewise.
16398         * manual/examples/search.c: Likewise.
16399         * manual/examples/select.c: Likewise.
16400         * manual/examples/setjmp.c: Likewise.
16401         * manual/examples/sigh1.c: Likewise.
16402         * manual/examples/sigusr.c: Likewise.
16403         * manual/examples/stpcpy.c: Likewise.
16404         * manual/examples/strdupa.c: Likewise.
16405         * manual/examples/strftim.c: Likewise.
16406         * manual/examples/strncat.c: Likewise.
16407         * manual/examples/subopt.c: Likewise.
16408         * manual/examples/swapcontext.c: Likewise.
16409         * manual/examples/termios.c: Likewise.
16410         * manual/examples/testopt.c: Likewise.
16411         * manual/examples/testpass.c: Likewise.
16412         * manual/examples/timeval_subtract.c: Likewise.
16414         [BZ #13792]
16415         * manual/time.texi (Elapsed Time): Move timeval_subtract example
16416         function to ...
16417         * manual/timeval_subtract.c.texi: ... here, new file.
16419 2012-03-02  David S. Miller  <davem@davemloft.net>
16421         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
16423 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
16425         [BZ #3976]
16426         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
16427         (__sin): Save and restore rounding mode and use round-to-nearest
16428         for all computations.
16429         (__cos): Save and restore rounding mode and use round-to-nearest
16430         for all computations.
16431         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
16432         <fenv.h>.
16433         (tan): Save and restore rounding mode and use round-to-nearest for
16434         all computations.
16435         * math/libm-test.inc (cos_test_tonearest): New function.
16436         (cos_test_towardzero): Likewise.
16437         (cos_test_downward): Likewise.
16438         (cos_test_upward): Likewise.
16439         (sin_test_tonearest): Likewise.
16440         (sin_test_towardzero): Likewise.
16441         (sin_test_downward): Likewise.
16442         (sin_test_upward): Likewise.
16443         (tan_test_tonearest): Likewise.
16444         (tan_test_towardzero): Likewise.
16445         (tan_test_downward): Likewise.
16446         (tan_test_upward): Likewise.
16447         (main): Call the new functions.
16448         * sysdeps/i386/fpu/libm-test-ulps: Update.
16449         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16451         [BZ #10135]
16452         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
16453         small n, then large n, before computing and testing k+n.
16454         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
16455         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
16456         Likewise.
16457         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
16458         Likewise.
16459         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
16460         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
16461         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
16462         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
16463         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
16464         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
16465         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
16466         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
16467         * math/libm-test.inc (scalbn_test): Add more tests.
16468         (scalbln_test): Likewise.
16470         * manual/filesys.texi (mode_t): Describe constraints on size and
16471         signedness, not exact equivalence to a particular type.
16472         (ino_t): Likewise.
16473         (ino64_t): Likewise.
16474         (dev_t): Likewise.
16475         (nlink_t): Likewise.
16476         (blkcnt_t): Likewise.
16477         (blkcnt64_t): Likewise.
16478         * manual/llio.texi (off_t): Likewise.
16480         [BZ #3976]
16481         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
16482         (__ieee754_exp): Save and restore rounding mode and use
16483         round-to-nearest for all computations.
16484         * math/libm-test.inc (exp_test_tonearest): New function.
16485         (exp_test_towardzero): Likewise.
16486         (exp_test_downward): Likewise.
16487         (exp_test_upward): Likewise.
16488         (main): Call the new functions.
16489         * sysdeps/i386/fpu/libm-test-ulps: Update.
16490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16492 2012-03-01  Chris Demetriou  <cgd@google.com>
16494         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
16495         have predictable order.
16497 2012-03-01  David S. Miller  <davem@davemloft.net>
16499         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
16501         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
16502         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
16503         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
16504         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
16506         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
16507         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
16508         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
16509         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
16510         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
16511         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
16512         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
16513         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
16514         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
16516         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16518         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
16519         * sysdeps/sparc/fpu/libm-test-ulps: to here.
16520         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
16522         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
16523         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16524         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
16525         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
16526         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
16527         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
16528         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
16529         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16530         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
16531         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
16532         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
16533         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
16534         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16535         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
16536         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
16537         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16538         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
16539         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
16540         * sysdeps/sparc/elf/configure: Regenerated.
16542 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
16544         * configure.in (AS, LD): Require binutils 2.20 or later.
16545         * configure: Regenerated.
16546         * manual/install.texi (Tools for Compilation): Give binutils 2.20
16547         as required minimum version.
16548         * INSTALL: Regenerated.
16550         [BZ #2541]
16551         [BZ #4108]
16552         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
16553         before squaring exponent.
16554         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
16555         bottom long double and 27 bits of top long double before squaring
16556         exponent.
16557         * math/libm-test.inc (erfc_test): Add more tests.
16558         * sysdeps/i386/fpu/libm-test-ulps: Update.
16559         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16560         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16562 2012-03-01  Kai Tietz  <ktietz@redhat.com>
16564         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
16565         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
16566         containing bit-fields.
16567         * soft-fp/extended.h (_FP_UNION_E): Likewise.
16568         * soft-fp/single.h (_FP_UNION_S): Likewise.
16569         * soft-fp/double.h (_FP_UNION_D): Likewise.
16571 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
16573         [BZ #13786]
16574         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
16575         not include ../strcmp.S.
16576         [USE_AS_STRNCASECMP_L]: Likewise.
16577         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
16578         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
16579         * sysdeps/i386/i686/multiarch/strncase_l-c.c
16580         (__strncasecmp_l_ia32): Define as alias to
16581         __strncasecmp_l_nonascii.
16583         [BZ #5794]
16584         * math/libm-test.inc (expm1_test): Add test for bug 5794.
16585         * sysdeps/i386/fpu/libm-test-ulps: Update.
16586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16588         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
16589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16591 2012-02-29  Jeff Law  <law@redhat.com>
16593         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
16594         out of bounds read.
16596 2012-02-29  Marek Polacek  <polacek@redhat.com>
16598         [BZ #13706]
16599         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
16600         * elf/Makefile: Add rules to run tst-unused-dep.out.
16602 2012-02-28  David S. Miller  <davem@davemloft.net>
16604         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
16605         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
16606         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
16607         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
16608         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
16609         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
16611 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
16613         * math/libm-test.inc (llround_test): Move one test from
16614         lround_test.  Use TEST_f_L in moved test.
16615         (lround_test): Move misplaced test to llround_test.  Add testcase
16616         from bug 2561.
16618 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
16620         * sysdeps/x86_64/fpu/e_expf.S: New file.
16621         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
16623 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
16625         [BZ #13637]
16626         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
16627         of remain_len that may cause incomplete multi-byte character and
16628         false match.
16629         * posix/bug-regex33.c: New file.
16630         * posix/Makefile (tests): Add bug-regex33.
16632 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
16634         * manual/macros.texi: New file.
16635         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
16636         * manual/libc.texinfo: Include macros.texi.
16637         * manual/creatute.texi: Likewise.
16638         * manual/install.texi: Likewise.
16639         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
16640         @glibcadj{} in references to the GNU C Library.
16641         * manual/charset.texi: Likewise.
16642         * manual/conf.texi: Likewise.
16643         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
16644         when not using those macros.
16645         * manual/creature.texi: Likewise.
16646         * manual/crypt.texi: Likewise.
16647         * manual/errno.texi: Likewise.
16648         * manual/filesys.texi: Likewise.
16649         * manual/header.texi: Likewise.
16650         * manual/install.texi: Likewise.
16651         * manual/intro.texi: Likewise.
16652         * manual/io.texi: Likewise.
16653         * manual/job.texi: Likewise.
16654         * manual/lang.texi: Likewise.
16655         * manual/libc.texiinfo: Likewise.
16656         * manual/llio.texi: Likewise.
16657         * manual/locale.texi: Likewise.
16658         * manual/maint.texi: Likewise.
16659         * manual/math.texi: Likewise.
16660         * manual/memory.texi: Likewise.
16661         * manual/message.texi: Likewise.
16662         * manual/nss.texi: Likewise.
16663         * manual/pattern.texi: Likewise.
16664         * manual/process.texi: Likewise.
16665         * manual/resource.texi: Likewise.
16666         * manual/search.texi: Likewise.
16667         * manual/setjmp.texi: Likewise.
16668         * manual/signal.texi: Likewise.
16669         * manual/socket.texi: Likewise.
16670         * manual/startup.texi: Likewise.
16671         * manual/stdio.texi: Likewise.
16672         * manual/string.texi: Likewise.
16673         * manual/sysinfo.texi: Likewise.
16674         * manual/syslog.texi: Likewise.
16675         * manual/terminal.texi: Likewise.
16676         * manual/time.texi: Likewise.
16677         * manual/users.texi: Likewise.
16678         * INSTALL: Regenerated.
16679         * NOTES: Regenerated.
16680         * sysdeps/gnu/errlist.c: Regenerated.
16682 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
16684         * include/dirent.h: Include <dirstream.h> before
16685         <dirent/dirent.h>.
16687 2012-02-28  David S. Miller  <davem@davemloft.net>
16689         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
16690         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
16691         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
16692         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
16694 2012-02-27  David S. Miller  <davem@davemloft.net>
16696         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
16697         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
16698         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
16699         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
16701         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
16702         frame pointer instead of stack pointer relative arg slot.
16703         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
16704         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
16705         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
16707 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
16709         [BZ #3992]
16710         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
16712 2012-02-27  David S. Miller  <davem@davemloft.net>
16714         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
16715         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
16716         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
16717         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
16718         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
16719         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
16720         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
16721         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
16723 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
16725         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
16726         later.  Allow versions 5-9.
16727         * configure: Regenerated.
16728         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
16729         required minimum version and 4.6 as recommended version.  Do not
16730         mention bugs in GCC 2.7 and 2.8.
16731         * INSTALL: Regenerated.
16733 2012-02-27  David S. Miller  <davem@davemloft.net>
16735         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
16736         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
16737         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
16738         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
16739         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
16740         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
16741         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
16742         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
16744         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
16745         manipulate bits before adding and subtracting TWO112[sx].
16746         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
16748 2012-02-27  Roland McGrath  <roland@hack.frob.com>
16750         [BZ #13775]
16751         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
16752         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
16753         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
16754         being in POSIX, because they are in 1003.1-2008.
16756         * rt/tst-aio.c: Include <fcntl.h>.
16757         * rt/tst-aio7.c: Likewise.
16758         * rt/tst-aio64.c: Likewise.
16760         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
16762 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
16764         * manual/install.texi (--with-headers): Describe headers as
16765         interface headers, not private headers.
16766         (Specific advice for GNU/Linux systems): Describe use of headers
16767         from "make headers_install", not private headers from older
16768         kernels.
16769         * INSTALL: Regenerated.
16770         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
16771         Change to 2.6.19.
16772         * sysdeps/unix/sysv/linux/configure: Regenerated.
16774         * manual/llio.texi (fclean): Remove documentation.
16776         * manual/Makefile (libc-texi-generated): New variable.  Include
16777         version.texi.
16778         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
16779         $(libc-texi-generated), not duplicated list of files.
16780         (version.texi, stamp-version): New rules.
16781         (realclean): Remove $(libc-texi-generated), not individual files
16782         from that list.  Do not remove dir-add.texinfo.
16783         * manual/libc.texinfo: Comment out uses of edition numbers and
16784         references to printed manual.  Remove last-updated dates.
16785         (EDITION): Comment out.
16786         (ISBN): Likewise.
16787         (VERSION, UPDATED): Remove.
16788         (version.texi): Include.
16790 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
16792         * sysdeps/posix/spawni.c: Include <signal.h>.
16793         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
16794         * sysdeps/pthread/aio_fsync.c: Likewise.
16796 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
16798         * conform/Makefile (tests): Run only when not cross-compiling and
16799         when fast-check is not defined.
16801         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
16802         * conform/data/limits.h-data: Fixes for POSIX2008.
16803         * conform/run-conformtest.sh: Run all tests.
16804         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
16805         headers.
16806         * include/bits/dlfcn.h: Likewise.
16807         * include/langinfo.h: Likewise.
16808         * include/monetary.h: Likewise.
16809         * include/sys/poll.h: Likewise.
16811         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
16812         for __USE_GNU.
16813         * posix/spawn.h: Define __need_sigset_t.
16814         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
16815         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
16816         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
16817         to get sigevent_t only.
16818         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
16819         only for __USE_GNU.
16820         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16821         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16822         process_vm_writev only for __USE_GNU.
16823         * termios/termios.h: Declare tcgetsid also for POSIX2008.
16825         * conform/Makefile: For now ignore errors from run-conformtest.
16826         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
16827         POSIX to avoid namespace pollution.  Don't prepend headers.
16828         * conform/data/aio.h-data: Fixes for POSIX testing.
16829         * conform/data/fcntl.h-data: Likewise.
16830         * conform/data/glob.h-data: Likewise.
16831         * conform/data/grp.h-data: Likewise.
16832         * conform/data/pthread.h-data: Likewise.
16833         * conform/data/pwd.h-data: Likewise.
16834         * conform/data/signal.h-data: Likewise.
16835         * conform/data/spawn.h-data: Likewise.
16836         * conform/data/stdio.h-data: Likewise.
16837         * conform/data/stdlib.h-data: Likewise.
16838         * conform/data/stropts.h-data: Likewise.
16839         * conform/data/sys/mman.h-data: Likewise.
16840         * conform/data/sys/stat.h-data: Likewise.
16841         * conform/data/sys/types.h-data: Likewise.
16842         * conform/data/sys/wait.h-data: Likewise.
16843         * conform/data/time.h-data: Likewise.
16844         * conform/data/unistd.h-data: Likewise.
16845         * conform/data/utime.h-data: Likewise.
16847         * io/sys/stat.h: fchmod was always in POSIX.
16848         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
16849         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
16850         * rt/aio.h: Define __need_timespec before including <time.h>.
16851         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
16852         struct.  Add forward declaration of pthread_attr_t and use it in
16853         sigevent.
16854         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16855         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16856         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
16857         always remove CLK_TCK definition.
16859 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
16861         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
16863 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
16865         * conform/run-conformtest.sh: New file.
16866         * conform/Makefile: Run run-conformtest for tests.
16867         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
16868         support.
16870         * conform/data/uchar.h-data: New file.
16871         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
16872         * conform/data/arpa/inet.h-data: Likewise.
16873         * conform/data/assert.h-data: Likewise.
16874         * conform/data/complex.h-data: Likewise.
16875         * conform/data/cpio.h-data: Likewise.
16876         * conform/data/ctype.h-data: Likewise.
16877         * conform/data/dirent.h-data: Likewise.
16878         * conform/data/dlfcn.h-data: Likewise.
16879         * conform/data/errno.h-data: Likewise.
16880         * conform/data/fcntl.h-data: Likewise.
16881         * conform/data/float.h-data: Likewise.
16882         * conform/data/fmtmsg.h-data: Likewise.
16883         * conform/data/fnmatch.h-data: Likewise.
16884         * conform/data/ftw.h-data: Likewise.
16885         * conform/data/glob.h-data: Likewise.
16886         * conform/data/grp.h-data: Likewise.
16887         * conform/data/iconv.h-data: Likewise.
16888         * conform/data/inttypes.h-data: Likewise.
16889         * conform/data/langinfo.h-data: Likewise.
16890         * conform/data/libgen.h-data: Likewise.
16891         * conform/data/limits.h-data: Likewise.
16892         * conform/data/locale.h-data: Likewise.
16893         * conform/data/math.h-data: Likewise.
16894         * conform/data/monetary.h-data: Likewise.
16895         * conform/data/mqueue.h-data: Likewise.
16896         * conform/data/ndbm.h-data: Likewise.
16897         * conform/data/net/if.h-data: Likewise.
16898         * conform/data/netdb.h-data: Likewise.
16899         * conform/data/netinet/in.h-data: Likewise.
16900         * conform/data/nl_types.h-data: Likewise.
16901         * conform/data/poll.h-data: Likewise.
16902         * conform/data/pthread.h-data: Likewise.
16903         * conform/data/pwd.h-data: Likewise.
16904         * conform/data/regex.h-data: Likewise.
16905         * conform/data/sched.h-data: Likewise.
16906         * conform/data/search.h-data: Likewise.
16907         * conform/data/semaphore.h-data: Likewise.
16908         * conform/data/setjmp.h-data: Likewise.
16909         * conform/data/signal.h-data: Likewise.
16910         * conform/data/spawn.h-data: Likewise.
16911         * conform/data/stdarg.h-data: Likewise.
16912         * conform/data/stdio.h-data: Likewise.
16913         * conform/data/stdlib.h-data: Likewise.
16914         * conform/data/string.h-data: Likewise.
16915         * conform/data/strings.h-data: Likewise.
16916         * conform/data/stropts.h-data: Likewise.
16917         * conform/data/sys/ipc.h-data: Likewise.
16918         * conform/data/sys/mman.h-data: Likewise.
16919         * conform/data/sys/msg.h-data: Likewise.
16920         * conform/data/sys/resource.h-data: Likewise.
16921         * conform/data/sys/select.h-data: Likewise.
16922         * conform/data/sys/sem.h-data: Likewise.
16923         * conform/data/sys/shm.h-data: Likewise.
16924         * conform/data/sys/socket.h-data: Likewise.
16925         * conform/data/sys/stat.h-data: Likewise.
16926         * conform/data/sys/statvfs.h-data: Likewise.
16927         * conform/data/sys/time.h-data: Likewise.
16928         * conform/data/sys/timeb.h-data: Likewise.
16929         * conform/data/sys/times.h-data: Likewise.
16930         * conform/data/sys/types.h-data: Likewise.
16931         * conform/data/sys/uio.h-data: Likewise.
16932         * conform/data/sys/un.h-data: Likewise.
16933         * conform/data/sys/utsname.h-data: Likewise.
16934         * conform/data/sys/wait.h-data: Likewise.
16935         * conform/data/syslog.h-data: Likewise.
16936         * conform/data/tar.h-data: Likewise.
16937         * conform/data/termios.h-data: Likewise.
16938         * conform/data/utime.h-data: Likewise.
16939         * conform/data/utmpx.h-data: Likewise.
16940         * conform/data/varargs.h-data: Likewise.
16941         * conform/data/wchar.h-data: Likewise.
16942         * conform/data/wctype.h-data: Likewise.
16943         * conform/data/wordexp.h-data: Likewise.
16945         * include/stropts.h: New file.
16946         * include/uchar.h: New file.
16947         * include/aio.h: Changes to allow conformtest.pl to use the headers.
16948         * include/assert.h: Likewise.
16949         * include/ctype.h: Likewise.
16950         * include/dirent.h: Likewise.
16951         * include/dlfcn.h: Likewise.
16952         * include/fcntl.h: Likewise.
16953         * include/fnmatch.h: Likewise.
16954         * include/glob.h: Likewise.
16955         * include/grp.h: Likewise.
16956         * include/libio.h: Likewise.
16957         * include/locale.h: Likewise.
16958         * include/math.h: Likewise.
16959         * include/net/if.h: Likewise.
16960         * include/netdb.h: Likewise.
16961         * include/netinet/in.h: Likewise.
16962         * include/pthread.h: Likewise.
16963         * include/pwd.h: Likewise.
16964         * include/regex.h: Likewise.
16965         * include/sched.h: Likewise.
16966         * include/search.h: Likewise.
16967         * include/setjmp.h: Likewise.
16968         * include/signal.h: Likewise.
16969         * include/stdio.h: Likewise.
16970         * include/stdlib.h: Likewise.
16971         * include/string.h: Likewise.
16972         * include/sys/cdefs.h: Likewise.
16973         * include/sys/mman.h: Likewise.
16974         * include/sys/msg.h: Likewise.
16975         * include/sys/resource.h: Likewise.
16976         * include/sys/select.h: Likewise.
16977         * include/sys/socket.h: Likewise.
16978         * include/sys/stat.h: Likewise.
16979         * include/sys/statvfs.h: Likewise.
16980         * include/sys/time.h: Likewise.
16981         * include/sys/times.h: Likewise.
16982         * include/sys/uio.h: Likewise.
16983         * include/sys/utsname.h: Likewise.
16984         * include/sys/wait.h: Likewise.
16985         * include/termios.h: Likewise.
16986         * include/time.h: Likewise.
16987         * include/ulimit.h: Likewise.
16988         * include/unistd.h: Likewise.
16989         * include/utime.h: Likewise.
16990         * include/wchar.h: Likewise.
16991         * include/wctype.h: Likewise.
16992         * include/wordexp.h: Likewise.
16994         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
16996         * time/time.h: TIME_UTC must be a macro.
16997         Make timespec_get available for ISO C11 only as well.
16999 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
17001         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
17002         Reported by Peng Haitao <penght@cn.fujitsu.com>.
17004 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
17006         * configure.in: Use -o not -a in test for unsupported multi-arch.
17008 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
17010         * manual/texinfo.tex: Update to version 2012-01-19.16.
17012 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
17014         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
17016 2012-02-24  Roland McGrath  <roland@hack.frob.com>
17018         [BZ #13738]
17019         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
17020         * manual/fdl-1.3.texi: New file.
17021         * manual/fdl-1.1.texi: File removed.
17023         [BZ #13738]
17024         * manual/libc.texinfo (FDL_VERSION): New @set.
17025         Use it for mention of FDL in cover text.
17026         (Documentation License): Use it in @include file name.
17028 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17029             Roland McGrath  <roland@hack.frob.com>
17031         [BZ #5461]
17032         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
17033         not LONG_LONG_MAX and LONG_LONG_MIN.
17034         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
17035         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
17036         name.
17037         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
17039 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17041         [BZ #2547]
17042         [BZ #11365]
17043         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
17044         manipulate bits before adding and subtracting TWO23[sx].
17045         * math/libm-test.inc (nearbyint_test): Add more tests.
17047 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17049         [BZ #2548]
17050         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
17051         bits before adding and subtracting TWO23[sx].
17052         * math/libm-test.inc (rint_test): Add more tests.
17053         (rint_test_tonearest): Likewise.
17054         (rint_test_towardzero): Likewise.
17055         (rint_test_downward): Likewise.
17056         (rint_test_upward: Likewise.
17058 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17060         [BZ #10110]
17061         * include/stdc-predef.h: New file.  Extracted from features.h.
17062         * include/features.h: Include stdc-predef.h.
17063         * Makefile (headers): Add stdc-predef.h.
17064         * CONFORMANCE (Compiler limitations): Update.
17066 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17068         * manual/libc.texinfo (VERSION, UPDATED): Revert.
17070 2012-02-21  David S. Miller  <davem@davemloft.net>
17072         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
17073         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
17075 2012-02-20  David S. Miller  <davem@davemloft.net>
17077         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
17078         using a normal save/restore sequence, rather than allocating a
17079         dummy stack frame just to store a frame pointer and restore.
17080         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
17082 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
17084         * manual/install.texi: Fix stray word in line-wrapped comment.
17086 2012-02-20  David S. Miller  <davem@davemloft.net>
17088         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
17089         both binutils and gcc support GOTDATA.
17091         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
17092         "rd %pc" in the PIC register setup sequences.
17094         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
17095         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
17096         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
17097         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
17098         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
17099         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
17100         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17101         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
17102         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
17103         (SYSCALL_ERROR_HANDLER): Likewise.
17104         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
17105         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
17106         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
17107         (SYSCALL_ERROR_HANDLER): Likewise.
17109         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
17110         (HAVE_GCC_GOTDATA): New.
17111         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
17112         relocation support in both binutils and gcc.
17113         * sysdeps/sparc/elf/configure: Regenerate.
17115         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
17116         * sysdeps/sparc/sparc32/elf/configure: Delete.
17117         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
17118         * sysdeps/sparc/sparc64/elf/configure: Delete.
17119         * sysdeps/sparc/elf/configure.in: New file.
17120         * sysdeps/sparc/elf/configure: Generate.
17122         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
17123         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
17124         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17125         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
17126         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
17128 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
17130         * manual/install.texi: Do not mention specific glibc version
17131         numbers.
17132         * manual/libc.texinfo (VERSION, UPDATED): Update.
17133         (@copying): Use @copyright{} and range of years.
17135 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
17137         [BZ #13695]
17138         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
17139         [crti.S not in sysdirs] (generated): Do not append.
17140         [crti.S not in sysdirs] (omit-deps): Likewise.
17141         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
17142         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
17143         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
17144         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
17145         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
17146         Likewise.
17147         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
17148         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
17149         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
17150         * csu/defs.awk: Remove file.
17151         * sysdeps/generic/initfini.c: Likewise.
17152         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
17153         variable.
17154         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
17155         Likewise.
17157 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
17159         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
17160         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
17161         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
17162         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
17163         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
17164         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
17165         <bits/epoll.h>.
17166         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
17167         (__EPOLL_PACKED): Define to empty if not defined by
17168         <bits/epoll.h>.
17169         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
17170         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17171         bits/epoll.h.
17173 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
17175         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
17176         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
17177         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
17178         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
17179         <bits/timerfd.h>.
17180         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
17181         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17182         bits/timerfd.h.
17184 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
17186         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
17187         in C locale.
17188         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17189         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17190         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
17191         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17193 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
17195         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17196         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
17198 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
17200         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
17201         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
17202         defined.
17203         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
17204         Likewise.
17205         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
17206         entry for 2.16.
17208 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
17210         * math/w_acos.c: Use non-signaling floating-point comparisons.
17211         * math/w_acosf.c: Likewise.
17212         * math/w_acosh.c: Likewise.
17213         * math/w_acoshf.c: Likewise.
17214         * math/w_acoshl.c: Likewise.
17215         * math/w_acosl.c: Likewise.
17216         * math/w_asin.c: Likewise.
17217         * math/w_asinf.c: Likewise.
17218         * math/w_asinl.c: Likewise.
17219         * math/w_atanh.c: Likewise.
17220         * math/w_atanhf.c: Likewise.
17221         * math/w_atanhl.c: Likewise.
17222         * math/w_exp2.c: Likewise.
17223         * math/w_exp2f.c: Likewise.
17224         * math/w_exp2l.c: Likewise.
17225         * math/w_j0.c: Likewise.
17226         * math/w_j0f.c: Likewise.
17227         * math/w_j0l.c: Likewise.
17228         * math/w_j1.c: Likewise.
17229         * math/w_j1f.c: Likewise.
17230         * math/w_j1l.c: Likewise.
17231         * math/w_jn.c: Likewise.
17232         * math/w_jnf.c: Likewise.
17233         * math/w_log.c: Likewise.
17234         * math/w_log10.c: Likewise.
17235         * math/w_log10f.c: Likewise.
17236         * math/w_log10l.c: Likewise.
17237         * math/w_log2.c: Likewise.
17238         * math/w_log2f.c: Likewise.
17239         * math/w_log2l.c: Likewise.
17240         * math/w_logf.c: Likewise.
17241         * math/w_logl.c: Likewise.
17242         * math/w_sqrt.c: Likewise.
17243         * math/w_sqrtf.c: Likewise.
17244         * math/w_sqrtl.c: Likewise.
17245         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17246         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17247         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17248         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17249         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17251 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
17253         [BZ #9739]
17254         * manual/string.texi (strnlen): Use correct parameter name in
17255         equivalent expression.
17257 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
17259         [BZ #11174]
17260         * manual/users.texi (seteuid): Consistently use neweuid for
17261         argument name.
17263 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
17265         [BZ #13704]
17266         * manual/nss.texi (Services in the NSS configuration): Correct
17267         list of services in example configuration file.
17269 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
17271         [BZ #11322]
17272         * manual/arith.texi: Remove statements about negative zero
17273         behaving identically to zero.
17275 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
17277         [BZ #5993]
17278         * manual/install.texi: Do not document upgrading from libc5.
17280 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
17282         [BZ #4596]
17283         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
17285 2012-02-18  David S. Miller  <davem@davemloft.net>
17287         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
17288         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
17289         %o7 across the call.
17290         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
17291         instead.
17292         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
17293         SETUP_PIC_REG_LEAF.
17294         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17295         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
17296         * sysdeps/sparc/crtn.S: Likewise.
17298 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
17300         * aout/Makefile: Remove.
17302 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
17304         [BZ #13058]
17305         * manual/examples/argp-ex1.c (main): Format definition in GNU
17306         style.
17307         * manual/examples/argp-ex2.c (main): Likewise.
17308         * manual/examples/argp-ex3.c (main): Likewise.
17309         * manual/examples/argp-ex4.c (main): Likewise.
17310         * manual/examples/longopt.c (main): Use new-style prototype
17311         definition.
17312         * manual/examples/strncat.c (main): Specify return type and use
17313         (void) for arguments.
17314         * manual/examples/subopt.c (main): Use char **argv argument.
17316 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
17318         [BZ #5077]
17319         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
17320         rounding modes.
17322 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
17324         [BZ #6907]
17325         * manual/string.texi (strchr): Change when strchrnul is
17326         recommended.
17328 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
17330         [BZ #174]
17331         * manual/locale.texi (setlocale): Document LOCPATH.
17333 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
17335         [BZ #10210]
17336         * manual/process.texi (execle): Move @dots{} before last argument.
17338 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
17340         [BZ #12047]
17341         * manual/charset.texi (Generic Charset Conversion): Fix typo
17342         (LC_TYPE -> LC_CTYPE).
17344 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
17346         [BZ #5805]
17347         * manual/arith.texi (scalbn): Use @var{} on parameter names.
17348         (scalbnf): Likewise.
17349         (scalbnl): Likewise.
17350         (scalbln): Likewise.
17351         (scalblnf): Likewise.
17352         (scalblnl): Likewise.
17353         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
17354         (vwarnx): Likewise.
17355         (verr): Likewise.
17356         (verrx): Likewise.
17357         * manual/filesys.texi (telldir): Use braces around return type.
17358         * manual/llio.texi (mmap): Add space after comma.
17359         (mmap64): Likewise.
17360         * manual/math.texi (jn): Use @var{} on parameter names.
17361         (jnf): Likewise.
17362         (jnl): Likewise.
17363         (yn): Likewise.
17364         (ynf): Likewise.
17365         (ynl): Likewise.
17366         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
17367         line.
17368         * manual/resource.texi (ulimit): Use @dots{} instead of literal
17369         "...".
17370         (sched_get_priority_min): Remove semicolon on @deftypefun line.
17371         (sched_get_priority_max): Likewise.
17372         * manual/signal.texi (sigvec): Add space after comma.
17373         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
17374         names.
17375         (if_indextoname): Likewise.
17376         (if_freenameindex): Likewise.
17377         (sendto): Use ',' instead of '.' in prototype.
17378         * manual/startup.texi (syscall): Use @dots{} instead of literal
17379         "...".
17380         * manual/stdio.texi (__fpending): Separate initial words of
17381         paragraph from @deftypefun line.
17382         * manual/syslog.texi (syslog): Use @dots{} instead of literal
17383         "...".
17384         (vsyslog): Use @var{} on parameter names.
17385         * manual/terminal.texi (stty): Use @var{} on parameter names.
17386         * manual/users.texi (getutmp): Use @var{} on parameter names.
17387         (getutmpx): Likewise.
17389 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
17391         [BZ #6884]
17392         * manual/stdio.texi (fopen): Fix typos in description of
17393         ",ccs=STRING".
17395 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
17397         [BZ #4026]
17398         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
17399         get clock_id definition.
17401 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
17403         [BZ #4822]
17404         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
17405         (madvise): Cast every argument to void on its own.
17407 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
17409         [BZ #9902]
17410         * manual/startup.texi (Exit Status): Fix typo.
17412 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
17414         [BZ #10140]
17415         * manual/examples/argp-ex1.c: Include <stdlib.h>.
17416         * manual/examples/argp-ex2.c: Likewise.
17417         * manual/examples/argp-ex3.c: Likewise.
17419 2012-02-16  Richard Henderson  <rth@redhat.com>
17421         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
17422         * sysdeps/s390/s390-32/initfini.c: Remove.
17423         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
17424         * sysdeps/s390/s390-64/initfini.c: Remove.
17426 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17428         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
17429         compiler output for sysdeps/generic/initfini.c.
17430         * sysdeps/sh/elf/initfini.c: Remove file.
17432 2012-02-16  David S. Miller  <davem@davemloft.net>
17434         [BZ #11494]
17435         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
17437         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
17438         * sysdeps/sparc/crti.S: New file.
17439         * sysdeps/sparc/crtn.S: New file.
17440         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
17441         * sysdeps/sparc/sparc64/Makefile: Likewise.
17443 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
17445         [BZ #3335]
17446         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
17448 2012-02-15  Roland McGrath  <roland@hack.frob.com>
17450         [BZ #4822]
17451         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
17453         * mach/devstream.c (cookie_io_functions_t): Macro removed.
17454         (write, read, close): Likewise.
17455         Patch by Aurelien Jarno <aurelien@aurel32.net>.
17457 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
17459         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
17460         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
17461         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
17462         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
17463         <bits/signalfd.h>.
17464         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
17465         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17466         bits/signalfd.h.
17468 2012-02-14  Marek Polacek  <polacek@redhat.com>
17470         * sysdeps/x86_64/crti.S: New file.
17471         * sysdeps/x86_64/crtn.S: New file.
17472         * sysdeps/x86_64/elf/initfini.c: Remove file.
17474 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
17476         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
17477         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
17478         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
17479         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
17480         <bits/inotify.h>.
17481         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
17482         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17483         bits/inotify.h.
17485 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
17487         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
17488         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
17489         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
17490         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
17491         <bits/eventfd.h>.
17492         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
17493         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17494         bits/eventfd.h.
17496 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
17498         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
17499         __feraiseexcept instead of feraiseexcept.
17501         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
17502         nanosleep invocations.
17503         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
17504         strings, and add error checking for a nanosleep invocations.
17506 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17508         Replace FSF snail mail address with URLs, as per GNU coding standards.
17509         Most of the snail mail addresses were wrong anyway, and omitting
17510         them makes the source code easier to maintain.  Almost all of the
17511         changes are to license notices and to locale LC_IDENTIFICATION
17512         addresses, except for this one:
17513         * manual/libc.texinfo: In "Published by", give the FSF's URL,
17514         not its snail mail address.
17516 2012-02-09  Richard Henderson  <rth@twiddle.net>
17518         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
17519         of kernel-features.h.
17521         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
17523 2012-02-08  Marek Polacek  <polacek@redhat.com>
17525         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
17526         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
17527         * sysdeps/gnu/_G_config.h: Likewise.
17528         * sysdeps/generic/_G_config.h: Likewise.
17530 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
17532         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
17533         tests.
17534         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17536         * sysdeps/powerpc/powerpc32/crti.S: New file.
17537         * sysdeps/powerpc/powerpc32/crtn.S: New file.
17538         * sysdeps/powerpc/powerpc64/crti.S: New file.
17539         * sysdeps/powerpc/powerpc64/crtn.S: New file.
17541         * Makeconfig (have-initfini): Don't set.
17542         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
17543         * configure.in (nopic_initfini): Don't substitute.
17544         * config.h.in (HAVE_INITFINI): Don't #undef.
17545         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
17546         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
17548 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
17550         Support crti.S and crtn.S provided directly by architectures.
17551         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
17552         [crti.S in sysdirs] (omit-deps): Likewise.
17553         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
17554         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
17555         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
17556         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
17557         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
17558         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
17559         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
17560         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
17561         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
17562         compiler output for sysdeps/generic/initfini.c.
17563         * sysdeps/i386/elf/Makefile: Remove file.
17564         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
17566 2012-02-07  Marek Polacek  <polacek@redhat.com>
17568         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
17569         * sysdeps/gnu/_G_config.h: Likewise.
17570         * sysdeps/mach/hurd/_G_config.h: Likewise.
17572 2012-02-07  Marek Polacek  <polacek@redhat.com>
17574         * math/Makefile (tests): Add tst-CMPLX2.
17575         * math/tst-CMPLX2.c: New file.
17577 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
17579         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17581         * math/libm-test.inc (jn_test): Add missing L suffix.
17583 2012-02-06  Marek Polacek  <polacek@redhat.com>
17585         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
17586         * sysdeps/i386/fpu/e_powf.S: Likewise.
17587         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17588         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
17589         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17590         * sysdeps/i386/fpu/e_pow.S: Likewise.
17591         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
17592         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17593         * sysdeps/i386/fpu/s_expm1.S: Likewise.
17594         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
17595         * sysdeps/i386/fpu/e_log2.S: Likewise.
17596         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17597         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17598         * sysdeps/i386/fpu/e_powl.S: Likewise.
17599         * sysdeps/i386/fpu/s_log1p.S: Likewise.
17600         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17601         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
17602         * sysdeps/i386/fpu/e_logl.S: Likewise.
17603         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
17604         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
17605         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
17606         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
17607         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17608         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17609         * sysdeps/i386/fpu/e_log.S: Likewise.
17610         * sysdeps/i386/fpu/s_cexp.S: Likewise.
17611         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17612         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
17613         * sysdeps/i386/fpu/e_logf.S: Likewise.
17614         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17615         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17616         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
17617         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
17618         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
17619         * sysdeps/i386/fpu/e_log10.S: Likewise.
17620         * sysdeps/i386/fpu/s_frexp.S: Likewise.
17621         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17622         * sysdeps/i386/fpu/s_asinh.S: Likewise.
17623         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
17624         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17625         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
17626         * sysdeps/i386/asm-syntax.h: Likewise.
17627         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17628         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17629         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17630         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
17631         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
17632         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17633         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
17634         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
17635         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17636         * sysdeps/powerpc/sysdep.h: Likewise.
17637         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
17638         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
17640 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
17642         [BZ #411]
17643         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
17645 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
17647         * sysdeps/i386/sysdep.h: Include <features.h>.
17648         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
17649         version.
17651 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
17653         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
17654         Define.
17655         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
17656         LOAD_PIC_REG_STR.
17658 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
17660         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
17661         (SETUP_PIC_REG): Use GET_PC_THUNK.
17662         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
17663         macro.
17665 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
17667         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
17668         for non-PIC compilation.
17669         (SETUP_PIC_REG): Add .p2align directive.
17670         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
17671         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
17672         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
17673         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
17674         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
17675         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
17676         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
17677         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17678         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
17679         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
17680         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
17681         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
17682         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
17683         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
17684         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
17685         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
17686         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
17687         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
17688         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
17689         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
17690         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
17691         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
17692         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
17693         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
17694         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
17695         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
17696         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
17697         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
17698         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
17699         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
17700         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
17701         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
17702         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
17703         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
17704         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
17705         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
17706         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
17707         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
17708         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
17709         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
17710         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
17712 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
17714         * math/tst-CMPLX.c: Include <stdio.h>.
17716 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
17718         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
17719         float.
17720         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
17721         * sysdeps/sparc/bits/mathdef.h: Likewise.
17723 2012-01-31  Marek Polacek  <polacek@redhat.com>
17725         * libio/libio.h: Don't define _PARAMS.
17726         * locale/programs/config.h: Don't define PARAMS.
17727         * stdlib/strtol_l.c: Likewise.
17728         (__strtol_l): Remove PARAMS from the prototype.
17730 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
17732         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
17733         names.  Just use the correct names.  Remove unnecessary wrapper
17734         functions.
17735         * malloc/arena.c: Likewise.
17736         * malloc/hooks.c: Likewise.
17738         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
17739         ARENA_TEST says not to.  Simplify test for creation of a new arena.
17740         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
17742 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
17744         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
17745         into tail calls.
17746         (update_get_addr): New function.
17747         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
17748         GET_ADDR_MODULE parameter.
17750 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
17752         * crypt/cert.c: Remove __STDC__ conditionals.
17753         * crypt/crypt-entry.c: Likewise.
17754         * crypt/crypt_util.c: Likewise.
17755         * libio/filedoalloc.c: Likewise.
17756         * libio/fileops.c: Likewise.
17757         * libio/genops.c: Likewise.
17758         * libio/iofclose.c: Likewise.
17759         * libio/iofdopen.c: Likewise.
17760         * libio/iofopen.c: Likewise.
17761         * libio/iofopen64.c: Likewise.
17762         * libio/iogetdelim.c: Likewise.
17763         * libio/iopopen.c: Likewise.
17764         * libio/obprintf.c: Likewise.
17765         * libio/oldfileops.c: Likewise.
17766         * libio/oldiofclose.c: Likewise.
17767         * libio/oldiofdopen.c: Likewise.
17768         * libio/oldiofopen.c: Likewise.
17769         * libio/oldiopopen.c: Likewise.
17770         * libio/wfiledoalloc.c: Likewise.
17771         * libio/wgenops.c: Likewise.
17772         * locale/programs/xmalloc.c: Likewise.
17773         * misc/syslog.c: Likewise.
17774         * stdio-common/xbug.c: Likewise.
17775         * string/memchr.c: Likewise.
17776         * string/memcmp.c: Likewise.
17777         * string/memrchr.c: Likewise.
17778         * string/rawmemchr.c: Likewise.
17779         * sysdeps/posix/getcwd.c: Likewise.
17780         * time/strftime_l.c: Likewise.
17782 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
17784         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
17785         * config.make.in (config-cflags-sse2avx): Define.
17786         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
17787         Fix typo.
17789 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
17791         * scripts/config.guess: Update from upstream config git repository.
17792         * scripts/config.sub: Likewise.
17794 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
17796         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
17797         (EM_NUM): Update.
17798         (R_TILEPRO_*, R_TILEGX_*): New macros.
17800         * scripts/firstversions.awk: Fix bug in version range handling.
17802         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
17804         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
17806         * include/sys/epoll.h: New file.
17807         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
17808         libc_hidden_def.
17810 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
17812         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
17813         Avoid unnecessary __WORDSIZE == 64 test.
17814         (fmaxf): Use VEX format if possible.
17815         (fmax): Likewise.
17816         (fminf): Likewise.
17817         (fmin): Likewise.
17819         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
17820         * math/math_private.h: Remove libc_fegetround* and
17821         libc_fesetround*.
17822         * sysdeps/i386/configure.in: Check for -msse2avx.
17823         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
17824         also if SSE2AVX is defined.
17825         Remove libc_fegetround* and libc_fesetround*.
17826         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
17827         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
17828         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
17829         of HAS_YMM_USABLE.
17830         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
17831         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
17832         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
17833         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
17834         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
17836         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
17838 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17840         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
17841         size is not set.
17842         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
17844 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
17846         [BZ #13618]
17847         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
17848         relocation.
17849         * Makeconfig (libm): Define.
17850         * elf/Makefile: Add rules to build and run tst-relsort1.
17851         * elf/tst-relsort1.c: New file.
17852         * elf/tst-relsort1mod1.c: New file.
17853         * elf/tst-relsort1mod2.c: New file.
17855 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
17857         * math/s_ldexp.c: Remove __STDC__ conditionals.
17858         * math/s_ldexpf.c: Likewise.
17859         * math/s_ldexpl.c: Likewise.
17860         * math/s_nextafter.c: Likewise.
17861         * math/s_nexttowardf.c: Likewise.
17862         * math/s_significand.c: Likewise.
17863         * math/s_significandf.c: Likewise.
17864         * math/s_significandl.c: Likewise.
17865         * math/w_jnl.c: Likewise.
17866         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
17867         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
17868         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17869         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17870         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17871         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17872         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
17873         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
17874         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17875         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
17876         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
17877         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17878         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
17879         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
17880         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
17881         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
17882         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17883         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17884         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17885         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17886         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17887         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
17888         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
17889         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17890         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17891         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17892         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17893         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
17894         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
17895         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17896         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
17897         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
17898         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
17899         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
17900         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
17901         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
17902         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17903         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17904         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
17905         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17906         * sysdeps/ieee754/k_standard.c: Likewise.
17907         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17908         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17909         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17910         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
17911         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
17912         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
17913         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17914         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
17915         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
17916         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
17917         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
17918         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
17919         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
17920         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
17921         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
17922         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17923         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17924         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17925         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17926         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
17927         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
17928         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
17929         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
17930         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17931         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
17932         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17933         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17934         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17935         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17936         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17937         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17938         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
17939         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
17940         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
17941         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17942         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
17943         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
17944         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
17945         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
17946         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
17947         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
17948         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
17949         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
17950         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
17951         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
17952         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
17953         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17954         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17955         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17956         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17957         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
17958         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
17959         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
17960         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
17961         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17962         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
17963         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
17964         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17965         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17966         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17967         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
17968         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
17969         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
17970         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17971         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
17972         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
17973         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
17974         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
17975         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
17976         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
17977         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
17978         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
17979         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
17980         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17981         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17982         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
17983         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
17984         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17985         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
17986         * sysdeps/ieee754/s_matherr.c: Likewise.
17987         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
17988         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
17989         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
17990         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
17992 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
17994         * crypt/md5.h: Remove __STDC__ conditionals.
17995         * libio/libioP.h: Likewise.
17996         * locale/programs/config.h: Likewise.
17997         * sysdeps/generic/sysdep.h: Likewise.
17998         * sysdeps/i386/asm-syntax.h: Likewise.
17999         * sysdeps/s390/asm-syntax.h: Likewise.
18000         * sysdeps/unix/sysdep.h: Likewise.
18001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
18002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
18004 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
18006         * libio/libio.h: Remove __STDC__ conditionals.
18007         * malloc/obstack.h: Likewise.
18008         * math/complex.h: Likewise.
18009         * math/math.h: Likewise.
18010         * sysdeps/generic/_G_config.h: Likewise.
18011         * sysdeps/gnu/_G_config.h: Likewise.
18012         * sysdeps/mach/hurd/_G_config.h: Likewise.
18013         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18014         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
18015         * sysdeps/sparc/bits/mathdef.h: Likewise.
18017 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
18019         [BZ #13583]
18020         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
18021         Clean up HAS_* macros.
18022         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
18023         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
18024         possible.
18025         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
18026         HAS_AVX.
18027         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
18028         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
18029         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
18030         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
18031         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
18033 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
18035         * elf/tst-unique3.cc (gets): Remove declaration.
18036         * elf/tst-unique3lib.cc (gets): Likewise.
18037         * elf/tst-unique3lib2.cc (gets): Likewise.
18038         * elf/tst-unique4.cc (gets): Likewise.
18040 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
18042         * include/stdio.h: Add C++ protection.  Add gets declarations and
18043         definitions.
18044         * debug/tst-chk1.c: Don't declare gets here.
18045         * stdio-common/tst-gets.c: Likewise.
18047 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
18049         * posix/glob: Remove directory.
18051 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
18053         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
18055 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
18057         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
18058         of the non-standard EPFNOSUPPORT.
18060 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18062         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
18063         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
18064         ANYWHERE set to 1 only on KERN_NO_SPACE error.
18066 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
18068         * wcsmbs/uchar.h: Test __STDC_VERSION__.
18070 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
18072         * nscd/aicache.c (addhstaiX): Do not cache negative results of
18073         transient errors.
18074         * nscd/grpcache.c (cache_addgr): Likewise.
18075         * nscd/hstcache.c (cache_addhst): Likewise.
18076         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18077         * nscd/pwdcache.c (cache_addpw): Likewise.
18078         * nscd/servicescache.c (cache_addserv): Likewise.
18080 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
18082         * malloc/malloc.c: Various cleanups.
18083         * malloc/hooks.c: Likewise.
18085         * stdlib/Makefile (tests): Add bug-fmtmsg1.
18086         * stdlib/bug-fmtmsg1.c: New file.
18088         * stdlib/fmtmsg.c (init): Add missing unlock.
18089         Patch by Peng Haitao <penght@cn.fujitsu.com>.
18091 2012-01-12  Marek Polacek  <polacek@redhat.com>
18093         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
18094         and _GNU_SOURCE.
18096 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18098         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
18099         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
18100         macro to ensure uniqueness of label name.
18101         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
18102         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
18104 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
18106         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
18108         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
18109         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
18110         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
18111         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
18113 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
18115         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
18117         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
18118         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
18119         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
18121         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
18123         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
18124         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
18125         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
18126         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
18128         * math/bits/math-finite.h: Add ldexp support.
18130 2012-01-10  Marek Polacek  <polacek@redhat.com>
18132         * locale/programs/localedef.h (show_archive_content): Add noreturn
18133         attribute.
18135 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
18137         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
18139 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
18141         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
18143         * io/Makefile (headers): Add bits/poll2.h.
18145 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
18147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
18148         typo #include statement.
18150 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
18152         * include/sys/cdefs.h: Define __attribute_alloc_size.
18153         * catgets/gencat.c: Add alloc_size attribute and apply consistently
18154         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
18155         * elf/pldd.c: Likewise.
18156         * iconv/iconv_charmap.c: Likewise.
18157         * iconv/iconvconfig.c: Likewise.
18158         * iconv/strtab.c: Likewise.
18159         * locale/programs/locale.c: Likewise.
18160         * locale/programs/localedef.h: Likewise.
18161         * locale/programs/simple-hash.c: Likewise.
18162         * nscd/nscd.h: Likewise.
18163         * nss/makedb.c: Likewise.
18164         * sysdeps/generic/ldconfig.h: Likewise.
18165         * locale/programs/localedef.c: Remove xmalloc prototype.
18166         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
18168 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18170         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
18171         appropriate.
18173 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
18175         * math/Makefile (tests): Add tst-CMPLX.
18176         * math/tst-CMPLX.c: New file.
18178         * math/complex.h (CMPLXL): Fix typo.
18180         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
18181         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
18182         GLIBC_2.16.
18183         * debug/tst-chk1.c: Add poll and ppoll tests.
18184         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
18185         * include/sys/poll.h: Add hidden proto for ppoll.
18186         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
18187         * sysdeps/mach/hurd/ppoll.c: Likewise.
18188         * io/ppoll.c: Likewise.
18189         * debug/poll_chk.c: New file.
18190         * debug/ppoll_chk.c: New file.
18191         * include/bits/poll2.h: New file.
18192         * io/bits/poll2.h: New file.
18194         [BZ #1350]
18195         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
18197         * configure.in: static is always set to yes.  Remove.
18198         * config.make.in: Don't set build-static.
18199         * Makeconfig: Remove use of build-static.
18200         * dlfcn/Makefile: Likewise.
18201         * elf/Makefile: Likewise.
18202         * math/Makefile: Likewise.
18203         * misc/Makefile: Likewise.
18204         * nptl/Makefile: Likewise.
18205         * sysdeps/mach/hurd/Makefile: Likewise.
18207         * configure.in: PWD_P is not used anymore.
18208         * config.make.in: Remove PWD_P entry.
18210         * configure.in: Remove last remnants of RANLIB.
18211         No need to check for signed size_t anymore.
18212         Don't set libc_commonpagesize and libc_relro_required here for Alpha
18213         and IA-64.
18214         Remove __builtin_expect test because we require at least gcc 3.4.
18215         * aclocal.m4: Likewise.
18217         * wcsmbs/mbrtoc16.c: Implement using towc function.
18218         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
18219         * wcsmbs/wcsmbsload.c: Likewise.
18220         * iconv/gconv_simple.c: Likewise.
18221         * iconv/gconv_int.h: Likewise.
18222         * iconv/gconv_builtin.h: Likewise.
18223         * iconv/iconv_prog.c: Remove CHAR16 handling.
18225         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
18227         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
18229         * configure.in: Remove --with-elf and --enable-bounded options.
18230         Dont set base_machine for ia64.  More non-ELF conditions removed.
18231         Remove testing and setting of leading underscore information.
18232         * config.make.in (build-bounded): Set to no.
18233         * config.h.in: Remove NO_UNDERSCORES entry.
18234         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
18235         them.
18236         * csu/start.c: Remove !NO_UNDERSCORE code.
18237         * locale/localeinfo.h: Likewise.
18238         * sysdeps/generic/machine-gmon.h: Likewise.
18239         * sysdeps/generic/sysdep.h: Likewise.
18240         * sysdeps/i386/sysdep.h: Likewise.
18241         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
18242         * sysdeps/mach/sysdep.h: Likewise.
18243         * sysdeps/s390/s390-32/sysdep.h: Likewise.
18244         * sysdeps/s390/s390-64/sysdep.h: Likewise.
18245         * sysdeps/sh/sysdep.h: Likewise.
18246         * sysdeps/sparc/sparc32/alloca.S: Likewise.
18247         * sysdeps/unix/i386/sysdep.S: Likewise.
18248         * sysdeps/unix/sparc/start.c: Likewise.
18249         * sysdeps/unix/sparc/sysdep.S: Likewise.
18250         * sysdeps/unix/sparc/sysdep.h: Likewise.
18251         * sysdeps/unix/start.c: Likewise.
18252         * sysdeps/unix/x86_64/sysdep.S: Likewise.
18253         * sysdeps/x86_64/sysdep.h: Likewise.
18255 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
18257         [BZ #13553]
18258         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
18259         for non-gcc.
18260         * argp/argp-fmtstream.h: Use const instead __const.
18261         * argp/argp.h: Likewise.
18262         * assert/assert.h: Likewise.
18263         * bits/fenv.h: Likewise.
18264         * bits/sched.h: Likewise.
18265         * bits/sigset.h: Likewise.
18266         * bits/sigthread.h: Likewise.
18267         * catgets/nl_types.h: Likewise.
18268         * conform/data/pthread.h-data: Likewise.
18269         * crypt/crypt-private.h: Likewise.
18270         * crypt/crypt.h: Likewise.
18271         * crypt/crypt_util.c: Likewise.
18272         * ctype/ctype.h: Likewise.
18273         * debug/execinfo.h: Likewise.
18274         * debug/mbsnrtowcs_chk.c: Likewise.
18275         * debug/mbsrtowcs_chk.c: Likewise.
18276         * debug/wcsnrtombs_chk.c: Likewise.
18277         * debug/wcsrtombs_chk.c: Likewise.
18278         * debug/wcstombs_chk.c: Likewise.
18279         * dirent/dirent.h: Likewise.
18280         * dlfcn/dlfcn.h: Likewise.
18281         * elf/neededtest4.c: Likewise.
18282         * grp/grp.h: Likewise.
18283         * gshadow/gshadow.h: Likewise.
18284         * iconv/gconv.h: Likewise.
18285         * iconv/gconv_int.h: Likewise.
18286         * iconv/gconv_simple.c: Likewise.
18287         * iconv/iconv.h: Likewise.
18288         * iconv/loop.c: Likewise.
18289         * iconv/skeleton.c: Likewise.
18290         * include/aio.h: Likewise.
18291         * include/aliases.h: Likewise.
18292         * include/argz.h: Likewise.
18293         * include/arpa/inet.h: Likewise.
18294         * include/assert.h: Likewise.
18295         * include/dirent.h: Likewise.
18296         * include/dlfcn.h: Likewise.
18297         * include/execinfo.h: Likewise.
18298         * include/fcntl.h: Likewise.
18299         * include/fenv.h: Likewise.
18300         * include/glob.h: Likewise.
18301         * include/grp.h: Likewise.
18302         * include/libintl.h: Likewise.
18303         * include/mntent.h: Likewise.
18304         * include/netdb.h: Likewise.
18305         * include/pwd.h: Likewise.
18306         * include/rpc/netdb.h: Likewise.
18307         * include/sched.h: Likewise.
18308         * include/search.h: Likewise.
18309         * include/shadow.h: Likewise.
18310         * include/signal.h: Likewise.
18311         * include/stdio.h: Likewise.
18312         * include/stdlib.h: Likewise.
18313         * include/string.h: Likewise.
18314         * include/sys/socket.h: Likewise.
18315         * include/sys/stat.h: Likewise.
18316         * include/sys/statfs.h: Likewise.
18317         * include/sys/statvfs.h: Likewise.
18318         * include/sys/syslog.h: Likewise.
18319         * include/sys/time.h: Likewise.
18320         * include/sys/uio.h: Likewise.
18321         * include/time.h: Likewise.
18322         * include/unistd.h: Likewise.
18323         * include/utmp.h: Likewise.
18324         * include/wchar.h: Likewise.
18325         * include/wctype.h: Likewise.
18326         * inet/aliases.h: Likewise.
18327         * inet/arpa/inet.h: Likewise.
18328         * inet/netinet/ether.h: Likewise.
18329         * inet/netinet/in.h: Likewise.
18330         * intl/libintl.h: Likewise.
18331         * io/bits/fcntl2.h: Likewise.
18332         * io/fcntl.h: Likewise.
18333         * io/ftw.h: Likewise.
18334         * io/sys/poll.h: Likewise.
18335         * io/sys/stat.h: Likewise.
18336         * io/sys/statfs.h: Likewise.
18337         * io/sys/statvfs.h: Likewise.
18338         * io/utime.h: Likewise.
18339         * libio/bits/stdio.h: Likewise.
18340         * libio/bits/stdio2.h: Likewise.
18341         * libio/libio.h: Likewise.
18342         * libio/libioP.h: Likewise.
18343         * libio/stdio.h: Likewise.
18344         * locale/lc-ctype.c: Likewise.
18345         * locale/locale.h: Likewise.
18346         * login/utmp.h: Likewise.
18347         * malloc/arena.c: Likewise.
18348         * malloc/malloc.c: Likewise.
18349         * malloc/malloc.h: Likewise.
18350         * malloc/mcheck.c: Likewise.
18351         * malloc/mtrace.c: Likewise.
18352         * math/bits/mathcalls.h: Likewise.
18353         * math/fenv.h: Likewise.
18354         * math/math_private.h: Likewise.
18355         * misc/bits/error.h: Likewise.
18356         * misc/bits/syslog.h: Likewise.
18357         * misc/err.h: Likewise.
18358         * misc/error.h: Likewise.
18359         * misc/fstab.h: Likewise.
18360         * misc/mntent.h: Likewise.
18361         * misc/regexp.h: Likewise.
18362         * misc/search.h: Likewise.
18363         * misc/sgtty.h: Likewise.
18364         * misc/sys/mman.h: Likewise.
18365         * misc/sys/syslog.h: Likewise.
18366         * misc/sys/uio.h: Likewise.
18367         * misc/sys/xattr.h: Likewise.
18368         * misc/ttyent.h: Likewise.
18369         * nis/rpcsvc/ypclnt.h: Likewise.
18370         * nss/nss.h: Likewise.
18371         * posix/bits/unistd.h: Likewise.
18372         * posix/fnmatch.h: Likewise.
18373         * posix/glob.h: Likewise.
18374         * posix/sched.h: Likewise.
18375         * posix/spawn.h: Likewise.
18376         * posix/sys/wait.h: Likewise.
18377         * posix/unistd.h: Likewise.
18378         * posix/wordexp.h: Likewise.
18379         * pwd/pwd.h: Likewise.
18380         * resolv/netdb.h: Likewise.
18381         * resource/sys/resource.h: Likewise.
18382         * rt/aio.h: Likewise.
18383         * rt/bits/mqueue2.h: Likewise.
18384         * rt/mqueue.h: Likewise.
18385         * shadow/shadow.h: Likewise.
18386         * signal/signal.h: Likewise.
18387         * socket/send.c: Likewise.
18388         * socket/sendto.c: Likewise.
18389         * socket/sys/socket.h: Likewise.
18390         * stdio-common/printf.h: Likewise.
18391         * stdlib/bits/stdlib.h: Likewise.
18392         * stdlib/fmtmsg.h: Likewise.
18393         * stdlib/monetary.h: Likewise.
18394         * stdlib/stdlib.h: Likewise.
18395         * stdlib/ucontext.h: Likewise.
18396         * streams/stropts.h: Likewise.
18397         * string/argz.h: Likewise.
18398         * string/bits/string2.h: Likewise.
18399         * string/string.h: Likewise.
18400         * string/strings.h: Likewise.
18401         * sunrpc/rpc/auth.h: Likewise.
18402         * sunrpc/rpc/auth_des.h: Likewise.
18403         * sunrpc/rpc/clnt.h: Likewise.
18404         * sunrpc/rpc/netdb.h: Likewise.
18405         * sunrpc/rpc/pmap_clnt.h: Likewise.
18406         * sunrpc/rpc/xdr.h: Likewise.
18407         * sysdeps/generic/inttypes.h: Likewise.
18408         * sysdeps/generic/net/if.h: Likewise.
18409         * sysdeps/generic/sys/swap.h: Likewise.
18410         * sysdeps/gnu/net/if.h: Likewise.
18411         * sysdeps/gnu/utmpx.h: Likewise.
18412         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
18413         * sysdeps/i386/i486/bits/string.h: Likewise.
18414         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
18415         * sysdeps/s390/bits/string.h: Likewise.
18416         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
18417         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
18418         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
18419         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
18420         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18421         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
18422         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
18423         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
18424         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
18425         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
18426         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
18427         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
18428         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
18429         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
18430         * sysdeps/unix/sysv/linux/readv.c: Likewise.
18431         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
18432         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
18433         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18434         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18435         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18436         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
18437         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
18438         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
18439         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
18440         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
18441         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
18442         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
18443         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
18444         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
18445         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
18446         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
18447         * sysvipc/sys/ipc.h: Likewise.
18448         * sysvipc/sys/msg.h: Likewise.
18449         * sysvipc/sys/sem.h: Likewise.
18450         * sysvipc/sys/shm.h: Likewise.
18451         * termios/termios.h: Likewise.
18452         * time/sys/time.h: Likewise.
18453         * time/time.h: Likewise.
18454         * wcsmbs/bits/wchar2.h: Likewise.
18455         * wcsmbs/uchar.h: Likewise.
18456         * wcsmbs/wchar.h: Likewise.
18457         * wctype/wctype.h: Likewise.
18459         [BZ #13551]
18460         * Makeconfig: Remove all but ELF support including AIX support.
18461         * Makerules: Likewise.
18462         * config.h.in: Likewise.
18463         * config.make.in: Likewise.
18464         * configure: Likewise.
18465         * configure.in: Likewise.
18466         * csu/Makefile: Likewise.
18467         * csu/version.c: Likewise.
18468         * debug/Makefile: Likewise.
18469         * dlfcn/Makefile: Likewise.
18470         * elf/Makefile: Likewise.
18471         * extra-lib.mk: Likewise.
18472         * iconv/Makefile: Likewise.
18473         * include/libc-symbols.h: Likewise.
18474         * include/shlib-compat.h: Likewise.
18475         * resolv/Makefile: Likewise.
18476         * resolv/res_libc.c: Likewise.
18477         * rt/Makefile: Likewise.
18478         * sysdeps/i386/asm-syntax.h: Likewise.
18479         * sysdeps/i386/sysdep.h: Likewise.
18480         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
18481         * sysdeps/mach/sysdep.h: Likewise.
18482         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
18483         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
18484         * sysdeps/s390/asm-syntax.h: Likewise.
18485         * sysdeps/s390/s390-32/sysdep.h: Likewise.
18486         * sysdeps/s390/s390-64/sysdep.h: Likewise.
18487         * sysdeps/sh/sysdep.h: Likewise.
18488         * sysdeps/unix/sparc/sysdep.h: Likewise.
18489         * sysdeps/wordsize-32/divdi3.c: Likewise.
18490         * sysdeps/x86_64/sysdep.h: Likewise.
18492         * argp/Versions: Remove _argp_unlock_xxx.
18494         [BZ #13559]
18495         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
18496         * abilist/libBrokenLocale.abilist: Likewise.
18497         * abilist/libanl.abilist: Likewise.
18498         * abilist/libc.abilist: Likewise.
18499         * abilist/libcrypt.abilist: Likewise.
18500         * abilist/libdl.abilist: Likewise.
18501         * abilist/libm.abilist: Likewise.
18502         * abilist/libnsl.abilist: Likewise.
18503         * abilist/libpthread.abilist: Likewise.
18504         * abilist/libresolv.abilist: Likewise.
18505         * abilist/librt.abilist: Likewise.
18506         * abilist/libthread_db.abilist: Likewise.
18507         * abilist/libutil.abilist: Likewise.
18508         * abilist/libnss_db.abilist: New file.
18510         * scripts/abilist.awk: Add support for indirect functions.
18512         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
18514         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
18516         * shlib-versions: Remove entries for ports architectures.
18518         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
18519         files in ports.
18520         * elf/stackguard-macros.h: Remove support for IA-64.
18521         * elf/tst-auditmod1.c: Likewise.
18522         * sysdeps/generic/ldsodefs.h: Likewise.
18524         * sysdeps/unix/sysv/linux/configure.in: Ports should define
18525         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
18526         configure files.
18528         [BZ #13552]
18529         * configure.in: Remove --enable-omitfp support.
18530         * FAQ.in: Adjust.
18531         * config.make.in: Likewise.
18532         * Makeconfig: Likewise.
18533         * manual/install.texi: Likewise.
18535         In case anyone cares, the IA-64 architecture could move to ports.
18536         * sysdeps/ia64/*: Removed.
18537         * sysdeps/unix/sysv/linux/ia64/*: Removed.
18538         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
18540         [BZ #13555]
18541         * configure.in: Remove entries for unsupported architectures.
18543         [BZ #13533]
18544         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
18545         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
18546         routines.
18547         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
18548         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
18549         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
18550         fall back to using wcrtomb.
18551         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
18552         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
18553         renaming.
18554         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
18555         * wcsmbs/tst-c16c32-1.c: New file.
18557         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
18558         local variable.
18560         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
18562         * elf/tst-unique3.cc: Add explicit declaration of gets.
18563         * elf/tst-unique3lib.cc: Likewise.
18564         * elf/tst-unique3lib2.cc: Likewise.
18565         * elf/tst-unique4.cc: Likewise.
18567         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
18569 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
18571         [BZ #13566]
18572         * assert/assert.h (static_assert): Don't define for C++.
18573         * libio/stdio.h (gets): Do declare for C++ <= C++11.
18574         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
18576 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
18578         * iconv/loop.c (single loop): Fix assertion in storing of
18579         remaining bytes.
18581         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
18583 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
18585         * posix/getconf.c: Update copyright year.
18586         * nss/getent.c: Likewise.
18587         * nss/makedb.c: Likewise.
18588         * iconv/iconvconfig.c: Likewise.
18589         * iconv/iconv_prog.c: Likewise.
18590         * elf/ldconfig.c: Likewise.
18591         * elf/pldd.c: Likewise.
18592         * elf/sotruss.ksh: Likewise.
18593         * catgets/gencat.c: Likewise.
18594         * csu/version.c: Likewise.
18595         * elf/ldd.bash.in: Likewise.
18596         * elf/sprof.c (print_version): Likewise.
18597         * locale/programs/locale.c: Likewise.
18598         * locale/programs/localedef.c: Likewise.
18599         * login/programs/pt_chown.c: Likewise.
18600         * nscd/nscd.c (print_version): Likewise.
18601         * debug/xtrace.sh: Likewise.
18602         * malloc/memusage.sh: Likewise.
18603         * malloc/mtrace.pl: Likewise.
18604         * debug/catchsegv.sh: Likewise.
18606 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
18608         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
18609         pure attribute.
18611 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
18613         [BZ #13533]
18614         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
18615         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
18616         transformations.
18617         * iconv/gconv_int.h: Likewise.
18618         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
18619         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
18620         from libc for GLIBC_2.16.
18621         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
18622         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
18623         * wcsmbs/uchar.h: Really define mbstate_t.
18624         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
18625         * wcsmbs/c16rtomb.c: New file.
18626         * wcsmbs/mbrtoc16.c: New file.
18627         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
18628         for C/POSIX locale.
18629         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
18630         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
18632         * wcsmbs/wchar.h: Add missing __restrict.
18634 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
18636         [BZ #13532]
18637         * time/Makefile (routines): Add timespec_get.
18638         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
18639         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
18640         timespec for ISO C11.
18641         * time/timespec_get.c: New file.
18642         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
18643         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
18645         [BZ #13531]
18646         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
18647         * stdlib/stdlib.h: Declare aligned_alloc.
18648         * Versions.def: Add GLIBC_2.16 for libc.
18649         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
18651         [BZ 13527]
18652         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
18653         ISO C11.
18655         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
18656         code.
18658         [BZ #13528]
18659         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
18661         [BZ #13529]
18662         * assert/assert.h (static_assert): Define.
18664         * version.h: Update for 2.16 development version.
18666         [BZ #13526]
18667         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
18668         _ISOC11_SOURCE.
18670         * version.h (RELEASE): Bump for 2.15 release.
18671         * include/features.h (__GLIBC_MINOR__): Bump to 15.
18673         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
18674         Patch by Marek Polacek <mpolacek@redhat.com>.
18676         * bits/byteswap.h: Protect long long constants with __extension__.
18677         * sysdeps/i386/bits/byteswap.h: Likewise.
18678         * sysdeps/ia64/bits/byteswap.h: Likewise.
18679         * sysdeps/s390/bits/byteswap.h: Likewise.
18680         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18682 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18684         [BZ #13540]
18685         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
18686         destination buffer.
18687         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
18689 2011-12-23  Marek Polacek  <polacek@redhat.com>
18691         * elf/dl-addr.c (determine_info): Add inline keyword.
18692         * elf/tst-auditmod4b.c (check_avx): Likewise.
18693         * elf/tst-auditmod6b.c (check_avx): Likewise.
18694         * elf/tst-auditmod6c.c (check_avx): Likewise.
18695         * elf/tst-auditmod7b.c (check_avx): Likewise.
18697 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
18699         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
18700         !__SSE_MATH__.
18702 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18704         [BZ #13540]
18705         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
18706         processing for last bytes.
18708 2011-08-06  Bruno Haible  <bruno@clisp.org>
18710         [BZ #13061]
18711         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
18712         U+0385, not to U+1FEE.
18714         [BZ #13062]
18715         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
18716         entry for U+00A5 U+0301.
18718 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
18720         [BZ #13166]
18721         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
18722         buffer for the output is too small.
18724         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
18725         optimization.
18727         [BZ #13185]
18728         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
18729         SSE flags if possible.
18731 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18733         [BZ #13540]
18734         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
18735         processing for last bytes.
18737 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
18739         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
18740         (syscall-list-default-options, syscall-list-default-condition)
18741         (syscall-list-includes): Define.
18742         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
18743         list of ABIs and options and #if conditions for each ABI.  Do not
18744         handle common syscalls between ABIs specially.
18745         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
18746         Remove.
18747         (syscall-list-variants, syscall-list-32bit-options)
18748         (syscall-list-32bit-condition, syscall-list-64bit-options)
18749         (syscall-list-64bit-condition): Define.
18750         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
18751         (syscall-list-variants, syscall-list-32bit-options)
18752         (syscall-list-32bit-condition, syscall-list-64bit-options)
18753         (syscall-list-64bit-condition): Define.
18754         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
18755         Remove.
18756         (syscall-list-variants, syscall-list-32bit-options)
18757         (syscall-list-32bit-condition, syscall-list-64bit-options)
18758         (syscall-list-64bit-condition): Define.
18759         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
18760         Remove.
18761         (syscall-list-variants, syscall-list-32bit-options)
18762         (syscall-list-32bit-condition, syscall-list-64bit-options)
18763         (syscall-list-64bit-condition): Define.
18765 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
18767         * locale/iso-639.def: Add brx entry.
18769         [BZ #13328]
18770         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
18771         Proposed by Mariusz_Cukr <marcukr@op.pl>.
18773         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
18774         __feraiseexcept_renamed.
18776 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
18778         [BZ #13538]
18779         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
18780         EPOLLET with unsigned values.
18781         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
18782         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
18784         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
18785         to large cancellation.
18786         * math/s_cacoshf.c: Likewise.
18787         * math/s_cacoshl.c: Likewise.
18789 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
18791         [BZ #13305]
18792         [BZ #12786]
18793         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
18794         * math/s_cacoshf.c: Likewise.
18795         * math/s_cacoshl.c: Likewise.
18797 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
18799         [BZ #13439]
18800         * iconv/gconv.h: Define __GCONV_SWAP.
18801         * iconvdata/unicode.c: The swap bit must be stored in __flags.
18802         * iconvdata/utf-16.c: Likewise.
18803         * iconvdata/utf-32.c: Likewise.
18805 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
18807         [BZ #13524]
18808         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
18809         numerator after shifting it by one limb.
18811 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
18813         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
18814         under [__USE_EXTERN_INLINES].
18816 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
18818         [BZ #13446]
18819         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
18821 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18823         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
18824         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
18825         optimized code.
18826         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
18827         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
18828         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
18829         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
18830         for strncasecmp/strncasecmp_l compilation.
18831         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
18832         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
18834 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
18836         [BZ #13484]
18837         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
18838         of __asm__.
18840 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
18842         [BZ #13506]
18843         * time/tzfile.c (__tzfile_read): Check values from file header.
18845 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
18847         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
18848         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
18849         * powerpc/powerpc32/dl-start.S: Likewise.
18850         * powerpc/powerpc32/elf/start.S: Likewise.
18851         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
18852         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
18853         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
18854         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
18855         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
18856         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
18857         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
18858         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
18859         * powerpc/powerpc32/fpu/s_round.S: Likewise.
18860         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
18861         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
18862         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
18863         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
18864         * powerpc/powerpc32/memset.S: Likewise.
18865         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
18866         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
18867         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
18868         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
18869         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
18870         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
18871         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
18872         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
18873         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
18874         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
18875         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
18876         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
18877         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
18879 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18881         * math/libm-test.inc: Added more nearbyint tests.
18882         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
18883         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
18884         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
18885         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
18887 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
18889         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
18890         FD_CLOEXEC.
18892 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18894         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
18895         Add wcscpy-ssse3 wcscpy-c.
18896         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
18897         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
18898         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
18899         * sysdeps/x86_64/wcschr.S: New file.
18900         * sysdeps/x86_64/wcsrchr.S: New file.
18901         * string/test-strcmp.c: Remove checking of wcscmp function for
18902         wrong alignments.
18903         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
18904         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
18905         wcsrchr-sse2 wcsrchr-c.
18906         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
18907         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
18908         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
18909         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
18910         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
18911         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
18912         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
18913         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
18914         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
18915         * wcsmbc/wcschr.c (WCSCHR): New macro.
18917 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18919         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
18920         * wcsmbs/test-wcsrchr.c: New file.
18921         * string/test-strrchr.c: Add wcsrchr support.
18922         (WIDE): New macro.
18923         * wcsmbs/test-wcscpy.c: New file.
18924         * string/test-strcpy.c: Add wcscpy support.
18925         (WIDE): New macro.
18927 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
18929         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
18930         the inner loop.
18932 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
18934         [BZ #13472]
18935         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
18937 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
18939         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
18940         Minor optimizations.
18942         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
18943         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
18944         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
18946 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
18948         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
18949         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
18950         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
18951         for gcc to avoid warnings.
18952         * inet/Makefile (tests): Add tst-checks.
18953         * inet/tst-checks.c: New file.
18955         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
18956         warning.
18958         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
18959         __wmemcmp_sse2.
18961         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
18962         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
18964         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
18966 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
18968         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
18969         problem.
18971         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
18973 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
18975         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
18976         conditional on GCC version.
18977         (__arch_compare_and_exchange_val_8_acq)
18978         (__arch_compare_and_exchange_val_16_acq)
18979         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
18980         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
18981         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
18983 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
18985         * sysdeps/sh/backtrace.c: New file.
18987 2011-12-02  Andreas Schwab  <schwab@redhat.com>
18989         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
18990         parenthesis.
18992 2011-12-01  Andreas Schwab  <schwab@redhat.com>
18994         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
18995         falling back to utime.
18997 2011-11-30  Andreas Schwab  <schwab@redhat.com>
18999         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
19000         expectations for float.
19002 2011-11-29  Andreas Schwab  <schwab@redhat.com>
19004         * locale/weight.h (findidx): Add parameter len.
19005         * locale/weightwc.h (findidx): Likewise.
19006         * posix/fnmatch_loop.c (FCT): Adjust caller.
19007         * posix/regcomp.c (build_equiv_class): Likewise.
19008         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
19009         * posix/regexec.c (check_node_accept_bytes): Likewise.
19010         * string/strcoll_l.c (STRCOLL): Likewise.
19011         * string/strxfrm_l.c (STRXFRM): Likewise.
19013 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
19015         * Makefile.in: Remove CVSOPT handling.
19016         * configure.in: Remove use of AC_REVISION.
19017         * iconvdata/Makefile (distribute): No need to filter out CVS.
19018         * scripts/list-sources.sh: Remove CVS, subversion and monotone
19019         handling.
19021 2011-11-16  Andreas Schwab  <schwab@redhat.com>
19023         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
19024         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
19025         [USE_AS_STRNCASECMP_L]: Likewise.
19026         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
19027         NO_TLS_DIRECT_SEG_REFS.
19028         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
19029         Fix argument offsets for non-PIC.
19030         [USE_AS_STRNCASECMP_L]: Likewise.
19031         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
19032         NO_TLS_DIRECT_SEG_REFS.
19034 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
19036         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
19037         O_CLOEXEC.
19038         * locale/loadlocale.c (_nl_load_locale): Likewise.
19040 2011-11-15  Andreas Schwab  <schwab@redhat.com>
19042         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
19043         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
19044         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
19045         (SYSCALL_GETTIME): Set errno on error.
19047         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
19048         count references to noai6ai_cached.
19050 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
19052         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
19054         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
19055         FD_CLOEXEC for /proc/self/maps.
19057         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
19058         FD_CLOEXEC for /proc/meminfo.
19060         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
19061         gai.conf.
19063         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
19064         FD_CLOEXEC for given file.
19066         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
19068         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
19069         FD_CLOEXEC for /etc/hosts.
19070         (_gethtent): Likewise.
19072         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
19074         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
19075         cancellation and set FD_CLOEXEC for /etc/netgroup.
19077         * nss/nss_files/files-key.c (search): Don't allow cancellation when
19078         reading /etc/publickey.
19080         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
19081         allow cancellation when reading /etc/group.
19083         * nss/nss_files/files-alias.c (internal_setent): Don't allow
19084         cancellation.
19085         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
19087         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
19088         when using data file.
19090         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
19092         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
19093         (write_nis_obj): Use "c" and "e" in fopen.
19095         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
19097         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
19099         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
19101         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
19103         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
19104         locale.alias.
19106         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
19108         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
19110         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
19112         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
19113         file parsing and set FD_CLOEXEC.
19115 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
19117         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
19119 2011-11-14  Andreas Schwab  <schwab@redhat.com>
19121         * malloc/arena.c (arena_get2): Don't call reused_arena when
19122         _int_new_arena failed.
19124 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
19126         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
19127         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
19128         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
19129         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
19130         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
19131         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
19132         to compile strcasecmp and strncasecmp.
19133         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
19134         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
19136         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
19138 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
19140         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
19141         locale-defines.sym to gen-as-const-headers.
19142         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
19143         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
19144         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
19145         to compile strcasecmp and strncasecmp.
19146         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
19147         strcasecmp_l and strncasecmp_l.
19148         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
19149         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
19150         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
19151         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
19152         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
19153         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
19154         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
19155         * sysdeps/i386/i686/multiarch/strncase.S: New file.
19156         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
19157         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
19158         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
19160 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
19162         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
19163         result of SYSDEP_GETTIME_CPU to retval.
19164         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
19165         parameter list to macro.  Remove trailing semicolon.  Adjust users.
19167         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
19168         variable.
19170         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
19171         mantissa words.
19172         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
19174         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
19175         from unused variable.
19177         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
19178         DWARF definitions.
19179         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
19180         for assembling.
19182         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
19183         over namespaces.
19185         * sunrpc/rpc_prot.c (rejected): Fix case value.
19187         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
19188         unsigned long long int to avoid warnings in shift.
19190         * posix/regex_internal.c (re_string_reconstruct): Actually use result
19191         of use of trans.
19192         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
19193         variable tmp.
19195         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
19196         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
19197         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
19199         * nis/nis_table.c (nis_list): Use variable of correct type for
19200         result of __follow_path call.
19202 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19204         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
19205         of math functions ceil, trunc, floor, round, and sqrt, when
19206         avaliable on the platform.
19207         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
19208         name clash.
19209         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
19210         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
19211         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
19213 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
19215         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
19216         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
19218 2011-11-11  Roland McGrath  <roland@hack.frob.com>
19220         * include/unistd.h: Fix __readlink return type.
19221         Reported by Chris Metcalf <cmetcalf@tilera.com>.
19223 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
19225         * stdlib/ucontext.h: Undo last change for makecontext.
19227 2011-11-11  Andreas Schwab  <schwab@redhat.com>
19229         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
19231         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
19232         * setjmp/setjmp.h: Mark functions as non-leaf.
19233         * setjmp/bits/setjmp2.h: Likewise.
19234         * stdlib/ucontext.h: Likewise.
19236 2011-11-10  Andreas Schwab  <schwab@redhat.com>
19238         * malloc/arena.c (_int_new_arena): Don't increment narenas.
19239         (reused_arena): Don't check arena limit.
19240         (arena_get2): Atomically check arena limit.
19242 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
19244         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
19245         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
19247         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
19248         instructions.
19250 2011-11-07  Andreas Schwab  <schwab@redhat.com>
19252         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
19253         handler when locking.
19255         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
19256         Fix size of allocated buffer.
19258 2011-11-04  Andreas Schwab  <schwab@redhat.com>
19260         [BZ #10103]
19261         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
19262         declarations for long double functions.
19263         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
19265         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
19267 2011-11-03  Andreas Schwab  <schwab@redhat.com>
19269         * nscd/nscd.c (main): Don't start AVC thread until credentials are
19270         installed.
19272         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
19273         is disabled.
19275 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19277         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
19279 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
19281         * include/alloca.h (stackinfo_alloca_round): Define.
19282         (extend_alloca): Use it.
19283         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
19284         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
19285         here.
19287         * scripts/check-local-headers.sh: Ignore libaudit.h.
19289         * nscd/Makefile (extra-objs): Make recursively expanded.
19291 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
19293         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
19294         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
19296         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
19297         * posix/tst-rfc3484-2.c: Likewise.
19298         * posix/tst-rfc3484-3.c: Likewise.
19300         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
19301         process_vm_writev.
19302         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
19303         process_vm_writev.
19304         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
19305         process_vm_writev from libc using GLIBC_2.15 version.
19307         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
19309 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
19311         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
19312         stack usage.
19314 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
19316         [BZ #13367]
19317         * nss/getent.c (initgroups_keys): Show error message in case no group
19318         names are given.
19320         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
19321         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
19322         __bump_nl_timestamp.
19323         * nscd/connections (nscd_init): When host database is served open
19324         netlink socket and request notification about configuration changes.
19325         (main_loop_poll): Track netlink file descriptor and bump timestamp
19326         in case data becomes available.
19327         (main_loop_epoll): Likewise.
19328         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
19329         (database_pers_head): Add extra_data fileds.
19330         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
19331         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
19332         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
19333         Adjust caller.
19334         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
19335         in6ai data, call __free_in6ai.
19336         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
19337         Add -DHAVE_NETLINK.
19338         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
19339         interface information.  Reuse previous data if netlink timestamp
19340         is not changed.
19341         (__bump_nl_timestamp): New function.
19342         (__free_in6ai): New function.
19344 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
19346         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
19347         close_not_cancel_no_status here.
19348         (__check_pf): Reorganize code a bit to not call close twice if OOM.
19350 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
19352         [BZ #13276]
19353         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
19354         return value.
19356         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
19357         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
19358         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
19360 2011-07-03  Andreas Jaeger  <aj@suse.de>
19362         [BZ #10709]
19363         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
19364         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
19365         * math/libm-test.inc (sin_test): Add test case.
19367 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
19369         [BZ #13337]
19370         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
19371         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
19373         * elf/chroot_canon.c (chroot_canon): Cleanups.
19375         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
19377         [BZ #13335]
19378         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
19379         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
19381         * string/test-strchr.c: Make usable for strchrnul testing.
19382         * string/test-strchrnul.c: New file.
19383         * string/Makefile (strop-tests): Add strchrnul.
19385         * po/it.po: Update from translation team.
19386         * po/es.po: Likewise.
19388 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
19390         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
19391         the three constants needed as parameters.  Drop the others.
19392         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
19393         __m128i_strloadu_tolower.
19394         Create and initialize variable zero and use it in all the places
19395         where _mm_setzero_si128 was used.
19397         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
19398         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
19399         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
19400         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
19401         anymore.
19402         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
19403         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
19404         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
19405         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
19406         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
19407         __mpranred, __mptan.
19408         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
19409         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
19410         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
19411         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
19412         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
19413         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
19414         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
19415         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
19416         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
19418 2011-10-28  Andreas Schwab  <schwab@redhat.com>
19420         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
19421         redefine if SHARED.
19422         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
19424         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
19425         wide char related routines to wcsmbs subdir.
19427 2011-10-27  Andreas Schwab  <schwab@redhat.com>
19429         [BZ #13344]
19430         * misc/sys/cdefs.h (__THROWNL): Define.
19431         * posix/unistd.h: Use __THREADNL instead of __THREAD
19432         for memory synchronization functions.
19434 2011-10-26  Roland McGrath  <roland@hack.frob.com>
19436         [BZ #13349]
19437         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
19438         doesn't exist.
19439         * manual/stdio.texi (Obstack Streams): Node removed.
19441 2011-10-26  Andreas Schwab  <schwab@redhat.com>
19443         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
19444         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
19445         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
19447         * math/math_private.h (math_force_eval): Allow non-addressable
19448         arguments.
19449         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
19451 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
19453         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
19454         file is not needed.
19456         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
19457         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
19458         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
19459         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
19460         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
19461         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
19462         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
19463         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
19464         Add AVX variants.
19465         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
19466         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
19467         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
19468         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
19469         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
19470         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
19471         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
19472         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
19473         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
19474         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
19475         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
19476         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
19477         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
19478         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
19479         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
19480         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
19481         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
19482         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
19483         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
19485         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
19486         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
19488         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
19489         place.  Use VEX encoding when compiling for AVX.
19491 2011-10-25  Andreas Schwab  <schwab@redhat.com>
19493         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
19494         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
19496         * string/test-strchr.c (do_test): Don't generate NUL bytes.
19498 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
19500         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
19501         useless if() expression.
19502         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
19503         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
19504         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
19505         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19506         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
19507         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
19508         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
19509         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
19510         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
19511         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19512         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
19513         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
19514         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
19515         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
19516         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
19517         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
19518         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
19519         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
19520         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
19522         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
19524 2011-10-25  Andreas Schwab  <schwab@redhat.com>
19526         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
19527         condition.
19528         * elf/dl-fini.c (_dl_sort_fini): Likewise.
19530 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
19532         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
19533         .text section.  Avoid duplicate constants.
19534         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
19535         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19536         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
19537         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19538         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
19539         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19540         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19541         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19542         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
19543         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
19544         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
19545         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
19546         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
19547         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
19548         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
19549         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
19550         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
19551         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
19552         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
19553         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19554         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
19555         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
19556         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
19557         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
19558         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
19559         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
19560         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
19561         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
19562         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
19563         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
19564         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
19565         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
19566         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
19567         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
19568         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
19569         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
19570         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
19571         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
19572         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
19573         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
19574         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
19575         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
19576         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
19577         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
19578         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
19580 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
19582         * sysdeps/x86_64/dla.h: Move to ...
19583         * sysdeps/x86_64/fpu/dla.h: ...here.
19584         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
19585         situations.  Use __builtin_fma only for gcc 4.6 and up.
19587         * config.make.in: Add have-mfma4 entry.
19588         * configure.in: Substitute libc_cv_cc_fma4.
19589         * math/Makefile (dbl-only-routines): Add sincostab.
19590         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
19591         Use __sincostab not sincos.
19592         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
19593         name is a macro.
19594         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
19595         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19596         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19597         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
19598         using __copysign.
19599         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
19600         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
19601         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
19602         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
19603         and __inv.
19604         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
19605         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
19606         __copysign.
19607         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
19608         define aliases when function name is a macro.
19609         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
19610         sysdeps/ieee754/dbl-64/sincos.tbl.
19611         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
19612         fma4-enabled routines.
19613         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
19614         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
19615         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
19616         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
19617         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
19618         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
19619         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
19620         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
19621         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
19622         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
19623         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
19624         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
19625         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
19626         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
19627         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
19628         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
19629         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
19630         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
19631         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
19632         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
19633         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
19634         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
19635         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
19636         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
19637         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
19638         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
19639         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
19640         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
19641         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
19642         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
19644         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
19645         rename.
19646         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19647         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19648         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19649         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19650         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19651         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19652         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
19653         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19655 2011-10-24  Andreas Schwab  <schwab@redhat.com>
19657         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
19659 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
19661         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
19663         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
19664         prediction.
19665         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
19667         * string/strnlen.c: Don't define STRNLEN, reverse logic.
19668         Remove unused variable magic_bits.
19669         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
19671         * string/strnlen.c: Define and use STRNLEN macro.
19672         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
19673         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
19674         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
19675         * wcsmbs/wcslen.c: Define and use WCSLEN.
19676         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
19677         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
19678         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
19679         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
19680         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
19681         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
19682         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
19684 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19686         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19687         strnlen-sse2-no-bsf.
19688         Rename strlen-no-bsf to strlen-sse2-no-bsf.
19689         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
19690         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
19691         Add strnlen support.
19692         (USE_AS_STRNLEN): New macro.
19693         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
19694         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
19695         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
19696         * sysdeps/x86_64/wcslen.S: New file.
19698 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
19700         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
19701         XMM-moves are used for copying on small sizes.
19703 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19705         * wcsmbs/Makefile (strop-tests): Add wcschr.
19706         * wcsmbs/test-wcschr.c: New file.
19707         * string/test-strchr.c: Update.
19708         Add wcschr support.
19709         (WIDE): New macro.
19711 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19713         * wcsmbs/Makefile (strop-tests): Add wcslen.
19714         * wcsmbs/test-wcslen.c: New file.
19715         * string/test-strlen.c: Update.
19716         Add wcslen support.
19717         (WIDE): New macro.
19719 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
19721         * po/it.po: Update from translation team.
19723 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19725         * sysdeps/x86_64/wcscmp.S: Update.
19726         Fix wrong comparison semantics.
19727         wcscmp shall use signed comparison not unsigned.
19728         Don't use substraction to avoid overflow bug.
19729         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
19730         * wcsmbc/wcscmp.c: Likewise.
19731         * string/test-strcmp.c: Likewise.
19732         Add new tests to check cases with negative values.
19734 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
19736         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
19737         * sysdeps/x86_64/dla.h: ...here.  New file.
19738         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
19739         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19740         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19741         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19742         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19743         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
19744         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19745         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
19746         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19748 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
19750         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
19751         __ynl_finite aliases.
19753 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
19755         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19757         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
19758         define DLA_FMA.
19759         [DLA_FMA] (EMULV): Use DLA_FMA.
19760         [DLA_FMA] (MUL12): Use EMULV.
19761         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
19762         that are not needed.
19763         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19764         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19765         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19766         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19767         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19768         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
19769         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19771 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
19773         * math/s_nan.c: Undef __nan.
19774         * math/s_nanf.c: Undef __nanf.
19775         * math/s_nanl.c: Undef __nanl.
19776         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
19777         "math_private.h".
19779 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
19781         * math/s_catan.c: Add branch predictions.
19782         * math/s_catanf.c: Likewise.
19783         * math/s_catanh.c: Likewise.
19784         * math/s_catanhf.c: Likewise.
19785         * math/s_catanhl.c: Likewise.
19786         * math/s_catanl.c: Likewise.
19787         * math/s_cexp.c: Likewise.
19788         * math/s_cexpf.c: Likewise.
19789         * math/s_cexpl.c: Likewise.
19790         * math/s_clog.c: Likewise.
19791         * math/s_clog10.c: Likewise.
19792         * math/s_clog10f.c: Likewise.
19793         * math/s_clog10l.c: Likewise.
19794         * math/s_clogf.c: Likewise.
19795         * math/s_clogl.c: Likewise.
19796         * math/s_csqrt.c: Likewise.
19797         * math/s_csqrtf.c: Likewise.
19798         * math/s_csqrtl.c: Likewise.
19799         * math/s_ctanf.c: Likewise.
19800         * math/s_ctanh.c: Likewise.
19801         * math/s_ctanhf.c: Likewise.
19802         * math/s_ctanhl.c: Likewise.
19803         * math/s_ctanl.c: Likewise.
19805         * math/math_private.h: Define __nan, __nanf, __nanl.
19806         * math/s_cacosh.c: Include <math_private.h>.
19807         * math/s_cacoshl.c: Likewise.
19808         * math/s_casinh.c: Likewise.
19809         * math/s_casinhf.c: Likewise.
19810         * math/s_casinhl.c: Likewise.
19811         * math/s_ccos.c: Rely entire on ccosh.
19812         * math/s_ccosf.c: Rely entire on ccoshf.
19813         * math/s_ccosl.c: Rely entirely on ccoshl.
19814         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
19815         Remove tests for FE_INVALID.
19816         * math/s_ccoshf.c: Likewise.
19817         * math/s_ccoshl.c: Likewise.
19818         * math/s_csin.c: Likewise.
19819         * math/s_csinf.c: Likewise.
19820         * math/s_csinh.c Likewise.
19821         * math/s_csinhf.c: Likewise.
19822         * math/s_csinhl.c: Likewise.
19823         * math/s_csinl.c: Likewise.
19824         * math/s_ctan.c: Likewise.
19825         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
19826         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
19827         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
19829 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
19831         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
19832         compilation problems.
19834         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
19835         __builtin_expect.
19837 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
19839         * sysdeps/i386/configure.in: Test for -mfma4 option.
19840         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
19841         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
19842         COMMON_CPUID_INDEX_80000001.
19843         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
19844         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
19845         use it if FMA3 is not supported.
19846         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
19848         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
19849         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19851 2011-10-20  Andreas Schwab  <schwab@redhat.com>
19853         [BZ #12892]
19854         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
19855         it would create a cycle with a link time dependency.
19857 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
19859         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
19860         instruction.
19861         * string/Makefile (strop-tests): Add rawmemchr.
19862         * string/test-rawmemchr.c: New file.
19864         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
19865         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
19866         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
19867         when compiling str{,n}casecmp and when AVX is available.  Hook up
19868         new optimized code in initializers.
19870 2011-10-19  Andreas Schwab  <schwab@redhat.com>
19872         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
19873         __feraiseexcept instead of feraiseexcept.
19875 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
19877         * math/math_private.h: Define defaults for libc_fetestexcept and
19878         libc_feupdateenv.
19879         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
19880         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
19881         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
19882         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
19883         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
19884         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
19885         libc_fetestexcept and libc_feupdateenv.
19887         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
19888         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
19889         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
19890         * sysdeps/x86_64/fpu/math_private.h: Define special version of
19891         libc_feholdexcept_setround.
19893         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
19894         Add s_nearbyint-c and s_nearbyintf-c.
19895         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
19896         nearbyintf inlines.
19897         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
19898         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
19899         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
19900         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
19902         * math/math_private.h: Define defaults for libc_fegetround,
19903         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
19904         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
19905         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
19906         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
19907         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
19908         standard functions.
19909         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
19910         Remove comments and hacks for old compiler versions.
19911         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
19912         libc_fegetround, libc_fesetround, libc_feholdexcept, and
19913         libc_feholdexceptl.
19915 2011-10-18  Andreas Schwab  <schwab@redhat.com>
19917         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
19918         (__feraiseexcept_renamed): Add __NTH.
19919         (feraiseexcept): Add __NTH.  Rename local variables to fix
19920         namespace violations.
19922 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
19924         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
19926         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
19928         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
19929         recently added interfaces.
19930         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
19932         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
19933         about macro parameter expansion.
19935         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
19936         __NO_MATH_INLINES is defined.  Cleanups.
19938         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
19939         and __floorf is target has SSE4.1.
19940         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
19941         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
19942         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
19943         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
19945         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
19946         name.
19947         (floorf): Likewise.
19949         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
19951 2011-10-17  Andreas Schwab  <schwab@redhat.com>
19953         * misc/sys/cdefs.h: Fix last change.
19955         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
19956         database lookup.
19958 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
19960         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
19962         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
19963         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19964         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
19965         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
19966         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
19967         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
19968         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
19969         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
19970         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
19971         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
19972         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
19973         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
19974         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
19975         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
19976         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
19977         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
19978         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
19979         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
19980         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
19981         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
19982         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
19983         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
19985         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
19986         ceil, ceilf, floor, floorf.
19988         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
19989         Perform IRELATIVE relocations last.
19991         * elf/do-rel.h: Add another parameter nrelative, replacing the
19992         local variable with the same name.  Change name of the function
19993         to end in Rel or Rela (uppercase).
19994         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
19995         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
19996         elf_dynamic_do_##reloc function.
19998 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
20000         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
20001         is sufficient, at least on modern CPUs.
20003         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
20005         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
20006         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
20008         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
20009         __expl_finite.
20010         * math/bits/math-finite.h: Add entries for exp.
20011         * math/e_expl.c: Add __*_finite alias.
20012         * sysdeps/i386/fpu/e_exp.S: Likewise.
20013         * sysdeps/i386/fpu/e_expf.S: Likewise.
20014         * sysdeps/i386/fpu/e_expl.c: Likewise.
20015         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20016         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
20017         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
20018         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
20019         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
20020         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20021         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20023         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
20024         is sufficient, at least on modern CPUs.
20026         * ctype/ctype-info.c (__ctype_init): Define.
20027         * include/ctype.h (__ctype_init): Declare.
20028         (__ctype_b_loc): The variable is always initialized.
20029         (__ctype_toupper_loc): Likewise.
20030         (__ctype_tolower_loc): Likewise.
20031         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
20032         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
20034 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
20036         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
20038         * configure.in: Also look in $cxxmachine/include for C++ system
20039         headers.
20041 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20043         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
20044         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
20045         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
20046         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
20047         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
20048         (USE_AS_WMEMCMP): New macro.
20049         Fixing indents.
20050         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
20051         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
20052         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
20053         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
20054         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20055         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
20056         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
20057         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
20058         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
20059         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
20060         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
20061         (USE_AS_WMEMCMP): New macro.
20062         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
20063         * sysdeps/string/test-memcmp.c: Update.
20064         Fix simple_wmemcmp.
20065         Add new tests.
20066         * wcsmbs/wmemcmp.c: Update.
20067         (WMEMCMP): New macro.
20068         Fix overflow bug.
20070 2011-10-12  Andreas Jaeger  <aj@suse.de>
20072         [BZ #13268]
20073         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
20075 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
20077         * libio/iofwide.c (do_length): Avoid warning.
20079         * ctype/ctype.h (__isctype_f): Add missing __THROW.
20081 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
20083         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
20085         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
20086         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
20087         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
20088         * sysdeps/i386/i686/fpu/e_log.S: New file.
20089         * sysdeps/i386/i686/fpu/e_logf.S: New file.
20090         * sysdeps/i386/i686/fpu/e_logl.S: New file.
20092         * ctype/ctype.h: Add support for inlined isXXX functions when
20093         compiling C++ code.
20095 2011-10-14  Andreas Schwab  <schwab@redhat.com>
20097         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20099         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
20101 2011-10-13  Roland McGrath  <roland@hack.frob.com>
20103         [BZ #13291]
20104         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
20106 2011-10-13  Andreas Schwab  <schwab@redhat.com>
20108         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
20109         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
20110         feraiseexcept.
20112         * sysdeps/x86_64/memrchr.S: Check for zero size.
20114         * string/stratcliff.c: Add memrchr tests.
20116 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20118         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20119         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
20120         rawmemchr-sse2 rawmemchr-sse2-bsf.
20121         * sysdeps/i386/i686/multiarch/memchr.S: New file.
20122         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
20123         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
20124         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
20125         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
20126         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
20127         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
20128         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
20129         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
20130         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
20131         * string/memrchr.c (MEMRCHR): New macro.
20133 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
20135         Add integration with gcc's -ffinite-math-only and optimize wrapper
20136         functions in libm.
20137         * Versions.def: Define GLIBC_2.15 version for libm.
20138         * math/Makefile (headers): Add bits/math-finite.h.
20139         * math/bits/math-finite.h: New file.
20140         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
20141         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
20142         * math/e_acoshl.c: Add __*_finite alias.
20143         * math/e_acosl.c: Likewise.
20144         * math/e_asinl.c: Likewise.
20145         * math/e_atan2l.c: Likewise.
20146         * math/e_atanhl.c: Likewise.
20147         * math/e_coshl.c: Likewise.
20148         * math/e_exp10.c: Likewise.
20149         * math/e_exp10f.c: Likewise.
20150         * math/e_exp10l.c: Likewise.
20151         * math/e_exp2l.c: Likewise.
20152         * math/e_fmodl.c: Likewise.
20153         * math/e_gammal_r.c: Likewise.
20154         * math/e_hypotl.c: Likewise.
20155         * math/e_j0l.c: Likewise.
20156         * math/e_j1l.c: Likewise.
20157         * math/e_jnl.c: Likewise.
20158         * math/e_lgammal_r.c: Likewise.
20159         * math/e_log10l.c: Likewise.
20160         * math/e_log2l.c: Likewise.
20161         * math/e_logl.c: Likewise.
20162         * math/e_powl.c: Likewise.
20163         * math/e_sinhl.c: Likewise.
20164         * math/e_sqrtl.c: Likewise.
20165         * math/e_scalb.c: Completely rewritten and optimized.
20166         * math/e_scalbf.c: Likewise.
20167         * math/e_scalbl.c: Likewise.
20168         * math/w_acos.c: Likewise.
20169         * math/w_acosf.c: Likewise.
20170         * math/w_acosl.c: Likewise.
20171         * math/w_acosh.c: Likewise.
20172         * math/w_acoshf.c: Likewise.
20173         * math/w_acoshl.c: Likewise.
20174         * math/w_asin.c: Likewise.
20175         * math/w_asinf.c: Likewise.
20176         * math/w_asinl.c: Likewise.
20177         * math/w_atan2.c: Likewise.
20178         * math/w_atan2f.c: Likewise.
20179         * math/w_atan2l.c: Likewise.
20180         * math/w_atanh.c: Likewise.
20181         * math/w_atanhf.c: Likewise.
20182         * math/w_atanhl.c: Likewise.
20183         * math/w_exp10.c: Likewise.
20184         * math/w_exp10f.c: Likewise.
20185         * math/w_exp10l.c: Likewise.
20186         * math/w_fmod.c: Likewise.
20187         * math/w_fmodf.c: Likewise.
20188         * math/w_fmodl.c: Likewise.
20189         * math/w_j0.c: Likewise.
20190         * math/w_j0f.c: Likewise.
20191         * math/w_j0l.c: Likewise.
20192         * math/w_j1.c: Likewise.
20193         * math/w_j1f.c: Likewise.
20194         * math/w_j1l.c: Likewise.
20195         * math/w_jn.c: Likewise.
20196         * math/w_jnf.c: Likewise.
20197         * math/w_log.c: Likewise.
20198         * math/w_logf.c: Likewise.
20199         * math/w_logl.c: Likewise.
20200         * math/w_log10.c: Likewise.
20201         * math/w_log10f.c: Likewise.
20202         * math/w_log10l.c: Likewise.
20203         * math/w_log2.c: Likewise.
20204         * math/w_log2f.c: Likewise.
20205         * math/w_log2l.c: Likewise.
20206         * math/w_pow.c: Likewise.
20207         * math/w_powf.c: Likewise.
20208         * math/w_powl.c: Likewise.
20209         * math/w_remainder.c: Likewise.
20210         * math/w_remainderf.c: Likewise.
20211         * math/w_remainderl.c: Likewise.
20212         * math/w_scalb.c: Likewise.
20213         * math/w_scalbf.c: Likewise.
20214         * math/w_scalbl.c: Likewise.
20215         * math/w_sqrt.c: Likewise.
20216         * math/w_sqrtf.c: Likewise.
20217         * math/w_sqrtl.c: Likewise.
20218         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
20219         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
20220         used.
20221         * math/math_private.h: Declare __kernel_standard_f.
20222         * math/w_cosh.c: Remove cruft and optimize a bit.
20223         * math/w_coshf.c: Likewise.
20224         * math/w_coshl.c: Likewise.
20225         * math/w_exp2.c: Likewise.
20226         * math/w_exp2f.c: Likewise.
20227         * math/w_exp2l.c: Likewise.
20228         * math/w_hypot.c: Likewise.
20229         * math/w_hypotf.c: Likewise.
20230         * math/w_hypotl.c: Likewise.
20231         * math/w_lgamma.c: Likewise.
20232         * math/w_lgamma_r.c: Likewise.
20233         * math/w_lgammaf.c: Likewise.
20234         * math/w_lgammaf_r.c: Likewise.
20235         * math/w_lgammal.c: Likewise.
20236         * math/w_lgammal_r.c: Likewise.
20237         * math/w_sinh.c: Likewise.
20238         * math/w_sinhf.c: Likewise.
20239         * math/w_sinhl.c: Likewise.
20240         * math/w_tgamma.c: Likewise.
20241         * math/w_tgammaf.c: Likewise.
20242         * math/w_tgammal.c: Likewise.
20243         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20244         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20245         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
20246         Minor optimizations.  Pretty printing.  Remove cruft.
20247         * sysdeps/i386/fpu/e_acosf.S: Likewise.
20248         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20249         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20250         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20251         * sysdeps/i386/fpu/e_acosl.c: Likewise.
20252         * sysdeps/i386/fpu/e_asin.S: Likewise.
20253         * sysdeps/i386/fpu/e_asinf.S: Likewise.
20254         * sysdeps/i386/fpu/e_atan2.S: Likewise.
20255         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
20256         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
20257         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20258         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20259         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20260         * sysdeps/i386/fpu/e_exp10.S: Likewise.
20261         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
20262         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
20263         * sysdeps/i386/fpu/e_exp2.S: Likewise.
20264         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
20265         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
20266         * sysdeps/i386/fpu/e_fmod.S: Likewise.
20267         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
20268         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
20269         * sysdeps/i386/fpu/e_hypot.S: Likewise.
20270         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
20271         * sysdeps/i386/fpu/e_log.S: Likewise.
20272         * sysdeps/i386/fpu/e_log10.S: Likewise.
20273         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20274         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20275         * sysdeps/i386/fpu/e_log2.S: Likewise.
20276         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20277         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20278         * sysdeps/i386/fpu/e_logf.S: Likewise.
20279         * sysdeps/i386/fpu/e_logl.S: Likewise.
20280         * sysdeps/i386/fpu/e_pow.S: Likewise.
20281         * sysdeps/i386/fpu/e_powf.S: Likewise.
20282         * sysdeps/i386/fpu/e_powl.S: Likewise.
20283         * sysdeps/i386/fpu/e_remainder.S: Likewise.
20284         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
20285         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
20286         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20287         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20288         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20289         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
20290         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
20291         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
20292         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
20293         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
20294         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20295         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
20296         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
20297         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
20298         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
20299         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
20300         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
20301         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
20302         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
20303         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
20304         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20305         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
20306         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
20307         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20308         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
20309         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
20310         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
20311         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20312         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
20313         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
20314         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
20315         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
20316         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
20317         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
20318         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
20319         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
20320         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
20321         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
20322         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
20323         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
20324         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
20325         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
20326         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
20327         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
20328         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
20329         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
20330         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
20331         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
20332         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
20333         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
20334         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
20335         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
20336         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
20337         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
20338         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
20339         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
20340         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
20341         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
20342         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
20343         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
20344         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
20345         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
20346         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
20347         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
20348         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
20349         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
20350         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
20351         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
20352         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
20353         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
20354         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
20355         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
20356         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
20357         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
20358         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
20359         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
20360         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
20361         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
20362         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
20363         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
20364         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
20365         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
20366         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
20367         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
20368         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
20369         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
20370         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
20371         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
20372         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
20373         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
20374         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
20375         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
20376         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
20377         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
20378         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
20379         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
20380         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
20381         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
20382         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
20383         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
20384         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
20385         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
20386         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
20387         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
20388         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
20389         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
20390         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
20391         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
20392         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
20393         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
20394         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
20395         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
20396         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20397         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20398         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20399         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20400         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
20401         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20402         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
20403         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
20404         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
20405         (__isnanf): Likewise.
20406         (__isinf_ns): Likewise.
20407         (__isinf_nsf): Likewise.
20408         (__finite): Likewise.
20409         (__finitef): Likewise.
20410         (__ieee754_sqrt): Define as macro.
20411         (__ieee754_sqrtf): Define as macro.
20412         (__ieee754_sqrtl): Define as macro.
20413         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
20414         inlined copy.
20415         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
20416         __FINITE_MATH_ONLY__ consistent.
20417         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
20419 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
20421         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
20422         of rawmemchr.
20424         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
20426 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
20428         * po/ja.po: Update from translation team.
20430 2011-10-08  Roland McGrath  <roland@hack.frob.com>
20432         * locale/programs/locarchive.c (prepare_address_space): New function.
20433         (create_archive, enlarge_archive, open_archive): Use it.
20435         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
20436         inside [SHARED], where it is used.
20438         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
20440         * nss/getent.c (netgroup_keys): Remove unused variable.
20441         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
20443 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
20445         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
20446         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
20447         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
20448         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
20449         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
20450         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
20451         * math/Makefile (libm-calls): Add s_isinf_ns.
20452         * math/divtc3.c: Use __isinf_nsl instead of isinf.
20453         * math/multc3.c: Likewise.
20454         * math/s_casin.c: Likewise.
20455         * math/s_casinf.c: Likewise.
20456         * math/s_casinl.c: Likewise.
20457         * math/s_ccos.c: Likewise.
20458         * math/s_ccosf.c: Likewise.
20459         * math/s_ccosl.c: Likewise.
20460         * math/s_ctan.c: Likewise.
20461         * math/s_ctanf.c: Likewise.
20462         * math/s_ctanh.c: Likewise.
20463         * math/s_ctanhf.c: Likewise.
20464         * math/s_ctanhl.c: Likewise.
20465         * math/s_ctanl.c: Likewise.
20466         * math/w_fmod.c: Likewise.
20467         * math/w_fmodf.c: Likewise.
20468         * math/w_fmodl.c: Likewise.
20469         * math/w_remainder.c: Likewise.
20470         * math/w_remainderf.c: Likewise.
20471         * math/w_remainderl.c: Likewise.
20472         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
20473         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
20474         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
20475         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
20476         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
20477         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
20478         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
20479         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
20481         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
20482         of the number.
20483         * stdio-common/printf_fphex.c: Likewise.
20484         * stdio-common/printf_size.c: Likewise.
20486         * math/e_exp10.c: Include math_private.h using <...> not "...".
20487         * math/e_exp10f.c: Likewise.
20488         * math/e_exp10l.c: Likewise.
20489         * math/e_exp2l.c: Likewise.
20490         * math/e_j0l.c: Likewise.
20491         * math/e_j1l.c: Likewise.
20492         * math/e_jnl.c: Likewise.
20493         * math/e_lgammal_r.c: Likewise.
20494         * math/e_rem_pio2l.c: Likewise.
20495         * math/e_scalb.c: Likewise.
20496         * math/e_scalbf.c: Likewise.
20497         * math/e_scalbl.c: Likewise.
20498         * math/k_cosl.c: Likewise.
20499         * math/k_sinl.c: Likewise.
20500         * math/k_tanl.c: Likewise.
20501         * math/s_cacoshf.c: Likewise.
20502         * math/s_catan.c: Likewise.
20503         * math/s_catanf.c: Likewise.
20504         * math/s_catanh.c: Likewise.
20505         * math/s_catanhf.c: Likewise.
20506         * math/s_catanhl.c: Likewise.
20507         * math/s_catanl.c: Likewise.
20508         * math/s_ccosh.c: Likewise.
20509         * math/s_ccoshf.c: Likewise.
20510         * math/s_ccoshl.c: Likewise.
20511         * math/s_cexp.c: Likewise.
20512         * math/s_cexpf.c: Likewise.
20513         * math/s_cexpl.c: Likewise.
20514         * math/s_clog.c: Likewise.
20515         * math/s_clog10.c: Likewise.
20516         * math/s_clog10f.c: Likewise.
20517         * math/s_clog10l.c: Likewise.
20518         * math/s_clogf.c: Likewise.
20519         * math/s_clogl.c: Likewise.
20520         * math/s_csin.c: Likewise.
20521         * math/s_csinf.c: Likewise.
20522         * math/s_csinh.c: Likewise.
20523         * math/s_csinhf.c: Likewise.
20524         * math/s_csinhl.c: Likewise.
20525         * math/s_csinl.c: Likewise.
20526         * math/s_csqrt.c: Likewise.
20527         * math/s_csqrtf.c: Likewise.
20528         * math/s_csqrtl.c: Likewise.
20529         * math/s_ctan.c: Likewise.
20530         * math/s_ctanf.c: Likewise.
20531         * math/s_ctanh.c: Likewise.
20532         * math/s_ctanhf.c: Likewise.
20533         * math/s_ctanhl.c: Likewise.
20534         * math/s_ctanl.c: Likewise.
20535         * math/s_ldexp.c: Likewise.
20536         * math/s_ldexpf.c: Likewise.
20537         * math/s_ldexpl.c: Likewise.
20538         * math/s_significand.c: Likewise.
20539         * math/s_significandf.c: Likewise.
20540         * math/s_significandl.c: Likewise.
20541         * math/w_acos.c: Likewise.
20542         * math/w_acosf.c: Likewise.
20543         * math/w_acosh.c: Likewise.
20544         * math/w_acoshf.c: Likewise.
20545         * math/w_acoshl.c: Likewise.
20546         * math/w_acosl.c: Likewise.
20547         * math/w_asin.c: Likewise.
20548         * math/w_asinf.c: Likewise.
20549         * math/w_asinl.c: Likewise.
20550         * math/w_atan2.c: Likewise.
20551         * math/w_atan2f.c: Likewise.
20552         * math/w_atan2l.c: Likewise.
20553         * math/w_atanh.c: Likewise.
20554         * math/w_atanhf.c: Likewise.
20555         * math/w_atanhl.c: Likewise.
20556         * math/w_cosh.c: Likewise.
20557         * math/w_coshf.c: Likewise.
20558         * math/w_coshl.c: Likewise.
20559         * math/w_dremf.c: Likewise.
20560         * math/w_exp10.c: Likewise.
20561         * math/w_exp10f.c: Likewise.
20562         * math/w_exp10l.c: Likewise.
20563         * math/w_exp2.c: Likewise.
20564         * math/w_exp2f.c: Likewise.
20565         * math/w_fmod.c: Likewise.
20566         * math/w_fmodf.c: Likewise.
20567         * math/w_fmodl.c: Likewise.
20568         * math/w_hypot.c: Likewise.
20569         * math/w_hypotf.c: Likewise.
20570         * math/w_hypotl.c: Likewise.
20571         * math/w_j0.c: Likewise.
20572         * math/w_j0f.c: Likewise.
20573         * math/w_j0l.c: Likewise.
20574         * math/w_j1.c: Likewise.
20575         * math/w_j1f.c: Likewise.
20576         * math/w_j1l.c: Likewise.
20577         * math/w_jn.c: Likewise.
20578         * math/w_jnf.c: Likewise.
20579         * math/w_jnl.c: Likewise.
20580         * math/w_lgamma.c: Likewise.
20581         * math/w_lgamma_r.c: Likewise.
20582         * math/w_lgammaf.c: Likewise.
20583         * math/w_lgammaf_r.c: Likewise.
20584         * math/w_lgammal.c: Likewise.
20585         * math/w_lgammal_r.c: Likewise.
20586         * math/w_log.c: Likewise.
20587         * math/w_log10.c: Likewise.
20588         * math/w_log10f.c: Likewise.
20589         * math/w_log10l.c: Likewise.
20590         * math/w_log2.c: Likewise.
20591         * math/w_log2f.c: Likewise.
20592         * math/w_log2l.c: Likewise.
20593         * math/w_logf.c: Likewise.
20594         * math/w_logl.c: Likewise.
20595         * math/w_pow.c: Likewise.
20596         * math/w_powf.c: Likewise.
20597         * math/w_powl.c: Likewise.
20598         * math/w_remainder.c: Likewise.
20599         * math/w_remainderf.c: Likewise.
20600         * math/w_remainderl.c: Likewise.
20601         * math/w_scalb.c: Likewise.
20602         * math/w_scalbf.c: Likewise.
20603         * math/w_scalbl.c: Likewise.
20604         * math/w_sinh.c: Likewise.
20605         * math/w_sinhf.c: Likewise.
20606         * math/w_sinhl.c: Likewise.
20607         * math/w_sqrt.c: Likewise.
20608         * math/w_sqrtf.c: Likewise.
20609         * math/w_sqrtl.c: Likewise.
20610         * math/w_tgamma.c: Likewise.
20611         * math/w_tgammaf.c: Likewise.
20612         * math/w_tgammal.c: Likewise.
20614         * po/ja.po: Update from translation team.
20616 2011-09-29  Andreas Jaeger  <aj@suse.de>
20618         [BZ #13179]
20619         * sunrpc/netname.c (netname2host): Fix logic.
20621         [BZ #6779]
20622         [BZ #6783]
20623         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
20624         correctly.
20625         * math/w_remainder.c (__remainder): Likewise.
20626         * math/w_remainderf.c (__remainderf): Likewise.
20627         * math/libm-test.inc (remainder_test): Add test cases.
20629 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20631         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
20632         sdiv_qrnnd.
20634 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
20636         * string/test-memcmp.c: Avoid unncessary #defines.
20637         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
20639 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20641         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
20642         Use new sse2 version for core i3 - i7 as it's faster
20643         than sse42 version.
20644         (bit_Prefer_PMINUB_for_stringop): New.
20645         * sysdeps/x86_64/rawmemchr.S: Update.
20646         Replace with faster SSE2 version.
20647         * sysdeps/x86_64/memrchr.S: New file.
20648         * sysdeps/x86_64/memchr.S: Update.
20649         Replace with faster SSE2 version.
20651 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
20653         * elf/dl-load.c (lose): Add cast to avoid warning.
20655 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
20657         * po/ca.po: Update from translation team.
20659         * inet/getnetgrent_r.c: Hook up nscd.
20660         * nscd/Makefile (routines): Add nscd_netgroup.
20661         (nscd-modules): Add netgroupcache.
20662         (CFLAGS-netgroupcache.c): Define.
20663         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
20664         (cache_search): Add const to second parameter.
20665         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
20666         INNETGR.
20667         (dbs): Add netgrdb entry.
20668         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
20669         (verify_persistent_db): Handle netgrdb.
20670         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
20671         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
20672         GETFDNETGR.
20673         (netgroup_response_header): Define.
20674         (innetgroup_response_header): Define.
20675         (datahead): Add netgroup_response_header and innetgroup_response_header
20676         elements.
20677         * nscd/nscd.conf: Add entries for netgroup cache.
20678         * nscd/nscd.h (dbtype): Add netgrdb.
20679         (_PATH_NSCD_NETGROUP_DB): Define.
20680         (netgroup_iov_disabled): Declare.
20681         (xmalloc, xcalloc, xrealloc): Move declarations here.
20682         (cache_search): Adjust prototype.
20683         Add netgroup-related prototypes.
20684         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
20685         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
20686         (__nscd_innetgr): Declare.
20687         * nscd/selinux.c (perms): Use access_vector_t as element type and
20688         add netgroup-related initializers.
20689         * nscd/netgroupcache.c: New file.
20690         * nscd/nscd_netgroup.c: New file.
20691         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
20692         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
20693         For four parameters use innetgr.
20694         * nss/nss_files/files-init.c: Add definition and callback for netgr.
20695         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
20696         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
20697         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
20699         * nscd/connections.c (register_traced_file): Don't register file
20700         for disabled databases.
20702 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
20704         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
20706         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
20707         from tree and freeing node.
20709 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
20711         * nss/nsswitch.c (__nss_database_lookup): Handle
20712         nss_parse_service_list out of memory case.
20714 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
20716         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
20717         out of memory case.
20719 2011-10-04  Andreas Schwab  <schwab@redhat.com>
20721         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
20722         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
20723         pass it down.
20724         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
20725         elf_machine_rela, elf_machine_lazy_rel.
20726         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
20727         (ELF_DYNAMIC_DO_REL): Likewise.
20728         (ELF_DYNAMIC_DO_RELA): Likewise.
20729         (ELF_DYNAMIC_RELOCATE): Likewise.
20730         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
20731         to ELF_DYNAMIC_DO_REL.
20732         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
20733         (dl_main): In trace mode always set __RTLD_NOIFUNC.
20734         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
20735         elf_machine_rela.
20736         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
20737         skip_ifunc, don't call ifunc function if non-zero.
20738         (elf_machine_rela): Likewise.
20739         (elf_machine_lazy_rel): Likewise.
20740         (elf_machine_lazy_rela): Likewise.
20741         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
20742         (elf_machine_lazy_rel): Likewise.
20743         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
20744         Likewise.
20745         (elf_machine_lazy_rel): Likewise.
20746         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20747         Likewise.
20748         (elf_machine_lazy_rel): Likewise.
20749         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
20750         (elf_machine_lazy_rel): Likewise.
20751         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
20752         (elf_machine_lazy_rel): Likewise.
20753         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
20754         (elf_machine_lazy_rel): Likewise.
20755         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
20756         (elf_machine_lazy_rel): Likewise.
20757         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
20758         (elf_machine_lazy_rel): Likewise.
20759         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
20760         (elf_machine_lazy_rel): Likewise.
20762 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
20764         * nss/nss_files/files-init.c (_nss_files_init): Use static
20765         initialization for all the *_traced_file variables.
20767 2011-09-28  Andreas Schwab  <schwab@redhat.com>
20769         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20771 2011-09-27  Roland McGrath  <roland@hack.frob.com>
20773         [BZ #13226]
20774         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
20776 2011-09-27  Andreas Schwab  <schwab@redhat.com>
20778         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
20779         Reread the line before reparsing it.
20781 2011-09-26  Andreas Schwab  <schwab@redhat.com>
20783         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
20785 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
20786             Maxim Kuvyrkov  <maxim@codesourcery.com>
20787             Joseph Myers  <joseph@codesourcery.com>
20789         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
20790         if needed for __stack_chk_guard.
20792 2011-09-19  Roland McGrath  <roland@hack.frob.com>
20794         * sysdeps/posix/spawni.c (script_execute): Always define it.
20795         It will be optimized away if unused.
20796         (maybe_script_execute): New function.
20797         (__spawni): Call it.
20799         * Makerules: Don't include tls.make.
20800         (config-tls): Always set to thread.
20801         * tls.make.c: File removed.
20803 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
20805         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
20806         * config.make.in (CPPFLAGS-config): New substituted variable.
20808 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
20810         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
20812         [BZ #13192]
20813         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
20814         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
20816 2011-09-15  Roland McGrath  <roland@hack.frob.com>
20818         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
20819         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
20820         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20821         (CALL_FAIL): Likewise.
20822         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
20823         (CALL_FAIL): Macro removed.
20824         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
20826 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
20828         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
20829         for __FINITE_MATH_ONLY__ == 1.
20831 2011-09-15  Andreas Schwab  <schwab@redhat.com>
20833         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
20834         __ieee754_sqrt instead of sqrt.
20835         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
20836         __ieee754_sqrtf instead of sqrtf.
20837         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
20838         __floorf instead of floorf.
20839         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
20840         __floorf, __truncf instead of floorf, truncf.
20842 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
20844         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
20846         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
20847         __extern_always_inline.
20848         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
20849         32-bit.
20851 2011-09-14  Andreas Schwab  <schwab@redhat.com>
20853         * elf/rtld.c (dl_main): Also relocate in dependency order when
20854         doing symbol dependency testing.
20856 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
20858         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20859         Always define `refsym'.
20861 2011-09-13  Andreas Schwab  <schwab@redhat.com>
20863         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
20864         (__FD_ELT): Renamed from __FDELT.
20865         * misc/bits/select2.h (__FD_ELT): Likewise.
20866         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
20867         __FD_MASK instead of __FDELT, __FDMASK.
20868         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
20869         Likewise.
20870         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
20871         Likewise.
20873         * elf/Makefile (gen-ldd): Fix pattern.
20875         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
20876         (init_tls): Likewise.
20878 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
20880         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
20882 2011-09-12  Andreas Schwab  <schwab@redhat.com>
20884         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
20885         `struct cmsghdr *' instead of `void *'.
20886         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
20887         Likewise.
20889 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
20891         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
20892         if non-absolute.
20893         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
20894         ldd_rewrite_script.
20896 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
20898         * configure.in: Remove --with-tls option.
20899         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
20900         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
20901         out in case it is missing.
20902         * sysdeps/ia64/elf/configure.in: Likewise.
20903         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
20904         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
20905         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
20906         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
20907         * sysdeps/sh/elf/configure.in: Likewise.
20908         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
20909         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
20910         * sysdeps/x86_64/elf/configure.in: Likewise.
20911         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
20912         * sysdeps/mach/hurd/tls.h: Likewise.
20914         [BZ #13067]
20915         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
20917         [BZ #13090]
20918         * configure.in: Fix use of AC_INIT.
20920         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
20922 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
20924         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
20925         __set_errno.
20926         * malloc/hooks.c: Likewise.
20928         [BZ #11929]
20929         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
20930         variables statically.
20931         (narenas): Initialize.
20932         (list_lock): Initialize.
20933         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
20934         initializtion of main_arena and list_lock.  Small cleanups.
20935         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
20936         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
20937         Add initializers to main_arena and mp_.
20938         (malloc_state): Remove pagesize member.  Change all users to use
20939         GLRO(dl_pagesize).
20941         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
20942         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
20943         is always initialized.
20945         * malloc/malloc.c: Removed unused configurations and dead code.
20946         * malloc/arena.c: Likewise.
20947         * malloc/hooks.c: Likewise.
20948         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
20950         * include/tls.h: Removed.  USE___THREAD must always be defined.
20951         * bits/libc-tsd.h: Don't handle !USE___THREAD.
20952         * elf/dl-libc.c: Likewise.
20953         * elf/dl-tsd.c: Likewise.
20954         * include/errno.h: Likewise.
20955         * include/netdb.h: Likewise.
20956         * include/resolv.h: Likewise.
20957         * inet/herrno-loc.c: Likewise.
20958         * inet/herrno.c: Likewise.
20959         * malloc/arena.c: Likewise.
20960         * malloc/hooks.c: Likewise.
20961         * malloc/malloc.c: Likewise.
20962         * resolv/res-state.c: Likewise.
20963         * resolv/res_libc.c: Likewise.
20964         * sysdeps/i386/dl-machine.h: Likewise.
20965         * sysdeps/ia64/dl-machine.h: Likewise.
20966         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
20967         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
20968         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
20969         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
20970         * sysdeps/sh/dl-machine.h: Likewise.
20971         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
20972         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
20973         * sysdeps/unix/i386/sysdep.S: Likewise.
20974         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
20975         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
20976         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
20977         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20978         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
20979         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
20980         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
20981         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
20982         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20983         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
20984         * sysdeps/unix/x86_64/sysdep.S: Likewise.
20985         * sysdeps/x86_64/dl-machine.h: Likewise.
20986         * tls.make.c: Likewise.
20988         * configure.in: Remove --with-__thread option.  Make tests for
20989         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
20990         tls_model attribute fail if no support is available.  Remove
20991         USE_IN_LIBIO.
20992         * Makeconfig: Adjust for dropped configure option.  All features are
20993         now mandatory.
20994         * Makerules: Likewise.
20995         * Versions.def: Likewise.
20996         * argp/argp-fmtstream.c: Likewise.
20997         * argp/argp-fmtstream.h: Likewise.
20998         * argp/argp-help.c: Likewise.
20999         * assert/assert.c: Likewise.
21000         * config.h.in: Likewise.
21001         * config.make.in: Likewise.
21002         * configure: Likewise.
21003         * configure.in: Likewise.
21004         * csu/Versions: Likewise.
21005         * csu/init.c: Likewise.
21006         * elf/tst-audit2.c: Likewise.
21007         * elf/tst-tls10.c: Likewise.
21008         * elf/tst-tls10.h: Likewise.
21009         * elf/tst-tls11.c: Likewise.
21010         * elf/tst-tls12.c: Likewise.
21011         * elf/tst-tls14.c: Likewise.
21012         * elf/tst-tlsmod11.c: Likewise.
21013         * elf/tst-tlsmod12.c: Likewise.
21014         * elf/tst-tlsmod13.c: Likewise.
21015         * elf/tst-tlsmod13a.c: Likewise.
21016         * elf/tst-tlsmod14a.c: Likewise.
21017         * elf/tst-tlsmod15b.c: Likewise.
21018         * elf/tst-tlsmod16a.c: Likewise.
21019         * elf/tst-tlsmod16b.c: Likewise.
21020         * elf/tst-tlsmod7.c: Likewise.
21021         * elf/tst-tlsmod8.c: Likewise.
21022         * elf/tst-tlsmod9.c: Likewise.
21023         * gmon/gmon.c: Likewise.
21024         * grp/fgetgrent_r.c: Likewise.
21025         * grp/putgrent.c: Likewise.
21026         * hurd/fopenport.c: Likewise.
21027         * include/libc-symbols.h: Likewise.
21028         * include/tls.h: Likewise.
21029         * intl/gettextP.h: Likewise.
21030         * intl/loadinfo.h: Likewise.
21031         * locale/global-locale.c: Likewise.
21032         * locale/localeinfo.h: Likewise.
21033         * mach/devstream.c: Likewise.
21034         * malloc/arena.c: Likewise.
21035         * malloc/set-freeres.c: Likewise.
21036         * misc/err.c: Likewise.
21037         * misc/getttyent.c: Likewise.
21038         * misc/mntent_r.c: Likewise.
21039         * posix/getopt.c: Likewise.
21040         * posix/wordexp.c: Likewise.
21041         * pwd/fgetpwent_r.c: Likewise.
21042         * resolv/Versions: Likewise.
21043         * resolv/res_hconf.c: Likewise.
21044         * shadow/fgetspent_r.c: Likewise.
21045         * shadow/putspent.c: Likewise.
21046         * stdio-common/printf_fphex.c: Likewise.
21047         * stdio-common/tmpfile.c: Likewise.
21048         * stdlib/abort.c: Likewise.
21049         * stdlib/fmtmsg.c: Likewise.
21050         * sunrpc/auth_unix.c: Likewise.
21051         * sunrpc/clnt_perr.c: Likewise.
21052         * sunrpc/clnt_tcp.c: Likewise.
21053         * sunrpc/clnt_udp.c: Likewise.
21054         * sunrpc/clnt_unix.c: Likewise.
21055         * sunrpc/openchild.c: Likewise.
21056         * sunrpc/svc_simple.c: Likewise.
21057         * sunrpc/svc_tcp.c: Likewise.
21058         * sunrpc/svc_udp.c: Likewise.
21059         * sunrpc/svc_unix.c: Likewise.
21060         * sunrpc/xdr.c: Likewise.
21061         * sunrpc/xdr_array.c: Likewise.
21062         * sunrpc/xdr_rec.c: Likewise.
21063         * sunrpc/xdr_ref.c: Likewise.
21064         * sunrpc/xdr_stdio.c: Likewise.
21066 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
21068         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21070 2011-07-03  Andreas Jaeger  <aj@suse.de>
21072         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
21073         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
21074         regenerate with gen-libm-tests.pl.
21076 2010-05-12  Petr Baudis  <pasky@suse.cz>
21078         [BZ #11589]
21079         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
21080         around j0() zero points by switching to j1().
21081         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
21082         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
21083         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
21084         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
21086 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
21088         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
21089         instead of 0.
21090         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
21091         instead of 0.
21092         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21093         Patch in part by Pavel Roskin <proski@gnu.org>.
21095         [BZ #13138]
21096         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
21097         realloc.
21098         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
21099         Free memory block if necessary.
21101         [BZ #12847]
21102         * libio/genops.c (INTDEF): For string streams the _lock pointer can
21103         be NULL.  Don't lock in this case.
21105 2011-09-09  Roland McGrath  <roland@hack.frob.com>
21107         * elf/elf.h (ELFOSABI_GNU): New macro.
21108         (ELFOSABI_LINUX): Define to that.
21110 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
21112         * string/strncat.c (strncat): Undef the symbol in case it has been
21113         defined in bits/string.h.
21115 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
21117         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
21119         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
21120         link map.
21122 2011-08-17  Andreas Jaeger  <aj@suse.de>
21124         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
21126 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
21127             Ian Lance Taylor  <iant@google.com>
21129         * math/libm-test.inc (lround_test): New testcase.
21130         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
21132 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
21134         * Makefile: Remove support for automatic cvs check-ins.
21135         * Makerules: Likewise.
21136         * config.make.in: Likewise.
21137         * configure.in: Likewise.
21138         * intl/Makefile: Likewise.
21139         * locale/Makefile: Likewise.
21140         * po/Makefile: Likewise.
21141         * posix/Makefile: Likewise.
21142         * sysdeps/gnu/Makefile: Likewise.
21143         * sysdeps/mach/hurd/Makefile: Likewise.
21144         * sysdeps/sparc/sparc32/Makefile: Likewise.
21146         [BZ #13118]
21147         * posix/Makefile (bug-regex32-ENV): Define.
21148         Patch by John Stanley <jpsinthemix@verizon.net>.
21150         * misc/Makefile (headers): Add bits/select2.h.
21151         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
21152         * misc/bits/select2.h: New file.
21153         * include/bits/select2.h: New file.
21154         * debug/Makefile (routines): Add fdelt_chk.
21155         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
21156         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
21157         FD_ISSET.
21158         * debug/fdelt_chk.c: New file.
21160         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
21161         * wcsmbs/test-wmemcmp.c: Likewise.
21162         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
21163         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
21165 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21167         * string/Makefile (strop-tests): Add memcmp.
21168         * string/test-wmemcmp.c: New file.
21169         * string/test-memcmp.c: Add wmemcmp support.
21171 2011-09-08  Roland McGrath  <roland@hack.frob.com>
21173         [BZ #13153]
21174         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
21175         2011-07-19 change.
21177         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
21178         garbage value in a __mach_port_mod_refs call in the cases of the
21179         task-self and thread-self ports.
21181 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21183         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
21185 2011-09-08  Andreas Schwab  <schwab@redhat.com>
21187         * elf/dl-load.c (lose): Check for non-null L.
21189 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
21191         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
21193         * elf/dl-libc.c (dlerror_run): Pass back error code from
21194         dl_catch_error.
21196         [BZ #13123]
21197         * elf/dl-load.c (lose): Free l_origin if it is valid.
21199         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
21200         names.
21201         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
21202         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
21203         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
21204         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
21205         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
21206         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
21208 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21210         * sysdeps/powerpc/fpu/e_hypot.c: New file.
21211         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
21212         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
21213         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
21214         * sysdeps/powerpc/fpu/k_cosf.c: New file.
21215         * sysdeps/powerpc/fpu/k_sinf.c: New file.
21216         * sysdeps/powerpc/fpu/s_cosf.c: New file.
21217         * sysdeps/powerpc/fpu/s_sinf.c: New file.
21218         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
21219         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
21221 2011-08-15  Alan Modra  <amodra@gmail.com>
21223         [BZ #13092]
21224         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
21225         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
21226         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
21227         ppc_mcount to static-only-routines.
21228         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
21229         __mcount_internal.
21230         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
21231         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
21233 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
21235         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
21236         for finite and infinity parameters.
21238 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
21240         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
21241         and add nop instructions for throughput optimization.
21242         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
21244 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
21246         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
21247         aligned copy for power7 with vector-scalar instructions.
21248         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
21250 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
21252         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
21253         AVX check.
21255 2011-09-07  Andreas Schwab  <schwab@redhat.com>
21257         [BZ #13144]
21258         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
21259         last change.
21261 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
21263         * sysdeps/unix/sysv/linux/x86_64/init-first.c
21264         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
21265         syscall wrapper around clock_gettime in __vdso_clock_gettime.
21266         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
21267         clock_gettime.
21269 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
21271         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
21272         Forgot to demangle the pointer.
21274         * sysdeps/i386/sysdep.h: Define atom_text_section.
21275         * sysdeps/x86_64/sysdep.h: Likewise.
21276         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
21277         section with atom_text_section.
21278         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
21279         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
21280         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
21281         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
21282         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
21284         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
21285         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
21286         already be defined.  Change to take two parameters and don't assign
21287         result to variable.  Adjust all users.
21288         Define INTERNAL_GETTIME if not already defined.
21289         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
21290         call.
21291         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
21292         HAVE_CLOCK_GETTIME_VSYSCALL.
21293         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
21295         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
21296         gettimeofday vsyscall, just use time.
21298 2011-09-06  Andreas Schwab  <schwab@redhat.com>
21300         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
21301         <errno.h>.
21303 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
21305         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
21306         syscall on x86-64.
21307         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
21308         syscall.
21309         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
21310         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
21311         syscall if possible.
21313 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
21315         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
21316         e_ident.  Don't pass to find_mapsXX.
21317         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
21319 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
21321         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21322         strchr-sse2-no-bsf strrchr-sse2-no-bsf
21323         * sysdeps/x86_64/multiarch/strchr.S: Update.
21324         Check bit_slow_BSF bit.
21325         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
21326         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
21327         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
21329 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
21331         [BZ #13134]
21332         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
21333         before glibc 2.15.
21334         (tryshell): Define.
21335         (__spawni): Change last parameter to be flag.  Test
21336         SPAWN_XFLAGS_USE_PATH flag to use path or not.
21337         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
21338         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
21339         * posix/spawni.c: Likewise.
21340         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
21341         * posix/spawnp.c: Likewise.  Change normal version to use
21342         SPAWN_XFLAGS_USE_PATH.
21343         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
21344         SPAWN_XFLAGS_TRY_SHELL.
21346         [BZ #13150]
21347         * posix/glob.h: Remove gcc 1.x support.
21349         [BZ #13068]
21350         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
21352 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
21354         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21355         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
21356         strrchr-sse2-bsf
21357         * sysdeps/i386/i686/multiarch/strchr.S: New file.
21358         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
21359         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
21360         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
21361         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
21362         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
21364 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21366         * sysdeps/x86_64/wcscmp.S: New file.
21368         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
21369         wcscmp-c wcscmp-sse2
21370         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
21371         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
21372         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
21373         * wcsmbs/wcscmp.c: Allow renaming.
21375 2011-09-05  David S. Miller  <davem@davemloft.net>
21377         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
21378         stack slot, rather than the struct return pointer slot.
21379         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
21380         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
21381         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
21382         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
21384 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
21386         * po/ja.po: Update from translation team.
21388         [BZ #13144]
21389         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
21390         kernel in 64-bit binaries.
21392 2011-09-01  David S. Miller  <davem@davemloft.net>
21394         * elf/elf.h (HWCAP_SPARC_*): Move to..
21395         * sysdeps/sparc/sysdep.h: this new file and add new values.
21396         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
21397         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
21398         _DL_HWCAP_COUNT to 24.
21399         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
21400         entries.
21401         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
21402         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
21403         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
21404         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
21405         instead of magic constants.
21406         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21408 2011-08-31  David S. Miller  <davem@davemloft.net>
21410         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
21411         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
21412         Reimplement to do errno handling inline.
21413         (SYSCALL_ERROR_HANDLER): New macro.
21414         (__SYSCALL_STRING): Do not do errno handling in asm.
21415         (__CLONE_SYSCALL_STRING): Delete.
21416         (__INTERNAL_SYSCALL_STRING): Delete.
21417         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
21418         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
21419         (PSEUDO): Reimplement to do errno handling inline.
21420         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
21421         (SYSCALL_ERROR_HANDLER): New macro.
21422         (__SYSCALL_STRING): Do not do errno handling in asm.
21423         (__CLONE_SYSCALL_STRING): Delete.
21424         (__INTERNAL_SYSCALL_STRING): Delete.
21425         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
21426         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
21427         i386.
21428         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
21429         (inline_syscall*): Add 'err' argument.
21430         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
21431         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
21432         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
21433         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
21435         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
21436         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
21438 2011-08-30  Andreas Schwab  <schwab@redhat.com>
21440         * elf/rtld.c (dl_main): Relocate objects in dependency order.
21442 2011-08-29  Jiri Olsa <jolsa@redhat.com>
21444         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
21445         directive.
21447 2011-08-24  David S. Miller  <davem@davemloft.net>
21449         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
21451 2011-08-24  Andreas Schwab  <schwab@redhat.com>
21453         * elf/Makefile: Add rules to build and run unload8 test.
21454         * elf/unload8.c: New file.
21455         * elf/unload8mod1.c: New file.
21456         * elf/unload8mod1x.c: New file.
21457         * elf/unload8mod2.c: New file.
21458         * elf/unload8mod3.c: New file.
21460         * elf/dl-close.c (_dl_close_worker): Reset private search list if
21461         it wasn't used.
21463 2011-08-23  David S. Miller  <davem@davemloft.net>
21465         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
21466         subtract stack bias.
21467         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
21468         %sp not %fp in calculations.
21469         (_JMPBUF_UNWINDS_ADJ): Likewise.
21471         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
21472         (aio_suspend): Call it to force an exception region around the
21473         AIO_MISC_WAIT() invocation.
21475 2011-08-23  Andreas Schwab  <schwab@redhat.com>
21477         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
21478         backslash.
21480 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
21482         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
21483         protection macro.
21484         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
21485         and <dl-machine.h>.
21486         (Elf64_FuncDesc): Remove.
21488 2011-08-22  David S. Miller  <davem@davemloft.net>
21490         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
21491         sigaltstack check, add missing cfi directives.
21492         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
21493         missing cfi directives, and sigaltstack handling.
21495 2011-08-16  Andreas Schwab  <schwab@redhat.com>
21497         [BZ #11724]
21498         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
21499         object is seen twice.
21500         * elf/dl-fini.c (_dl_sort_fini): Likewise.
21502         * elf/Makefile (distribute): Add tst-initorder2.c.
21503         (tests): Add tst-initorder2.
21504         (modules-names): Add tst-initorder2a tst-initorder2b
21505         tst-initorder2c tst-initorder2d.  Add rules to build them.
21506         ($(objpfx)tst-initorder2.out): New rule.
21507         * elf/tst-initorder2.c: New file.
21508         * elf/tst-initorder2.exp: New file.
21510 2011-08-22  Andreas Schwab  <schwab@redhat.com>
21512         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
21514         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
21515         dependencies back to end of function.
21517         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21518         $(elfobjdir)/ld.so.
21520 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
21522         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
21523         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
21524         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
21525         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
21526         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
21527         of __vdso_gettimeofday.
21528         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
21529         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
21530         attribute_hidden.
21531         (_libc_vdso_platform_setup): Remove initialization of
21532         __vdso_gettimeofday and __vdso_time.
21534 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
21536         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
21537         and fgetc_unlocked.
21538         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
21539         getc_unlocked.
21541         * elf/dl-open.c (add_to_global): Report additions to the global scope
21542         for LD_DEBUG=scopes.
21543         (dl_open_worker): Also print scope of newly loaded dependencies.
21544         (_dl_show_scope): Indicate if there is no scope.
21546         [BZ #13114]
21547         * stdio-common/Makefile (tests): Add bug24.
21548         * stdio-common/bug24.c: New file.
21550 2011-08-19  Andreas Jaeger  <aj@suse.de>
21552         [BZ #13114]
21553         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
21554         non-existant file when using close-on-exec mode.
21556 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
21558         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
21559         the very first instruction.
21561         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
21562         the CFI state in the end.
21563         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
21564         inclusion of dl-trampoline.h.
21565         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
21567 2011-08-19  Andreas Schwab  <schwab@redhat.com>
21569         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
21570         expectations for long double.
21572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
21573         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
21575 2011-08-14  David S. Miller  <davem@davemloft.net>
21577         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
21578         artificual limit depends upon the system page size.
21580 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
21582         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
21583         * resolv/Makefile: Define CFLAGS-libresolv.
21585 2011-08-17  Andreas Schwab  <schwab@redhat.com>
21587         * nss/makedb.c (compute_tables): Make variables used in nested
21588         function static.
21590 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
21592         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
21593         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
21594         if buffer was too small.
21596         * elf/pldd.c (main): Attach to all threads in the process.
21597         Rewrite /proc handling to use *at functions.
21599 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
21601         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
21602         specifies first scope to show.
21603         (dl_open_worker): Update callers.  Move printing scope of new
21604         object to before the relocation.
21605         * elf/rtld.c (dl_main): Update _dl_show_scope call.
21606         * sysdeps/generic/ldsodefs.h: Update declaration.
21608         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
21609         string for the scope number.
21611 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
21613         * nscd/servicescache.c (cache_addserv): Make sure written is always
21614         initialized.
21616 2011-08-14  Roland McGrath  <roland@hack.frob.com>
21618         * sysdeps/i386/i486/bits/atomic.h
21619         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
21620         statement expression, so as to suppress "set but not used" warning.
21621         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
21623         * string/strncat.c (STRNCAT): Use prototype definition.
21625         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
21626         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
21627         -Iprograms here.
21628         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
21629         (localedef-modules): Add localedef.
21630         (locale-modules): Add locale.
21632         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
21633         * elf/rtld.c (dl_main): Invert order of assignment in last change,
21634         to avoid a warning.
21636 2011-08-14  David S. Miller  <davem@davemloft.net>
21638         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
21639         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
21641 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
21643         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
21644         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
21645         * elf/rtld.c (dl_main): Set l_name of vDSO.
21646         Call _dl_show_scope when DL_DEBUG_SCOPES.
21647         (process_dl_debug): Recognize scopes flag and also set it for all.
21648         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
21649         Declare _dl_show_scope.
21651         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
21652         (do_dlopen): Pass caller_dlopen to dl_open.
21653         (__libc_dlopen_mode): Initialize caller_dlopen.
21655         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
21656         of libc.  Make tolower call locale-independent.  Optimize a bit by
21657         using isdigit instead of isalnum.
21658         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
21660 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
21662         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
21663         was a dependency or dynamically loaded.
21665 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
21667         * intl/l10nflist.c: Allow architecture-specific pop function.
21668         * sysdeps/x86_64/l10nflist.c: New file.
21670         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
21671         classification.
21673 2011-08-10  Andreas Schwab  <schwab@redhat.com>
21675         * include/dirent.h: Add libc_hidden_proto for scandirat and
21676         scandirat64.  Don't declare __scandirat64.
21677         * dirent/scandirat.c: Add libc_hidden_def.
21678         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
21679         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
21681 2011-08-10  David S. Miller  <davem@davemloft.net>
21683         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
21684         enum.
21685         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
21686         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
21687         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
21689 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
21691         * Versions.def [libc]: Add GLIBC_2.15.
21692         * dirent/Makefile (routines): Add scandirat and scandirat64.
21693         * dirent/Versions [libc]: Export scandirat and scandirat64 for
21694         GLIBC_2.15.
21695         * dirent/dirent.h: Declare scandirat and scandirat64.
21696         * dirent/scandirat.c: New file.
21697         * dirent/scandirat64.c: New file.
21698         * sysdeps/wordsize-64/scandirat.c: New file.
21699         * sysdeps/wordsize-64/scandirat64.c: New file.
21700         * dirent/opendir.c: Define opendirat.
21701         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
21702         using scandirat.
21703         * dirent/scandir64.c: Adjust for scandir.c change.
21704         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
21705         __scandirat64, and __scandir_cancel_handler.
21706         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
21707         additional parameter and use openat instead of open (outside of ld.so).
21708         Add new __opendir as wrapper around __opendirat.
21709         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
21710         here without requiring old scandirat implementation.
21712 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
21714         * dirent/scandir.c (cancel_handler): Renamed to
21715         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
21716         defined.  Adjust users.
21717         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
21718         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
21720 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
21722         * string/test-string.h (IMPL): Use __STRING to expand name and then
21723         stringify it.
21725         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
21726         of cleanups.
21728 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21730         * string/Makefile: Update.
21731         (strop-tests): Append strncat.
21732         * string/test-wcscmp.c: New file.
21733         New comprehensive test for wcscmp.
21734         * string/test-strcmp.c: Update.
21735         (WIDE): New define.
21737 2011-07-22  Andreas Schwab  <schwab@redhat.com>
21739         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
21740         line.
21742 2011-07-26  Andreas Schwab  <schwab@redhat.com>
21744         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
21745         encoding to ACE if AI_IDN.
21747 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
21749         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
21750         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
21752 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
21754         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
21755         Fix overflow bug in strncat.
21756         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
21758         * string/test-strncat.c: Update.
21759         Add new tests for checking overflow bugs.
21761 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
21763         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21764         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
21765         * sysdeps/i386/i686/multiarch/strcat.S: New file.
21766         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
21767         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
21768         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
21769         * sysdeps/i386/i686/multiarch/strncat.S: New file.
21770         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
21771         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
21773         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
21774         (USE_AS_STRCAT): Define.
21775         Add strcat and strncat support.
21776         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
21778 2011-07-25  Andreas Schwab  <schwab@redhat.com>
21780         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
21781         __n bigger than INT_MAX+1.
21782         (__strncmp_g): Likewise.
21784 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
21786         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
21787         * libio/stido.h: Likewise.
21789         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
21790         (AF_NFC): Define.
21791         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
21792         (AF_NFC): Define.
21794         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
21795         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
21796         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
21797         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
21798         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
21800         [BZ #13021]
21801         * scripts/test-installation.pl: Don't expect libnss_test1 to be
21802         installed.
21804         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
21805         typo.
21806         (_dl_x86_64_save_sse): Likewise.
21808 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
21810         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
21811         OSXSAVE.
21812         (_dl_x86_64_save_sse): Likewise.
21814         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
21816         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
21818 2011-07-21  Andreas Schwab  <schwab@redhat.com>
21820         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
21821         change.
21822         (_dl_x86_64_save_sse): Use correct AVX check.
21824 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21826         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
21827         bug in strncpy/strncat.
21828         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
21830 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
21832         * string/tester.c (test_strcat): Add tests for different alignments
21833         of source and destination.
21834         (test_strncat): Likewise.
21836 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
21838         [BZ #12852]
21839         * posix/glob.c (glob): Check passed in values before using them in
21840         expressions to avoid some overflows.
21841         (glob_in_dir): Likewise.
21843         [BZ #13007]
21844         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
21845         check for AVX enablement so that we don't crash with old kernels and
21846         new hardware.
21847         * elf/tst-audit4.c: Add same checks here.
21848         * elf/tst-audit6.c: Likewise.
21850         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
21852 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
21854         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
21856 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
21858         * po/cs.po: Update from translation team.
21859         * po/bg.po: Likewise.
21861 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
21863         * misc/sys/cdefs.h: Add support for const attribute.
21864         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
21865         to gnu_dev_{major,minor,makedev} functions.
21867 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
21869         * intl/dcigettext.c (get_output_charset): Add missing bracket.
21871 2011-07-20  Andreas Schwab  <schwab@redhat.com>
21873         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
21874         strlen results.
21876 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21878         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
21879         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
21880         register in order to avoid conflicts with the soft frame pointer
21881         being held in r11 when necessary.
21882         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21883         (INTERNAL_VSYSCALL_NCS): Likewise.
21885 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
21887         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
21888         * elf/dl-fini.c (_dl_fini): Adjust caller.
21889         * elf/dl-close.c (_dl_close_worker): Likewise.
21890         * sysdeps/generic/ldsodefs.h: Adjust declaration.
21892 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
21894         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
21895         "aux_cache->nlibs < 0".
21897         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
21898         in the reload-count case.
21900 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
21902         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21903         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
21904         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
21905         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
21906         * sysdeps/x86_64/multiarch/strcat.S: New file.
21907         * sysdeps/x86_64/multiarch/strncat.S: New file.
21908         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
21909         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
21910         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
21911         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
21912         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
21913         (USE_AS_STRCAT): Define.
21914         Add strcat and strncat support.
21915         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
21916         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
21917         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
21918         * string/strncat.c: Update.
21919         (USE_AS_STRNCAT): Define.
21920         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21921         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
21922         and i7.
21923         * sysdeps/x86_64/multiarch/init-arch.h
21924         (bit_Prefer_PMINUB_for_stringop): New.
21925         (index_Prefer_PMINUB_for_stringop): Likewise.
21926         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
21927         bit_Prefer_PMINUB_for_stringop.
21929 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
21931         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
21932         buffer64.
21933         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
21934         of casting of buffer.
21935         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
21936         buffer32 and buffer64.
21937         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
21938         writes instead of casting of buffer.
21939         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
21940         buffer32.
21941         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
21942         casting of buffer.
21944 2011-07-19  Andreas Schwab  <schwab@redhat.com>
21946         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
21948 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
21950         * nscd/nscd.c (termination_handler): Don't do anything for a database
21951         if it has not yet been initialized.
21953 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
21955         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
21957 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
21959         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
21961 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
21963         * po/nl.po: Update from translation team.
21964         * po/sv.po: Likewise.
21966 2011-07-16  Roland McGrath  <roland@hack.frob.com>
21968         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
21969         now disallowed by GCC.
21971         * configure.in (use-default-link): Default to yes if a test -shared
21972         link meets our qualifications.
21973         * configure: Regenerated.
21975         * config.make.in (output-format): New variable.
21976         * configure.in: Check for ld --print-output-format support.
21977         * configure: Regenerated.
21978         * Makerules ($(common-objpfx)format.lds)
21979         [$(output-format) != unknown]: Just use $(output-format),
21980         instead of the linker-script munging.
21982 2011-07-14  Roland McGrath  <roland@hack.frob.com>
21984         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
21985         of $(common-objpfx)shlib.lds.
21986         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
21988         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
21989         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
21991         * configure.in (-z relro check): Adjust test code to add a large
21992         writable data section after it.
21993         * configure: Regenerated.
21995 2011-07-11  Roland McGrath  <roland@hack.frob.com>
21997         * configure.in (-z relro check): Fix test code to make the variable
21998         truly const.
21999         * configure: Regenerated.
22001 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
22003         * nscd/nscd.h (struct traced_file): Define.
22004         (struct database_dyn): Remove inotify_descr, reset_res, and filename
22005         elements.  Add traced_files.
22006         (inotify_fd): Declare.
22007         (register_traced_file): Declare.
22008         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
22009         (inotify_fd): Export.
22010         (resolv_conf_descr): Remove.
22011         (nscd_init): Move inotify descriptor creation to main.
22012         Don't register files for notification here.
22013         (register_traced_file): New function.
22014         (invalidate_cache): Don't use reset_res to determine whether to call
22015         res_init, go through the list of registered files.
22016         (main_loop_poll): The inotify descriptors are now stored in the
22017         structures for the traced files.
22018         (main_loop_epoll): Likewise
22019         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
22020         to __nss_disable_nscd.
22021         * nscd/cache.c (prune_cache): There is no single inotify descriptor
22022         for a database anymore.  Check the records for all the registered
22023         files instead.
22024         * nss/Makefile (libnss_files-routines): Add files-init.
22025         (libnss_db-routines): Add db-init.
22026         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
22027         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
22028         * nss/nss_db/db-init.c: New file.
22029         * nss/nss_files/files-init.c: New file.
22030         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
22031         __nss_lookup_function.
22032         (__nss_lookup_function): Call nss_load_library.
22033         (nss_load_all_libraries): New function.
22034         (__nss_disable_nscd): Take parameter with callback function for files
22035         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
22036         used for the cached services.
22037         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
22038         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
22039         options for features to all the files in nscd.
22041         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
22043 2011-07-10  Roland McGrath  <roland@hack.frob.com>
22045         * csu/elf-init.c (__libc_csu_init): Comment typo.
22047 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
22049         * po/pl.po: Update from translation team.
22050         * po/ja.po: Likewise.
22051         * po/ru.po: Likewise.
22052         * po/ko.po: Likewise.
22053         * po/fr.po: Likewise.
22055 2011-07-09  Roland McGrath  <roland@hack.frob.com>
22057         * configure.in (.ctors/.dtors header and trailer check):
22058         Use an empirical test on a built program.
22059         * configure: Regenerated.
22061         * configure.in (-z relro check): Use an empirical test on a built DSO.
22062         Detect, but do not require, on ia64.
22063         * configure: Regenerated.
22065         * configure.in (READELF): Find it with AC_CHECK_TOOL.
22066         Update tests that use readelf to use $READELF instead.
22067         * configure: Regenerated.
22069 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
22071         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
22072         if the result is not used.
22074 2011-07-05  Andreas Jaeger  <aj@suse.de>
22076         [BZ#9696]
22077         * stdlib/tst-strtod.c: Add testcase.
22079 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
22081         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
22082         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
22083         The latter has a higher limit.  Take additional parameter to pass to
22084         the new function.
22085         (__pathconf): Pass file to __statfs_link_max.
22086         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
22087         __statfs_link_max.
22088         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
22089         __statfs_link_max.
22091         [BZ #12868]
22092         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
22093         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22094         Handle Lustre.
22095         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
22096         (__statfs_filesize_max): Likewise.
22097         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
22099 2011-07-05  Andreas Jaeger  <aj@suse.de>
22101         * resolv/res_comp.c (dn_skipname): Remove unused variable.
22103 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
22105         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
22106         `status' variable.
22107         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
22108         Likewise.
22110 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
22112         * Makefile (strop-tests): Add strncat.
22113         * string/test-strncat.c: New file.
22115 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
22117         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
22119 2011-06-21  Andreas Jaeger  <aj@suse.de>
22121         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
22122         Copy rule from iconvdata/Makefile.
22124 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
22126         [BZ #12922]
22127         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
22128         but no long options are defined, just return 'W'.
22130 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
22132         [BZ #9696]
22133         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
22135 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
22137         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
22138         netgroups to read.
22139         (innetgr): Likewise.
22141 2011-07-05  Roland McGrath  <roland@hack.frob.com>
22143         * config.make.in (install_root): Default to $(DESTDIR).
22145 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
22147         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
22149 2011-07-02  Roland McGrath  <roland@hack.frob.com>
22151         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
22153         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
22154         containing directory rather than embedding absolute directory names.
22156         * scripts/check-local-headers.sh: Rewritten using awk.
22157         Match by word, not by line.  Print error messages for matches.
22158         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
22160         * Makerules [shlib-lds-flags empty]:
22161         ($(common-objpfx)libc_pic.opts): New target.
22162         ($(common-objpfx)libc_pic.os.clean): New target.
22163         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
22165         * config.make.in (OBJCOPY): New variable.
22166         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
22167         * configure: Regenerated.
22169         * config.make.in (use-default-link): New variable.
22170         * configure.in (use_default_link): Grok --with-default-link to set it.
22171         * configure: Regenerated.
22172         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
22173         (shlib-lds, shlib-lds-flags): Define to empty.
22175         * Makerules (shlib-lds): New variable.
22176         (shlib-lds-flags): New variable.
22177         (build-shlib, build-moduile, build-module-asneeded): Use it.
22178         ($(common-objpfx)libc.so): Use $(shlib-lds).
22179         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
22180         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
22182         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
22183         DT_FLAGS/DT_FLAGS_1 with zero flags.
22185         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
22186         linker script munging.
22188 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
22190         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
22191         as 128-bit value.
22192         * crypt/sha512.c (sha512_process_block): Perform total addition using
22193         128-bit if possible.
22194         (__sha512_finish_ctx): Likewise.
22195         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
22196         as 64-bit value.
22197         * crypt/sha256.c (SWAP64): Define.
22198         (sha256_process_block): Perform total addition using 64-bit if
22199         possible.
22200         (__sha256_finish_ctx): Likewise.
22202 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
22204         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
22205         * nscd/initgrcache.c (addinitgroupsX): Likewise.
22206         * nscd/hstcache.c (cache_addhst): Likewise.
22207         * nscd/grpcache.c (cache_addgr): Likewise.
22208         * nscd/aicache.c (addhstaiX): Likewise
22209         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
22211 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
22213         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
22214         * nscd/initgrcache.c (addinitgroupsX): Likewise.
22215         * nscd/hstcache.c (cache_addhst): Likewise.
22216         * nscd/grpcache.c (cache_addgr): Likewise.
22217         * nscd/aicache.c (addhstaiX): Likewise
22219 2011-07-01  Andreas Schwab  <schwab@redhat.com>
22221         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
22222         domain only when needed.
22224 2011-06-30  Andreas Schwab  <schwab@redhat.com>
22226         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
22227         is always restored.
22229 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
22231         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
22232         are re-adding the entry.
22233         * nscd/servicescache.c (cache_addserv): Likewise.
22235 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
22237         * sysdeps/generic/dl-irel.h: fix protection against multiple
22238         inclusions.
22239         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
22241 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
22243         [BZ #12935]
22244         * malloc/memusage.sh: Fix quoting in message.
22245         * debug/xtrace.sh: Likewise.
22247         * configure.in: Remove support for --experimental-malloc option, make
22248         it the default.
22249         * config.make.in: Likewise.
22250         * malloc/Makefile: Likewise.
22252 2011-06-27  Andreas Schwab  <schwab@redhat.com>
22254         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
22255         two-byte characters.
22257 2011-06-27  Roland McGrath  <roland@hack.frob.com>
22259         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
22260         AC_CACHE_CHECK invocation.
22261         * configure: Regenerated.
22263         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
22265 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
22267         [BZ #12350]
22268         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
22269         bit from old_res_options.
22271         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
22273         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
22274         value type for setfct.
22276 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
22278         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
22279         __gettimeofday instead of gettimeofday.
22281 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
22283         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
22285 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22287         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
22289         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
22290         info.
22292 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
22294         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22295         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
22296         strcpy-sse2-unaligned strncpy-sse2-unaligned
22297         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
22298         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
22299         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
22300         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
22301         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
22302         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
22303         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
22304         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
22305         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
22306         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
22307         (STRCPY): Support SSE2 and SSSE3 versions.
22309 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
22311         [BZ #12874]
22312         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
22313         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
22314         kernels which artificially limit size of requests.
22316 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
22318         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22319         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
22320         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
22321         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
22322         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
22323         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
22324         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
22325         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
22326         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
22327         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
22328         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
22329         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
22330         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
22331         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
22332         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
22333         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22334         Enable unaligned load optimization for Intel Core i3, i5 and i7
22335         processors.
22336         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
22337         Define.
22338         (index_Fast_Unaligned_Load): Define.
22339         (HAS_FAST_UNALIGNED_LOAD): Define.
22341 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
22343         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
22345 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
22347         [BZ #12907]
22348         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
22349         until it is clear that the information is realy needed.
22350         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
22352 2011-06-22  Andreas Schwab  <schwab@redhat.com>
22354         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
22356 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
22358         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
22359         /sys/devices/system/cpu/online if it is usable.
22361         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
22362         reading the information from the /proc filesystem to once a second.
22364 2011-06-21  Andreas Jaeger  <aj@suse.de>
22366         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
22367         NULL after inclusion of kernel headers.
22369 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
22371         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
22372         calls to internal_setent.
22374         [BZ #12885]
22375         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
22376         addresses using gethostbyname4_r ignore IPv4 addresses.
22378         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
22379         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
22381         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
22383 2011-06-20  David S. Miller  <davem@davemloft.net>
22385         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
22386         inclusions.
22387         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
22389         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
22390         (elf_irel): Use it.
22391         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
22392         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
22393         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
22394         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
22395         * sysdeps/x86_64/dl-irel.h: Likewise.
22397         * elf/dl-runtime.c: Use elf_ifunc_invoke.
22398         * elf/dl-sym.c: Likewise.
22400 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
22402         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
22403         need to dereference resplen2.
22405 2011-06-14  Andreas Schwab  <schwab@redhat.com>
22407         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
22409 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
22411         * Makeconfig: Define vardbdir and inst_vardbdir.
22412         * nss/Makefile: Add rules to install db-Makefile.
22414         * nss/nss_db/db-XXX.c: Cleanup.
22416         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
22417         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
22418         GLIBC_PRIVATE.
22419         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
22420         * nss/makedb.c: Implement -g option to specify that value strings
22421         are generated and should not be added to table iterated over for
22422         get*ent calls.
22423         * nss/nss_db/db-initgroups.c: New file.
22425         * nss/getent.c: Add support for initgroups lookups through getgrouplist
22426         interface.
22428         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
22429         (internal_getgrouplist): Adjust to name change.
22430         Update use_initgroups_entry if this is not the first call.
22431         * nss/databases.def: Add initgroups entry.
22433         * nss/makedb.c (compute_tables): Check result of multiple hash table
22434         sizes to minimize maximum chain length.
22436 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
22438         * Versions.def: Add entry for libnss_db.
22439         * shlib-versions: Likewise.
22440         * nss/Makefile: Add rules to build libnss_db.
22441         * nss/Versions: Add libnss_db information.  Organize libnss_files
22442         entries better.
22443         * nss/db-Makefile: Add gshadow support.  Change rules for the new
22444         makedb progra.  Some minor improvements to generate smaller files.
22445         * nss/nss_db/nss_db.h: Move NSS database header data structures to
22446         here from...
22447         * nss/makedb.c: ...here.
22448         Improve database format to be smaller and require less memory at
22449         runtime.
22450         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
22451         db anymore.
22452         * nss/nss_db/db-netgrp.c: Likewise.
22453         * nss/nss_db/db-open.c: Likewise.
22454         * nss/nss_files/flies-XXX.x: Adjust comments.
22455         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
22456         * nss/nss_files/files-grp.c: Likewise.
22457         * nss/nss_files/files-hosts.c: Likewise.
22458         * nss/nss_files/files-network.c: Likewise.
22459         * nss/nss_files/files-proto.c: Likewise.
22460         * nss/nss_files/files-pwd.c: Likewise.
22461         * nss/nss_files/files-rpc.c: Likewise.
22462         * nss/nss_files/files-service.c: Likewise.
22463         * nss/nss_files/files-sgrp.c: Likewise.
22464         * nss/nss_files/files-spwd.c: Likewise.
22465         * nss/nss_db/db-alias.c: Removed.
22466         * nss/nss_db/dummy-db.h: Removed.
22468 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
22470         * nss/makedb.c: Rewritten to not use database library.
22471         * nss/Makefile: Update to build new makedb program.
22473 2011-06-14  Andreas Jaeger  <aj@suse.de>
22475         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
22476         memset declaration.
22478 2011-06-10  Andreas Schwab  <schwab@redhat.com>
22480         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
22481         tmpbuf.
22483 2011-06-10  Roland McGrath  <roland@hack.frob.com>
22485         * Makerules (shlib.lds): Fail if the linker script comes out empty.
22486         * elf/Makefile ($(objpfx)ld.so): Likewise.
22488         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
22489         Don't list ld.so twice in dependencies.
22491         * posix/bug-regex31.c: Include <stdlib.h>.
22493         * nscd/hstcache.c (cache_addhst): Remove unused variable.
22495         * nis/nss_compat/compat-spwd.c
22496         (getspent_next_nss_netgr): Remove unused variable.
22497         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
22499         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
22500         nonmembers" output to use the right array.
22502         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
22504         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
22506         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
22507         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
22508         * catgets/gencat.c (read_input_file): Likewise.
22509         * locale/programs/locarchive.c (enlarge_archive): Likewise.
22511         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
22512         variable definition inside #if's controlling its use.
22514         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
22516         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
22518         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
22520         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
22521         unreachable code.
22523         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
22525         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
22526         * configure: Regenerated.
22528         * Makerules: Revert last change.
22529         * elf/Makefile: Likewise.
22531 2011-06-09  Roland McGrath  <roland@hack.frob.com>
22533         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
22534         * elf/Makefile ($(objpfx)librtld.os): Likewise.
22535         (reloc-link): Likewise.
22537 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
22539         * elf/Makefile: Add rules to build pldd.
22540         * elf/pldd.c: New file.
22541         * elf/pldd-xx.c: New file.
22543 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
22545         * version.h: Update for 2.15 development version.
22547 2011-06-07  David S. Miller  <davem@davemloft.net>
22549         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
22550         ifuncs.
22551         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
22552         elf_machine_lazy_rel): Likewise.
22553         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
22554         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
22555         elf_machine_lazy_rel): Likewise.
22556         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
22557         dl_hwcap via passed in argument.
22558         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
22559         Likewise.
22561 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22563         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
22565 2011-06-06  Roland McGrath  <roland@hack.frob.com>
22567         [BZ #12849]
22568         * manual/fdl-1.1.texi: New file, verbatim from:
22569         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
22570         * manual/lgpl-2.1.texi: New file, verbatim from:
22571         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
22572         * manual/Makefile (licenses): New variable, list those new file names.
22573         (texis): Use it.
22574         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
22576         * manual/fdl.texi: File removed.
22577         * manual/lesser.texi: File removed.
22578         * manual/libc.texinfo (Copying, Documentation License):
22579         Use new @include file names, put @appendix directive before @include.
22581 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
22583         [BZ #12841]
22584         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
22585         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
22586         (mq_open): Add __NTH.
22588 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
22590         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22591         Assume Intel Core i3/i5/i7 processor if AVX is available.
22593 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
22595         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
22596         typo.
22598 2011-05-31  Andreas Schwab  <schwab@redhat.com>
22600         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
22601         memory.  Use alloca_account.  Fix memory leak when retrying.
22603 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
22605         * version.h (RELEASE): Bump for 2.14 release.
22606         * include/features.h (__GLIBC_MINOR__): Bump to 14.
22608         * config.make.in (RANLIB): Remove entry.
22610 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
22612         * po/Makefile (po-sed-cmd): Add ksh to extensions.
22613         (libc.pot): Work around missing support for .ksh extension in xgettext.
22615         [BZ #12684]
22616         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
22617         if both request failed.
22618         (send_dg): In case of server errors clear resplen or *resplen2.
22620         [BZ #12454]
22621         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
22622         when there are multiple maps.
22623         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
22624         (_dl_fini): Remove test here.
22626         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
22628 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
22630         [BZ #12350]
22631         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
22632         bit from old_res_options.
22633         (gaih_inet): Likewise.
22635         [BZ #11099]
22636         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
22637         as signed.
22639         * resolv/res_init.c (res_setoptions): Make the code more compact.
22641         [BZ #11558]
22642         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
22643         set RES_USEVC.
22645         [BZ #11634]
22646         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
22648         * malloc/malloc.h: Mark malloc hook variables as deprecated.
22650         [BZ #11781]
22651         * malloc/malloc.h: Declare malloc hook variables as volatile.
22653         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
22654         in last patch.
22656         [BZ #11799]
22657         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
22658         raise in the comment.
22659         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
22660         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
22661         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
22663 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
22665         [BZ #12811]
22666         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
22667         grow the buffers more if it already has to be sufficient.
22668         (build_wcs_upper_buffer): Likewise.
22669         * posix/regexec.c (check_matching): Likewise.
22670         (clean_state_log_if_needed): Likewise.
22671         (extend_buffers): Don't enlarge buffers beyond size of the input
22672         buffer.
22673         Patches mostly by Emil Wojak <emil@wojak.eu>.
22674         * posix/bug-regex32.c: New file.
22675         * posix/Makefile (tests): Add bug-regex32.
22677         * locale/findlocale.c (_nl_find_locale): Return right away if
22678         _nl_explode_name failed.
22679         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
22681         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
22683         * debug/xtrace.sh: Unify messages.
22684         * malloc/memusage.sh: Likewise.
22686         [BZ #12813]
22687         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
22688         time symbol from vDSO.  Substitute with vsyscall if not available.
22689         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
22690         __vdso_time.
22692         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
22693         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
22694         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
22695         Add sendmmsg and internal_sendmmsg.
22696         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
22697         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
22698         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
22700         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
22701         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
22702         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
22704 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
22706         [BZ #12813]
22707         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
22708         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
22709         available.
22710         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
22711         __vdso_getcpu.
22713         [BZ #12814]
22714         * iconvdata/Makefile (tests): Add bug-iconv9.
22715         * iconvdata/bug-iconv9.c: New file.
22717 2011-05-27  Andreas Schwab  <schwab@redhat.com>
22719         [BZ #12814]
22720         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
22722 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
22724         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
22725         (struct user_regs_struct): Change intcs field back to cs.
22727 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
22729         * po/ja.po: Update from translation team.
22731 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
22733         [BZ #12795]
22734         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
22735         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
22737 2011-05-20  Andreas Schwab  <schwab@redhat.com>
22739         * stdlib/longlong.h: Update from GCC.
22741 2011-05-23  Andreas Schwab  <schwab@redhat.com>
22743         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
22744         parameter name.
22745         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
22746         Add parameter name.
22747         (__sysconf): Pass it down.
22749 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
22751         [BZ #12671]
22752         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
22753         some situations.
22754         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
22755         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
22756         add in in __libc_use_alloca calls.  Adjust callers.
22757         (glob): Use malloc in some situations.
22759         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
22760         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
22761         pltexit.
22763 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
22765         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
22766         and CLOCK_BOOTTIME_ALARM.
22768         [BZ #12782]
22769         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
22770         is returned.
22772         * string/_strerror.c (__strerror_r): Print negative errors as signed
22773         numbers.
22775         [BZ #12777]
22776         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
22777         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
22778         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
22780         * configure.in: Fix typo in redirection and correct removal of test
22781         files in two cases.
22783         [BZ #12788]
22784         * locale/setlocale.c (new_composite_name): Fix test to check for
22785         identical name of all categories.
22787         [BZ #12792]
22788         * libio/filedoalloc.c (local_isatty): New function.
22789         (_IO_file_doallocate): Use local_isatty.
22790         * stdio-common/perror.c (perror): In case a new stream is used
22791         forward the stream error.
22792         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
22793         error flag.
22795 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
22797         [BZ #11869]
22798         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
22799         alloca.
22800         * include/alloca.h (extend_alloca_account): Define.
22802         [BZ #11857]
22803         * posix/regex.h: Fix comments with documentation of user-accessible
22804         fields after compilation and describe correct free'ing of pattern
22805         after re_compile_pattern.
22806         Patch by Reuben Thomas <rrt@sc3d.org>.
22808 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
22810         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
22811         and -mno-altivec to prevent the compiler from using Altivec and/or
22812         VSX instructions when the corresponding registers are not available.
22814 2011-05-19  Andreas Schwab  <schwab@redhat.com>
22816         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
22818 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
22820         * libio/freopen.c (freopen): Use __dup2, not dup2.
22821         * libio/freopen64.c (freopen64): Likewise.
22823 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
22825         [BZ #12775]
22826         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
22827         * math/Makefile (tests): Add test-powl.
22828         (CFLAGS-test-powl.c): Define.
22829         * math/test-powl.c: New file.
22831 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
22833         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
22835 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
22837         [BZ #11837]
22838         * iconvdata/gb18030.c: Update to GB18020-2005.
22840 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
22842         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
22843         RE_SYNTAX_POSIX_AWK): Update to match recent development.
22844         Patch by Aharon Robbins <arnold@skeeve.com>.
22846         [BZ #11892]
22847         * stdlib/putenv.c (putenv): Don't always create copy of the variable
22848         on the stack.
22850         [BZ #11895]
22851         * misc/pselect.c (__pselect): Handle timeout value errors hidden
22852         through underflows.
22854         [BZ #12766]
22855         * misc/error.c (error_at_line): Ensure file_name and old_file_name
22856         point to strings before performing equality test for error_one_per_line
22857         mode.
22859         [BZ #11697]
22860         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
22862         [BZ #11820]
22863         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
22864         (struct user_fpregs_struct): Avoid __uint*_t types.
22866         [BZ #6420]
22867         * malloc/mtrace.c (tr_where): Add additional parameter to point to
22868         symbol info.  Use it instead of calling _dl_addr locally.
22869         (lock_and_info): New function.
22870         (tr_freehook): Call lock_and_info and pass symbol info as additional
22871         parameter to tr_where.
22872         (tr_mallochook): Likewise.
22873         (tr_reallochook): Likewise.
22874         (tr_memalignhook): Likewise.
22876         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
22877         used and couldn't be at all thread-safe.
22879 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
22881         * libio/freopen.c (freopen): Don't close old file descriptor
22882         before the new one is opened.  Instead dup the new file descriptor
22883         to the old one after the new stream is created.
22884         * libio/freopen64.c (freopen64): Likewise.
22885         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
22886         * libio/fileops.c (_IO_new_file_close_it): Handle new
22887         _IO_FLAGS2_NOCLOSE flag.
22888         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
22889         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
22890         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
22891         _IO_FLAGS2_NOCLOSE flag.
22892         * include/unistd.h: Add hidden_proto for dup3.
22893         Define __have_dup3.
22894         * io/dup3.c: Define hidden symbol.
22895         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
22897         [BZ #7101]
22898         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
22899         when an incomplete long option is used.
22900         * posix/tst-getopt_long1.c: New file.
22901         * posix/Makefile (tests): Add tst-getopt_long1.
22903         [BZ #10138]
22904         * scripts/config.guess: Update from autoconf-2.68.
22905         * scripts/config.sub: Likewise.
22907         [BZ #10157]
22908         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
22909         tests into ...
22910         (has_cpuclock): ...this.  New function.
22911         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
22912         macro here based on has_cpuclock code.
22914         [BZ #10149]
22915         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
22916         First byte (not low byte) is now always NUL.
22917         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
22919         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
22920         Use non-cancelable interfaces.
22922         [BZ #9809]
22923         * locale/iso-639.def: Add entry for Sorani.
22925         [BZ #11901]
22926         * include/stdlib.h: Move include protection to the right place.
22927         Define abort_msg_s.  Declare __abort_msg with it.
22928         * stdlib/abort.c (__abort_msg): Adjust type.
22929         * assert/assert.c (__assert_fail_base): New function.  Majority
22930         of code from __assert_fail.  Allocate memory for __abort_msg with
22931         mmap.
22932         (__assert_fail): Now call __assert_fail_base.
22933         * assert/assert-perr.c: Remove bulk of implementation.  Use
22934         __assert_fail_base.
22935         * include/assert.hL Declare __assert_fail_base.
22936         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
22937         mmap.
22938         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
22940 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
22942         [BZ #11952]
22943         [BZ #12453]
22944         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
22945         until all modules are registered in the DTV.
22946         * elf/Makefile: Add rules to build and run tst-tls19.
22947         * elf/tst-tls19.c: New file.
22948         * elf/tst-tls19mod1.c: New file.
22949         * elf/tst-tls19mod2.c: New file.
22950         * elf/tst-tls19mod3.c: New file.
22951         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
22953         [BZ #12083]
22954         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
22955         correctly.
22957         [BZ #12601]
22958         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
22959         two-byte sequence errors.
22960         * iconvdata/Makefile (tests): Add bug-iconv8.
22961         * iconvdata/bug-iconv8.c: New file.
22963         [BZ #12626]
22964         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
22965         buf2 definition.
22967         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
22969         [BZ #12432]
22970         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
22971         (dummy_getcfa): New function.
22972         (init): Get _Unwind_GetCFA address, use dummy if not found.
22973         (backtrace_helper): In recursion check, also check whether CFA changes.
22974         (__backtrace): Completely initialize arg.
22976         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
22977         storing incomplete byte sequence in state object.  Avoid testing for
22978         guaranteed too small input if we know there is enough data available.
22980 2011-05-11  Andreas Schwab  <schwab@redhat.com>
22982         * Makeconfig (+link-pie): Indent.
22983         * Rules (binaries-pie): Define if $(have-fpie) and
22984         $(build-shared).
22985         (binaries-shared): Also filter out $(binaries-pie).
22986         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
22987         * nscd/Makefile (others-pie): Add nscd.
22988         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
22989         ($(objpfx)nscd): Remove command override.
22990         * login/Makefile (others-pie): Add pt_chown.
22991         ($(objpfx)pt_chown): Remove command override.
22992         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
22993         remove command overrides.
22995 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
22997         * libio/tst_putwc.c: Fix error messages.
22999         [BZ #12724]
23000         * libio/fileops.c (_IO_new_file_close_it): Always flush when
23001         currently writing and seek to current position when not.
23002         * libio/Makefile (tests): Add bug-fclose1.
23003         * libio/bug-fclose1.c: New file.
23005 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
23007         [BZ #12511]
23008         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
23009         don't set DF_1_NODELETE here.
23010         (do_lookup_x): When entering new entry test for copy relocation
23011         and if necessary set DF_1_NODELETE flag.
23012         * elf/tst-unique4.cc: New file.
23013         * elf/tst-unique4.h: New file.
23014         * elf/tst-unique4lib.cc: New file.
23015         * elf/Makefile: Add rules to build and run tst-unique4.
23016         Patch by Piotr Bury <pbury@goahead.com>.
23018 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
23020         [BZ #12052]
23021         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
23023         [BZ #12625]
23024         * misc/mntent_r.c (addmntent): Flush the stream after the output
23026         [BZ #12393]
23027         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
23028         (is_trusted_path_normalize): Skip initial colon.  Append slash
23029         to empty buffer.  Duplicate is_trusted_path code but allow
23030         constructed patch to be prefix.
23031         (is_dst): Allow $ORIGIN followed by /.
23032         (_dl_dst_substitute): Correct clearing of check_for_trusted.
23033         Correct testing of result of is_trusted_path_normalize
23034         (decompose_rpath): Fix warning.
23036 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
23038         [BZ #11257]
23039         * grp/initgroups.c (internal_getgrouplist): When we found the service
23040         list through the initgroups entry in nsswitch.conf do not always
23041         continue on a successful lookup.  Don't always use the
23042         __nss_group_database value if it is set.
23043         * nss/nsswitch.conf (initgroups): Change action for successful db
23044         lookup to continue for compatibility.
23046 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
23048         [BZ #11532]
23049         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
23050         and CP774 modules.
23051         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
23052         and CP774 modules.
23053         * iconvdata/tst-tables.sh: Likewise.
23054         * iconvdata/cp770.c: New file.
23055         * iconvdata/cp771.c: New file.
23056         * iconvdata/cp772.c: New file.
23057         * iconvdata/cp773.c: New file.
23058         * iconvdata/cp774.c: New file.
23059         * iconvdata/testdata/CP770: New file.
23060         * iconvdata/testdata/CP770..UTF8: New file.
23061         * iconvdata/testdata/CP771: New file.
23062         * iconvdata/testdata/CP771..UTF8: New file.
23063         * iconvdata/testdata/CP772: New file.
23064         * iconvdata/testdata/CP772..UTF8: New file.
23065         * iconvdata/testdata/CP773: New file.
23066         * iconvdata/testdata/CP773..UTF8: New file.
23067         * iconvdata/testdata/CP774: New file.
23068         * iconvdata/testdata/CP774..UTF8: New file.
23070         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
23071         END CHARMAP line.
23072         * iconvdata/gen-8bit-gap.sh: Likewise.
23073         * iconvdata/gen-8bit.sh: Likewise.
23075         * locale/iso-639.def: Add ary entry.
23077         [BZ #11258]
23078         * locale/C-translit.h.in: Add U20A1 transliteration.
23080         [BZ #12178]
23081         * locale/iso-639.def: Add wae entry.
23082         Patch by Kevin Bortis <bortis@translate-wae.ch>.
23084         [BZ #12545]
23085         * locale/programs/localedef.c (construct_output_path): Use ssize_t
23086         for n.
23088         [BZ #12711]
23089         * locale/C-translit.h.in: Add entry for U20B9.
23090         Patch by pravin.d.s@gmail.com.
23092 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
23094         [BZ #12713]
23095         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
23096         ENAMETOOLONG use generic getcwd.
23097         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
23098         in rtld.  Use *stat64.
23099         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
23100         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
23101         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
23102         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
23103         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
23104         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
23105         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
23106         __fstatat64 macros.
23107         * include/dirent.h: Add libc_hidden_proto for rewinddir.
23108         * dirent/rewinddir.c: Add libc_hidden_def.
23109         * sysdeps/mach/hurd/rewinddir.c: Likewise.
23110         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
23112         * include/dirent.h (__alloc_dir): Add flags parameter.
23113         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
23114         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
23115         __alloc_dir.
23116         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
23117         from fdopendir if O_CLOEXEC is already set.
23119 2011-03-15  Alan Modra  <amodra@gmail.com>
23121         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
23122         l_tls_firstbyte_offset non-zero.  Save padding offset in
23123         l_tls_firstbyte_offset for later use.
23124         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
23125         freeing static tls block.
23127 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
23129         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
23130         where #ifdef was intended.  The intent is to prevent ARG_MAX from
23131         being defined by the kernel headers.
23133 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
23135         [BZ #12734]
23136         * resolv/resolv.h: Define RES_NOTLDQUERY.
23137         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
23138         no-tld-query and set RES_NOTLDQUERY.
23139         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
23140         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
23141         modern BIND to search name as TLD unless forbidden.
23143 2011-05-07  Petr Baudis  <pasky@suse.cz>
23144             Ulrich Drepper  <drepper@gmail.com>
23146         [BZ #12393]
23147         * elf/dl-load.c (fillin_rpath): Move trusted path check...
23148         (is_trusted_path): ...to here.
23149         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
23150         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
23151         using is_trusted_path_normalize() in setuid scripts.
23153 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
23155         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
23156         __BEGIN/__END_DECLS.
23158 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
23160         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
23161         NSS_STATUS_NOTFOUND if no record was found.
23163 2011-05-05  Andreas Schwab  <schwab@redhat.com>
23165         * sunrpc/Makefile (headers): Add rpc/netdb.h.
23166         (headers-not-in-tirpc): Remove rpc/netdb.h
23167         * resolv/netdb.h: Revert last change.
23169 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
23171         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
23172         circular dependency between libgcc.a and libc.a.
23174 2011-05-05  Andreas Schwab  <schwab@redhat.com>
23176         * resolv/netdb.h: Don't include <rpc/netdb.h>.
23177         * nis/Makefile: Don't install rpcsvc/*.
23178         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
23179         instead of <rpc/types.h>.
23180         (MAXHOSTNAMELEN): Define.
23182 2011-05-03  Andreas Schwab  <schwab@redhat.com>
23184         * elf/ldconfig.c (add_dir): Don't crash on empty path.
23186 2011-04-28  Maciej Babinski  <mbabinski@google.com>
23188         [BZ #12714]
23189         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
23190         gethostbyname4_r when IPv6 results are possible.
23192 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
23194         [BZ #12723]
23195         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
23196         _PC_PIPE_BUF handling.
23198 2011-04-30  Bruno Haible  <bruno@clisp.org>
23200         [BZ #12717]
23201         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
23202         * resolv/netdb.h (getnameinfo): Change type of flags parameter
23203         to 'int'.
23204         * inet/getnameinfo.c (getnameinfo): Likewise.
23206 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
23208         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
23209         to groups setting in database lookup.
23210         * nss/nsswitch.conf: Add initgroups entry.
23212 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
23214         [BZ #12685]
23215         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
23216         mode string.
23217         Patch by Eric Blake <eblake@redhat.com>.
23219 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
23221         * sunrpc/Makefile (need-export-routines): Add svc_run.
23222         (routines): Remove svc_run.
23223         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
23224         * sunrpc/clnt_perr.c (clnt_perrno): Export.
23225         * sunrpc/svc_run.c (svc_run): Likewise.
23226         * sunrpc/svc_udp.c (svcudp_create): Likewise.
23228 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
23230         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
23231         problem in reallocation in last patch.
23233 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
23235         * sunrpc/Makefile: Move inclusion of Rules.
23237 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
23239         * nss/nss_files/files-initgroups.c: New file.
23240         * nss/Makefile (libnss_files-routines): Add files-initgroups.
23241         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
23242         _nss_files_initgroups_dyn.
23244 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
23246         * elf/elf.h (R_ARM_IRELATIVE): Define.
23248 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
23250         * po/ru.po: Update from translation team.
23252 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
23254         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
23255         dependencies.
23257 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
23259         [BZ #12653]
23260         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
23261         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
23262         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23263         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23264         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23266 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
23268         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
23269         differing bytes.
23270         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
23271         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
23272         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
23274 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
23276         [BZ #12420]
23277         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
23278         storing it.
23279         * stdlib/bug-getcontext.c: New file.
23280         * stdlib/Makefile: Add rules to build and run bug-getcontext.
23282 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23284         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
23285         instructions into .machine "z9-109".
23286         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
23287         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
23289 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23291         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
23292         between environment variables and auxiliary vector.
23294 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
23296         * Makefile: Add rules to build linkobj/libc.so.
23297         * include/libc-symbols.h: Define libc_hidden_nolink.
23298         * include/rpc/auth.h: Mark functions which are to be hidden.
23299         * include/rpc/auth_des.h: Likewise.
23300         * include/rpc/auth_unix.h: Likewise.
23301         * include/rpc/clnt.h: Likewise.
23302         * include/rpc/des_crypt.h: Likewise.
23303         * include/rpc/key_prot.h: Likewise.
23304         * include/rpc/pmap_clnt.h: Likewise.
23305         * include/rpc/pmap_prot.h: Likewise.
23306         * include/rpc/pmap_rmt.h: Likewise.
23307         * include/rpc/rpc_msg.h: Likewise.
23308         * include/rpc/svc.h: Likewise.
23309         * include/rpc/svc_auth.h: Likewise.
23310         * include/rpc/xdr.h: Likewise.
23311         * nis/Makefile: Link all DSOs against linkobj/libc.so.
23312         * nss/Makefile: Likewise.
23313         * sunrpc/Makefile: Don't install headers.  Build library with normal
23314         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
23315         * sunrpc/auth_des.c: Hide exported symbols by default, export some
23316         for the compat linking library.  Remove use of INTDEF/INTUSE.
23317         * sunrpc/auth_none.c: Likewise.
23318         * sunrpc/auth_unix.c: Likewise.
23319         * sunrpc/authdes_prot.c: Likewise.
23320         * sunrpc/authuxprot.c: Likewise.
23321         * sunrpc/clnt_gen.c: Likewise.
23322         * sunrpc/clnt_perr.c: Likewise.
23323         * sunrpc/clnt_raw.c: Likewise.
23324         * sunrpc/clnt_simp.c: Likewise.
23325         * sunrpc/clnt_tcp.c: Likewise.
23326         * sunrpc/clnt_udp.c: Likewise.
23327         * sunrpc/clnt_unix.c: Likewise.
23328         * sunrpc/des_crypt.c: Likewise.
23329         * sunrpc/des_soft.c: Likewise.
23330         * sunrpc/get_myaddr.c: Likewise.
23331         * sunrpc/key_call.c: Likewise.
23332         * sunrpc/key_prot.c: Likewise.
23333         * sunrpc/netname.c: Likewise.
23334         * sunrpc/pm_getmaps.c: Likewise.
23335         * sunrpc/pm_getport.c: Likewise.
23336         * sunrpc/pmap_clnt.c: Likewise.
23337         * sunrpc/pmap_prot.c: Likewise.
23338         * sunrpc/pmap_prot2.c: Likewise.
23339         * sunrpc/pmap_rmt.c: Likewise.
23340         * sunrpc/publickey.c: Likewise.
23341         * sunrpc/rpc_cmsg.c: Likewise.
23342         * sunrpc/rpc_common.c: Likewise.
23343         * sunrpc/rpc_dtable.c: Likewise.
23344         * sunrpc/rpc_prot.c: Likewise.
23345         * sunrpc/rpc_thread.c: Likewise.
23346         * sunrpc/rtime.c: Likewise.
23347         * sunrpc/svc.c: Likewise.
23348         * sunrpc/svc_auth.c: Likewise.
23349         * sunrpc/svc_authux.c: Likewise.
23350         * sunrpc/svc_raw.c: Likewise.
23351         * sunrpc/svc_run.c: Likewise.
23352         * sunrpc/svc_simple.c: Likewise.
23353         * sunrpc/svc_tcp.c: Likewise.
23354         * sunrpc/svc_udp.c: Likewise.
23355         * sunrpc/svc_unix.c: Likewise.
23356         * sunrpc/svcauth_des.c: Likewise.
23357         * sunrpc/xcrypt.c: Likewise.
23358         * sunrpc/xdr.c: Likewise.
23359         * sunrpc/xdr_array.c: Likewise.
23360         * sunrpc/xdr_float.c: Likewise.
23361         * sunrpc/xdr_intXX_t.c: Likewise.
23362         * sunrpc/xdr_mem.c: Likewise.
23363         * sunrpc/xdr_rec.c: Likewise.
23364         * sunrpc/xdr_ref.c: Likewise.
23365         * sunrpc/xdr_sizeof.c: Likewise.
23366         * sunrpc/xdr_stdio.c: Likewise.
23368 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
23370         [BZ #12650]
23371         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
23372         * sysdeps/ia64/dl-tls.h: Likewise.
23373         * sysdeps/powerpc/dl-tls.h: Likewise.
23374         * sysdeps/s390/dl-tls.h: Likewise.
23375         * sysdeps/sh/dl-tls.h: Likewise.
23376         * sysdeps/sparc/dl-tls.h: Likewise.
23377         * sysdeps/x86_64/dl-tls.h: Likewise.
23378         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
23380 2011-03-14  Andreas Schwab  <schwab@redhat.com>
23382         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
23383         rpath element also skip the following colon.
23384         (expand_dynamic_string_token): Add is_path parameter and pass
23385         down to DL_DST_REQUIRED and _dl_dst_substitute.
23386         (decompose_rpath): Call expand_dynamic_string_token with
23387         non-zero is_path.  Ignore empty rpaths.
23388         (_dl_map_object_from_fd): Call expand_dynamic_string_token
23389         with zero is_path.
23391 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
23393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
23394         Make cancelable.
23396 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
23398         [BZ #12655]
23399         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
23400         Patch by Filipe David Manana <fdmanana@apache.org>.
23402 2011-04-07  Andreas Schwab  <schwab@redhat.com>
23404         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
23405         Maintain aligned stack.
23406         (CHECK_RSP): Remove unused macro.
23408 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
23410         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
23411         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
23413 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
23415         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
23417         * include/features.h: Mention __USE_XOPEN2K8 in comment.
23419 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
23421         [BZ #12518]
23422         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
23423         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
23424         * sysdeps/x86_64/memmove.c: New file.
23425         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
23426         (memcpy): Renamed to ...
23427         (__new_memcpy): This.
23428         (memcpy): Provide GLIBC_2_14 memcpy.
23429         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
23430         (memcpy): Provide GLIBC_2_2_5 memcpy.
23432 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
23434         [BZ #12631]
23435         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
23437 2011-03-30  Andreas Schwab  <schwab@redhat.com>
23439         * misc/syncfs.c: New file.
23440         * misc/Makefile (routines): Add syncfs.
23441         * posix/unistd.h: Declare syncfs.
23442         * sysdeps/unix/syscalls.list: Add syncfs.
23444 2011-04-01  Andreas Schwab  <schwab@redhat.com>
23446         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
23447         open_by_handle_at.
23448         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
23449         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
23450         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
23451         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
23452         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
23453         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
23454         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
23456 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
23458         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
23459         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
23460         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
23461         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
23462         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
23463         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
23464         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
23466         * io/Makefile: Compile fallocate.c, fallocate64.c, and
23467         sync_file_range.c with -fexceptions.
23468         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
23469         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
23470         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
23471         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
23472         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
23473         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
23474         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
23475         sync_file_range as cancellation point
23476         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
23477         now a wrapper around __call_sync_file_range with cancellation handling.
23478         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
23479         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
23480         function name to __call_sync_file_range.
23481         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
23482         Add call_sync_file_range.
23484 2011-04-01  Andreas Schwab  <schwab@redhat.com>
23486         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23487         bits/timex.h.
23489 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
23491         * iconv/iconv.h: Fix typo in comment.
23492         * io/fcntl.h: Likewise.
23493         * libio/stdio.h: Likewise.
23494         * posix/spawn.h: Likewise.
23495         * posix/unistd.h: Likewise.
23496         * stdlib/stdlib.h: Likewise.
23497         * time/time.h: Likewise.
23498         * wcsmbs/wchar.h: Likewise.
23500         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
23501         open_by_handle): Add.
23502         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
23503         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
23504         Augment a few comments.
23505         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
23506         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
23507         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
23508         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
23509         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
23510         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
23511         open_by_handle.
23513         * io/fcntl.h (AT_EMPTY_PATH): Define.
23515 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
23517         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
23518         * sysdeps/unix/sysv/linux/bits/time.h: New file.
23519         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
23520         to...
23521         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
23522         * Versions.def: Add GLIBC_2.14.
23523         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
23524         Export.
23526 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
23528         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
23529         round counter.
23530         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
23532 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23534         [BZ #12597]
23535         * string/test-strncmp.c (do_page_test): New function.
23536         (check2): Likewise.
23537         (test_main): Call check2.
23538         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
23540 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
23542         [BZ #12587]
23543         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
23544         Handle cache information in CPU leaf 4.
23545         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
23547 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
23549         [BZ #12583]
23550         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
23551         character representation.
23552         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
23554 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
23556         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
23557         END(__isnan) to END(__isnanf) to match function entry point/label
23558         EALIGN(__isnanf,...).
23560 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
23562         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
23564 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
23566         [BZ #12510]
23567         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
23568         copy from the symbol referenced in the relocation to initialize the
23569         used variable.
23570         Patch by Piotr Bury <pbury@goahead.com>.
23571         * elf/Makefile: Add rules to build and tst-unique3.
23572         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
23573         * elf/tst-unique3.cc: New file.
23574         * elf/tst-unique3.h: New file.
23575         * elf/tst-unique3lib.cc: New file.
23576         * elf/tst-unique3lib2.cc: New file.
23578         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
23580 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
23582         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
23583         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
23584         to _start.
23586 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
23588         * elf/dl-load.c (_dl_map_object): If we are looking for the first
23589         to-be-loaded object along a path to loader is ld.so.
23591 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
23592             Ulrich Drepper  <drepper@gmail.com>
23594         * sysdeps/x86_64/memset.S: After aligning destination, code
23595         branches to different locations depending on the value of
23596         misalignment, when multiarch is enabled. Fix this.
23598 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
23600         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
23601         Set _x86_64_preferred_memory_instruction for AMD processsors.
23602         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23603         Set bit_Prefer_SSE_for_memop for AMD processors.
23605 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
23607         * libio/fmemopen.c (fmemopen): Optimize a bit.
23609 2011-03-03  Andreas Schwab  <schwab@redhat.com>
23611         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
23613 2011-03-03  Roland McGrath  <roland@redhat.com>
23615         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
23617 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
23619         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
23620         __bzero_ultra1 instead of __memset_ultra1.
23622 2011-02-23  Andreas Schwab  <schwab@redhat.com>
23623             Ulrich Drepper  <drepper@gmail.com>
23625         [BZ #12509]
23626         * include/link.h (struct link_map): Add l_orig_initfini.
23627         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
23628         returning unsuccessfully.
23629         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
23630         close of a file loaded at startup, restore the original l_initfini
23631         list.
23632         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
23633         list, store the pointer.
23634         * elf/Makefile ($(objpfx)noload-mem): New rule.
23635         (noload-ENV): Define.
23636         (tests): Add $(objpfx)noload-mem.
23637         * elf/noload.c: Include <memcheck.h>.
23638         (main): Call mtrace.  Close all opened handles.
23640 2011-02-17  Andreas Schwab  <schwab@redhat.com>
23642         [BZ #12454]
23643         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
23644         dependencies are missing.
23646 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23648         Fix __if_freereq crash: Unlike the generic version which uses free,
23649         Hurd needs munmap.
23650         * sysdeps/mach/hurd/ifreq.h: New file.
23652 2011-01-27  Petr Baudis  <pasky@suse.cz>
23653             Ulrich Drepper  <drepper@gmail.com>
23655         [BZ 12445]#
23656         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
23657         to extend_alloca().
23658         * stdio-common/bug23.c: New file.
23659         * stdio-common/Makefile (tests): Add bug23.
23661 2010-09-28  Andreas Schwab  <schwab@redhat.com>
23662             Ulrich Drepper  <drepper@gmail.com>
23664         [BZ #12489]
23665         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
23666         before performing relro protection.  At old place add assertion
23667         to make sure nothing changed.
23669 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
23670             Glauber de Oliveira Costa  <glommer@gmail.com>
23672         * elf/elf.h: Add new ARM TLS relocs.
23674 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
23676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
23677         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
23678         cast from r3.
23679         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
23680         'tests' variable.
23681         * sysdeps/wordsize-64/tst-writev.c: New file.
23683 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
23685         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
23686         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
23687         insns in _dl_start to prevent a TOC reference before relocs are
23688         resolved.
23690 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
23692         [BZ #12469]
23693         * Makeconfig: Remove RANLIB definition.
23694         * Makerules: Don't use RANLIB.
23695         * aclocal.m4: Remove ranlib test.
23696         * configure.in: No need to check for ranlib.
23697         * elf/rtld-Rules: Don't use RANLIB.
23699 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23701         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
23702         protection macro.
23703         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
23704         inclusion protection macro.
23706         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
23707         SIGRTMIN and SIGRTMAX and print information in that case only when
23708         SIGRTMIN is defined.
23710 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
23712         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
23713         arginfo fn returning -1.
23715         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
23716         and thousands string is zero terminated.
23718 2011-02-03  Andreas Schwab  <schwab@redhat.com>
23720         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
23721         sysdeps/unix/sysv/linux/bits/socket.h.
23723 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23725         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
23726         (__CPU_COUNT): Remove old macros.
23727         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
23728         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
23729         (__CPU_ALLOC, __CPU_FREE): Add macros.
23730         (__sched_cpualloc, __sched_cpufree): Add declarations.
23732 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
23734         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
23735         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
23736         * nscd/aicache.c (addhstaiX): Return timeout of added value.
23737         (readdhstai): Return value of addhstaiX call.
23738         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
23739         (addgrbyX): Return value returned by cache_addgr.
23740         (readdgrbyname): Return value returned by addgrbyX.
23741         (readdgrbygid): Likewise.
23742         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
23743         (addpwbyX): Return value returned by cache_addpw.
23744         (readdpwbyname): Return value returned by addhstbyX.
23745         (readdpwbyuid): Likewise.
23746         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
23747         (addservbyX): Return value returned by cache_addserv.
23748         (readdservbyname): Return value returned by addservbyX:
23749         (readdservbyport): Likewise.
23750         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
23751         (addhstbyX): Return value returned by cache_addhst.
23752         (readdhstbyname): Return value returned by addhstbyX.
23753         (readdhstbyaddr): Likewise.
23754         (readdhstbynamev6): Likewise.
23755         (readdhstbyaddrv6): Likewise.
23756         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
23757         (readdinitgroups): Return value returned by addinitgroupsX.
23758         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
23759         (prune_cache): Keep track of timeout value of re-added entries.
23760         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
23761         * nscd/nscd.h: Adjust prototypes of readd* functions.
23763 2011-02-04  Roland McGrath  <roland@redhat.com>
23765         * nis/nis_server.c (nis_servstate): Use the right name for 0.
23766         (nis_stats): Likewise.
23767         * nis/nis_modify.c (nis_modify): Likewise.
23768         * nis/nis_remove.c (nis_remove): Likewise.
23769         * nis/nis_add.c (nis_add): Likewise.
23771         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
23773         * posix/fnmatch_loop.c: Add some consts.
23775         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
23777 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
23779         [BZ #12460]
23780         * config.make.in (config-cflags-novzeroupper): Define.
23781         * configure.in: Substitute libc_cv_cc_novzeroupper.
23782         * elf/Makefile (AVX-CFLAGS): Define.
23783         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
23784         (CFLAGS-tst-auditmod4a.c): Likewise.
23785         (CFLAGS-tst-auditmod4b.c): Likewise.
23786         (CFLAGS-tst-auditmod6b.c): Likewise.
23787         (CFLAGS-tst-auditmod6c.c): Likewise.
23788         (CFLAGS-tst-auditmod7b.c): Likewise.
23789         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
23791 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
23793         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
23794         function to the callback.
23795         Patch partly by Jiri Olsa <jolsa@redhat.com>.
23797 2011-02-02  Andreas Schwab  <schwab@redhat.com>
23799         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
23800         of errno.
23802 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
23804         [BZ #11724]
23805         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
23806         of constructors.
23807         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
23808         of destructors.
23809         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
23811         [BZ #11724]
23812         * elf/Makefile: Add rules to build and run new test.
23813         * elf/tst-initorder.c: New file.
23814         * elf/tst-initorder.exp: New file.
23815         * elf/tst-initordera1.c: New file.
23816         * elf/tst-initordera2.c: New file.
23817         * elf/tst-initordera3.c: New file.
23818         * elf/tst-initordera4.c: New file.
23819         * elf/tst-initorderb1.c: New file.
23820         * elf/tst-initorderb2.c: New file.
23821         * elf/tst-order-a1.c: New file.
23822         * elf/tst-order-a2.c: New file.
23823         * elf/tst-order-a3.c: New file.
23824         * elf/tst-order-a4.c: New file.
23825         * elf/tst-order-b1.c: New file.
23826         * elf/tst-order-b2.c: New file.
23827         * elf/tst-order-main.c: New file.
23828         New test case by George Gensure <werkt0@gmail.com>.
23830 2010-10-01  Andreas Schwab  <schwab@redhat.com>
23832         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
23833         decoding ACE if AI_CANONIDN.
23835 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
23837         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
23839 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
23841         * version.h (RELEASE): Bump for 2.13 release.
23842         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
23844         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
23846         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
23847         MADV_NOHUGEPAGE.
23848         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
23849         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
23850         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
23851         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
23852         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
23853         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
23855         * posix/getconf.c: Update copyright year.
23856         * catgets/gencat.c: Likewise.
23857         * csu/version.c: Likewise.
23858         * debug/catchsegv.sh: Likewise.
23859         * debug/xtrace.sh: Likewise.
23860         * elf/ldconfig.c: Likewise.
23861         * elf/ldd.bash.in: Likewise.
23862         * elf/sprof.c (print_version): Likewise.
23863         * iconv/iconv_prog.c: Likewise.
23864         * iconv/iconvconfig.c: Likewise.
23865         * locale/programs/locale.c: Likewise.
23866         * locale/programs/localedef.c: Likewise.
23867         * malloc/memusage.sh: Likewise.
23868         * malloc/mtrace.pl: Likewise.
23869         * nscd/nscd.c (print_version): Likewise.
23870         * nss/getent.c: Likewise.
23872         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
23873         PF_CAIF, and PF_ALG.
23874         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
23876 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
23878         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
23879         (modules-names): Use them.
23880         (ifunc-test-modules, ifunc-pie-tests): Define.
23881         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
23882         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
23883         (test-extras): Likewise.
23884         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
23885         $(compile-command.c).
23886         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
23887         (all-built-dso): Define.
23888         (check-textrel.out, check-execstack.out): Depend on it.
23890         * configure.in: Don't override --enable-multi-arch.
23892 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
23894         [BZ #6812]
23895         * nscd/hstcache.c (tryagain): Define.
23896         (cache_addhst): Return tryagain not notfound for temporary errors.
23897         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
23898         failed.
23900 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
23902         [BZ #10563]
23903         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
23904         to make the syscall.
23905         * sysdeps/unix/sysv/linux/setgroups.c: New file.
23907         [BZ #12378]
23908         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
23909         and fall back to matching as normal character if the string ends before
23910         the matching ']' is found.  This is what POSIX requires.
23911         * posix/testfnm.c: Adjust test result.
23912         * posix/globtest.sh: Adjust test result.  Add new test.
23913         * posix/tst-fnmatch.input: Likewise.
23914         * posix/tst-fnmatch2.c: Add new test.
23916 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
23918         * elf/Makefile (check-execstack): Revert last change.  Depend on
23919         check-execstack.h.
23920         (check-execstack.h): New target.
23921         (generated): Add check-execstack.h.
23922         * elf/check-execstack.c: Include "check-execstack.h".
23923         (main): Revert last change.
23924         (handle_file): Return zero if GNU_STACK is absent and
23925         DEFAULT_STACK_PERMS doesn't include PF_X.
23927 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
23929         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
23930         in child fails because the descriptor is already closed.
23931         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
23932         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
23933         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
23935         [BZ #12397]
23936         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
23937         syscall.
23939         [BZ #10484]
23940         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
23941         temporary buffer used to handle multi lookups locally.
23942         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
23944 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
23946         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
23947         loader is ld.so.
23949 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
23951         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
23952         alignment for SSE2.
23954 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
23956         [BZ #12394]
23957         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
23958         characters.  When rounding increased number of integer digits recompute
23959         number of groups.
23960         * stdio-common/tst-grouping.c: New file.
23961         * stdio-common/Makefile: Add rules to build and run tst-grouping.
23963 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
23965         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
23966         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
23968         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
23969         void.
23970         * bits/select.h: Likewise.
23972 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
23974         * po/ja.po: Update from translation team.
23976 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
23978         [BZ #11155]
23979         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
23980         implementation just like for lxstat, fxstatat, et al.
23982 2010-12-27  Jim Meyering  <meyering@redhat.com>
23984         [BZ #12348]
23985         * posix/regexec.c (build_trtable): Return failure indication upon
23986         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23988 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
23990         [BZ #12201]
23991         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
23992         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
23993         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
23994         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
23996         [BZ #12207]
23997         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
23999         [BZ #12204]
24000         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
24001         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
24003 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
24005         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
24006         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
24007         script has SORT_BY_INIT_PRIORITY.
24008         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
24009         NO_CTORS_DTORS_SECTIONS is defined.
24010         * elf/soinit.c: Likewise.
24011         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
24012         NO_CTORS_DTORS_SECTIONS is defined.
24013         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
24014         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
24015         * sysdeps/sh/init-first.c: Likewise.
24016         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
24018 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
24020         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
24021         always use the slow path.
24023 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
24025         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
24026         similar rule which adds the sysdep directories to the header search in
24027         order to pick up the correct platform stackinfo.h.
24028         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
24029         perform test if it is, otherwise return successfully without testing.
24030         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
24031         DEFAULT_STACK_PERMS define in stackinfo.h.
24032         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
24033         defined in stackinfo.h.
24034         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
24035         DEFAULT_STACK_PERMS defined in stackinfo.h.
24036         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
24037         * sysdeps/ia64/stackinfo.h: Likewise.
24038         * sysdeps/s390/stackinfo.h: Likewise.
24039         * sysdeps/sh/stackinfo.h: Likewise.
24040         * sysdeps/sparc/stackinfo.h: Likewise.
24041         * sysdeps/x86_64/stackinfo.h: Likewise.
24042         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
24043         PF_X for powerpc64.  Retain PF_X for powerpc32.
24045 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
24047         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
24048         accurately.
24049         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
24050         GETDENTS_64BIT_ALIGNED.
24052 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
24054         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
24056 2010-12-10  Andreas Schwab  <schwab@redhat.com>
24058         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
24059         _GNU_SOURCE.
24061         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
24062         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
24063         Remove __restrict.
24064         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
24065         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
24067 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
24069         [BZ #11655]
24070         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
24071         are initialized.
24073 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
24075         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
24077 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
24079         * po/it.po: Update from translation team.
24081 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
24083         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
24084         unused codes.
24086 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
24088         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
24090 2010-11-24  Andreas Schwab  <schwab@redhat.com>
24092         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
24093         specially.
24094         (gaih_getanswer_slice): Likewise.
24096 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
24098         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
24100 2010-05-31  Petr Baudis  <pasky@suse.cz>
24102         [BZ #11149]
24103         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
24104         silently even in the chroot mode.
24106 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
24108         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
24109         last patch a bit.  Pretty printing
24111 2010-05-31  Petr Baudis <pasky@suse.cz>
24113         [BZ #10085]
24114         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
24115         initialization of skip_initgroups_dyn.
24117 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
24119         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
24120         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
24122 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
24124         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
24126 2010-11-11  Andreas Schwab  <schwab@redhat.com>
24128         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
24129         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
24130         (tst-fnmatch-ENV): Set MALLOC_TRACE.
24131         ($(objpfx)tst-fnmatch-mem): New rule.
24132         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
24133         * posix/tst-fnmatch.c (main): Call mtrace.
24135 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
24137         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24138         Support Intel processor model 6 and model 0x2c.
24140 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
24142         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
24143           signed comparison.
24145 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
24147         [BZ #12205]
24148         * string/test-strncasecmp.c (check_result): New function.
24149         (do_one_test): Use it.
24150         (check1): New function.
24151         (test_main): Use it.
24152         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
24153         Support strcasecmp and strncasecmp.
24155 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
24157         [BZ #12194]
24158         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
24159         * sysdeps/x86_64/bits/byteswap.h: Likewise.
24161 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
24163         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
24164         IFUNC support.
24165         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24166         memset-x86-64.
24167         * sysdeps/x86_64/multiarch/bzero.S: New file.
24168         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
24169         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
24170         * sysdeps/x86_64/multiarch/memset.S: New file.
24171         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
24172         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24173         Set bit_Prefer_SSE_for_memop for Intel processors.
24174         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
24175         Define.
24176         (index_Prefer_SSE_for_memop): Define.
24177         (HAS_PREFER_SSE_FOR_MEMOP): Define.
24179 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
24181         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
24182         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
24184 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
24186         [BZ #12191]
24187         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
24188         (__x86_64_raw_data_cache_size_half): Likewise.
24189         (__x86_64_raw_shared_cache_size): Likewise.
24190         (__x86_64_raw_shared_cache_size_half): Likewise.
24192         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
24193         (__x86_64_raw_data_cache_size_half): Likewise.
24194         (__x86_64_raw_shared_cache_size): Likewise.
24195         (__x86_64_raw_shared_cache_size_half): Likewise.
24196         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
24197         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
24198         and __x86_64_raw_shared_cache_size_half.  Round
24199         __x86_64_data_cache_size_half, __x86_64_data_cache_size
24200         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
24201         to multiple of 256 bytes.
24203 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
24205         [BZ #12167]
24206         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
24207         of inacessible symlinks.  Verify result of symlink before returning it.
24208         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24209         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
24211 2010-10-28  Erich Ritz  <erichritz@gmail.com>
24213         * math/math.h (isinf): Fix typo in comment.
24215 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
24217         * po/da.po: Update from translation team.
24219 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
24221         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
24222         is added to the list.
24224 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24225             Ulrich Drepper  <drepper@gmail.com>
24227         * elf/dl-object.c (_dl_new_object): Don't append the new object to
24228         the global list here.  Move code to...
24229         (_dl_add_to_namespace_list): ...here.  New function.
24230         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
24231         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
24232         * elf/dl-load.c (lose): Don't remove the element from the list.
24233         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
24234         (_dl_map_object): Likewise.
24236 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
24238         [BZ #12159]
24239         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
24240         into all bytes of SSE register.
24241         Patch by Richard Li <richardpku@gmail.com>.
24243 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
24245         [BZ #12140]
24246         * malloc/malloc.c (_int_free): Fill correct number of bytes when
24247         perturbing.
24249 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
24251         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
24252         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
24253         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
24254         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
24255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
24256         submachine.
24257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
24259 2010-10-22  Andreas Schwab  <schwab@redhat.com>
24261         * include/dlfcn.h (__RTLD_SECURE): Define.
24262         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
24263         mode & __RTLD_SECURE instead.
24264         (open_path): Rename preloaded parameter to secure.
24265         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
24266         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
24267         * elf/dl-deps.c (openaux): Likewise.
24268         * elf/rtld.c (struct map_args): Remove is_preloaded.
24269         (map_doit): Don't use it.
24270         (dl_main): Likewise.
24271         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
24272         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
24274 2010-09-09  Andreas Schwab  <schwab@redhat.com>
24276         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
24277         (sysd-rules-targets): Remove duplicates.
24278         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
24279         rtld-%.$o dependency.
24281 2010-10-18  Andreas Schwab  <schwab@redhat.com>
24283         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
24284         _dl_map_object do it.
24286 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
24288         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
24289         fast fma builtins, define the macros in the C99 standard.
24290         (FP_FAST_FMAF): Likewise.
24291         (FP_FAST_FMAL): Likewise.
24292         * sysdeps/x86_64/bits/mathdef.h: Likewise.
24294         * bits/mathdef.h: Update copyright year.
24295         * sysdeps/powerpc/bits/mathdef.h: Likewise.
24297 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
24299         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
24300         builtins, define the macros in the C99 standard.
24301         (FP_FAST_FMAF): Likewise.
24302         (FP_FAST_FMAL): Likewise.
24303         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
24304         multiply/add.
24305         (FP_FAST_FMAF): Likewise.
24307 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
24309         [BZ #3268]
24310         * math/libm-test.inc (fma_test): Some new testcases.
24311         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
24312         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
24313         y and infinite z.  Do multiplication by C already in long double.
24314         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
24315         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
24316         y and infinite z.  Do bitwise or of inexact bit into u.d.
24317         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
24318         * sysdeps/i386/fpu/s_fmaf.S: Removed.
24319         * sysdeps/i386/fpu/s_fma.S: Removed.
24320         * sysdeps/i386/fpu/s_fmal.S: Removed.
24322 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
24324         [BZ #3268]
24325         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
24326         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
24327         computation is not scheduled after fetestexcept.  Fix value
24328         of minimum denormal long double.
24330 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
24332         [BZ #3268]
24333         * math/libm-test.inc (fma_test): Add some more tests.
24334         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
24335         correctly.
24337 2010-10-15  Andreas Schwab  <schwab@redhat.com>
24339         * scripts/data/localplt-s390-linux-gnu.data: New file.
24340         * scripts/data/localplt-s390x-linux-gnu.data: New file.
24342 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
24344         [BZ #3268]
24345         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
24346         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
24347         instead of dbl-64.
24348         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
24349         inlines.
24350         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
24351         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
24352         if one of x and y is very large and the other is subnormal.
24353         * sysdeps/s390/fpu/s_fmaf.c: New file.
24354         * sysdeps/s390/fpu/s_fma.c: New file.
24355         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
24356         * sysdeps/powerpc/fpu/s_fma.S: New file.
24357         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
24358         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
24359         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
24361 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
24363         [BZ #3268]
24364         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
24365         fma tests.
24366         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
24367         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
24368         * sysdeps/i386/i686/multiarch/s_fma.c: Include
24369         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
24370         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
24371         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
24372         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
24374 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
24376         [BZ #12078]
24377         * posix/regcomp.c (parse_branch): One more memory leak plugged.
24378         * posix/bug-regex31.input: Add test case.
24380 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
24382         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
24383         * posix/bug-regex31.input: New file.
24385         [BZ #12078]
24386         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
24387         (parse_sub_exp): Fix last change, use postorder.
24389         * posix/bug-regex31.c: New file.
24390         * posix/Makefile: Add rules to build and run bug-regex31.
24392         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
24394         [BZ #12078]
24395         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
24397         [BZ #12108]
24398         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
24399         to have entries in sys_siglist.
24401         [BZ #12093]
24402         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
24403         be NULL.
24405 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
24407         [BZ #3268]
24408         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
24409         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
24410         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
24411         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
24412         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
24413         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
24414         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
24415         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
24416         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
24417         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
24418         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
24419         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
24420         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
24421         * math/ftestexcept.c (fetestexcept): Likewise.
24422         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
24423         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
24424         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
24425         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
24426         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
24427         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
24428         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
24430 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
24432         [BZ #12107]
24433         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
24434         newline.
24436 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
24438         * string/bug-strstr1.c: New file.
24439         * string/Makefile: Add rules to build and run bug-strstr1.
24441 2010-10-05  Eric Blake  <eblake@redhat.com>
24443         [BZ #12092]
24444         * string/str-two-way.h (two_way_long_needle): Always clear memory
24445         when skipping input due to the shift table.
24447 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
24449         [BZ #12005]
24450         * malloc/mcheck.c: Handle large requests.
24452         [BZ #12077]
24453         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
24454         for strncmp and strncasecmp.
24455         * string/stratcliff.c: Add tests for strcmp and strncmp.
24456         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
24458 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
24460         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
24461         __set_fpscr.
24463 2010-09-30  Andreas Jaeger  <aj@suse.de>
24465         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
24466         (CGROUP_SUPER_MAGIC): Define.
24467         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
24468         Handle btrfs and cgroup file systems.
24469         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
24470         Likewise.
24472 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
24474         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
24475         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
24477 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24479         [BZ #12067]
24480         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
24481         trying to locate the ELF header.
24483 2010-09-27  Andreas Schwab  <schwab@redhat.com>
24485         [BZ #11611]
24486         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
24487         Mask out sign-bit copies when constructing f_fsid.
24489 2010-09-24  Petr Baudis <pasky@suse.cz>
24491         * debug/stack_chk_fail_local.c: Add missing licence exception.
24492         * debug/warning-nop.c: Likewise.
24494 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
24496         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
24497         implementing getdents64 using getdents syscall, set d_type if
24498         __ASSUME_GETDENTS32_D_TYPE.
24500 2010-09-16  Andreas Schwab  <schwab@redhat.com>
24502         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
24503         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
24505 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
24507         [BZ #12037]
24508         * posix/unistd.h: Undo change of feature selection for ftruncate from
24509         2010-01-11.
24511 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
24513         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
24514         detection.
24516 2010-09-20  Andreas Schwab  <schwab@redhat.com>
24518         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
24519         fanotify_mark.
24520         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
24522 2010-09-14  Andreas Schwab  <schwab@redhat.com>
24524         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
24525         variables after CHECK_SP call.
24526         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
24528 2010-09-13  Andreas Schwab  <schwab@redhat.com>
24529             Ulrich Drepper  <drepper@redhat.com>
24531         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
24532         re-relocationg ld.so.
24533         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
24534         _dl_init_paths call.
24535         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
24536         here anymore.
24538 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
24540         * resolv/res_init.c (__res_vinit): Count the default server we added.
24542 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
24543             Ulrich Drepper  <drepper@redhat.com>
24545         [BZ #11968]
24546         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
24547         (____longjmp_chk): Use %ebx for saving value across system call.
24548         Add unwind info.
24550 2010-09-06  Andreas Schwab  <schwab@redhat.com>
24552         * manual/Makefile: Don't mix pattern rules with normal rules.
24554 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
24556         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
24557         operation.
24558         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
24559         * libio/iofopncook.c (_IO_cookie_init): Likewise.
24560         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
24561         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
24562         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24563         Likewise.
24565 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
24567         [BZ #11979]
24568         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
24569         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
24571 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
24573         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
24574         * sysdeps/x86_64/addmul_1.S: Likewise.
24575         * sysdeps/x86_64/lshift.S: Likewise.
24576         * sysdeps/x86_64/mul_1.S: Likewise.
24577         * sysdeps/x86_64/rshift.S: Likewise.
24578         * sysdeps/x86_64/sub_n.S: Likewise.
24579         * sysdeps/x86_64/submul_1.S: Likewise.
24581 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24583         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
24584         Define __sched_param instead of SCHED_* and sched_param when
24585         <bits/sched.h> is included with __need_schedparam defined.
24586         * bits/sched.h [__need_schedparam]
24587         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
24588         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
24589         (__defined_schedparam): Define to 1.
24590         (__sched_param): New structure, identical to sched_param.
24591         (__need_schedparam): Undefine.
24593 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
24595         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
24596         (epoll_create1): Declare.
24598         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
24600 2010-08-31  Andreas Schwab  <schwab@redhat.com>
24602         [BZ #7066]
24603         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
24604         shifting retval into place.
24606 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
24608         * nis/rpcsvc/nis.h: Update copyright notice.
24609         * nis/rpcsvc/nis.x: Likewise.
24610         * nis/rpcsvc/nis_callback.h: Likewise.
24611         * nis/rpcsvc/nis_callback.x: Likewise.
24612         * nis/rpcsvc/nis_object.x: Likewise.
24613         * nis/rpcsvc/nis_tags.h: Likewise.
24614         * nis/rpcsvc/yp.h: Likewise.
24615         * nis/rpcsvc/yp.x: Likewise.
24616         * nis/rpcsvc/ypupd.h: Likewise.
24617         * nis/yp_xdr.c: Likewise.
24618         * nis/ypupdate_xdr.c: Likewise.
24620         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
24621         mainly the body of pmap_getport.  Add parameters to specify timeouts.
24622         (pmap_getport): Use __libc_rpc_getport.
24623         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
24624         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
24625         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
24627 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
24629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
24630         fanotify_mark.
24632 2010-08-27  Roland McGrath  <roland@redhat.com>
24634         * sysdeps/i386/i686/multiarch/Makefile
24635         (CFLAGS-varshift.c): New variable.
24637 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
24639         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
24640         * sysdeps/i386/i686/multiarch/varshift.c: New file.
24642         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
24644         * sysdeps/x86_64/strlen.S: Minimal code improvement.
24646 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
24648         * sysdeps/x86_64/strlen.S: Unroll the loop.
24649         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24650         strlen-sse2 strlen-sse2-bsf.
24651         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
24652         __strlen_no_bsf if bit_Slow_BSF is set.
24653         (__strlen_sse42): Removed.
24654         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
24655         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
24657 2010-08-25  Roland McGrath  <roland@redhat.com>
24659         * sysdeps/x86_64/multiarch/varshift.S: File removed.
24660         * sysdeps/x86_64/multiarch/varshift.c: New file.
24661         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
24662         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
24663         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
24664         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
24666 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
24668         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24669         strlen-sse2 strlen-sse2-bsf.
24670         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
24671         __strlen_sse2_bsf if bit_Slow_BSF is unset.
24672         (__strlen_sse2): Removed.
24673         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
24674         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
24675         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
24676         bit_Slow_BSF for Atom.
24677         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
24678         (index_Slow_BSF): Define.
24679         (HAS_SLOW_BSF): Define.
24681 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
24683         [BZ #10851]
24684         * resolv/res_init.c (__res_vinit): When no server address at all
24685         is given default to loopback.
24687 2010-08-24  Roland McGrath  <roland@redhat.com>
24689         * configure.in: Remove config-name.h generation.
24690         * configure: Regenerated.
24691         * config-name.in: File removed.
24692         * scripts/config-uname.sh: New file.
24693         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
24694         ($(objdir)config-name.h): New target.
24696         * sunrpc/rpc_parse.h: Avoid nested comment.
24698 2010-08-24  Richard Henderson  <rth@redhat.com>
24699             Ulrich Drepper  <drepper@redhat.com>
24700             H.J. Lu  <hongjiu.lu@intel.com>
24702         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
24703         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
24704         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
24705         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
24706         _mm_alignr_epi8 with _mm_loadu_si128.
24707         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
24708         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
24709         (__m128i_shift_right): Removed.
24710         * sysdeps/i386/i686/multiarch/varshift.h: New file.
24711         * sysdeps/i386/i686/multiarch/varshift.S: New file.
24712         * sysdeps/x86_64/multiarch/varshift.h: New file.
24713         * sysdeps/x86_64/multiarch/varshift.S: New file.
24715 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
24717         * configure.in: Move assembler checks to before sysdep dir checking.
24719 2010-08-20  Petr Baudis  <pasky@suse.cz>
24721         * LICENSES: Sync the sunrpc license.
24723 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
24725         * sunrpc/auth_des.c: Update copyright notice once again.
24726         * sunrpc/auth_none.c: Likewise.
24727         * sunrpc/auth_unix.c: Likewise.
24728         * sunrpc/authdes_prot.c: Likewise.
24729         * sunrpc/authuxprot.c: Likewise.
24730         * sunrpc/bindrsvprt.c: Likewise.
24731         * sunrpc/clnt_gen.c: Likewise.
24732         * sunrpc/clnt_perr.c: Likewise.
24733         * sunrpc/clnt_raw.c: Likewise.
24734         * sunrpc/clnt_simp.c: Likewise.
24735         * sunrpc/clnt_tcp.c: Likewise.
24736         * sunrpc/clnt_udp.c: Likewise.
24737         * sunrpc/clnt_unix.c: Likewise.
24738         * sunrpc/des_crypt.c: Likewise.
24739         * sunrpc/des_soft.c: Likewise.
24740         * sunrpc/get_myaddr.c: Likewise.
24741         * sunrpc/getrpcport.c: Likewise.
24742         * sunrpc/key_call.c: Likewise.
24743         * sunrpc/key_prot.c: Likewise.
24744         * sunrpc/openchild.c: Likewise.
24745         * sunrpc/pm_getmaps.c: Likewise.
24746         * sunrpc/pm_getport.c: Likewise.
24747         * sunrpc/pmap_clnt.c: Likewise.
24748         * sunrpc/pmap_prot.c: Likewise.
24749         * sunrpc/pmap_prot2.c: Likewise.
24750         * sunrpc/pmap_rmt.c: Likewise.
24751         * sunrpc/rpc/auth.h: Likewise.
24752         * sunrpc/rpc/auth_unix.h: Likewise.
24753         * sunrpc/rpc/clnt.h: Likewise.
24754         * sunrpc/rpc/des_crypt.h: Likewise.
24755         * sunrpc/rpc/key_prot.h: Likewise.
24756         * sunrpc/rpc/netdb.h: Likewise.
24757         * sunrpc/rpc/pmap_clnt.h: Likewise.
24758         * sunrpc/rpc/pmap_prot.h: Likewise.
24759         * sunrpc/rpc/pmap_rmt.h: Likewise.
24760         * sunrpc/rpc/rpc.h: Likewise.
24761         * sunrpc/rpc/rpc_des.h: Likewise.
24762         * sunrpc/rpc/rpc_msg.h: Likewise.
24763         * sunrpc/rpc/svc.h: Likewise.
24764         * sunrpc/rpc/svc_auth.h: Likewise.
24765         * sunrpc/rpc/types.h: Likewise.
24766         * sunrpc/rpc/xdr.h: Likewise.
24767         * sunrpc/rpc_clntout.c: Likewise.
24768         * sunrpc/rpc_cmsg.c: Likewise.
24769         * sunrpc/rpc_common.c: Likewise.
24770         * sunrpc/rpc_cout.c: Likewise.
24771         * sunrpc/rpc_dtable.c: Likewise.
24772         * sunrpc/rpc_hout.c: Likewise.
24773         * sunrpc/rpc_main.c: Likewise.
24774         * sunrpc/rpc_parse.c: Likewise.
24775         * sunrpc/rpc_parse.h: Likewise.
24776         * sunrpc/rpc_prot.c: Likewise.
24777         * sunrpc/rpc_sample.c: Likewise.
24778         * sunrpc/rpc_scan.c: Likewise.
24779         * sunrpc/rpc_scan.h: Likewise.
24780         * sunrpc/rpc_svcout.c: Likewise.
24781         * sunrpc/rpc_tblout.c: Likewise.
24782         * sunrpc/rpc_util.c: Likewise.
24783         * sunrpc/rpc_util.h: Likewise.
24784         * sunrpc/rpcinfo.c: Likewise.
24785         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
24786         * sunrpc/rpcsvc/key_prot.x: Likewise.
24787         * sunrpc/rpcsvc/klm_prot.x: Likewise.
24788         * sunrpc/rpcsvc/mount.x: Likewise.
24789         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
24790         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
24791         * sunrpc/rpcsvc/rex.x: Likewise.
24792         * sunrpc/rpcsvc/rstat.x: Likewise.
24793         * sunrpc/rpcsvc/rusers.x: Likewise.
24794         * sunrpc/rpcsvc/sm_inter.x: Likewise.
24795         * sunrpc/rpcsvc/spray.x: Likewise.
24796         * sunrpc/rpcsvc/yppasswd.x: Likewise.
24797         * sunrpc/rtime.c: Likewise.
24798         * sunrpc/svc.c: Likewise.
24799         * sunrpc/svc_auth.c: Likewise.
24800         * sunrpc/svc_authux.c: Likewise.
24801         * sunrpc/svc_raw.c: Likewise.
24802         * sunrpc/svc_run.c: Likewise.
24803         * sunrpc/svc_simple.c: Likewise.
24804         * sunrpc/svc_tcp.c: Likewise.
24805         * sunrpc/svc_udp.c: Likewise.
24806         * sunrpc/svc_unix.c: Likewise.
24807         * sunrpc/svcauth_des.c: Likewise.
24808         * sunrpc/xcrypt.c: Likewise.
24809         * sunrpc/xdr.c: Likewise.
24810         * sunrpc/xdr_array.c: Likewise.
24811         * sunrpc/xdr_float.c: Likewise.
24812         * sunrpc/xdr_mem.c: Likewise.
24813         * sunrpc/xdr_rec.c: Likewise.
24814         * sunrpc/xdr_ref.c: Likewise.
24815         * sunrpc/xdr_sizeof.c: Likewise.
24816         * sunrpc/xdr_stdio.c: Likewise.
24818         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
24819         handling.
24821 2010-08-19  Andreas Schwab  <schwab@redhat.com>
24823         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
24825 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
24827         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
24828         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
24829         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
24830         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
24831         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
24832         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
24833         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
24834         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
24835         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
24836         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
24837         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
24838         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
24839         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
24840         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
24842 2010-07-26  Anton Blanchard  <anton@samba.org>
24844         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
24845         * malloc/arena.c (heap_trim): Likewise.
24847 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
24849         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
24850         here.  Not...
24851         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
24852         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
24854 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
24856         * sysdeps/i386/elf/Makefile: New file.
24858 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
24860         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
24861         from fanotify_init.
24862         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
24863         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
24865 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
24867         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
24868         of strncasecmp_l.
24869         * sysdeps/multiarch/strcmp.S: Likewise.
24871 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
24873         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
24874         strncase_l-nonascii.
24875         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
24876         Add strncase_l-ssse3.
24877         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
24878         * sysdeps/x86_64/strcmp.S: Likewise.
24879         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
24880         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
24881         * sysdeps/x86_64/strncase.S: New file.
24882         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
24883         * sysdeps/x86_64/strncase_l.S: New file.
24884         * string/Makefile (strop-tests): Add strncasecmp.
24885         * string/test-strncasecmp.c: New file.
24887         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
24888         warning.
24890         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
24891         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
24893 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
24895         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
24897 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
24899         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
24900         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
24901         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
24903 2010-05-01  Alan Modra  <amodra@gmail.com>
24905         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
24906         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
24907         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
24908         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
24909         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
24910         tidying.  Don't tail-call __sigjmp_save for static lib.
24911         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
24912         save location.
24913         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
24914         (CALL_MCOUNT): Add eh info, and nop after bl.
24915         (TAIL_CALL_SYSCALL_ERROR): New macro.
24916         (PSEUDO_RET): Use it.
24917         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
24918         Correct save location of integer regs and cr.
24919         (_dl_profile_resolve): Correct cr save location.  Delete nops
24920         after bl when SHARED.  Reduce cfi size a little by better
24921         placement of cfi directives.
24922         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
24923         make a stack frame.  Instead use parm save area as a temp.
24924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
24925         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
24926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
24927         Don't make a stack frame for parent, use parm save area.
24928         Increase child stack frame to 112 bytes.  Don't save unused reg,
24929         and adjust reg usage.  Set up cfi on error recovery and
24930         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
24931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
24932         (__makecontext): Add dummy nop after jump to exit.
24933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
24934         Use correct parm save area and cr save, reduce stack frame.
24935         Correct cfi for possible PSEUDO_RET frame setup.
24936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
24937         Branch to local label emitted by PSEUDO_RET rather than
24938         __syscall_error.
24940 2010-08-12  Andreas Schwab  <schwab@redhat.com>
24942         [BZ #11904]
24943         * locale/programs/locale.c (print_assignment): New function.
24944         (show_locale_vars): Use it.
24946 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
24948         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
24949         field.
24950         (struct statfs64): Likewise.
24951         (_STATFS_F_FLAGS): Define.
24952         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
24953         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
24954         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
24955         (ST_VALID): Define locally.
24956         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
24957         __statvfs_getflags, use the provided value.
24958         * sysdeps/unix/sysv/linux/kernel-features.h: Define
24959         __ASSUME_STATFS_F_FLAGS.
24961         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
24963         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
24964         Add sys/fanotify.h.
24965         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
24966         fanotify_mask for GLIBC_2.13.
24967         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
24968         fanotify_init and fanotify_mark.
24969         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
24970         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
24972         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
24973         Add prlimit.
24974         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
24975         prlimit64 for GLIBC_2.13.
24976         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
24977         prlimit64.
24978         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
24979         syscall.
24980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
24981         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
24982         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
24983         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
24984         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
24985         add prlimit alias.
24986         * sysdeps/unix/sysv/linux/prlimit.c: New file.
24988         [BZ #11903]
24989         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
24990         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
24992         * nss/Makefile: Add rules to build and run tst-nss-test1.
24993         * shlib-versions: Add entry for libnss_test1.
24994         * nss/nss_test1.c: New file.
24995         * nss/tst-nss-test1.c: New file.
24997         * nss/nsswitch.c (__nss_database_custom): Define new variable.
24998         (__nss_configure_lookup): Set appropriate entry in
24999         __nss_configure_lookup to true.
25000         * nss/nsswitch.h: Define enum with indeces of databases in
25001         databases and __nss_database_custom arrays.  Declare
25002         __nss_database_custom.
25003         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
25004         to avoid using nscd when custom rules are installed.
25005         * nss/getXXbyYY_r.c: Likewise.
25006         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
25008         * nss/nss_files/files-parse.c: Whitespace fixes.
25010 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
25012         [BZ #11883]
25013         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
25014         * posix/fnmatch_loop.c: Likewise.
25016 2010-07-17  Andi Kleen  <ak@linux.intel.com>
25018         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
25019         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
25020         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
25021         * Versions.def [GLIBC_2.13]: Add.
25023 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
25025         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
25026         Also fail if tpwd after pwuid call is NULL.
25028 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25030         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
25031         when converting to ms.
25033 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25035         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
25036         EOPNOTSUPP errors with ENOTTY.
25037         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
25038         EOPNOTSUPP errors with ENOTTY.
25040 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
25042         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
25043         Add strcasecmp_l-ssse3.
25044         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
25045         strcasecmp.
25046         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
25047         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
25048         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
25050 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
25052         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
25054         * string/Makefile (strop-tests): Add strcasecmp.
25055         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
25056         strcasecmp_l-nonascii.
25057         (gen-as-const-headers): Add locale-defines.sym.
25058         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
25059         * sysdeps/x86_64/strcasecmp.S: New file.
25060         * sysdeps/x86_64/strcasecmp_l.S: New file.
25061         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
25062         * sysdeps/x86_64/locale-defines.sym: New file.
25063         * string/test-strcasecmp.c: New file.
25065         * string/test-strcasestr.c: Test both ends of the range of characters.
25066         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
25068 2010-07-29  Roland McGrath  <roland@redhat.com>
25070         [BZ #11856]
25071         * manual/locale.texi (Yes-or-No Questions): Fix example code.
25073 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
25075         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
25076         for ld.so.
25078 2010-07-27  Andreas Schwab  <schwab@redhat.com>
25080         * manual/memory.texi (Malloc Tunable Parameters): Document
25081         M_PERTURB.
25083 2010-07-26  Roland McGrath  <roland@redhat.com>
25085         [BZ #11840]
25086         * configure.in (-fgnu89-inline check): Set and substitute
25087         gnu89_inline, not libc_cv_gnu89_inline.
25088         * configure: Regenerated.
25089         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
25091 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
25093         * string/test-strnlen.c: New file.
25094         * string/Makefile (strop-tests): Add strnlen.
25095         * string/tester.c (test_strnlen): Add a few more test cases.
25096         * string/tst-strlen.c: Better error reporting.
25098         * sysdeps/x86_64/strnlen.S: New file.
25100 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
25102         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
25103         lower-latency instructions.
25105 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
25107         * string/test-strcasestr.c: New file.
25108         * string/test-strstr.c: New file.
25109         * string/Makefile (strop-tests): Add strstr and strcasestr.
25110         * string/str-two-way.h: Don't undefine MAX.
25111         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
25113 2010-07-21  Andreas Schwab  <schwab@redhat.com>
25115         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25116         strcasestr-nonascii.
25117         (CFLAGS-strcasestr-nonascii.c): Define.
25118         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
25119         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
25120         Remove unused attribute.
25122 2010-07-20  Roland McGrath  <roland@redhat.com>
25124         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
25125         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
25126         ld.so.cache was broken.  With it, there is no way to disable dsocaps
25127         like LD_HWCAP_MASK can disable hwcaps.
25129 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
25131         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
25133 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
25135         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
25136         call in strcasestr.
25137         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
25138         __strcasestr_sse42_nonascii.
25139         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
25140         strcasestr-nonascii.c.
25141         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
25143 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
25145         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
25146         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
25147         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
25148         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
25150 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
25152         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
25153         fcntl.
25155 2010-07-06  Andreas Schwab  <schwab@redhat.com>
25157         [BZ #11577]
25158         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
25159         dl_signal_cerror.
25161 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
25163         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
25164         _PC_PIPE_BUF using F_GETPIPE_SZ.
25166 2010-07-05  Roland McGrath  <roland@redhat.com>
25168         * manual/arith.texi (Rounding Functions): Fix rint description
25169         implicit in round description.
25171 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
25173         * elf/Makefile: Fix linking for a few tests to make recent linker
25174         happy.
25176 2010-06-30  Andreas Schwab  <schwab@redhat.com>
25178         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
25179         $(common-objpfx)libc_nonshared.a.
25181 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
25183         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
25184         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
25185         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
25186         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
25187         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
25188         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
25189         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
25190         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
25191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
25192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
25193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
25194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
25195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
25196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
25197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
25198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
25199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
25200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
25201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
25202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
25203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
25204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
25205         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
25206         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
25207         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
25208         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
25209         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
25210         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
25211         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
25212         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
25213         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
25214         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
25215         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
25216         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
25217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
25218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
25219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
25220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
25221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
25222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
25223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
25224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
25225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
25226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
25227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
25228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
25229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
25230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
25232 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
25234         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
25235         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
25236         * string/memmove.c (memmove): Renamed to ...
25237         (MEMMOVE): ...this.  Default to memmove.
25238         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
25239         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
25240         (END_CHK): Define.
25241         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25242         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
25243         mempcpy-ssse3-back memmove-ssse3-back.
25244         * sysdeps/x86_64/multiarch/bcopy.S: New file .
25245         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
25246         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
25247         * sysdeps/x86_64/multiarch/memcpy.S: New file.
25248         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
25249         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
25250         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
25251         * sysdeps/x86_64/multiarch/memmove.c: New file.
25252         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
25253         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
25254         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
25255         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
25256         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
25257         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
25258         Define.
25259         (index_Fast_Copy_Backward): Define.
25260         (HAS_ARCH_FEATURE): Define.
25261         (HAS_FAST_REP_STRING): Define.
25262         (HAS_FAST_COPY_BACKWARD): Define.
25264 2010-06-21  Andreas Schwab  <schwab@redhat.com>
25266         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
25267         Restore proper fallback handling.
25269 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
25271         [BZ #11701]
25272         * posix/group_member.c (__group_member): Correct checking loop.
25274         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
25275         OOM in getpwuid_r correctly.  Return error number when the caller
25276         should return, otherwise -1.
25277         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
25278         call returning > 0 value.
25279         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
25281 2010-06-07  Andreas Schwab  <schwab@redhat.com>
25283         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
25284         libc_nonshared.a from targets in modules-names.
25286 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
25288         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
25289         requires it.
25291 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
25293         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
25294         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
25295         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
25296         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
25298 2010-06-02  Andreas Schwab  <schwab@redhat.com>
25300         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
25302 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
25304         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
25305         and F_GETPIPE_SZ.
25306         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
25307         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
25308         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
25309         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
25310         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
25311         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
25313 2010-06-14  Roland McGrath  <roland@redhat.com>
25315         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
25317 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
25319         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
25320         __REDIRECT followed by __THROW.
25321         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
25322         * posix/getopt.h (getopt): Likewise.
25324 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
25326         * hurd/lookup-at.c (__file_name_lookup_at): Accept
25327         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
25328         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
25329         in AT_FLAGS.
25330         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
25331         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
25333 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
25335         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
25337 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
25339         [BZ #11640]
25340         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25341         Properly check family and model.
25343 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
25345         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
25347 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
25349         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
25351 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
25353         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
25354         symbol reference.
25356 2010-05-19  Andreas Schwab  <schwab@redhat.com>
25358         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
25359         symbol reference.
25361 2010-05-21  Andreas Schwab  <schwab@redhat.com>
25363         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
25364         and internal_recvmmsg.
25365         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
25366         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
25367         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
25368         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
25370         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
25371         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
25372         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
25374 2010-05-20  Andreas Schwab  <schwab@redhat.com>
25376         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
25378 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
25380         POWER7 optimizations.
25381         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
25382         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
25384 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
25386         * version.h: Update for 2.13 development version.
25388 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
25390         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
25391         exceptions.  Return 0.
25393 2010-05-07  Roland McGrath  <roland@redhat.com>
25395         * elf/ldconfig.c (main): Add a const.
25397 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
25399         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
25400         (args_options): Add no-idn option.
25401         (ahosts_keys_int): Add idn_flags to ai_flags.
25402         (parse_option): Handle 'i' option to clear idn_flags.
25404         * malloc/malloc.c (_int_free): Possible race in the most recently
25405         added check.  Only act on the data if no current modification
25406         happened.
25408 See ChangeLog.17 for earlier changes.