Hurd: Define some posix types
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2
3         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
4         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5         * streams/stropts.h (t_scalar_t): Define type.
6
7         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8         (_PATH_PRESERVE): Set to "/var/lib".
9         (_PATH_RWHODIR): Set to "/var/spool/rwho".
10
11         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
12         instead of int.
13
14         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
15         if __dir_mkfile succeeded.
16
17         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
18         checking for _hurd_dtablesize.  Unlock it right after having
19         finished _hurd_dtable allocation.
20
21 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
22
23         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
24         * sysdeps/mach/hurd/configure: Regenerated.
25         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
26         special-casing to...
27         * sysdeps/gnu/configure.in: ... this new file.
28         * sysdeps/unix/sysv/linux/configure: Regenerated.
29         * sysdeps/gnu/configure: New generated file.
30
31         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
32         for Linux: use nsec instead of usec, as well as:
33         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
34         members of type struct timespec.
35         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
36         New macros.
37         (struct stat64): Likewise.
38         (_STATBUF_ST_NSEC): New macro.
39         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
40
41         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
42         __strtoul_internal rather than strtoul.
43
44 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
45
46         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
47         and reject them.
48
49 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
50
51         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
52         which preserves existing values.
53         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
54
55 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
56
57         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
58         TIMEOUT values.  Return EINVAL for NFDS values either negative or
59         greater than FD_SETSIZE.
60
61 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62
63         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
64         allocated, call __vm_protect to finish enabling the existing space, and
65         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
66         allocate the remainder.
67
68 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69
70         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
71         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
72
73 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74
75         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
76         sysdeps/mach/hurd/readlink.c.
77
78         * posix/tst-sysconf.c (posix_options): Only use
79         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
80         _POSIX_SYNCHRONIZED_IO when they are defined
81         * sysdeps/mach/hurd/bits/posix_opt.h:
82         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
83         (_XOPEN_REALTIME): Undefine macro.
84         (_XOPEN_REALTIME_THREADS): Undefine macro.
85         (_XOPEN_SHM): Undefine macro.
86         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
87         macro to -1.
88         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
89         macro to -1.
90         (_POSIX_ASYNC_IO): Undefine macro.
91         (_POSIX_PRIORITIZED_IO): Undefine macro.
92         (_POSIX_SPIN_LOCKS): Define macro to -1.
93
94         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
95         SA_NODEFER, SA_RESETHAND.
96         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
97         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
98         F_DUPFD_CLOEXEC.
99
100 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
101
102         * elf/Makefile (pldd-modules): Define unconditionally.
103
104 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
105
106         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
107
108 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
109
110         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
111         Return ENOENT when name is empty.
112         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
113
114 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
115
116         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
117
118         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
119
120 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
121
122         Fix mlock in all cases except non-readable pages.
123         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
124         instead of VM_PROT_ALL as parameter to __vm_wire function.
125
126         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
127         (__mkdir): When path is `/', just fail with EEXIST.
128         * sysdeps/mach/hurd/mkdirat.c: Likewise.
129
130 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
131
132         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
133         <sys/uio.h> (for writev).
134         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
135         and <sys/param.h> (for MIN).
136
137 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
138
139         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
140         REQUESTED_TIME.  Properly set the remaining time and return EINTR
141         if interrupted.
142
143 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
144
145         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
146         Depend on against $(link-rpcuserlibs).
147
148 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
149
150         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
151         (__libc_stack_end): Do not use attribute_relro.
152         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
153         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
154         to libthread-provided value.
155         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
156         attribute_relro.
157
158 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
159
160         [BZ #3748]
161         * bits/libc-lock.h (__libc_once_get): New macro.
162         * sysdeps/mach/bits/libc-lock.h: Likewise.
163         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
164         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
165         instead of using implementation details.
166
167         * libio/fileops.c: Unconditionally include <kernel-features.h>.
168         * libio/freopen.c: Likewise.
169         * libio/freopen64.c: Likewise.
170         * misc/syslog.c: Likewise.
171         * nscd/connections.c: Likewise.
172         * nscd/netgroupcache.c: Likewise.
173         * sysdeps/posix/getcwd.c: Likewise.
174
175 2012-05-10  Roland McGrath  <roland@hack.frob.com>
176
177         * math/w_ilogbf.c: Add #include <limits.h>.
178
179 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
180
181         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
182         path instead of returning without unlocking.
183
184         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
185         immediate-write ioctls.
186         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
187
188 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
189
190         * sysdeps/mach/hurd/i386/init-first.c (init): Use
191         __builtin_frame_address instead of making assumptions about the
192         location of the return address relative to DATA.  Force early load of
193         the return address.
194         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
195         __builtin_frame_address.
196
197         dup3 for GNU Hurd.
198         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
199         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
200         implement dup3 and do some further code clean-ups.
201         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
202         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
203
204 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
205
206         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
207
208         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
209         HURD_CRITICAL_END around holding _hurd_dtable_lock.
210         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
211         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
212         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
213         d->port.lock.
214
215         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
216         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
217         when handler == SIG_ERR, not when handler != SIG_ERR.
218
219 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
220
221         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
222         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
223         definitions.
224
225         accept4 for GNU Hurd.
226         * include/sys/socket.h (__libc_accept4): New prototype.
227         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
228         to implement __libc_accept4.
229         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
230         __libc_accept4.
231         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
232
233         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
234         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
235         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
236         signal-defines.sym.
237
238 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
239
240         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
241
242 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
243
244         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
245         assertion on O_CLOEXEC flag.
246         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
247         * hurd/intern-fd.c: Likewise.
248         * hurd/port2fd.c: Likewise.
249
250 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
251
252         [BZ #3906]
253         * bits/in.h (IPV6_PKTINFO): Define new macro.
254         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
255
256 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
257
258         [BZ #13954]
259         [BZ #13955]
260         [BZ #13956]
261         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
262         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
263         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
264         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
265         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
266         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
267         * math/libm-test.inc (logb_test) : Additional logb tests.
268
269 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
270             Andreas Jaeger  <aj@suse.de>
271
272         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
273         * configure: Regenerated.
274         * config.h.in (LINK_OBSOLETE_RPC): New macro.
275         * config.make.in (link-obsolete-rpc): New substituted variable.
276         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
277         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
278         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
279         (shared-only-routines): Don't set it under [link-obsolete-rpc],
280         so that libc.a contains the symbols.
281         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
282         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
283         * sunrpc/auth_none.c: Likewise.
284         * sunrpc/auth_unix.c: Likewise.
285         * sunrpc/authdes_prot.c: Likewise.
286         * sunrpc/authuxprot.c: Likewise.
287         * sunrpc/clnt_gen.c: Likewise.
288         * sunrpc/clnt_perr.c: Likewise.
289         * sunrpc/clnt_raw.c: Likewise.
290         * sunrpc/clnt_simp.c: Likewise.
291         * sunrpc/clnt_tcp.c: Likewise.
292         * sunrpc/clnt_udp.c: Likewise.
293         * sunrpc/clnt_unix.c: Likewise.
294         * sunrpc/des_crypt.c: Likewise.
295         * sunrpc/des_soft.c: Likewise.
296         * sunrpc/get_myaddr.c: Likewise.
297         * sunrpc/key_call.c: Likewise.
298         * sunrpc/key_prot.c: Likewise.
299         * sunrpc/netname.c: Likewise.
300         * sunrpc/pm_getmaps.c: Likewise.
301         * sunrpc/pm_getport.c: Likewise.
302         * sunrpc/pmap_clnt.c: Likewise.
303         * sunrpc/pmap_prot.c: Likewise.
304         * sunrpc/pmap_prot2.c: Likewise.
305         * sunrpc/pmap_rmt.c: Likewise.
306         * sunrpc/publickey.c: Likewise.
307         * sunrpc/rpc_cmsg.c: Likewise.
308         * sunrpc/rpc_common.c: Likewise.
309         * sunrpc/rpc_dtable.c: Likewise.
310         * sunrpc/rpc_prot.c: Likewise.
311         * sunrpc/rpc_thread.c: Likewise.
312         * sunrpc/rtime.c: Likewise.
313         * sunrpc/svc.c: Likewise.
314         * sunrpc/svc_auth.c: Likewise.
315         * sunrpc/svc_raw.c: Likewise.
316         * sunrpc/svc_run.c: Likewise.
317         * sunrpc/svc_tcp.c: Likewise.
318         * sunrpc/svc_udp.c: Likewise.
319         * sunrpc/svc_unix.c: Likewise.
320         * sunrpc/svcauth_des.c: Likewise.
321         * sunrpc/xcrypt.c: Likewise.
322         * sunrpc/xdr.c: Likewise.
323         * sunrpc/xdr_array.c: Likewise.
324         * sunrpc/xdr_float.c: Likewise.
325         * sunrpc/xdr_intXX_t.c: Likewise.
326         * sunrpc/xdr_mem.c: Likewise.
327         * sunrpc/xdr_rec.c: Likewise.
328         * sunrpc/xdr_ref.c: Likewise.
329         * sunrpc/xdr_sizeof.c: Likewise.
330         * sunrpc/xdr_stdio.c: Likewise.
331
332 2012-05-10  Roland McGrath  <roland@hack.frob.com>
333
334         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
335         change.  Update copyright years.
336
337 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
338
339         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
340
341 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
342             Joseph Myers  <joseph@codesourcery.com>
343             Paul Pluzhnikov  <ppluzhnikov@google.com>
344
345         [BZ #14012]
346         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
347         requiring rpcgen.
348         [cross-compiling] (extra-libs): Likewise.
349         [cross-compiling] (extra-libs-others): Likewise.
350         [cross-compiling] (librpcsvc-routines): Likewise.
351         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
352         [cross-compiling] (omit-deps): Likewise.
353         (sunrpc-CPPFLAGS): New variable.
354         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
355         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
356         (cross-rpcgen-objs): New variable.
357         (extra-objs): Append $(cross-rpcgen-objs).
358         ($(cross-rpcgen-objs)): New rule.
359         ($(objpfx)cross-rpcgen): Likewise.
360         (rpcgen-cmd): Define to use $(built-program-file).  Expand
361         comment.
362         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
363         ($(objpfx)x%.stmp): Likewise.
364         * sunrpc/proto.h [IS_IN_build] (_): Define.
365         [IS_IN_build] (_libc_intl_domainname): Likewise.
366
367 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
368
369         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
370         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
371         and R_X86_64_TPOFF64.
372
373 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
374
375         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
376         sysdeps/unix/sysv/syscalls.list.
377         (stime): Likewise.
378         (utime): Likewise.
379         * sysdeps/unix/sysv/syscalls.list: Remove file.
380
381 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
382
383         [BZ #3440]
384         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
385         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
386         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
387         (__LC_IDENTIFICATION): Make these macros useful in #if
388         expressions, as required by C99.
389
390 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
391
392         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
393         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
394         after this.
395
396 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
397
398         * stdlib/longlong.h: Updated from GCC.
399
400 2012-05-09  Andreas Jaeger  <aj@suse.de>
401
402         * nscd/nscd.c (run_modes): Make named enum, reorder so that
403         default is first entry.
404         (run_mode): Set type.
405         (main): Remove informal message about syslog.
406         (options): Fix typo.
407
408         [BZ #14053]
409         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
410         to asm.
411         (lrint): Likewise.
412         (llrintf): Likewise.
413         (llrint): Likewise.
414         (rint): Likewise.
415         (rintf): Likewise.
416         (nearbyint): Likewise.
417         (nearbyintf): Likewise.
418
419 2012-05-09  Andreas Jaeger  <aj@suse.de>
420             Pedro Alves  <palves@redhat.com>
421
422         * nscd/nscd.c (run_mode): Use enum.
423         (main): Cleanup coding style issue.
424
425 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
426             Andreas Jaeger  <aj@suse.de>
427
428         * nscd/nscd.c (go_background): Replaced with...
429         (run_mode): ... this.
430         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
431         (options): Add -F --foreground.
432         (main): Implement it.
433         (parse_opt): Parse it.
434
435 2012-05-09  Andreas Jaeger  <aj@suse.de>
436
437         [BZ #14083]
438         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
439         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
440         -Wconversion warning.
441         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
442         Likewise.
443
444 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
445
446         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
447         == 0.
448         (LC_ALL): Use macro-int-constant.
449         (LC_COLLATE): Likewise.
450         (LC_CTYPE): Likewise.
451         (LC_MESSAGES): Likewise.
452         (LC_MONETARY): Likewise.
453         (LC_NUMERIC): Likewise.
454         (LC_TIME): Likewise.
455         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
456         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
457         [ISO || ISO99 || ISO11] (*_t): Do not allow.
458         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
459         Specify type.
460         [C99-based standards] (float_t): Expect type.
461         [C99-based standards] (double_t): Expect type.
462         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
463         type.
464         [C99-based standards] (HUGE_VALL): Likewise.
465         [C99-based standards] (INFINITY): Likewise.
466         [C99-based standards] (NAN): Likewise.
467         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
468         [C99-based standards] (FP_NAN): Likewise.
469         [C99-based standards] (FP_NORMAL): Likewise.
470         [C99-based standards] (FP_SUBNORMAL): Likewise.
471         [C99-based standards] (FP_ZERO): Likewise.
472         [C99-based standards] (FP_FAST_FMA): Use
473         optional-macro-int-constant.  Specify type.  Require == 1.
474         [C99-based standards] (FP_FAST_FMAF): Likewise.
475         [C99-based standards] (FP_FAST_FMAL): Likewise.
476         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
477         [C99-based standards] (FP_ILOGBNAN): Likewise.
478         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
479         Specify type.
480         [C99-based standards] (MATH_ERREXCEPT): Likewise.
481         [C99-based standards] (math_errhandling): Specify type.
482         [ISO99 || ISO11] (signgam): Do not allow.
483         [non-C99-based standards] (copysignf): Do not allow.
484         [non-C99-based standards] (exp2f): Likewise.
485         [non-C99-based standards] (log2f): Likewise.
486         [non-C99-based standards] (modff): Allow.
487         [non-C99-based standards] (erff): Do not allow.
488         [non-C99-based standards] (erfcf): Likewise.
489         [non-C99-based standards] (gammaf): Likewise.
490         [non-C99-based standards] (hypotf): Likewise.
491         [non-C99-based standards] (j0f): Likewise.
492         [non-C99-based standards] (j1f): Likewise.
493         [non-C99-based standards] (jnf): Likewise.
494         [non-C99-based standards] (lgammaf): Likewise.
495         [non-C99-based standards] (tgammaf): Likewise.
496         [non-C99-based standards] (y0f): Likewise.
497         [non-C99-based standards] (y1f): Likewise.
498         [non-C99-based standards] (ynf): Likewise.
499         [non-C99-based standards] (isnanf): Likewise.
500         [non-C99-based standards] (acoshf): Likewise.
501         [non-C99-based standards] (asinhf): Likewise.
502         [non-C99-based standards] (atanhf): Likewise.
503         [non-C99-based standards] (cbrtf): Likewise.
504         [non-C99-based standards] (expm1f): Likewise.
505         [non-C99-based standards] (ilogbf): Likewise.
506         [non-C99-based standards] (log1pf): Likewise.
507         [non-C99-based standards] (logbf): Likewise.
508         [non-C99-based standards] (nextafterf): Likewise.
509         [non-C99-based standards] (remainderf): Likewise.
510         [non-C99-based standards] (rintf): Likewise.
511         [non-C99-based standards] (scalbf): Likewise.
512         [non-C99-based standards] (copysignl): Likewise.
513         [non-C99-based standards] (exp2l): Likewise.
514         [non-C99-based standards] (log2l): Likewise.
515         [non-C99-based standards] (modfl): Allow.
516         [non-C99-based standards] (erfl): Do not allow.
517         [non-C99-based standards] (erfcl): Likewise.
518         [non-C99-based standards] (gammal): Likewise.
519         [non-C99-based standards] (hypotl): Likewise.
520         [non-C99-based standards] (j0l): Likewise.
521         [non-C99-based standards] (j1l): Likewise.
522         [non-C99-based standards] (jnl): Likewise.
523         [non-C99-based standards] (lgammal): Likewise.
524         [non-C99-based standards] (tgammal): Likewise.
525         [non-C99-based standards] (y0l): Likewise.
526         [non-C99-based standards] (y1l): Likewise.
527         [non-C99-based standards] (ynl): Likewise.
528         [non-C99-based standards] (isnanl): Likewise.
529         [non-C99-based standards] (acoshl): Likewise.
530         [non-C99-based standards] (asinhl): Likewise.
531         [non-C99-based standards] (atanhl): Likewise.
532         [non-C99-based standards] (cbrtl): Likewise.
533         [non-C99-based standards] (expm1l): Likewise.
534         [non-C99-based standards] (ilogbl): Likewise.
535         [non-C99-based standards] (log1pl): Likewise.
536         [non-C99-based standards] (logbl): Likewise.
537         [non-C99-based standards] (nextafterl): Likewise.
538         [non-C99-based standards] (remainderl): Likewise.
539         [non-C99-based standards] (rintl): Likewise.
540         [non-C99-based standards] (scalbl): Likewise.
541         [ISO || ISO99 || ISO11] (*_t): Do not allow.
542         [non-C99-based standards] (FP_*): Do not allow.
543         [C99-based standards] (FP_*): Change to
544         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
545         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
546         allow.
547         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
548         (SIG_ERR): Likewise.
549         [X/Open-based standards] (SIG_HOLD): Likewise.
550         (SIG_IGN): Likewise.
551         (SIGABRT): Use macro-int-constant.  Specify type.  Require
552         positive value.
553         (SIGFPE): Likewise.
554         (SIGILL): Likewise.
555         (SIGINT): Likewise.
556         (SIGSEGV): Likewise.
557         (SIGTER): Likewise.
558         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
559         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
560         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
561         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
562         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
563         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
564         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
565         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
566         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
567         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
568         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
569         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
570         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
571         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
572         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
573         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
574         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
575         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
576         [X/Open-based standards] (SIGTRAP): Likewise.
577         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
578         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
579         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
580         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
581         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
582         allow.
583
584 2012-05-08  Ian Wienand  <ianw@vmware.com>
585
586         [BZ #14080]
587         * time/tzset.c (__tzset_parse_tz): Update default rules for
588         daylight time changes in the Energy Policy Act of 2005.
589
590 2012-05-09  Andreas Jaeger  <aj@suse.de>
591
592         [BZ #13983]
593         * elf/ldconfig.c (parse_conf): Change string to make clear that
594         ldconfig only issued a warning if ld.so.conf does not exist.
595
596 2012-05-08  David S. Miller  <davem@davemloft.net>
597
598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
599         movxtod instead of popping the value on the stack.
600
601         * sysdeps/sparc/fpu/libm-test-ulps: Update.
602
603 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
604
605         * config.h.in: Add HAVE_ARM_PCS_VFP.
606
607 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
608
609         [BZ #13979]
610         * include/features.h: Warn if user requests __FORTIFY_SOURCE
611         checking but the checks are disabled for any reason.
612
613 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
614
615         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
616         and ELF64_R_TYPE with ELFW(R_TYPE).
617
618 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
619
620         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
621         (ulimit): Likewise.
622
623         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
624         (settimeofday): Likewise.
625
626 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
627
628         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
629         a struct th_u2 inside the union, and move tu_block/tu_code into
630         a new th_u3 union of tu_block/tu_code inside of that.  Move
631         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
632         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
633         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
634         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
635         (th_stuff): Change to th_u1.tu_stuff.
636         (th_data): Define.
637         (th_msg): Change to th_u1.th_u2.tu_data.
638
639 2012-05-07  David S. Miller  <davem@davemloft.net>
640
641         * sysdeps/sparc/fpu/libm-test-ulps: Update.
642
643         [BZ #14074]
644         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
645         (SETUP_PIC_REG): Use it.
646         (SETUP_PIC_REG_LEAF): Use it.
647
648 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
649
650         [BZ #13885]
651         [BZ #13923]
652         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
653         USE_AS_EXPM1L.
654         (EXPL_FINITE): Likewise.
655         (FLDLOG): Likewise.
656         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
657         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
658         e_expl.S.
659         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
660         USE_AS_EXPM1L.
661         (EXPL_FINITE): Likewise.
662         (FLDLOG): Likewise.
663         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
664         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
665         e_expl.S.
666         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
667         test of -max_value argument for long double.
668         * sysdeps/i386/fpu/libm-test-ulps: Update.
669         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
670
671 2012-05-06  David S. Miller  <davem@davemloft.net>
672
673         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
674         quad soft-float symbols whose references which are compiler
675         generated.
676         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
677
678 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
679
680         [BZ #13884]
681         [BZ #13914]
682         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
683         USE_AS_EXP10L.
684         (EXPL_FINITE): Likewise.
685         (FLDLOG): Likewise.
686         (c0): Likewise.
687         (c1): Likewise.
688         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
689         Adjust comments for base varying.
690         (__expl_finite): Change alias to EXPL_FINITE.
691         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
692         e_expl.S.
693         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
694         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
695         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
696         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
697         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
698         USE_AS_EXP10L.
699         (EXPL_FINITE): Likewise.
700         (FLDLOG): Likewise.
701         (c0): Likewise.
702         (c1): Likewise.
703         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
704         Adjust comments for base varying.
705         (__expl_finite): Change alias to EXPL_FINITE.
706         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
707         tests for bugs.
708         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
709
710         [BZ #14064]
711         * math/libm-test.inc (check_float_internal): Correct ulp
712         calculation for subnormal expected results.
713
714 2012-05-06  Andreas Jaeger  <aj@suse.de>
715
716         * Makeconfig (+math-flags): New, set to -frounding-math.
717         (+cflags): Add +math-flags so that all of glibc gets compiled with
718         it.
719
720         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
721
722 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
723
724         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
725         Disable one test.
726
727         [BZ #13787]
728         [BZ #13922]
729         [BZ #14036]
730         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
731         (__ieee754_expl): Allow for and saturate large arguments.
732         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
733         (u_threshold): Likewise.
734         (__exp): Call __ieee754_exp before checking for overflow and
735         underflow.
736         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
737         (u_threshold): Likewise.
738         (__expf): Call __ieee754_expf before checking for overflow and
739         underflow.
740         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
741         (u_threshold): Likewise.
742         (__expl): Call __ieee754_expl before checking for overflow and
743         underflow.
744         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
745         (__ieee754_expl): Allow for and saturate large arguments.
746         * math/libm-test.inc (exp_test): Add another test.  Do not allow
747         missing overflow exception on overflow.
748         (expm1_test): Do not allow missing overflow exception on overflow.
749
750         * sysdeps/i386/fpu/e_expl.c: Move to ...
751         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
752         rather than using inline asm.
753         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
754         * sysdeps/x86_64/fpu/e_expl.S: Copy from
755         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
756
757         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
758         (nice): Likewise.
759         (poll): Likewise.
760         (signal): Likewise.
761         (time): Likewise.
762         (times): Likewise.
763
764 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
765
766         * sysdeps/unix/syscalls.list (adjtime): Add entry from
767         sysdeps/unix/common/syscalls.list.
768         (fchmod): Likewise.
769         (fchown): Likewise.
770         (ftruncate): Likewise.
771         (getrusage): Likewise.
772         (gettimeofday): Likewise.
773         (setpgid): Likewise.
774         (setregid): Likewise.
775         (setreuid): Likewise.
776         (sigaction): Likewise.
777         (truncate): Likewise.
778         (vhangup): Likewise.
779         * sysdeps/unix/common/syscalls.list: Remove file.
780         * sysdeps/unix/bsd/Implies: Don't include unix/common.
781         * sysdeps/unix/sysv/linux/Implies: Likewise.
782
783 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
784
785         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
786         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
787         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
788         Moved to ...
789         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
790         Here.
791         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
792         to ...
793         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
794         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
795         to ...
796         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
797         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
798         to ...
799         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
800         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
801         to ...
802         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
803         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
804         to ...
805         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
806         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
807         to ...
808         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
809         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
810         to ...
811         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
812         Here.
813         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
814         to ...
815         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
816         Here.
817         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
818         to ...
819         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
820         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
821         Moved to ...
822         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
823         Here.
824         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
825         to ...
826         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
827
828 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
829
830         * sysdeps/unix/common/bits/dirent.h: Remove file.
831         * sysdeps/unix/common/bits/fcntl.h: Likewise.
832
833         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
834         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
835         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
836         * sysdeps/unix/bsd/isatty.c: Likewise.
837         * sysdeps/unix/bsd/tcdrain.c: Likewise.
838         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
839         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
840
841 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
842
843         [BZ #13563]
844         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
845         long double comparison inaccuracies.
846         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
847         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
848
849 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
850
851         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
852         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
853
854 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
855
856         [BZ #14049]
857         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
858         nonzero digits before rounding a hex value.
859         * stdlib/tst-strtod.c (tests): Add another test.
860
861 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
862
863         * sysdeps/s390/fpu/libm-test-ulps: Update.
864
865 2012-05-03  Andreas Jaeger  <aj@suse.de>
866
867         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
868         does not get optimized out.
869         (malloc_opt_barrier): New.
870
871 2012-05-03  Andreas Jaeger  <aj@suse.de>
872             Roland McGrath  <roland@hack.frob.com>
873
874         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
875         intermediate file deletion.
876         (generated): Add .symlist files.
877
878 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
879
880         [BZ #13775]
881         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
882         Redirect under this condition.
883         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
884         [__USE_GNU] (__dprintf_chk): Not under this condition.
885         [__USE_GNU] (__vdprintf_chk): Likewise.
886         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
887         under this condition.
888         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
889         [__USE_XOPEN2K8] (dprintf): Define under this condition.
890         [__USE_XOPEN2K8] (vdprintf): Likewise.
891         [__USE_GNU] (__dprintf_chk): Not under this condition.
892         [__USE_GNU] (__vdprintf_chk): Likewise.
893         [__USE_GNU] (dprintf): Likewise.
894         [__USE_GNU] (vdprintf): Likewise.
895
896 2012-05-03  Roland McGrath  <roland@hack.frob.com>
897
898         * elf/Makefile (common-generated): Set this instead of generated for
899         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
900         $(all-built-dso)-derived lists.
901
902 2012-05-03  Andreas Jaeger  <aj@suse.de>
903
904         * sysdeps/i386/fpu/libm-test-ulps: Update.
905
906         * FAQ: Removed.
907         * FAQ.in: Likewise.
908         * scripts/gen-FAQ.pl: Likewise.
909         * manual/install.texi (Installation): Point to online location of
910         FAQ.
911         * Makefile (files-for-dist): Remove FAQ.
912         (FAQ): Remove.
913
914 2012-05-02  Allan McRae  <allan@archlinux.org>
915
916         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
917         (LDFLAGS-reldepmod5.so): Likewise.
918         (LDFLAGS-reldep6mod1.so): Likewise.
919         (LDFLAGS-reldep6mod4.so): Likewise.
920         (LDFLAGS-reldep8mod3.so): Likewise.
921         (LDFLAGS-unload4mod1.so): Likewise.
922         (LDFLAGS-unload4mod2.so): Likewise.
923         (LDFLAGS-tst-initorder): Likewise.
924         (LDFLAGS-tst-initordera2.so): Likewise.
925         (LDFLAGS-tst-initordera3.so): Likewise.
926         (LDFLAGS-tst-initordera4.so): Likewise.
927         (LDFLAGS-tst-initorderb2.so): Likewise.
928         (LDFLAGS-noload): Likewise.
929         (LDFLAGS-next): Likewise.
930         (LDFLAGS-order2mod1.so): Likewise.
931         (LDFLAGS-order2mod2.so): Likewise.
932         (LDFLAGS-tst-initorder2): Likewise.
933         (LDFLAGS-tst-initorder2a.so): Likewise.
934         (LDFLAGS-tst-initorder2b.so): Likewise.
935         (LDFLAGS-tst-initorder2c.so): Likewise.
936         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
937
938 2012-05-02  David S. Miller  <davem@davemloft.net>
939
940         * sysdeps/sparc/fpu/libm-test-ulps: Update.
941
942 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
943
944         [BZ #14055]
945         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
946
947 2012-05-02  Andreas Jaeger  <aj@suse.de>
948
949         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
950         since we manipulate rounding mode.
951         (CPPFLAGS-test-idouble.c): Likewise.
952         (CPPFLAGS-test-ifloat.c): Likewise.
953         (CFLAGS-test-ldouble.c): Likewise.
954         (CFLAGS-test-double.c): Likewise.
955         (CFLAGS-test-float.c): Likewise.
956         (CFLAGS-test-misc.c): Likewise.
957         (CFLAGS-test-test-fenv.c): Likewise.
958
959 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
960
961         [BZ #2550]
962         [BZ #2570]
963         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
964         comparisons to determine direction to adjust input.
965
966 2012-05-01  Roland McGrath  <roland@hack.frob.com>
967
968         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
969         output to the target.
970
971         * scripts/localplt.awk: New file.
972         * elf/Makefile ($(objpfx)check-localplt): Target removed.
973         (check-localplt-CFLAGS): Variable removed.
974         ($(all-built-dso:=.jmprel)): New static pattern rule.
975         (generated): Add those targets.
976         (localplt-built-dso): New variable.
977         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
978
979         * elf/check-localplt.c: File removed.
980
981         * scripts/check-execstack.awk: New file.
982         * elf/Makefile ($(objpfx)check-execstack): Target removed.
983         (check-execstack-CFLAGS): Variable removed.
984         ($(objpfx)check-execstack.h): Target removed.
985         ($(objpfx)execstack-default): New target.
986         (generated): Add that instead of check-execstack.h.
987         ($(all-built-dso:=.phdr)): New static pattern rule.
988         (generated): Add those targets.
989         * elf/check-execstack.c: File removed.
990
991         * scripts/check-textrel.awk: New file.
992         * elf/Makefile ($(objpfx)check-textrel): Target removed.
993         (check-textrel-CFLAGS): Variable removed.
994         (all-built-dso): Use := to define.o
995         ($(all-built-dso:=.dyn)): New static pattern rule.
996         (generated): Add those targets.
997         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
998         * config.make.in (READELF): New substituted variable.
999         * elf/check-textrel.c: File removed.
1000
1001 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
1002
1003         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1004         allow.
1005         * conform/data/ctype.h-data [C99-based standards] (isblank):
1006         Expect function.
1007         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
1008         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
1009         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1010         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
1011         Specify type.  Require positive value.
1012         (EILSEQ): Likewise.
1013         (ERANGE): Likewise.
1014         [ISO || POSIX] (EILSEQ): Do not expect.
1015         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
1016         Specify type.  Require positive value.
1017         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
1018         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
1019         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
1020         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
1021         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
1022         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
1023         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
1024         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
1025         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
1026         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
1027         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
1028         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
1029         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
1030         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
1031         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
1032         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
1033         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
1034         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
1035         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
1036         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
1037         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
1038         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
1039         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
1040         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
1041         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
1042         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
1043         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
1044         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
1045         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
1046         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
1047         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
1048         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
1049         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
1050         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
1051         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
1052         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
1053         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
1054         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
1055         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
1056         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
1057         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
1058         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
1059         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
1060         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
1061         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
1062         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
1063         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
1064         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
1065         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
1066         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
1067         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
1068         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
1069         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
1070         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
1071         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
1072         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
1073         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
1074         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
1075         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
1076         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
1077         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
1078         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
1079         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
1080         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
1081         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
1082         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
1083         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
1084         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
1085         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
1086         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
1087         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
1088         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
1089         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
1090         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
1091         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
1092         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
1093         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
1094         Require >= 2.
1095         (FLT_ROUNDS): Expect as macro, not constant.
1096         (FLT_MANT_DIG): Use macro-int-constant.
1097         (DBL_MANT_DIG): Likewise.
1098         (LDBL_MANT_DIG): Likewise.
1099         (FLT_DIG): Likewise.
1100         (DBL_DIG): Likewise.
1101         (LDBL_DIG): Likewise.
1102         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
1103         (DBL_MIN_EXP): Likewise.
1104         (LDBL_MIN_EXP): Likewise.
1105         (FLT_MAX_EXP): Use macro-int-constant.
1106         (DBL_MAX_EXP): Likewise.
1107         (LDBL_MAX_EXP): Likewise.
1108         (FLT_MAX_10_EXP): Likewise.
1109         (DBL_MAX_10_EXP): Likewise.
1110         (LDBL_MAX_10_EXP): Likewise.
1111         (FLT_MAX): Use macro-constant.
1112         (DBL_MAX): Likewise.
1113         (LDBL_MAX): Likewise.
1114         (FLT_EPSILON): Use macro-constant.  Give upper bound.
1115         (DBL_EPSILON): Likewise.
1116         (LDBL_EPSILON): Likewise.
1117         (FLT_MIN): Likewise.
1118         (DBL_MIN): Likewise.
1119         (LDBL_MIN): Likewise.
1120         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
1121         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
1122         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
1123         [ISO11] (FLT_HAS_SUBNORM): Likewise.
1124         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
1125         [ISO11] (DBL_DECIMAL_DIG): Likewise.
1126         [ISO11] (FLT_DECIMAL_DIG): Likewise.
1127         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
1128         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
1129         [ISO11] (FLT_TRUE_MIN): Likewise.
1130         [ISO11] (LDBL_TRUE_MIN): Likewise.
1131         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1132         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
1133         (SCHAR_MIN): Use macro-int-constant.  Specify type.
1134         (SCHAR_MAX): Likewise.
1135         (UCHAR_MAX): Likewise.
1136         (CHAR_MIN): Likewise.
1137         (CHAR_MAX): Likewise.
1138         (MB_LEN_MAX): Use macro-int-constant.
1139         (SHRT_MIN): Use macro-int-constant.  Specify type.
1140         (SHRT_MAX): Likewise.
1141         (USHRT_MAX): Likewise.
1142         (INT_MAX): Likewise.
1143         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
1144         bound negative.
1145         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
1146         bound with "U".
1147         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
1148         bound with "L".
1149         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
1150         bound negative.  Suffix upper bound with "L".
1151         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
1152         bound with "UL".
1153         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
1154         Specify type.
1155         [C99-based standards] (LLONG_MAX): Likewise.
1156         [C99-based standards] (ULLONG_MAX): Likewise.
1157         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
1158         == 0.
1159         [ISO11] (max_align_t): Require type.
1160         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1161
1162         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
1163         from $CFLAGS, without defining away __attribute__ calls.
1164         (checknamespace): Use $CFLAGS_namespace.
1165
1166         * conform/conformtest.pl (@keywords): Only include C99 keywords
1167         for standards based on C99 or C11.
1168
1169         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
1170         Disable tests.
1171         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
1172         UNIX98]: Likewise.
1173
1174         * conform/conformtest.pl: Handle "macro-int-constant" and test for
1175         usability of symbols in #if.
1176
1177         * conform/conformtest.pl: If macro or constant types start
1178         "promoted:", expect the symbol to be of the following type
1179         promoted by the integer promotions.
1180
1181         * conform/conformtest.pl: Parse all "constant" and "macro" lines
1182         in one place.  Also handle "macro-constant".
1183
1184         * conform/conformtest.pl: Only accept expected macro values with
1185         "==".  Parse all "macro" lines in one place.
1186         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
1187
1188         * conform/conformtest.pl: Handle braced types on "constant" lines
1189         instead of handling "typed-constant".
1190         * conform/data/signal.h-data: Use "constant" instead of
1191         "typed-constant".
1192
1193         * conform/conformtest.pl: Handle "optional-" at start of lines in
1194         one place rather than duplicating several cases.  Handle each
1195         format of "macro" line with initial "optional-".
1196
1197         * conform/conformtest.pl: Only accept expected constant or
1198         optional-constant values with "==".  Parse all "constant" lines in
1199         one place.  Parse all "optional-constant" lines in one place.
1200         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
1201         * conform/data/fmtmsg.h-data: Likewise.
1202         * conform/data/netinet/in.h-data: Likewise.
1203         * conform/data/tar.h-data: Likewise.
1204         * conform/data/limits.h-data: Use "==" form on "constant" and
1205         "optional-constant" lines.
1206
1207         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
1208         Use -std=c99 for XOPEN2K.
1209         (@knownproblems): Remove.
1210         (newtoken): Don't check %isknown.
1211
1212         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
1213         Do not expect macro.
1214         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
1215         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
1216         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
1217         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
1218         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
1219         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
1220         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
1221         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
1222         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
1223         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
1224         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
1225         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
1226         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
1227         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
1228         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
1229         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
1230         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
1231         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
1232         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
1233         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
1234         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
1235         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
1236         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
1237         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
1238         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
1239         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
1240         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
1241         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
1242         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
1243         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
1244         [XPG3] (acosh): Likewise.
1245         [XPG3] (asinh): Likewise.
1246         [XPG3] (atanh): Likewise.
1247         [XPG3] (cbrt): Likewise.
1248         [XPG3] (expm1): Likewise.
1249         [XPG3] (ilogb): Likewise.
1250         [XPG3] (log1p): Likewise.
1251         [XPG3] (logb): Likewise.
1252         [XPG3] (nextafter): Likewise.
1253         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
1254         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
1255         [XPG3] (remainder): Likewise.
1256         [XPG3] (rint): Likewise.
1257         [XPG3 || XPG4 || UNIX98] (round): Likewise.
1258         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
1259         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
1260         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
1261         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
1262         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
1263         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
1264         [UNIX98 || XOPEN2K] (scalb): Expect.
1265         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
1266         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
1267         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
1268         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
1269         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
1270         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
1271         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
1272         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
1273         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
1274         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
1275         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
1276         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
1277         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
1278         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
1279         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
1280         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
1281         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
1282         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
1283         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
1284         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
1285         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
1286         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
1287         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
1288         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
1289         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
1290         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
1291         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
1292         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
1293         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
1294         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
1295         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
1296         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
1297         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
1298         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
1299         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
1300         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
1301         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
1302         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
1303         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
1304         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
1305         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
1306         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
1307         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
1308         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
1309         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
1310         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
1311         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
1312         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
1313         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
1314         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
1315         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
1316         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
1317         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
1318         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
1319         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
1320         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
1321         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
1322         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
1323         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
1324         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
1325         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
1326         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
1327         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
1328         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
1329         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
1330         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
1331         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
1332         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
1333         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
1334         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
1335         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
1336         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
1337         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
1338         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
1339         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
1340         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
1341         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
1342         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
1343         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
1344         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
1345         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
1346         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
1347         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
1348         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
1349         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
1350         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
1351         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
1352         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
1353         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
1354         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
1355         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
1356         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
1357         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
1358         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
1359         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
1360         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
1361         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
1362         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
1363         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
1364         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
1365         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
1366         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
1367         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
1368         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
1369         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
1370         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
1371         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
1372         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
1373         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
1374         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
1375         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
1376         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
1377         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
1378         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
1379         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
1380         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
1381         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
1382         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
1383         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
1384         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
1385         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
1386         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
1387         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
1388         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
1389         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
1390         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
1391         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
1392         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
1393         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
1394         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
1395         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
1396         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
1397         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
1398         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
1399         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
1400         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
1401         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
1402
1403         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
1404         _XOPEN_SOURCE_EXTENDED for XPG4.
1405
1406         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
1407
1408         * Makeconfig (localtime): Remove variable.
1409         (inst_localtime-file): Likewise.
1410
1411 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
1412
1413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
1414         Update.
1415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1416         Update.
1417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
1418         Update.
1419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
1420         Update.
1421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
1422         Update.
1423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
1424         Update.
1425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1426         Update.
1427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
1428         Update.
1429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
1430         Update.
1431
1432 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
1433
1434         [BZ #2550]
1435         [BZ #2570]
1436         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
1437         comparisons to determine direction to adjust input.
1438         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
1439         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
1440         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
1441         Likewise.
1442         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
1443         Likewise.
1444         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
1445         Likewise.
1446         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
1447         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
1448         Likewise.
1449         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
1450         Likewise.
1451         * math/libm-test.inc (nexttoward_test): Add more tests.
1452
1453 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
1454
1455         [BZ #14040]
1456         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
1457         in version GLIBC_2.1, not GLIBC_2.0.
1458         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
1459         Likewise.
1460
1461 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
1462
1463         [BZ #13942]
1464         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
1465         (1 - x) * (1 + x).
1466         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
1467         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
1468         * math/libm-test.inc (acos_test): Add more tests.
1469         (asin_test): Likewise.
1470         * sysdeps/i386/fpu/libm-test-ulps: Update.
1471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1472
1473         [BZ #14034]
1474         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
1475         of square root.
1476         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
1477         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
1478         * math/libm-test.inc (acos_test_tonearest): New function.
1479         (acos_test_towardzero): Likewise.
1480         (acos_test_downward): Likewise.
1481         (acos_test_upward): Likewise.
1482         (asin_test_tonearest): Likewise.
1483         (asin_test_towardzero): Likewise.
1484         (asin_test_downward): Likewise.
1485         (asin_test_upward): Likewise.
1486         (main): Call the new functions.
1487         * sysdeps/i386/fpu/libm-test-ulps: Update.
1488         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1489
1490         [BZ #13884]
1491         [BZ #13924]
1492         * math/e_exp10.c: Include <float.h>.
1493         (__ieee754_exp10): Handle underflow here rather than multiplying
1494         large negative argument by M_LN10.
1495         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
1496         of __ieee754_expf.
1497         * math/e_exp10l.c: Include <float.h>.
1498         (__ieee754_exp10l): Handle underflow here rather than multiplying
1499         large negative argument by M_LN10l.
1500         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
1501         spurious overflow exception on underflow.
1502
1503 2012-04-29  Marek Polacek  <polacek@redhat.com>
1504
1505         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
1506         (__fortify_function): New macro.
1507         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
1508         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
1509         __extern_always_inline.
1510         * libio/bits/stdio2.h: Likewise.
1511         * libio/bits/stdio.h: Likewise.
1512         * string/string.h: Likewise.
1513         * string/bits/string3.h: Likewise.
1514         * include/stdio.h: Likewise.
1515         * stdlib/bits/stdlib.h: Likewise.
1516         * stdlib/stdlib.h: Likewise.
1517         * rt/bits/mqueue2.h: Likewise.
1518         * rt/mqueue.h: Likewise.
1519         * posix/bits/unistd.h: Likewise.
1520         * posix/unistd.h: Likewise.
1521         * io/bits/poll2.h: Likewise.
1522         * io/bits/fcntl2.h: Likewise.
1523         * io/fcntl.h: Likewise.
1524         * io/sys/poll.h: Likewise.
1525         * misc/bits/syslog.h: Likewise.
1526         * misc/bits/syslog-ldbl.h: Likewise.
1527         * misc/sys/syslog.h: Likewise.
1528         * socket/bits/socket2.h: Likewise.
1529         * socket/sys/socket.h: Likewise.
1530         * debug/tst-chk1.c: Likewise.
1531         * wcsmbs/bits/wchar2.h: Likewise.
1532         * wcsmbs/bits/wchar-ldbl.h: Likewise.
1533         * wcsmbs/wchar.h: Likewise.
1534
1535 2012-04-29  Andreas Jaeger  <aj@suse.de>
1536
1537         * Makerules (tests): Remove enable-check-abi protection.
1538         (check-abi-warn): Remove.
1539         (check-abi-%): Remove check-abi-warn usage.
1540
1541         * configure.in: Remove check-abi configure option.
1542         * configure: Regenerated.
1543         * config.make.in (enable-check-abi): Remove.
1544
1545 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
1546
1547         [BZ #14033]
1548         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
1549         double functions to double *_finite functions.
1550
1551         [BZ #13941]
1552         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
1553         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
1554         LDBL_MIN_EXP.
1555         * stdio-common/Makefile (tests): Add tst-sprintf3.
1556         * stdio-common/tst-sprintf3.c: New file.
1557
1558         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
1559         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
1560
1561 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
1562
1563         * conform/conformtest.pl: Remove duplicate typed-constant
1564         handling.
1565
1566 2012-04-28  David S. Miller  <davem@davemloft.net>
1567
1568         * Makerules (%.abilist): Add vpath on sysdep_dirs.
1569         (check-abi-%): Remove AWK script prerequisite and explicit
1570         abilist directory.
1571         (check-abi): Rewrite to just diff the symlist with the abilist.
1572         (config-tls, config-abi-config): Delete, no longer used.
1573         (update-abi-%): Remove AWK script and explicit abilist directory.
1574         (update-abi): Rewrite to simply compare and conditionally copy the
1575         symlist and the sysdep abilist file.  Remove update-abi-config
1576         checks.
1577         * abilist/ld.abilist: Remove.
1578         * abilist/libBrokenLocale.abilist: Remove.
1579         * abilist/libanl.abilist: Remove.
1580         * abilist/libcrypt.abilist: Remove.
1581         * abilist/libdl.abilist: Remove.
1582         * abilist/librt.abilist: Remove.
1583         * abilist/libthread_db.abilist: Remove.
1584         * abilist/libutil.abilist: Remove.
1585         * scripts/extract-abilist.awk: Remove.
1586         * scripts/merge-abilist.awk: Remove.
1587         * sysdeps/generic/libcidn.abilist: New file.
1588         * sysdeps/generic/libnss_compat.abilist: New file.
1589         * sysdeps/generic/libnss_db.abilist: New file.
1590         * sysdeps/generic/libnss_dns.abilist: New file.
1591         * sysdeps/generic/libnss_files.abilist: New file.
1592         * sysdeps/generic/libnss_hesiod.abilist: New file.
1593         * sysdeps/generic/libnss_nis.abilist: New file.
1594         * sysdeps/generic/libnss_nisplus.abilist: New file.
1595         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
1596         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
1597         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
1598         file.
1599         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
1600         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
1601         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
1602         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
1603         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
1604         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
1605         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
1606         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
1607         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
1608         file.
1609         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
1610         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
1611         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
1612         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
1613         file.
1614         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
1615         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
1616         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
1617         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
1618         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
1619         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
1620         file.
1621         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
1622         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
1623         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
1624         file.
1625         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
1626         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
1627         New file.
1628         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
1629         New file.
1630         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
1631         New file.
1632         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
1633         New file.
1634         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
1635         New file.
1636         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
1637         New file.
1638         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
1639         New file.
1640         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
1641         New file.
1642         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
1643         New file.
1644         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
1645         New file.
1646         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
1647         New file.
1648         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
1649         New file.
1650         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
1651         New file.
1652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
1653         file.
1654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
1655         New file.
1656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
1657         New file.
1658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
1659         file.
1660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
1661         New file.
1662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
1663         New file.
1664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
1665         file.
1666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
1667         New file.
1668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
1669         New file.
1670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
1671         New file.
1672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
1673         New file.
1674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
1675         New file.
1676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
1677         New file.
1678         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
1679         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
1680         file.
1681         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
1682         New file.
1683         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
1684         file.
1685         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
1686         file.
1687         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
1688         file.
1689         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
1690         file.
1691         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
1692         file.
1693         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
1694         New file.
1695         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
1696         file.
1697         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
1698         file.
1699         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
1700         New file.
1701         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
1702         file.
1703         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
1704         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
1705         file.
1706         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
1707         New file.
1708         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
1709         file.
1710         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
1711         file.
1712         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
1713         file.
1714         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
1715         file.
1716         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
1717         file.
1718         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
1719         New file.
1720         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
1721         file.
1722         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
1723         file.
1724         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
1725         New file.
1726         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
1727         file.
1728         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
1729         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
1730         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
1731         file.
1732         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
1733         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
1734         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
1735         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
1736         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
1737         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
1738         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
1739         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
1740         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
1741         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
1742         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
1743         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
1744         file.
1745         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
1746         New file.
1747         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
1748         file.
1749         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
1750         file.
1751         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
1752         file.
1753         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
1754         file.
1755         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
1756         file.
1757         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
1758         New file.
1759         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
1760         New file.
1761         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
1762         file.
1763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
1764         New file.
1765         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
1766         file.
1767         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
1768         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
1769         file.
1770         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
1771         New file.
1772         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
1773         file.
1774         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
1775         file.
1776         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
1777         file.
1778         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
1779         file.
1780         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
1781         file.
1782         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
1783         New file.
1784         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
1785         New file.
1786         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
1787         file.
1788         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
1789         New file.
1790         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
1791         file.
1792
1793 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
1794
1795         * conform/conformtest.pl: Fix typo in handling typed-constant from
1796         allow-header.
1797
1798 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
1799
1800         * README: Cut down references to pre-2.6 Linux kernels and
1801         Linuxthreads.  Update lists of configurations in libc and ports
1802         and sort alphabetically.  Say "or newer" with Linux kernel version
1803         requirements.
1804
1805         * config.h.in [IS_IN_build]: Allow compiling without optimization.
1806
1807 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1808
1809         [BZ #887]
1810         * math/libm-test.inc (logb_test_downward): New test to expose
1811         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
1812         rounding mode.
1813
1814 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
1815
1816         [BZ #14027]
1817         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
1818         to be done.
1819         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
1820         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
1821
1822 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
1823
1824         * sysdeps/unix/i386/brk.S: Remove file.
1825         * sysdeps/unix/i386/dl-brk.S: Likewise.
1826         * sysdeps/unix/i386/pipe.S: Likewise.
1827         * sysdeps/unix/i386/sigreturn.S: Likewise.
1828         * sysdeps/unix/i386/syscall.S: Likewise.
1829         * sysdeps/unix/i386/vfork.S: Likewise.
1830         * sysdeps/unix/i386/wait.S: Likewise.
1831
1832         * sysdeps/unix/common/tcsendbrk.c: Move to ...
1833         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
1834
1835         * configure.in (arm*-none*): Do not allow without
1836         --enable-hacker-mode.
1837         (netbsd*): Remove case setting base_os.
1838         (386bsd*): Likewise.
1839         (freebsd*): Likewise.
1840         (bsdi*): Likewise.
1841         (osf*): Likewise.
1842         (sunos*): Likewise.
1843         (ultrix*): Likewise.
1844         (newsos*): Likewise.
1845         (dynix*): Likewise.
1846         (*bsd*): Likewise.
1847         (sysv*): Likewise.
1848         (isc*): Likewise.
1849         (esix*): Likewise.
1850         (sco*): Likewise.
1851         (minix*): Likewise.
1852         (irix4*): Likewise.
1853         (irix6*): Likewise.
1854         (solaris[2-9]*): Likewise.
1855         (none): Likewise.
1856         * configure: Regenerated.
1857
1858 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1859
1860         [BZ #11521]
1861         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
1862         overflow or cancellation in calculating denominator.
1863         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
1864         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
1865         down expression to avoid unexpected rounding in newer GCCs.
1866         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
1867
1868 2012-04-26  David S. Miller  <davem@davemloft.net>
1869
1870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
1871         long-double compat symbols.
1872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
1876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1877         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
1878         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
1879         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
1880         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
1881         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
1882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
1883         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
1884         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
1885
1886 2012-04-25  David S. Miller  <davem@davemloft.net>
1887
1888         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
1889         HWCAP_* values only after the memory barriers have been defined.
1890         (atomic_full_barrier): Define.
1891         (atomic_read_barrier): Define.
1892         (atomic_write_barrier): Define.
1893
1894 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1895
1896         * shlib-versions: Add libgcc_s version information.
1897         * sysdeps/generic/libgcc_s.h: Remove.
1898         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
1899         libgcc_s.h.
1900         * sysdeps/gnu/unwind-resume.c: Likewise.
1901         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
1902
1903 2012-04-25  David S. Miller  <davem@davemloft.net>
1904
1905         * sysdeps/unix/sparc/brk.S: Delete.
1906         * sysdeps/unix/sparc/dl-brk.S: Delete.
1907         * sysdeps/unix/sparc/pipe.S: Delete.
1908         * sysdeps/unix/sparc/sysdep.S: Delete.
1909         * sysdeps/unix/sparc/sysdep.h: Delete.
1910         * sysdeps/unix/sparc/vfork.S: Delete.
1911         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
1912         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
1913         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
1914         ret_ERRVAL, r0, r1, MOVE): Define.
1915         (JUMPTARGET): Remove.
1916         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
1917         sysdeps/unix/sparc/sysdep.h
1918         (ENTRY, END): Remove.
1919         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1920
1921 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
1922
1923         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
1924         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
1925         -DIS_IN_build.
1926
1927         * timezone/README: Update upstream location and email address for
1928         tzcode and tzdata.
1929         * timezone/zdump.c: Update from tzcode 2012b.
1930         * timezone/zic.c: Likewise.
1931
1932         * configure.in (libc_cv_as_needed): Remove test.
1933         * configure: Regenerated.
1934         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
1935         conditional definition.
1936         [$(have-as-needed) != yes] (no-as-needed): Likewise.
1937         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
1938         * config.make.in (have-as-needed): Remove variable.
1939
1940 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1941             Paul Pluzhnikov  <ppluzhnikov@google.com>
1942
1943         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
1944         strings correctly.
1945
1946 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
1947
1948         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
1949         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
1950         * sysdeps/sh/strlen.S: Likewise.
1951
1952 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1953
1954         * sysdeps/unix/fork.S: Remove file.
1955         * sysdeps/unix/i386/fork.S: Likewise.
1956         * sysdeps/unix/sparc/fork.S: Likewise.
1957
1958         * sysdeps/unix/system.c: Remove file.
1959         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
1960
1961         * sysdeps/unix/getegid.S: Remove file.
1962         * sysdeps/unix/geteuid.S: Likewise.
1963
1964 2012-04-24  Roland McGrath  <roland@hack.frob.com>
1965
1966         * scripts/check-localplt.awk: New file.
1967         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
1968         of diff.
1969         * scripts/data/localplt-generic.data: Add a comment.
1970
1971         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
1972         NODE when __dir_mkfile failed.
1973         * sysdeps/mach/hurd/symlinkat.c: Likewise.
1974         Reported by Ludovic Courtès <ludo@gnu.org>.
1975
1976 2012-04-24  Andreas Jaeger  <aj@suse.de>
1977
1978         * Makerules (common-clean): Also remove gen-as-const-headers
1979         files.
1980
1981 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1982
1983         * Makerules (native-compile): Do not change working directory for
1984         build.  Use $(OUTPUT_OPTION) in command.
1985         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
1986
1987 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1988
1989         [BZ #13886]
1990         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
1991         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
1992         * math/libm-test.inc (floor_test): Add more tests.
1993         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
1994
1995 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1996
1997         * sysdeps/unix/getdents.c: Remove file.
1998         * sysdeps/unix/sysv/getdents.c: Likewise.
1999         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
2000
2001         * sysdeps/unix/syscalls.list (madvise): Add syscall from
2002         sysdeps/unix/mman/syscalls.list.
2003         (mmap): Likewise.
2004         (mprotect): Likewise.
2005         (msync): Likewise.
2006         (munmap): Likewise.
2007         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
2008         * sysdeps/unix/mman/syscalls.list: Remove.
2009         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
2010
2011         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
2012         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
2013         * configure: Regenerated.
2014         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
2015         $(libgcc_s_suffix).
2016         * config.make.in (libgcc_s_suffix): Remove variable.
2017
2018 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
2019
2020         * sysdeps/unix/sysv/gethostname.c: Move to ...
2021         * sysdeps/posix/gethostname.c: ... here.
2022
2023         * sysdeps/unix/execve.S: Remove file.
2024
2025         * sysdeps/unix/_exit.S: Remove file.
2026
2027 2012-04-23  Andreas Jaeger  <aj@suse.de>
2028
2029         [BZ #13739]
2030         * manual/Makefile: Remove make dist support, there's no
2031         need for a stand-alone documentation tar ball.
2032         (TEXI2DVI): Define always, it's not in Makeconfig.
2033         (dist): Removed.
2034         (tar-it): Removed.
2035         (edition): Removed.
2036         (glibc-doc-$(edition).tar): Removed
2037         (%.Z): Removed.
2038         (%.gz): Removed.
2039         (%.uu): Removed.
2040         (ETAGS): Remove, it's in Makeconfig.
2041         (move-if-change): Remove, it's in Makeconfig.
2042
2043 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
2044
2045         [BZ #13970]
2046         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
2047         (strtod, strtof, strtold, strtol, strtoul, strtoq)
2048         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
2049         (strtod_l, strtof_l, strtold_l): Remove __wur.
2050         It is not necessarily an error to ignore strtol's return value.
2051         One can reliably look at the stored endptr to decide whether
2052         the number had valid syntax.
2053
2054 2012-04-21  Andreas Jaeger  <aj@suse.de>
2055
2056         [BZ #13739]
2057         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
2058
2059 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
2060
2061         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
2062         * sysdeps/unix/sysv/Versions: Remove file.
2063
2064 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
2065
2066         [BZ #13927]
2067         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2068
2069 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
2070
2071         [BZ #7064]
2072         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
2073         version from __vm86.
2074
2075 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
2076
2077         * sysdeps/unix/common/lxstat.c: Remove file.
2078         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
2079
2080         * sysdeps/unix/sysv/Makefile: Remove file.
2081
2082         * sysdeps/unix/sysv/direct.h: Remove file.
2083
2084         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
2085         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
2086         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
2087         * sysdeps/unix/sysv/bits/signum.h: Likewise.
2088         * sysdeps/unix/sysv/bits/stat.h: Likewise.
2089         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
2090         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
2091
2092         * sysdeps/unix/sysv/setrlimit.c: Remove file.
2093
2094         * sysdeps/unix/xmknod.c: Remove file.
2095         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
2096
2097         * sysdeps/unix/sysv/settimeofday.c: Remove file.
2098
2099         * sysdeps/unix/sysv/i386/time.S: Remove file.
2100
2101         * sysdeps/unix/fxstat.c: Remove file.
2102         * sysdeps/unix/xstat.c: Likewise.
2103         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
2104
2105         * sysdeps/unix/sysv/sigaction.c: Remove file.
2106
2107         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
2108         (sysdep_headers): Remove variable.
2109         [termio.h not in sysdep_headers] (generated): Likewise.
2110         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
2111         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
2112         * sysdeps/unix/sysv/tcdrain.c: Likewise.
2113         * sysdeps/unix/sysv/tcflow.c: Likewise.
2114         * sysdeps/unix/sysv/tcflush.c: Likewise.
2115         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
2116         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
2117         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
2118         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
2119         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
2120
2121         * sysdeps/unix/siglist.c: Remove file.
2122
2123         * sysdeps/unix/getppid.S: Remove file.
2124
2125         * sysdeps/unix/mkdir.c: Remove file.
2126         * sysdeps/unix/rmdir.c: Likewise.
2127
2128 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
2129
2130         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
2131         ERR_MAX value.
2132         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
2133         errlist-compat value.
2134
2135 2012-04-18  David S. Miller  <davem@davemloft.net>
2136
2137         * sysdeps/generic/memcopy.h (reg_char): Delete.
2138         * debug/strcat_chk.c: Use char, not reg_char.
2139         * debug/strcpy_chk.c: Likewise.
2140         * debug/strncat_chk.c: Likewise.
2141         * debug/strncpy_chk.c: Likewise.
2142         * string/memchr.c: Likewise.
2143         * string/memrchr.c: Likewise.
2144         * string/rawmemchr.c: Likewise.
2145         * string/strcat.c: Likewise.
2146         * string/strchr.c: Likewise.
2147         * string/strchrnul.c: Likewise.
2148         * string/strcmp.c: Likewise.
2149         * string/strcpy.c: Likewise.
2150         * string/strncat.c: Likewise.
2151         * string/strncmp.c: Likewise.
2152         * string/strncpy.c: Likewise.
2153
2154 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
2155
2156         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
2157         __builtin_memcopy is called when src and dest ranges are known to not
2158         overlap.
2159
2160 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
2161
2162         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
2163         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
2164         fwd_align_merge macro call.
2165         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
2166         bwd_align_merge macro call.
2167         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
2168
2169 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
2170
2171         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
2172         bwd_align_merge macros.
2173         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
2174         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
2175         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
2176
2177 2012-04-18  David S. Miller  <davem@davemloft.net>
2178
2179         * sysdeps/sparc/sparc64/memcopy.h: Delete.
2180
2181 2012-04-18  Andreas Jaeger  <aj@suse.de>
2182
2183         [BZ# 6794]
2184         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
2185         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
2186         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
2187
2188         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
2189         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
2190         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
2191
2192         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
2193         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
2194         Adjust for changed ldbl-128 files.
2195
2196         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
2197         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
2198         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
2199
2200 2012-04-17  David S. Miller  <davem@davemloft.net>
2201
2202         * sysdeps/sparc/sparc32/memcopy.h: Delete.
2203
2204 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
2205
2206         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
2207         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
2208         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
2209         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
2210         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
2211         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
2212
2213 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2214
2215         [BZ #6794]
2216         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
2217         * math/libm-test.inc: Add ilogb errno and exception tests.
2218         * math/w_ilogb.c: New file: ilogb wrapper.
2219         * math/w_ilogbf.c: New file: ilogbf wrapper.
2220         * math/w_ilogbl.c: New file: ilogbl wrapper.
2221         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
2222         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
2223         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
2224         exception being thrown with 0.0 as argument.
2225         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
2226         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
2227         exception being thrown with 0.0 as argument.
2228         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
2229         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
2230         exception being thrown with 0.0 as argument.
2231         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
2232         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
2233         exception being thrown with 0.0 as argument.
2234         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
2235         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
2236         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
2237         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
2238         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
2239         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
2240         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
2241         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
2242         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
2243
2244 2012-04-17  Petr Baudis  <pasky@ucw.cz>
2245
2246         * include/sys/uio.h: Change __vector to __iovec to avoid clash
2247         with altivec.
2248
2249 2012-04-16  Marek Polacek  <polacek@redhat.com>
2250
2251         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
2252
2253 2012-04-16  Marek Polacek  <polacek@redhat.com>
2254
2255         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
2256         operands of fdivp instruction.
2257
2258 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
2259
2260         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
2261         * elf/tst-auditmod3b.c: Likewise.
2262         * elf/tst-auditmod4b.c: Likewise.
2263         * elf/tst-auditmod5b.c: Likewise.
2264         * elf/tst-auditmod6b.c: Likewise.
2265         * elf/tst-auditmod6c.c: Likewise.
2266         * elf/tst-auditmod7b.c: Likewise.
2267         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
2268         * sysdeps/x86_64/preconfigure.in: Likewise.
2269         * sysdeps/x86_64/preconfigure: Regenerated.
2270
2271 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
2272
2273         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
2274         __ILP32__.
2275
2276 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
2277
2278         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2279         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
2280
2281 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
2282
2283         [BZ #13973]
2284         * locale/iso-639.def: Fix gl language name. Spotted by
2285         Yaron Shahrabani.
2286
2287 2012-04-12  Roland McGrath  <roland@hack.frob.com>
2288
2289         [BZ #2074]
2290         * libio/libio.h (__io_write_fn): Update comment.
2291
2292 2012-04-12  Petr Baudis  <pasky@ucw.cz>
2293
2294         [BZ #2074]
2295         * stdio.texi (Hook Functions): The user provided writer function
2296         is not allowed to return -1.
2297
2298 2012-04-11  David S. Miller  <davem@davemloft.net>
2299
2300         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2301
2302 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
2303
2304         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
2305         Add a leading slash to rtkaio.
2306
2307 2012-04-11  Jim Meyering  <meyering@redhat.com>
2308
2309         [BZ #11959]
2310         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
2311         It is not necessarily an error to ignore fwrite's return
2312         value.  One can reliably use ferror to test for errors after
2313         the fact.
2314
2315 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
2316
2317         * bits/types.h (__snseconds_t): New type.
2318         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
2319
2320         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
2321         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2322         (__SNSECONDS_T_TYPE): Likewise.
2323         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2324         (__SNSECONDS_T_TYPE): Likewise.
2325         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2326         (__SNSECONDS_T_TYPE): Likewise.
2327
2328 2012-04-10  Andreas Jaeger  <aj@suse.de>
2329
2330         [BZ #2636]
2331         * manual/time.texi (Processor Time): Return type of times is
2332         elapsed real time since an arbitrary point in the past.
2333         (CPU Time): Move CLK_TCK from here...
2334         (Processor Time): ...to here.  Correct description.
2335         * manual/conf.texi (Constants for Sysconf): Correct description of
2336         _SC_CLK_TCK.
2337
2338 2012-04-10  David S. Miller  <davem@davemloft.net>
2339
2340         [BZ #13967]
2341         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
2342         where the is a gap between DT_REL(A) and DT_JMPREL.
2343
2344 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
2345
2346         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
2347         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
2348         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
2349
2350 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2351
2352         * elf/dl-support.c (_dl_inhibit_cache): New variable.
2353         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
2354         (dl_main): Handle --inhibit-cache.
2355         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
2356         _dl_inhibit_cache.
2357         * elf/dl-load.c (_dl_map_object): Use it.
2358         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
2359
2360 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
2361
2362         [BZ #13872]
2363         * sysdeps/i386/fpu/e_powl.S (p78): New object.
2364         (__ieee754_powl): Saturate large exponents rather than testing for
2365         overflow of y*log2(x).
2366         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2367         * math/libm-test.inc (pow_test): Do not permit spurious overflow
2368         exceptions.
2369
2370         [BZ #11521]
2371         * math/s_ctan.c: Include <float.h>.
2372         (__ctan): Avoid internal overflow or cancellation in calculating
2373         denominator.
2374         * math/s_ctanf.c: Likewise.
2375         * math/s_ctanl.c: Likewise.
2376         * math/s_ctanh.c: Likewise.
2377         * math/s_ctanhf.c: Likewise.
2378         * math/s_ctanhl.c: Likewise.
2379         * math/libm-test.inc (ctan_test): Add more tests.
2380         (ctanh_test): Likewise.
2381         * sysdeps/i386/fpu/libm-test-ulps: Update.
2382         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2383
2384 2012-04-09  Andreas Jaeger  <aj@suse.de>
2385
2386         [BZ #6894]
2387         * manual/filesys.texi (Directory Entries): Mention that d_namlen
2388         is an optional BSD extension.
2389
2390         [BZ #10254]
2391         * manual/stdio.texi (Opening Streams): Document additional fopen
2392         parameters.
2393
2394 2012-04-09  Roland McGrath  <roland@hack.frob.com>
2395
2396         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
2397         %eax without telling the compiler.
2398
2399 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
2400
2401         [BZ # 13963]
2402         * manual/install.texi: Use sourceware.org.
2403
2404 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
2405
2406         [BZ #13873]
2407         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
2408         (__ieee754_pow): Generate overflow and underflow using huge*huge
2409         and tiny*tiny rather than just returning constant infinity or zero
2410         for large exponents.
2411         * math/libm-test.inc (pow_test): Require overflow exceptions for
2412         applicable cases of large exponents.
2413
2414         [BZ #706]
2415         * sysdeps/i386/fpu/e_pow.S (p10): New object.
2416         (__ieee754_pow): Use iterative multiplication algorithm only for
2417         integer exponents with absolute value below 1024.  Check for odd
2418         integer exponents when using algorithm for real exponents.
2419         * math/libm-test.inc (pow_test): Add more tests.
2420         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2421
2422 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
2423
2424         [BZ #13705]
2425         * math/libm-test.inc (exp_test): Do not allow overflow exception
2426         on underflow test.
2427
2428 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
2429
2430         [BZ #13705]
2431         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
2432         instead of __kernel_standard_f.
2433
2434 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
2435
2436         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
2437         * sysdeps/x86_64/memset_chk.S: Likewise.
2438
2439 2012-04-08  Andreas Jaeger  <aj@suse.de>
2440
2441         [BZ #10153]
2442         * manual/startup.texi (Environment Access): Describe return value
2443         for putenv and setenv.
2444
2445         [BZ #6895]
2446         * manual/filesys.texi (Directory Entries): Add description for
2447         DT_LNK.
2448
2449         [BZ #6890]
2450         * manual/filesys.texi (Directory Entries): Clarify that it's file
2451         system not operating system in the description of DT_UNKNOWN.
2452
2453         [BZ #6578]
2454         * manual/syslog.texi (closelog): Fix reference, it's openlog.
2455
2456 2012-04-08  Stephen Compall  <s11@member.fsf.org>
2457
2458         [BZ #6649]
2459         * manual/llio.texi (Opening and Closing Files): Add cross
2460         reference to explain mode argument.
2461
2462 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
2463
2464         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
2465         * sysdeps/x86_64/memset_chk.S: Likewise.
2466
2467 2012-04-07  David S. Miller  <davem@davemloft.net>
2468
2469         * elf/elf.h (R_SPARC_WDISP10): Define.
2470         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
2471         R_SPARC_SIZE32.
2472         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
2473         R_SPARC_SIZE64 and R_SPARC_H34.
2474
2475 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
2476
2477         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
2478         conditions and remove no longer applicable assertion.
2479
2480 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
2481
2482         * bits/byteswap.h: Include <features.h>.
2483         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
2484         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
2485
2486 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
2487
2488         * bits/byteswap.h (__bswap_16): Removed.
2489         Include <bits/byteswap-16.h> to get __bswap_16.
2490         * sysdeps/i386/bits/byteswap.h: Likewise.
2491         * sysdeps/s390/bits/byteswap.h: Likewise.
2492         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2493         * bits/byteswap-16.h: New file.
2494         * sysdeps/i386/bits/byteswap-16.h: Likewise.
2495         * sysdeps/s390/bits/byteswap-16.h: Likewise.
2496         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
2497         * string/Makefile (headers): Add bits/byteswap-16.h.
2498
2499 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2500
2501         [BZ #13895]
2502         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
2503         extra indirection.
2504         * nss/Makefile (tests-static, tests): Add tst-nss-static.
2505         * nss/tst-nss-static.c: New.
2506
2507 2012-04-06  Robert Millan  <rmh@gnu.org>
2508
2509         [BZ #6486]
2510         * manual/llio.texi (File Position Primitive): lseek
2511         refers to WHENCE when it really means OFFSET.
2512
2513 2012-04-06  Andreas Jaeger  <aj@suse.de>
2514
2515         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
2516         strncmp declarations.
2517
2518         * abilist/libc.abilist: Add __poll and __ppoll.
2519
2520 2012-04-05  David S. Miller  <davem@davemloft.net>
2521
2522         * scripts/check-local-headers.sh: Accept a host triplet in the
2523         path matched by the exclude regexp.
2524
2525         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
2526         definition.
2527         * sysdeps/powerpc/powerpc32/dl-machine.h
2528         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
2529         * sysdeps/s390/s390-32/dl-machine.h
2530         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
2531         * sysdeps/sparc/sparc32/dl-machine.h
2532         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
2533         * sysdeps/sparc/sparc64/dl-machine.h
2534         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
2535
2536         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
2537         lazy binding.
2538         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
2539         undefined symbol errors.
2540
2541         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
2542         DT_NEEDED entries.
2543
2544 2012-04-05  Michael Matz  <matz@suse.de>
2545
2546         [BZ #13592]
2547         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
2548
2549 2012-04-05  Andreas Jaeger  <aj@suse.de>
2550
2551         [BZ #13908]
2552         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
2553         comment.
2554
2555 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2556
2557         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
2558         which ROUND is no valid rounding mode.
2559
2560 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2561
2562         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
2563         read again.
2564         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
2565
2566 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2567
2568         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
2569         an exception using FPU order intentionally.
2570
2571 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2572
2573         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
2574         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
2575         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
2576         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
2577
2578 2012-04-05  Simon Josefsson  <simon@josefsson.org>
2579
2580         [BZ #12340]
2581         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
2582         EINVAL when BUFLEN is too smal.
2583
2584 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
2585
2586         [BZ #13553]
2587         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
2588         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
2589
2590 2012-04-03  Andreas Jaeger  <aj@suse.de>
2591
2592         [BZ #13938]
2593         * manual/setjmp.texi (System V contexts): Fix sentence.
2594
2595         [BZ #13926]
2596         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
2597         New macro for this case.
2598         [!__GNUC__] (__bswap_64): New inline function for this case.
2599         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2600         * bits/byteswap.h: Likewise.
2601         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
2602         ull, guard with __GLIBC_HAVE_LONG_LONG.
2603
2604         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
2605         __GLIBC_HAVE_LONG_LONG.
2606
2607         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
2608         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
2609
2610 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
2611
2612         [BZ #13691]
2613         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
2614         inptr and inend, rather than using last_ch.
2615
2616 2012-04-02  David S. Miller  <davem@davemloft.net>
2617
2618         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
2619         * stdio-common/printf-parse.h (read_int): Change return type to
2620         'int', return -1 on INT_MAX overflow.
2621         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
2622         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
2623         overflows INT_MAX.  Check for overflow of in-format-string precision
2624         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
2625         SIZE_MAX not INT_MAX for integer overflow test.
2626         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
2627         skip the construct in the format string but do not record anything.
2628         * stdio-common/bug22.c: Adjust to test both width/prevision
2629         INT_MAX overflow as well as total length INT_MAX overflow.  Check
2630         explicitly for proper errno values.
2631
2632 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
2633
2634         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
2635         CHAR_MAX.
2636         * string/test-strcmp.c [! WIDE]: Likewise.
2637         * time/tst-mktime2.c: Likewise for INT_MAX.
2638         * string/test-string.h: #include <sys/param.h> for MIN.
2639
2640         * csu/init-first.c (__libc_init_first): Call __ctype_init.
2641         * sysdeps/i386/init-first.c (init): Likewise.
2642         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
2643         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
2644         * sysdeps/sh/init-first.c (init): Likewise.
2645
2646 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
2647
2648         * po/ru.po: Update from translation team.
2649         * po/vi.po: Likewise.
2650
2651 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
2652
2653         * resolv/nss_dns/dns-host.c: Merge copyright years.
2654
2655 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2656
2657         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
2658         Optimize memcpy with prefetch if
2659         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
2660         src, dst pointers have unequal 16 byte alignments.
2661
2662 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2663
2664         [BZ #13928]
2665         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
2666         from a CNAME entry and return the minimum ttl for the query.
2667         (gaih_getanswer_slice): Likewise.
2668
2669 2012-03-30  Jeff Law  <law@redhat.com>
2670
2671         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
2672         due to long keys.
2673         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
2674         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
2675
2676         * resolv/nss_dns/dns-host.c: Update copyright year.
2677
2678 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
2679
2680         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
2681         requests to save a system call.  Fix check that all bytes are sent.
2682
2683         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
2684         comments for sendmmsg.
2685
2686 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2687
2688         [BZ #13691]
2689         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
2690         with only 1 character between 0x0041 and 0x01b0.
2691         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
2692         * wcsmbs/tst-mbsnrtowcs.c: New file.
2693
2694 2012-03-29  David S. Miller  <davem@davemloft.net>
2695
2696         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
2697         small copies by hand.
2698
2699 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2700
2701         [BZ #13761]
2702         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
2703         _nss_compat_initgroups_dyn): Fall back to malloc/free
2704         for large group memberships.
2705
2706 2012-03-28  David S. Miller  <davem@davemloft.net>
2707
2708         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
2709         that branches into memcpy.
2710         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2711         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
2712         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
2713         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
2714         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
2715         bits.
2716         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
2717         implementation too.
2718         * sysdeps/sparc/mempcpy.S: New file.
2719
2720         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
2721         the IFUNC routine in the libc case.
2722         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
2723
2724         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
2725         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
2726         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
2727         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
2728         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
2729         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
2730         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
2731         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
2732
2733         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
2734         loop to 256 bytes instead of 64 bytes and fix test signedness.
2735
2736         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
2737         * sysdeps/sparc/sparc32/Makefile: rather than here...
2738         * sysdeps/sparc/sparc64/Makefile: and here.
2739
2740 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
2741
2742         * malloc/mallocbug.c: Avoid warnings about unused variables.
2743
2744 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2745
2746         [BZ #13760]
2747         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
2748         in the right place. Discard and retry query if response is
2749         larger than input buffer size.
2750
2751 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
2752
2753         [BZ #369]
2754         [BZ #2678]
2755         [BZ #3866]
2756         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
2757         x for large integer exponent.
2758         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
2759         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
2760         sign of result as needed afterwards.
2761         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2762         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
2763         result for underflowing pow the same as for overflow.
2764         (__kernel_standard_l): Handle powl overflow and underflow here
2765         rather than calling __kernel_standard.
2766         * math/libm-test.inc (pow_test): Add more tests.
2767
2768         [BZ #3868]
2769         [BZ #13879]
2770         [BZ #13910]
2771         [BZ #13911]
2772         [BZ #13912]
2773         [BZ #13913]
2774         [BZ #13915]
2775         [BZ #13916]
2776         [BZ #13917]
2777         [BZ #13918]
2778         [BZ #13919]
2779         [BZ #13920]
2780         [BZ #13921]
2781         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
2782         * sysdeps/ieee754/k_standard.c: Include <float.h>.
2783         (__kernel_standard_l): New function.
2784         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
2785         __kernel_standard.
2786         * math/w_acosl.c (__acosl): Likewise.
2787         * math/w_asinl.c (__asinl): Likewise.
2788         * math/w_atan2l.c (__atan2l): Likewise.
2789         * math/w_atanhl.c (__atanhl): Likewise.
2790         * math/w_coshl.c (__coshl): Likewise.
2791         * math/w_exp10l.c (__exp10l): Likewise.
2792         * math/w_exp2l.c (__exp2l): Likewise.
2793         * math/w_fmodl.c (__fmodl): Likewise.
2794         * math/w_hypotl.c (__hypotl): Likewise.
2795         * math/w_j0l.c (__j0l, __y0l): Likewise.
2796         * math/w_j1l.c (__j1l, __y1l): Likewise.
2797         * math/w_jnl.c (__jnl, __ynl): Likewise.
2798         * math/w_lgammal.c (__lgammal): Likewise.
2799         * math/w_log10l.c (__log10l): Likewise.
2800         * math/w_log2l.c (__log2l): Likewise.
2801         * math/w_logl.c (__logl): Likewise.
2802         * math/w_powl.c (__powl): Likewise.
2803         * math/w_remainderl.c (__remainderl): Likewise.
2804         * math/w_scalbl.c (sysv_scalbl): Likewise.
2805         * math/w_sinhl.c (__sinhl): Likewise.
2806         * math/w_sqrtl.c (__sqrtl): Likewise.
2807         * math/w_tgammal.c (__tgammal): Likewise.
2808         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
2809         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
2810         * math/libm-test.inc (acos_test): Add more tests.
2811         (acosh_test): Likewise.
2812         (asin_test): Likewise.
2813         (atanh_test): Likewise.
2814         (exp_test): Likewise.
2815         (exp10_test): Likewise.
2816         (exp2_test): Likewise.
2817         (expm1_test): Likewise.
2818         (lgamma_test): Likewise.
2819         (log_test): Likewise.
2820         (log10_test): Likewise.
2821         (log1p_test): Likewise.
2822         (log2_test): Likewise.
2823         (pow_test): Do not allow some spurious overflow exceptions.
2824         (sqrt_test): Add more tests.
2825         (tgamma_test): Likewise.
2826         (y0_test): Likewise.
2827         (y1_test): Likewise.
2828         (yn_test): Likewise.
2829
2830 2012-03-27  Anton Blanchard  <anton@samba.org>
2831
2832         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
2833         MAP_HUGETLB.
2834         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2835         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2836         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2837
2838 2012-03-27  David S. Miller  <davem@davemloft.net>
2839
2840         * conform/Makefile: Run run-conformtest.sh using $(BASH).
2841
2842         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
2843         have-as-vis3 check.
2844
2845 2012-03-27  Andreas Jaeger  <aj@suse.de>
2846
2847         * sysdeps/x86_64/elf/configure.in: Moved to ...
2848         * sysdeps/x86_64/configure.in: ... here.
2849         * sysdeps/x86_64/elf/start.S: Moved to ...
2850         * sysdeps/x86_64/start.S: ... here.
2851         * sysdeps/x86_64/elf/configure: Delete.
2852
2853         * sysdeps/x86_64/configure.in: Merge contents from
2854         sysdeps/i386/configure.in (without i686 check).
2855
2856         * sysdeps/i386/elf/Versions: Merge into ...
2857         * sysdeps/i386/Versions: ... this.
2858         * sysdeps/i386/elf/Versions: Delete file.
2859         * sysdeps/i386/elf/start.S: Moved to ...
2860         * sysdeps/i386/start.S: ...here.
2861         * sysdeps/i386/elf/configure.in: Merge into...
2862         * sysdeps/i386/configure.in: ...here.
2863         * sysdeps/i386/elf/configure.in: Delete file.
2864         * sysdeps/i386/elf/configure: Delete file.
2865
2866         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
2867         * debug/backtracesyms.c: ... here.
2868         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
2869         * debug/backtracesymsfd.c: ... here.
2870         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
2871         * sysdeps/generic/ifunc-sel.h: ... here.
2872
2873         * sysdeps/unix/i386/start.c: Delete file.
2874         * sysdeps/unix/sparc/start.c: Delete file.
2875         * sysdeps/unix/start.c: Delete file.
2876
2877         * sysdeps/sh/elf/configure.in: Moved to ...
2878         * sysdeps/sh/configure.in: ... here.
2879         * sysdeps/sh/elf/start.S: Moved to ...
2880         * sysdeps/sh/start.S: ... here.
2881         * sysdeps/sh/elf/configure: Delete file.
2882
2883         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
2884         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
2885         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
2886         * sysdeps/powerpc/powerpc64/entry.h: ... here.
2887         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
2888         * sysdeps/powerpc/powerpc64/start.S: here.
2889         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
2890         * sysdeps/powerpc/powerpc64/Makefile: ... this.
2891         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
2892         * sysdeps/powerpc/powerpc64/configure.in: ... this.
2893         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
2894
2895         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
2896         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
2897         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
2898         * sysdeps/powerpc/powerpc32/start.S: ... here.
2899         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
2900         * sysdeps/powerpc/powerpc32/configure.in: ... this.
2901         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
2902
2903         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
2904         * sysdeps/powerpc/ifunc-sel.h: ... here.
2905         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
2906         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
2907
2908         * sysdeps/sparc/elf/configure.in: Moved to ...
2909         * sysdeps/sparc/configure.in: ... here.
2910         * sysdeps/sparc/elf/configure: Delete file.
2911         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
2912         * sysdeps/sparc/sparc32/start.S: ... here.
2913         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
2914         * sysdeps/sparc/sparc64/start.S: ... here.
2915         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
2916         * sysdeps/sparc/sparc32/Makefile: ... this.
2917         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
2918         * sysdeps/sparc/sparc64/Makefile: ... this.
2919
2920         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
2921         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
2922         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
2923         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
2924         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
2925         * sysdeps/s390/s390-32/setjmp.S: ... here.
2926         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
2927         * sysdeps/s390/s390-32/configure.in: ... here.
2928         * sysdeps/s390/s390-32/elf/configure: Delete file.
2929         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
2930         * sysdeps/s390/s390-32/start.S: ... here.
2931
2932         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
2933         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
2934         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
2935         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
2936         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
2937         * sysdeps/s390/s390-64/setjmp.S: ... here.
2938         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
2939         * sysdeps/s390/s390-64/configure.in: ... here
2940         * sysdeps/s390/s390-64/elf/configure: Delete file.
2941         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
2942         * sysdeps/s390/s390-64/start.S: ... here.
2943         * sysdeps/s390/s390-64/elf/configure: Delete.
2944
2945         * configure.in: Remove support for elf directories in sysdeps.
2946
2947         * configure: Regenerated.
2948         * sysdeps/i386/configure: Regenerated.
2949         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2950         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2951         * sysdeps/s390/s390-32/configure: Regenerated.
2952         * sysdeps/s390/s390-64/configure: Regenerated.
2953         * sysdeps/sh/configure: Regenerated.
2954         * sysdeps/sparc/configure: Regenerated.
2955         * sysdeps/x86_64/configure: Regenerated.
2956
2957 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
2958
2959         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2960
2961         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
2962         denormal result into account.
2963
2964 2012-03-25  Roland McGrath  <roland@hack.frob.com>
2965
2966         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
2967         Reported by Allan McRae <allan@archlinux.org>.
2968
2969 2012-03-23  Jeff Law  <law@redhat.com>
2970
2971         * nss/getnssent.c (__nss_getent): Fix typo.
2972
2973 2012-03-23  David S. Miller  <davem@davemloft.net>
2974
2975         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2976
2977 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
2978
2979         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
2980         to pad to uint64_t for each field.
2981         (dl_tls_index): Replace unsigned long with uint64_t.
2982
2983 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
2984         Paul Pluzhnikov  <ppluzhnikov@google.com>
2985
2986         [BZ #6528]
2987         * grp/Makefile (otherlibs): Don't set it.
2988         * inet/Makefile (otherlibs): Likewise.
2989         * login/Makefile (otherlibs): Likewise.
2990         * nscd/Makefile (otherlibs): Likewise.
2991         * posix/Makefile (otherlibs): Likewise.
2992         * pwd/Makefile (otherlibs): Likewise.
2993         * rt/Makefile (otherlibs): Likewise.
2994         * sunrpc/Makefile (otherlibs): Likewise.
2995         * nss/Makefile (otherlibs): Likewise.
2996         Add libnss_files to routines and static-only-routines.
2997         ($(objpfx)getent): Remove rule.
2998         * resolv/Makefile: Add libnss_dns and libresolv to routines and
2999         static-only-routines.
3000
3001 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
3002
3003         [BZ #13892]
3004         * math/s_cexp.c: Include <float.h>.
3005         (__cexp): Handle exp result overflowing not necessarily
3006         overflowing both real and imaginary parts of result.
3007         * math/s_cexpf.c: Likewise.
3008         * math/s_cexpl.c: Likewise.
3009         * math/libm-test.inc (cexp_test): Add more tests.
3010         * sysdeps/i386/fpu/libm-test-ulps: Update.
3011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3012
3013 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3014
3015         * include/link.h (ELFW): New macro.
3016         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
3017         Replace ELF64_R_TYPE with ELFW(R_TYPE).
3018
3019 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3020
3021         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
3022         with uint64_t.
3023
3024 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3025
3026         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
3027         declaration.
3028         (struct La_x32_retval): Likewise.
3029
3030 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3031
3032         * sysdeps/x86_64/preconfigure.in: New file.
3033         * sysdeps/x86_64/preconfigure: New generated file.
3034
3035 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
3036
3037         [BZ #13824]
3038         * math/e_exp2l.c: Include <float.h>.
3039         (__ieee754_exp2l): Handle overflow and underflow cases
3040         separately.  Only pass fractional part of argument to
3041         __ieee754_expl.
3042         * math/libm-test.inc (exp2_test): Add more tests.
3043
3044         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
3045         negating x to take absolute value.
3046         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
3047         Likewise.
3048         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
3049         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
3050         Likewise.
3051         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
3052         computing low part if x was negated.
3053         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
3054
3055 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3056
3057         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
3058         la_x32_gnu_pltexit.
3059         (pltexit): Cast int_retval to ptrdiff_t.
3060         * elf/tst-auditmod3b.c: Likewise.
3061         * elf/tst-auditmod4b.c: Likewise.
3062         * elf/tst-auditmod5b.c: Likewise.
3063         * elf/tst-auditmod6b.c: Likewise.
3064         * elf/tst-auditmod6c.c: Likewise.
3065         * elf/tst-auditmod7b.c: Likewise.
3066
3067         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
3068         and x32_gnu_pltexit.
3069
3070         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
3071         __ELF_NATIVE_CLASS.
3072         (La_x32_regs): New macro.
3073         (La_x32_retval): Likewise.
3074         (la_x32_gnu_pltenter): New function prototype.
3075         (la_x32_gnu_pltexit): Likewise.
3076
3077 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
3078
3079         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
3080         exponent.
3081
3082         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3083
3084         * configure.in (libc_cv_cc_nofma): Check for option to disable
3085         generation of FMA instructions.
3086         * configure: Regenerate.
3087         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
3088         * sysdeps/ieee754/dbl-64/Makefile: New file.
3089         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3090         Remove brandred-fma4.
3091         (CFLAGS-brandred-fma4.c): Remove.
3092         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
3093         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
3094         define.
3095         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
3096         define.
3097
3098 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3099
3100         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
3101         LLONG_MAX != LONG_MAX.
3102         (_itoa_word): Use _ITOA_WORD_TYPE on value.
3103         (_fitoa_word): Likewise.
3104         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
3105         LLONG_MAX != LONG_MAX.
3106         * stdio-common/_itowa.h: Include <_itoa.h>.
3107         (_itowa_word): Use _ITOA_WORD_TYPE on value.
3108         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
3109         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
3110         only if not defined.
3111         (_ITOA_WORD_TYPE): Likewise.
3112         (_itoa_word): Use _ITOA_WORD_TYPE on value.
3113         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
3114
3115 2012-03-21  David S. Miller  <davem@davemloft.net>
3116
3117         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3118
3119 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3120
3121         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
3122         of x86_64 when setting libc_cv_slibdir, libdir and
3123         libc_cv_localedir.
3124         * sysdeps/unix/sysv/linux/configure: Regenerated.
3125
3126 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
3127
3128         * manual/lang.texi (Old Varargs): Remove section.
3129         (How Variadic): Update menu.
3130         (va_start): Do not mention varargs.h.
3131
3132 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
3133             Joseph Myers  <joseph@codesourcery.com>
3134
3135         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
3136         link test.
3137         * configure: Regenerated.
3138
3139 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
3140
3141         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
3142         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
3143         conformtest.pl
3144
3145 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
3146
3147         * NOTES: Remove.
3148         * Makefile (files-for-dist): Remove NOTES.
3149         (NOTES): Remove rule.
3150         * README: Don't refer to NOTES.
3151         * manual/creature.texi: Don't include macros.texi.
3152         * manual/intro.texi (creature.texi): Remove comment referring to
3153         NOTES.
3154
3155         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
3156         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
3157         * configure: Regenerated.
3158         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
3159         LIBC_TRY_CC_OPTION.
3160         (libc_cv_as_i686): Likewise.
3161         (libc_cv_cc_avx): Likewise.
3162         (libc_cv_cc_sse2avx): Likewise.
3163         (libc_cv_cc_fma4): Likewise.
3164         (libc_cv_cc_novzeroupper): Likewise.
3165         * sysdeps/i386/configure: Regenerated.
3166
3167         [BZ #13883]
3168         * sysdeps/i386/fpu/s_cexp.S: Remove.
3169         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
3170         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
3171         * math/libm-test.inc (cexp_test): Add more tests.
3172         * sysdeps/i386/fpu/libm-test-ulps: Update.
3173         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3174
3175 2012-03-21  Allan McRae  <allan@archlinux.org>
3176
3177         * timezone/Makefile: Do not install iso3166.tab and zone.tab
3178
3179 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
3180
3181         [BZ #13871]
3182         * math/w_exp2.c: Do not include <float.h>.
3183         (o_threshold, u_threshold): Remove.
3184         (__exp2): Calculate result before checking finiteness and calling
3185         __kernel_standard.
3186         * math/w_exp2f.c: Likewise.
3187         * math/w_exp2l.c: Likewise.
3188         * math/libm-test.inc (exp2_test): Require overflow exception for
3189         1e6 input.
3190
3191         [BZ #3866]
3192         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
3193         range of signed 64-bit integers before using fistpll.  Remove
3194         checks for whether integers fit in mantissa bits.
3195         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
3196         the range of signed 32-bit integers before using fistpl.  Remove
3197         checks for whether integers fit in mantissa bits.
3198         * sysdeps/i386/fpu/e_powl.S (p64): New object.
3199         (__ieee754_powl): Test for y outside the range of signed 64-bit
3200         integers before using fistpll.  Reduce 64-bit values to 63-bit
3201         ones as needed.
3202         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
3203         divide-by-zero is raised for zero to large negative powers.
3204         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
3205         (__ieee754_powl): Test for y outside the range of signed 64-bit
3206         integers before using fistpll.  Reduce 64-bit values to 63-bit
3207         ones as needed.
3208         * math/libm-test.inc (pow_test): Add more tests.
3209
3210 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
3211
3212         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
3213         <stdio-common/_itoa.h>.
3214         * debug/segfault.c: Likewise.
3215         * elf/dl-cache.c: Likewise.
3216         * elf/dl-minimal.c: Likewise.
3217         * elf/dl-misc.c: Likewise.
3218         * elf/dl-sysdep.c: Likewise.
3219         * elf/dl-version.c: Likewise.
3220         * elf/rtld.c: Likewise.
3221         * hurd/hurdsock.c: Likewise.
3222         * hurd/lookup-retry.c: Likewise.
3223         * malloc/malloc.c: Likewise.
3224         * malloc/mtrace.c: Likewise.
3225         * nscd/nscd_getgr_r.c: Likewise.
3226         * nscd/nscd_getpw_r.c: Likewise.
3227         * nscd/nscd_getserv_r.c: Likewise.
3228         * posix/getopt_init.c: Likewise.
3229         * posix/wordexp.c: Likewise.
3230         * stdio-common/_itoa.c: Likewise.
3231         * stdio-common/printf_fphex.c: Likewise.
3232         * stdio-common/vfprintf.c: Likewise.
3233         * string/_strerror.c: Likewise.
3234         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
3235         * sysdeps/i386/i686/hp-timing.h: Likewise.
3236         * sysdeps/mach/_strerror.c: Likewise.
3237         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
3238         * sysdeps/mach/hurd/sethostid.c: Likewise.
3239         * sysdeps/mach/hurd/xmknodat.c: Likewise.
3240         * sysdeps/mach/xpg-strerror.c: Likewise.
3241         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
3242         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
3243         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
3244         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
3245         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
3246         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
3247         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
3248         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
3249         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
3250         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
3251         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
3252         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
3253         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
3254         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
3255         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
3256         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3257         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
3258         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
3259         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
3260         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
3261         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
3262
3263         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
3264
3265         * stdio-common/_itoa.h: Moved to ...
3266         * sysdeps/generic/_itoa.h: Here.
3267
3268         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
3269
3270         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
3271         instead of "_itoa.h" and "_itowa.h".
3272         * stdio-common/vfprintf.: Likewise.
3273
3274 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
3275
3276         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
3277         <bits/wordsize.h>.
3278         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
3279         (__signbit): Likwise.
3280         (llrintf): Likwise.
3281         (llrint): Likwise.
3282
3283 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
3284
3285         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
3286         __WORDSIZE != 64.
3287
3288 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
3289
3290         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
3291         OVERFLOW_EXCEPTION_OK.
3292         * math/libm-test.inc ("Philosophy"): Update comment about
3293         exception testing.
3294         (OVERFLOW_EXCEPTION): Define.
3295         (OVERFLOW_EXCEPTION_OK): Likewise.
3296         (INVALID_EXCEPTION_OK): Renumber.
3297         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3298         (IGNORE_ZERO_INF_SIGN): Likewise.
3299         (test_exceptions): Handle FE_OVERFLOW.
3300         (exp10_test): Expect overflow exceptions.
3301         (exp2_test): Likewise.
3302         (expm1_test): Likewise.
3303         (nextafter_test): Likewise.
3304         (pow_test): Likewise.
3305         (scalbn_test): Likewise.
3306         (scalbln_test): Likewise.
3307
3308 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
3309
3310         * sysdeps/x86_64/bits/atomic.h
3311         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
3312         64bit integer.
3313         (atomic_exchange_acq): Likewise.
3314         (__arch_exchange_and_add_body): Likewise.
3315         (__arch_add_body): Likewise.
3316         (atomic_add_negative): Likewise.
3317         (atomic_add_zero): Likewise.
3318
3319 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
3320
3321         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
3322         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
3323
3324 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
3325
3326         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
3327         Check __x86_64__ instead of __WORDSIZE.
3328
3329 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
3330
3331         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
3332
3333 2012-03-19  David S. Miller  <davem@davemloft.net>
3334
3335         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3336
3337         * sysdeps/sparc/fpu/fenv_private.h: New file.
3338         * sysdeps/sparc/fpu/math_private.h: Use it.
3339         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
3340         Remove.
3341         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
3342         (libc_feholdexcept_setroundl): Remove.
3343         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
3344         Remove.
3345         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
3346         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
3347
3348 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
3349
3350         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
3351         int64_t instead of long int.
3352         (INSERT_WORDS64): Likwise.
3353
3354 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
3355
3356         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
3357         _Unwind_GetCFA return to _Unwind_Ptr first.
3358
3359 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
3360
3361         [BZ #13629]
3362         * math/s_clog.c: Include <float.h>.
3363         (__clog): Scale large or subnormal inputs.
3364         * math/s_clogf.c: Likewise.
3365         * math/s_clogl.c: Likewise.
3366         * math/s_clog10.c: Include <float.h>.
3367         (M_LOG10_2): Define.
3368         (__clog10): Scale large or subnormal inputs.
3369         * math/s_clog10f.c: Likewise.
3370         * math/s_clog10l.c: Likewise.
3371         * math/libm-test.inc (clog_test): Add more tests.
3372         (clog10_test): Likewise.
3373         * sysdeps/i386/fpu/libm-test-ulps: Update.
3374         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3375
3376         [BZ #11451]
3377         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
3378         x and y.
3379         * math/libm-test.inc (atan2_test): Add another test.
3380
3381         * Makerules (common-objdir-compile): Remove.
3382         * sysdeps/unix/Makefile (config-generated): Do not add
3383         $(unix-generated) to variable.
3384         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
3385         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
3386         Remove rule.
3387         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
3388         Likewise.
3389         [generic bits/local_lim.h] (before-compile): Do not append to
3390         variable.
3391         [generic bits/local_lim.h] (common-generated): Likewise.
3392         [generic sys/param.h] (before-compile): Do not append to variable.
3393         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
3394         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
3395         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
3396         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
3397         include.
3398         [generic sys/param.h] (sys/param.h-includes): Remove variable.
3399         [generic sys/param.h] (sys/param.h-includes): Remove rule.
3400         [generic sys/param.h] ($(addprefix
3401         $(common-objpfx),$(sys/param.h-includes))): Likewise.
3402         [generic sys/param.h] (common-generated): Do not append to
3403         variable.
3404         [generic sys/param.h] (sysdep_headers): Likewise.
3405         [generic bits/errno.h] (before-compile): Do not append to
3406         variable.
3407         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
3408         rule.
3409         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
3410         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
3411         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
3412         [generic bits/errno.h] (common-generated): Do not append to
3413         variable.
3414         [generic bits/ioctls.h] (before-compile): Do not append to
3415         variable.
3416         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
3417         rule.
3418         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
3419         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
3420         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
3421         rule.
3422         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
3423         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
3424         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
3425         [generic bits/ioctls.h] (common-generated): Do not append to
3426         variable.
3427         [generic sys/syscall.h] (syscall.h): Remove variable.
3428         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
3429         rule.
3430         [generic sys/syscall.h] (before-compile): Do not append to
3431         variable.
3432         [generic sys/syscall.h] (common-generated): Likewise.
3433         * sysdeps/unix/errnos-tmpl.c: Remove file.
3434         * sysdeps/unix/errnos.awk: Likewise.
3435         * sysdeps/unix/ioctls-tmpl.c: Likewise.
3436         * sysdeps/unix/ioctls.awk: Likewise.
3437         * sysdeps/unix/mk-local_lim.c: Likewise.
3438         * sysdeps/unix/snarf-ioctls: Likewise.
3439
3440 2012-03-19  Richard Henderson  <rth@twiddle.net>
3441
3442         * sysdeps/i386/fpu/fenv_private.h: New file.
3443         * sysdeps/i386/fpu/math_private.h: Use it.
3444         (math_opt_barrier, math_force_eval): Remove.
3445         (libc_feholdexcept_setround_53bit): Remove.
3446         (libc_feupdateenv_53bit): Remove.
3447         * sysdeps/x86_64/fpu/math_private.h: Likewise.
3448         (math_opt_barrier, math_force_eval): Remove.
3449         (libc_feholdexcept): Remove.
3450         (libc_feholdexcept_setround): Remove.
3451         (libc_fetestexcept, libc_fesetenv): Remove.
3452         (libc_feupdateenv_test): Remove.
3453         (libc_feupdateenv, libc_feholdsetround): Remove.
3454         (libc_feresetround): Remove.
3455
3456         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
3457         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
3458
3459         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
3460         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
3461         (libc_feupdateenv_testl): New.
3462         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
3463         (libc_feupdateenv_testf): New.
3464         (libc_feupdateenv): Use libc_feupdateenv_test.
3465         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
3466         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
3467
3468         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
3469         (libc_feholdsetroundf, libc_feholdsetroundl): New.
3470         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
3471         (libc_feresetround_noex): New.
3472         (libc_feresetround_noexf): New.
3473         (libc_feresetround_noexl): New.
3474         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
3475         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
3476         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
3477         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
3478         SET_RESTORE_ROUND.
3479         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
3480         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
3481         (__cos): Likewise.
3482         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
3483         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
3484         SET_RESTORE_ROUND_NOEX.
3485         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
3486         SET_RESTORE_ROUND_NOEXF.
3487         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
3488         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
3489         (libc_feholdsetroundf): New.
3490         (libc_feresetround, libc_feresetroundf): New.
3491
3492         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
3493         (libc_feholdexcept_setround_53bit): Convert from macro to function.
3494         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
3495
3496         * sysdeps/generic/math_private.h: Include <fenv.h>.
3497         (default_libc_feholdexcept): New.
3498         (default_libc_feholdexcept_setround): New.
3499         (default_libc_fesetenv, default_libc_feupdateenv): New.
3500         (libc_feholdexcept): Only define if undefined.
3501         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
3502         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
3503         (libc_feholdexcept_setroundl): Likewise.
3504         (libc_feholdexcept_setround_53bit): Likewise.
3505         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
3506         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
3507         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
3508         (libc_feupdateenv_53bit): Likewise.
3509         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
3510         (libc_feholdexcept): Convert from macro to inline function.
3511         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
3512         (libc_fesetenv, libc_feupdateenv): Likewise.
3513
3514         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
3515         not previously defined.
3516         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
3517         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
3518         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
3519         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
3520         * sysdeps/ieee754/flt-32/math_private.h: New file.
3521         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
3522         math_private.h below SET_FLOAT_WORD.
3523         (__isnan, __isinf_ns, __finite): Remove.
3524         (__isnanf, __isinf_nsf, __finitef): Remove.
3525
3526 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
3527
3528         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3529
3530 2012-03-17  David S. Miller  <davem@davemloft.net>
3531
3532         [BZ #6471]
3533         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
3534         for 2.16.
3535
3536 2012-03-16  David S. Miller  <davem@davemloft.net>
3537
3538         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
3539         warnings.
3540
3541         [BZ #6471]
3542         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
3543         properly.
3544         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
3545         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
3546         sysdep_routines when subdir is sysvipc.
3547         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
3548         __getshmlba helper.
3549
3550         * sysdeps/sparc/fpu/libm-test/ulps: Update.
3551
3552 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3553
3554         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
3555         [__LP64__].
3556
3557 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3558
3559         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
3560         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
3561         (__lround): Renamed to ...
3562         (__llround): This.  Replace long int with long long int.
3563         Define lround functions as aliases of llround functions.
3564         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
3565
3566 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3567
3568         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3569         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
3570         adresses to uintptr_t.  Replace "long int" and "unsigned long
3571         int" with "greg_t" on va_arg.
3572
3573 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3574
3575         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
3576         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
3577
3578         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
3579         Move e_machine check before EI_CLASS check.  Handle x32
3580         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
3581         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
3582         SKIP_EM_IA_64 and include
3583         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
3584
3585         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
3586         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
3587         (add_system_dir): New macro.
3588
3589         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
3590         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
3591
3592 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
3593
3594         [BZ #2551]
3595         [BZ #2552]
3596         [BZ #2553]
3597         [BZ #2554]
3598         [BZ #2562]
3599         [BZ #2563]
3600         [BZ #2565]
3601         [BZ #2566]
3602         [BZ #2576]
3603         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
3604         (y0): Likewise.
3605         * math/w_j0f.c (j0f): Likewise.
3606         (y0f): Likewise.
3607         * math/w_j0l.c (__j0l): Likewise.
3608         (__y0l): Likewise.
3609         * math/w_j1.c (j1): Likewise.
3610         (y1): Likewise.
3611         * math/w_j1f.c (j1f): Likewise.
3612         (y1f): Likewise.
3613         * math/w_j1l.c (__j1l): Likewise.
3614         (__y1l): Likewise.
3615         * math/w_jn.c (jn): Likewise.
3616         (yn): Likewise.
3617         * math/w_jnf.c (jnf): Likewise.
3618         (ynf): Likewise.
3619         * math/w_jnl.c (__jnl): Likewise.
3620         (__ynl): Likewise.
3621         * math/libm-test.inc (j0_test): Add more tests.
3622         (j1_test): Likewise.
3623         (jn_test): Likewise.  Add trailing semicolon to existing test.
3624         (y0_test): Likewise.
3625         (y1_test): Likewise.
3626         * sysdeps/i386/fpu/libm-test-ulps: Update.
3627         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3628
3629         [BZ #13851]
3630         [BZ #13854]
3631         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
3632         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
3633         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
3634         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
3635         (__tanl): Set errno for infinite argument.
3636         * sysdeps/i386/fpu/mptan.c: Remove.
3637         * sysdeps/i386/fpu/s_tan.S: Likewise.
3638         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3639         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
3640         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3641         * math/libm-test.inc (tan_test): Add more tests and enable more
3642         tests for double and long double.
3643         * sysdeps/i386/fpu/libm-test-ulps: Update.
3644         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3645
3646 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3647
3648         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
3649         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
3650
3651 2012-03-16  Roland McGrath  <roland@hack.frob.com>
3652
3653         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
3654         * configure.in: Use it for both main tree and add-ons.
3655         * configure: Regenerated.
3656
3657 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3658
3659         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
3660
3661 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
3662
3663         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
3664         in comment.
3665
3666         [BZ #13851]
3667         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
3668         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
3669         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
3670         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
3671         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
3672         infinite argument.
3673         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
3674         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
3675         != 0 for prec == 2.
3676         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
3677         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
3678         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3679         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
3680         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3681         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
3682         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
3683         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
3684         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3685         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
3686         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3687         * math/libm-test.inc (cos_test): Add more tests and enable more
3688         tests for long double.
3689         (sin_test): Likewise.
3690         (sincos_test): Likewise.
3691         * sysdeps/i386/fpu/libm-test-ulps: Update.
3692         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3693
3694 2012-03-16  David S. Miller  <davem@davemloft.net>
3695
3696         * sysdeps/sparc/fpu/math_private.h: New file.
3697
3698 2012-03-15  David S. Miller  <davem@davemloft.net>
3699
3700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
3701         file.
3702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
3703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
3704         file.
3705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
3706         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
3707         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
3708         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
3709         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
3710         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
3711         sysdep routines.
3712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
3713
3714         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
3715         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
3716
3717         * sysdeps/sparc/sparc-ifunc.h: New file.
3718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
3719         sparc-ifunc.h
3720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
3721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3722         Likewise.
3723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
3724         Likewise.
3725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
3726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
3727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
3729         Likewise.
3730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
3732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
3734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
3735         Likewise.
3736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
3737         Likewise.
3738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
3739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
3740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
3741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
3742         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
3743         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
3744         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
3745         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
3746         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
3747         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
3748         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
3749         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
3750         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
3751         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
3752         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
3753         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
3754         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
3755         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
3756         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
3757         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
3758         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
3759         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
3760         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
3761         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
3762
3763 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
3764
3765         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
3766         scaling.
3767         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3768
3769 2012-03-15  Andreas Jaeger  <aj@suse.de>
3770
3771         [BZ #13852]
3772         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
3773         ieee754/flt-32 implementation for sin, cos and sincos.
3774         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
3775         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3776         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
3777         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3778         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
3779         ieee754/flt-32 implementation for tan.
3780
3781         * math/libm-test.inc (cos_test): Enable some large input tests for
3782         float as well
3783         (sin_test): Likewise.
3784         (sincos_test): Likewise.
3785         (tan_test): Add tests for large input.
3786
3787         * sysdeps/i386/fpu/libm-test-ulps: Update.
3788
3789 2012-03-15  Andreas Jaeger  <aj@suse.de>
3790
3791         [BZ #13658]
3792         * math/libm-test.inc (cos_test): Add more test cases.
3793         (sin_test): Likewise.
3794         (sincos_test): Likewise.
3795
3796 2012-03-15  Andreas Jaeger  <aj@suse.de>
3797
3798         [BZ #13837]
3799         * math/libm-test.inc (cos_test): Add a test case for large input
3800         value.
3801         (sin_test): Likewise.
3802         (sincos_test): Likewise.
3803
3804 2012-03-15  Andreas Jaeger  <aj@suse.de>,
3805         Joseph Myers  <joseph@codesourcery.com>
3806
3807         [BZ #13658]
3808         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
3809         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
3810         * sysdeps/i386/fpu/branred.c: Likewise.
3811         * sysdeps/i386/fpu/dosincos.c: Likewise.
3812         * sysdeps/i386/fpu/mpa.c: Likewise.
3813         * sysdeps/i386/fpu/s_cos.S: Likewise.
3814         * sysdeps/i386/fpu/s_sin.S: Likewise.
3815         * sysdeps/i386/fpu/s_sincos.S: Likewise.
3816         * sysdeps/i386/fpu/sincos32.c: Likewise.
3817
3818         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
3819         Define.
3820         (libc_feupdateenv_53bit): Define.
3821         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
3822         Define.
3823         (libc_feupdateenv_53bit): Define.
3824
3825         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
3826         53 bit (without extend i386 double precision).
3827
3828         * math/libm-test.inc (sincos_test): Add tests for large input.
3829         (sin): Likewise.
3830         (cos): Likewise.
3831
3832         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
3833
3834 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
3835
3836         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3837
3838 2012-03-15  David S. Miller  <davem@davemloft.net>
3839
3840         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
3841         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
3842         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
3843         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
3844         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
3845         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
3846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
3847         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
3848         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
3849         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
3850         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
3851         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
3852         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
3853         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
3854         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
3855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
3856         file.
3857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
3858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
3859         file.
3860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
3861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
3862         file.
3863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
3864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
3865         file.
3866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
3867         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
3868         fmin/fmax sysdep routines.
3869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
3870
3871 2012-03-14  David S. Miller  <davem@davemloft.net>
3872
3873         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
3874         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
3875         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
3876         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
3877         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
3878         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
3879         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
3880         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
3881         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
3882         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
3883         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
3884         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
3885         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
3886         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
3887         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
3888         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
3889         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
3890         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
3891         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
3892         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
3893         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
3894         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
3895         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
3896         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
3897         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
3898         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
3899         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
3900         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
3901         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
3902         routines.
3903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
3904         file.
3905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
3906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
3907         file.
3908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
3909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
3910         file.
3911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
3912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
3913         file.
3914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
3915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
3916         file.
3917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
3918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
3919         file.
3920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
3921         file.
3922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
3923         file.
3924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
3925         file.
3926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
3927         New file.
3928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
3929         file.
3930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
3931         file.
3932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
3933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
3934         file.
3935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
3936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
3937         file.
3938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
3939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
3940         file.
3941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
3942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
3943         VIS3 routines.
3944
3945         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
3946         New file.
3947
3948         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3949
3950         * sysdeps/sparc/configure.in: New file.
3951         * sysdeps/sparc/configure: Generate.
3952         * configure.in (libc_cv_sparc_as_vis3): Substitute.
3953         * configure: Regenerate.
3954         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
3955         * config.make.in (have-as-vis3): New.
3956         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
3957         available use -Av9d instead of -Av9a.
3958         * sysdeps/sparc/sparc64/Makefile: Likewise.
3959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
3960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
3961         New file.
3962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
3963         file.
3964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
3965         New file.
3966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
3967         file.
3968         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
3969         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
3970         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
3971         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
3972         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
3973
3974         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
3975         fzeros/fnegs to load 0x80000000 into a float register instead of
3976         using the stack.
3977         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
3978
3979 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
3980
3981         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3982         bits/syscall.h.
3983         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
3984         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
3985         ($(inst_includedir)/bits/syscall.h): Remove rule.
3986         ($(objpfx)bits/syscall.d): Include instead of
3987         $(objpfx)syscall-list.d.
3988         (generated): Change syscall-list.h and syscall-list.d to
3989         bits/syscall.h and bits/syscall.d.
3990
3991 2012-03-14  Roland McGrath  <roland@hack.frob.com>
3992
3993         [BZ #13846]
3994         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
3995
3996 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
3997
3998         [BZ #13841]
3999         * math/s_csqrt.c: Include <float.h>.
4000         (__csqrt): Scale large or subnormal inputs.
4001         * math/s_csqrtf.c: Likewise.
4002         * math/s_csqrtl.c: Likewise.
4003         * math/libm-test.inc (csqrt_test): Add more tests.
4004         * sysdeps/i386/fpu/libm-test-ulps: Update.
4005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4006
4007         [BZ #13840]
4008         * math/libm-test.inc (hypot_test): Add more tests.
4009
4010 2012-03-13  David S. Miller  <davem@davemloft.net>
4011
4012         [BZ #13840]
4013         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
4014         double-precision for the calculation instead of scaling.
4015
4016 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
4017
4018         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
4019         manipulate bits before adding and subtracting TWO52[sx].
4020         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
4021         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
4022         Likewise.
4023         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
4024
4025 2012-03-13  David S. Miller  <davem@davemloft.net>
4026
4027         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
4028         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
4029         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
4030         rtld-global-offsets.h
4031         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
4032
4033         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
4034         large parameters.
4035
4036         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
4037
4038         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
4039         'err' in the ifdef scope in which it is actually used.
4040
4041         * nss/nss_db/db-init.c: Include string.h
4042
4043 2012-03-12  David S. Miller  <davem@davemloft.net>
4044
4045         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
4046         masking out of the most significant byte of random value used.
4047         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
4048         Fix coding style in previous change.
4049
4050         * sysdeps/unix/sysv/linux/kernel-features.h
4051         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
4052         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
4053         expression.
4054         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
4055         later.
4056
4057 2012-03-11  David S. Miller  <davem@davemloft.net>
4058
4059         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
4060         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
4061         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
4062         for 'resultvar' otherwise things get truncated on 64-bit.
4063
4064         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
4065         Fix masking out of the most significant byte of random value used.
4066
4067         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4068
4069 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
4070
4071         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4072
4073 2012-03-09  David S. Miller  <davem@davemloft.net>
4074
4075         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
4076         variables with appropriate CPP guards.
4077         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
4078         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
4079         on resulting framesize and the management of the outregs buffer for pltexit.
4080         Preserve floating point return values across _dl_call_pltexit call.
4081         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
4082         framesize and the management of the outregs buffer for pltexit.
4083         Preserve floating point return values across _dl_call_pltexit
4084         call.
4085         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
4086         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
4087         (print_exit): Fix format string for return register value.
4088
4089 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
4090
4091         * sunrpc/Makefile (others): Add rpcgen.
4092         ($(objpfx)rpcgen): Remove special build rule and dependency on
4093         libc.
4094         * sunrpc/rpcgen.c: New file.
4095
4096 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
4097
4098         [BZ #13673]
4099         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
4100         * stdio-common/bug-vfprintf-nargs.c: Likewise.
4101         * sysdeps/i386/crti.S: Likewise.
4102         * sysdeps/i386/crtn.S: Likewise.
4103         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
4104         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
4105         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
4106         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
4107         * sysdeps/sh/crti.S: Likewise.
4108         * sysdeps/sh/crtn.S: Likewise.
4109         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4110
4111         [BZ #13673]
4112         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
4113         with URL.
4114         * locale/programs/locfile-kw.gperf: Likewise.
4115         * locale/programs/charmap-kw.h: Regenerated.
4116         * locale/programs/locfile-kw.h: Likewise.
4117
4118         [BZ #13673]
4119         * intl/plural.y: Replace FSF snail mail address with URL.
4120         * intl/plural.c: Regenerated.
4121
4122 2012-03-09  Richard Henderson  <rth@twiddle.net>
4123
4124         * include/math_private.h: Remove file.
4125         * math/math_private.h: Move file ...
4126         * sysdeps/generic/math_private.h: ... here.
4127
4128         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
4129         * sysdeps/powerpc/fpu/math_private.h: Likewise.
4130         * sysdeps/x86_64/fpu/math_private.h: Likewise.
4131
4132         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
4133         and <math_private.h>.
4134         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4135         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4136         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4137         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4138         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4139         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
4140         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
4141         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4142         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
4143         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4144         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4145         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
4146         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4147         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4148         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
4149         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4150         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4151         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4152         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4153         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
4154         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4155         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
4156         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
4157         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4158         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4159         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4160         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4161         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4162         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4163         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4164         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4165         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4166         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
4167         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
4168         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4169         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4170         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4171         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4172         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4173         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4174         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
4175         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4176         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4177         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4178         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
4179         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4180         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
4181         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4182         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4183         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4184         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4185         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
4186         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
4187         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4188         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
4189         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
4190         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
4191         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
4192         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
4193         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
4194         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4195         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4196         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4197         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4198         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
4199         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4200         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4201         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4202         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
4203         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
4204         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
4205         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
4206         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
4207         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
4208         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
4209         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
4210         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
4211         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4212         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
4213         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
4214         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
4215         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
4216         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
4217         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
4218         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
4219         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
4220         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
4221         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
4222         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
4223         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4224         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4225         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
4226         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
4227         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
4228         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
4229         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
4230         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
4231         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
4232         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
4233         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4234         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
4235         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
4236         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
4237         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
4238         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4239         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
4240         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
4241         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
4242         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4243         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4244         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4245         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4246         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
4247         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4248         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
4249         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
4250         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4251         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4252         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4253         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
4254         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4255         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4256         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
4257         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
4258         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4259         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4260         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
4261         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
4262         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4263         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
4264         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
4265         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
4266         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4267         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
4268         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
4269         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
4270         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
4271         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4272         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
4273         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
4274         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
4275         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
4276         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
4277         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
4278         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
4279         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4280         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4281         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4282         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
4283         * sysdeps/ieee754/k_standard.c: Likewise.
4284         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
4285         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4286         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4287         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4288         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4289         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4290         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
4291         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4292         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4293         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4294         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4295         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4296         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4297         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4298         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4299         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4300         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4301         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4302         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4303         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4304         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4305         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4306         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4307         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4308         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4309         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4310         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4311         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4312         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4313         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4314         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4315         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4316         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4317         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4318         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
4319         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4320         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
4321         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
4322         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4323         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4324         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4325         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4326         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4327         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4328         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4329         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4330         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4331         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4332         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4333         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4334         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4335         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4336         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4337         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
4338         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4339         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4340         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
4341         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4342         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4343         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4344         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4345         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
4346         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
4347         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
4348         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
4349         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4350         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
4351         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
4352         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
4353         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
4354         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
4355         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4356         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
4357         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
4358         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
4359         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
4360         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
4361         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
4362         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
4363         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
4364         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
4365         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
4366         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4367         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4368         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
4369         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4370         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4371         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
4372         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4373         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4374         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
4375         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4376         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
4377         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
4378         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4379         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4380         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
4381         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
4382         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
4383         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
4384         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4385         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4386         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4387         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4388         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
4389         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4390         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4391         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
4392         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
4393         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4394         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4395         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4396         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
4397         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4398         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
4399         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
4400         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
4401         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4402         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
4403         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
4404         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
4405         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4406         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
4407         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
4408         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4409         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
4410         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4411         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4412         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4413         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4414         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
4415         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4416         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
4417         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
4418         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
4419         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
4420         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
4421         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
4422         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
4423         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
4424         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
4425         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
4426         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
4427         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
4428         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
4429         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
4430         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
4431         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4432         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4433         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
4434         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
4435         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
4436         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
4437         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
4438         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
4439         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
4440         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4441         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4442         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
4443         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
4444         * sysdeps/ieee754/s_lib_version.c: Likewise.
4445         * sysdeps/ieee754/s_matherr.c: Likewise.
4446         * sysdeps/ieee754/s_signgam.c: Likewise.
4447         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
4448         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
4449         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
4450         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
4451         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
4452         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4453         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
4454         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
4455         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
4456         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
4457         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
4458         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
4459         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
4460         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
4461         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
4462         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
4463         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4464         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
4465         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4466         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4467         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4468
4469 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
4470
4471         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
4472         * sunrpc/rpc_main.c: Likewise.
4473         * sunrpc/rpc_svcout.c: Likewise.
4474
4475 2012-03-09  David S. Miller  <davem@davemloft.net>
4476
4477         * include/math_private.h: New file.
4478
4479 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
4480
4481         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
4482         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
4483         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
4484         from <bits/socket_type.h>.
4485         (enum __socket_type): Don't define here.
4486         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
4487         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4488         bits/socket_type.h.
4489
4490         [BZ #13566]
4491         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
4492         checking __USE_GNU.
4493
4494         * Makerules ($(inst_includedir)/%.h): New rule.
4495         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
4496         (install-others): Remove variable setting.
4497         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
4498
4499 2012-03-08  Richard Henderson  <rth@twiddle.net>
4500
4501         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
4502         from macro to inline function; merge with the
4503         !__LIBC_INTERNAL_MATH_INLINES version.
4504         (__ieee754_sqrtf): Likewise.
4505
4506         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
4507         to inline function.
4508         (__rintf, __floor, __floorf): Likewise.
4509
4510         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
4511         macro to inline function.
4512         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
4513
4514         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
4515         not <math/math_private.h>.
4516
4517 2012-03-08  David S. Miller  <davem@davemloft.net>
4518
4519         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
4520         copyright year.
4521         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
4522
4523 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
4524
4525         * resolv/gai_misc.c (handle_requests): Fix struct timespec
4526         normalization.
4527         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
4528         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
4529
4530 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
4531
4532         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
4533         be defined individually, they must be defined as a block.  Define
4534         S for printing a string instead of hidint the different by using a
4535         macro for adding the 'l'.
4536         * stdio-common/tst-fphex-wide.c: Adjust.
4537
4538 2012-03-07  Marek Polacek  <polacek@redhat.com>
4539
4540         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
4541
4542 2012-03-08  Marek Polacek  <polacek@redhat.com>
4543
4544         [BZ #13806]
4545         * stdio-common/Makefile (tests): Add tst-fphex-wide.
4546         * stdio-common/tst-fphex.c: Define a few macros to make the
4547         test reusable.  Use them.
4548         * stdio-common/tst-fphex-wide.c: New file.
4549
4550 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
4551
4552         [BZ #6911]
4553         * manual/macros.texi (gnusystems): New macro.
4554         (nongnusystems): Likewise.
4555         (gnulinuxhurdsystems): Likewise.
4556         (gnuhurdsystems): Likewise..
4557         (gnulinuxsystems): Likewise.
4558         * manual/charset.texi: Use new macros or @theglibc{} to refer to
4559         variants of the GNU system, not "GNU system".
4560         * manual/conf.texi: Likewise.
4561         * manual/errno.texi: Likewise.  Update example of errno macro
4562         expansion.
4563         * manual/filesys.texi: Likewise.
4564         (getumask): Document as specific to GNU/Hurd.
4565         * manual/install.texi: Likewise.  Reword some references to
4566         GNU/Linux.
4567         * manual/intro.texi: Likewise.
4568         * manual/io.texi: Likewise.
4569         (File Name Portability): Detail which constraints are inapplicable
4570         to all GNU systems and which are only inapplicable to GNU/Hurd.
4571         * manual/job.texi: Likewise.
4572         * manual/llio.texi: Likewise.
4573         (O_NOCTTY): Document as present on GNU/Linux.
4574         * manual/maint.texi: Likewise.
4575         * manual/memory.texi: Likewise.
4576         * manual/pattern.texi: Likewise.
4577         * manual/pipe.texi: Likewise.
4578         * manual/process.texi: Likewise.
4579         * manual/resource.texi: Likewise.
4580         (RUSAGE_CHILDREN): Remove statement about specifying a particular
4581         child on GNU/Hurd.
4582         * manual/setjmp.texi: Likewise.
4583         * manual/signal.texi: Likewise.
4584         * manual/startup.texi: Likewise.
4585         * manual/stdio.texi: Likewise.
4586         * manual/terminal.texi: Likewise.
4587         (ONLCR): Document as POSIX.
4588         (OXTABS): Document availability on GNU/Linux as XTABS.
4589         (ONOEOT): Document availability separately from other bits.
4590         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
4591         * manual/time.texi: Likewise.
4592         * manual/users.texi: Likewise.
4593         * INSTALL: Regenerated.
4594         * sysdeps/gnu/errlist.c: Regenerated.
4595
4596         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
4597         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
4598         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
4599         puts.
4600         * configure: Regenerated.
4601
4602 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
4603
4604         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
4605         default includes instead of AC_HEADER_CHECK.
4606         * sysdeps/i386/configure: Regenerated.
4607
4608         [BZ #10716]
4609         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
4610         * math/s_cacoshf.c (__cacoshf): Likewise.
4611         * math/s_cacoshl.c (__cacoshl): Likewise.
4612         * math/s_casinh.c (__casinh): Set signs of result from argument.
4613         * math/s_casinhf.c (__casinhf): Likewise.
4614         * math/s_casinhl.c (__casinhl): Likewise.
4615         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
4616         (casinh_test): Add more tests.
4617         * sysdeps/i386/fpu/libm-test-ulps: Update.
4618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4619
4620 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
4621
4622         * po/zh_TW.po: Update from translation team.
4623
4624         * login/Makefile (distribute): Remove variable.
4625         * catgets/Makefile: Likewise.
4626         * mach/Makefile: Likewise.
4627         * malloc/Makefile: Likewise.
4628         * misc/Makefile: Likewise.
4629         * iconv/Makefile: Likewise.
4630         * nscd/Makefile: Likewise.
4631         * hurd/Makefile: Likewise.
4632         * manual/Makefile: Likewise.
4633         * locale/Makefile: Likewise.
4634         * intl/Makefile: Likewise.
4635         * conform/Makefile: Likewise.
4636         * nss/Makefile: Likewise.
4637         * time/Makefile: Likewise.
4638         * soft-fp/Makefile: Likewise.
4639         * dirent/Makefile: Likewise.
4640         * gmon/Makefile: Likewise.
4641         * po/Makefile: Likewise.
4642         * rt/Makefile: Likewise.
4643         * socket/Makefile: Likewise.
4644         * math/Makefile: Likewise.
4645         * signal/Makefile: Likewise.
4646         * debug/Makefile: Likewise.
4647         * elf/Makefile: Likewise.
4648         * timezone/Makefile: Likewise.
4649         * stdlib/Makefile: Likewise.
4650         * iconvdata/Makefile: Likewise.
4651         * sunrpc/Makefile: Likewise.
4652         * io/Makefile: Likewise.
4653         * argp/Makefile: Likewise.
4654         * inet/Makefile: Likewise.
4655         * hesiod/Makefile: Likewise.
4656         * grp/Makefile: Likewise.
4657         * csu/Makefile: Likewise.
4658         * wctype/Makefile: Likewise.
4659         * crypt/Makefile: Likewise.
4660         * libio/Makefile: Likewise.
4661         * string/Makefile: Likewise.
4662         * nis/Makefile: Likewise.
4663         * resolv/Makefile: Likewise.
4664         * stdio-common/Makefile: Likewise.
4665         * wcsmbs/Makefile: Likewise.
4666         * dlfcn/Makefile: Likewise.
4667         * posix/Makefile: Likewise.
4668
4669         [BZ #6959]
4670         * timezone/Makefile: Don't install timezone files, just the programs
4671         and scripts.
4672
4673 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
4674
4675         * nss/databases.def: Add missing gshadow entry.
4676
4677         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
4678
4679 2012-03-06  Marek Polacek  <polacek@redhat.com>
4680
4681         [BZ #13726]
4682         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
4683         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
4684         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
4685         * stdio-common/tst-long-dbl-fphex.c: New file.
4686
4687 2012-03-06  David S. Miller  <davem@davemloft.net>
4688
4689         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4690         (set_obp_int): New function.
4691         (get_obp_int): New function.
4692         (__get_clockfreq_via_dev_openprom): Likewise.
4693         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4694         Avoid unused variable warnings on 'val' and use builtin_expect.
4695         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
4696         __builtin_expect.
4697         (INLINE_CLONE_SYSCALL): Likewise.
4698
4699 2012-03-05  David S. Miller  <davem@davemloft.net>
4700
4701         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4702
4703 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
4704
4705         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4706
4707         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
4708         only for |x| >= 40.
4709         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
4710
4711 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
4712
4713         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
4714         Replace gettimeofday with __vdso_gettimeofday.
4715
4716         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4717         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
4718         __vdso_clock_gettime and __vdso_getcpu.
4719
4720         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
4721         time with __vdso_time.
4722
4723 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
4724
4725         * manual/lang.texi (size_t): Note types to which size_t may be
4726         equivalent with the GNU C Library, but do not describe when
4727         differences between them are significant.
4728
4729 2012-03-05  Andreas Jaeger  <aj@suse.de>
4730
4731         * sysdeps/i386/fpu/libm-test-ulps: Update.
4732
4733 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
4734
4735         [BZ #3976]
4736         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
4737         (__ieee754_pow): Save and restore rounding mode and use
4738         round-to-nearest for main computations.
4739         * math/libm-test.inc (pow_test_tonearest): New function.
4740         (pow_test_towardzero): Likewise.
4741         (pow_test_downward): Likewise.
4742         (pow_test_upward): Likewise.
4743         (main): Call the new functions.
4744         * sysdeps/i386/fpu/libm-test-ulps: Update.
4745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4746
4747         [BZ #3976]
4748         * math/libm-test.inc (cosh_test_tonearest): New function.
4749         (cosh_test_towardzero): Likewise.
4750         (cosh_test_downward): Likewise.
4751         (cosh_test_upward): Likewise.
4752         (sinh_test_tonearest): Likewise.
4753         (sinh_test_towardzero): Likewise.
4754         (sinh_test_downward): Likewise.
4755         (sinh_test_upward): Likewise.
4756         (main): Call the new functions.
4757         * sysdeps/i386/fpu/libm-test-ulps: Update.
4758         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4759
4760 2012-03-05  Tom de Vries  <tom@codesourcery.com>
4761
4762         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
4763         default stack guard is set in last bytes.
4764         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
4765
4766 2012-03-05  Kees Cook  <keescook@chromium.org>
4767
4768         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
4769
4770         [BZ #13656]
4771         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
4772         possibly allocate from heap instead of stack.
4773         * stdio-common/bug-vfprintf-nargs.c: New file.
4774         * stdio-common/Makefile (tests): Add nargs overflow test.
4775
4776 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
4777
4778         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4779
4780 2012-03-03  Marek Polacek  <polacek@redhat.com>
4781
4782         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
4783         * math/math_private.h: Likewise.
4784         * stdlib/tst-strtod.c: Likewise.
4785         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4786         * sysdeps/x86_64/bits/atomic.h: Likewise.
4787
4788 2012-03-02  David S. Miller  <davem@davemloft.net>
4789
4790         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
4791         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
4792         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
4793         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
4794         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
4795         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
4796         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
4797         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
4798
4799 2012-03-02  Roland McGrath  <roland@hack.frob.com>
4800
4801         [BZ #13792]
4802         * manual/examples/README: New file, says the example source files
4803         can be used under GPL>=2.
4804         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
4805         line containing just "*/".
4806         * manual/examples/add.c: Add copyright header (GPL>=2).
4807         * manual/examples/argp-ex1.c: Likewise.
4808         * manual/examples/argp-ex2.c: Likewise.
4809         * manual/examples/argp-ex3.c: Likewise.
4810         * manual/examples/argp-ex4.c: Likewise.
4811         * manual/examples/atexit.c: Likewise.
4812         * manual/examples/db.c: Likewise.
4813         * manual/examples/dir.c: Likewise.
4814         * manual/examples/dir2.c: Likewise.
4815         * manual/examples/execinfo.c: Likewise.
4816         * manual/examples/filecli.c: Likewise.
4817         * manual/examples/filesrv.c: Likewise.
4818         * manual/examples/fmtmsgexpl.c: Likewise.
4819         * manual/examples/genpass.c: Likewise.
4820         * manual/examples/inetcli.c: Likewise.
4821         * manual/examples/inetsrv.c: Likewise.
4822         * manual/examples/isockad.c: Likewise.
4823         * manual/examples/longopt.c: Likewise.
4824         * manual/examples/memopen.c: Likewise.
4825         * manual/examples/memstrm.c: Likewise.
4826         * manual/examples/mkfsock.c: Likewise.
4827         * manual/examples/mkisock.c: Likewise.
4828         * manual/examples/mygetpass.c: Likewise.
4829         * manual/examples/pipe.c: Likewise.
4830         * manual/examples/popen.c: Likewise.
4831         * manual/examples/rprintf.c: Likewise.
4832         * manual/examples/search.c: Likewise.
4833         * manual/examples/select.c: Likewise.
4834         * manual/examples/setjmp.c: Likewise.
4835         * manual/examples/sigh1.c: Likewise.
4836         * manual/examples/sigusr.c: Likewise.
4837         * manual/examples/stpcpy.c: Likewise.
4838         * manual/examples/strdupa.c: Likewise.
4839         * manual/examples/strftim.c: Likewise.
4840         * manual/examples/strncat.c: Likewise.
4841         * manual/examples/subopt.c: Likewise.
4842         * manual/examples/swapcontext.c: Likewise.
4843         * manual/examples/termios.c: Likewise.
4844         * manual/examples/testopt.c: Likewise.
4845         * manual/examples/testpass.c: Likewise.
4846         * manual/examples/timeval_subtract.c: Likewise.
4847
4848         [BZ #13792]
4849         * manual/time.texi (Elapsed Time): Move timeval_subtract example
4850         function to ...
4851         * manual/timeval_subtract.c.texi: ... here, new file.
4852
4853 2012-03-02  David S. Miller  <davem@davemloft.net>
4854
4855         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
4856
4857 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
4858
4859         [BZ #3976]
4860         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
4861         (__sin): Save and restore rounding mode and use round-to-nearest
4862         for all computations.
4863         (__cos): Save and restore rounding mode and use round-to-nearest
4864         for all computations.
4865         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
4866         <fenv.h>.
4867         (tan): Save and restore rounding mode and use round-to-nearest for
4868         all computations.
4869         * math/libm-test.inc (cos_test_tonearest): New function.
4870         (cos_test_towardzero): Likewise.
4871         (cos_test_downward): Likewise.
4872         (cos_test_upward): Likewise.
4873         (sin_test_tonearest): Likewise.
4874         (sin_test_towardzero): Likewise.
4875         (sin_test_downward): Likewise.
4876         (sin_test_upward): Likewise.
4877         (tan_test_tonearest): Likewise.
4878         (tan_test_towardzero): Likewise.
4879         (tan_test_downward): Likewise.
4880         (tan_test_upward): Likewise.
4881         (main): Call the new functions.
4882         * sysdeps/i386/fpu/libm-test-ulps: Update.
4883         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4884
4885         [BZ #10135]
4886         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
4887         small n, then large n, before computing and testing k+n.
4888         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
4889         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
4890         Likewise.
4891         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
4892         Likewise.
4893         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
4894         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
4895         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
4896         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
4897         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
4898         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
4899         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
4900         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
4901         * math/libm-test.inc (scalbn_test): Add more tests.
4902         (scalbln_test): Likewise.
4903
4904         * manual/filesys.texi (mode_t): Describe constraints on size and
4905         signedness, not exact equivalence to a particular type.
4906         (ino_t): Likewise.
4907         (ino64_t): Likewise.
4908         (dev_t): Likewise.
4909         (nlink_t): Likewise.
4910         (blkcnt_t): Likewise.
4911         (blkcnt64_t): Likewise.
4912         * manual/llio.texi (off_t): Likewise.
4913
4914         [BZ #3976]
4915         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
4916         (__ieee754_exp): Save and restore rounding mode and use
4917         round-to-nearest for all computations.
4918         * math/libm-test.inc (exp_test_tonearest): New function.
4919         (exp_test_towardzero): Likewise.
4920         (exp_test_downward): Likewise.
4921         (exp_test_upward): Likewise.
4922         (main): Call the new functions.
4923         * sysdeps/i386/fpu/libm-test-ulps: Update.
4924         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4925
4926 2012-03-01  Chris Demetriou  <cgd@google.com>
4927
4928         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
4929         have predictable order.
4930
4931 2012-03-01  David S. Miller  <davem@davemloft.net>
4932
4933         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
4934
4935         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
4936         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
4937         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
4938         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
4939
4940         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
4941         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
4942         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
4943         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
4944         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
4945         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
4946         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
4947         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
4948         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
4949
4950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4951
4952         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
4953         * sysdeps/sparc/fpu/libm-test-ulps: to here.
4954         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
4955
4956         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
4957         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4958         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4959         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
4960         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
4961         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
4962         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
4963         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4964         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4965         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
4966         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
4967         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4968         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4969         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
4970         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4971         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4972         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
4973         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
4974         * sysdeps/sparc/elf/configure: Regenerated.
4975
4976 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
4977
4978         * configure.in (AS, LD): Require binutils 2.20 or later.
4979         * configure: Regenerated.
4980         * manual/install.texi (Tools for Compilation): Give binutils 2.20
4981         as required minimum version.
4982         * INSTALL: Regenerated.
4983
4984         [BZ #2541]
4985         [BZ #4108]
4986         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
4987         before squaring exponent.
4988         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
4989         bottom long double and 27 bits of top long double before squaring
4990         exponent.
4991         * math/libm-test.inc (erfc_test): Add more tests.
4992         * sysdeps/i386/fpu/libm-test-ulps: Update.
4993         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4995
4996 2012-03-01  Kai Tietz  <ktietz@redhat.com>
4997
4998         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
4999         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
5000         containing bit-fields.
5001         * soft-fp/extended.h (_FP_UNION_E): Likewise.
5002         * soft-fp/single.h (_FP_UNION_S): Likewise.
5003         * soft-fp/double.h (_FP_UNION_D): Likewise.
5004
5005 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
5006
5007         [BZ #13786]
5008         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
5009         not include ../strcmp.S.
5010         [USE_AS_STRNCASECMP_L]: Likewise.
5011         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
5012         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
5013         * sysdeps/i386/i686/multiarch/strncase_l-c.c
5014         (__strncasecmp_l_ia32): Define as alias to
5015         __strncasecmp_l_nonascii.
5016
5017         [BZ #5794]
5018         * math/libm-test.inc (expm1_test): Add test for bug 5794.
5019         * sysdeps/i386/fpu/libm-test-ulps: Update.
5020         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5021
5022         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
5023         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5024
5025 2012-02-29  Jeff Law  <law@redhat.com>
5026
5027         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
5028         out of bounds read.
5029
5030 2012-02-29  Marek Polacek  <polacek@redhat.com>
5031
5032         [BZ #13706]
5033         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
5034         * elf/Makefile: Add rules to run tst-unused-dep.out.
5035
5036 2012-02-28  David S. Miller  <davem@davemloft.net>
5037
5038         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
5039         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
5040         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
5041         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
5042         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
5043         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
5044
5045 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
5046
5047         * math/libm-test.inc (llround_test): Move one test from
5048         lround_test.  Use TEST_f_L in moved test.
5049         (lround_test): Move misplaced test to llround_test.  Add testcase
5050         from bug 2561.
5051
5052 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
5053
5054         * sysdeps/x86_64/fpu/e_expf.S: New file.
5055         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
5056
5057 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
5058
5059         [BZ #13637]
5060         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
5061         of remain_len that may cause incomplete multi-byte character and
5062         false match.
5063         * posix/bug-regex33.c: New file.
5064         * posix/Makefile (tests): Add bug-regex33.
5065
5066 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
5067
5068         * manual/macros.texi: New file.
5069         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
5070         * manual/libc.texinfo: Include macros.texi.
5071         * manual/creatute.texi: Likewise.
5072         * manual/install.texi: Likewise.
5073         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
5074         @glibcadj{} in references to the GNU C Library.
5075         * manual/charset.texi: Likewise.
5076         * manual/conf.texi: Likewise.
5077         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
5078         when not using those macros.
5079         * manual/creature.texi: Likewise.
5080         * manual/crypt.texi: Likewise.
5081         * manual/errno.texi: Likewise.
5082         * manual/filesys.texi: Likewise.
5083         * manual/header.texi: Likewise.
5084         * manual/install.texi: Likewise.
5085         * manual/intro.texi: Likewise.
5086         * manual/io.texi: Likewise.
5087         * manual/job.texi: Likewise.
5088         * manual/lang.texi: Likewise.
5089         * manual/libc.texiinfo: Likewise.
5090         * manual/llio.texi: Likewise.
5091         * manual/locale.texi: Likewise.
5092         * manual/maint.texi: Likewise.
5093         * manual/math.texi: Likewise.
5094         * manual/memory.texi: Likewise.
5095         * manual/message.texi: Likewise.
5096         * manual/nss.texi: Likewise.
5097         * manual/pattern.texi: Likewise.
5098         * manual/process.texi: Likewise.
5099         * manual/resource.texi: Likewise.
5100         * manual/search.texi: Likewise.
5101         * manual/setjmp.texi: Likewise.
5102         * manual/signal.texi: Likewise.
5103         * manual/socket.texi: Likewise.
5104         * manual/startup.texi: Likewise.
5105         * manual/stdio.texi: Likewise.
5106         * manual/string.texi: Likewise.
5107         * manual/sysinfo.texi: Likewise.
5108         * manual/syslog.texi: Likewise.
5109         * manual/terminal.texi: Likewise.
5110         * manual/time.texi: Likewise.
5111         * manual/users.texi: Likewise.
5112         * INSTALL: Regenerated.
5113         * NOTES: Regenerated.
5114         * sysdeps/gnu/errlist.c: Regenerated.
5115
5116 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
5117
5118         * include/dirent.h: Include <dirstream.h> before
5119         <dirent/dirent.h>.
5120
5121 2012-02-28  David S. Miller  <davem@davemloft.net>
5122
5123         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
5124         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
5125         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
5126         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
5127
5128 2012-02-27  David S. Miller  <davem@davemloft.net>
5129
5130         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
5131         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
5132         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
5133         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
5134
5135         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
5136         frame pointer instead of stack pointer relative arg slot.
5137         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
5138         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
5139         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
5140
5141 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
5142
5143         [BZ #3992]
5144         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
5145
5146 2012-02-27  David S. Miller  <davem@davemloft.net>
5147
5148         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
5149         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
5150         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
5151         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
5152         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
5153         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
5154         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
5155         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
5156
5157 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
5158
5159         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
5160         later.  Allow versions 5-9.
5161         * configure: Regenerated.
5162         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
5163         required minimum version and 4.6 as recommended version.  Do not
5164         mention bugs in GCC 2.7 and 2.8.
5165         * INSTALL: Regenerated.
5166
5167 2012-02-27  David S. Miller  <davem@davemloft.net>
5168
5169         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
5170         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
5171         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
5172         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
5173         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
5174         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
5175         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
5176         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
5177
5178         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
5179         manipulate bits before adding and subtracting TWO112[sx].
5180         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
5181
5182 2012-02-27  Roland McGrath  <roland@hack.frob.com>
5183
5184         [BZ #13775]
5185         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
5186         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
5187         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
5188         being in POSIX, because they are in 1003.1-2008.
5189
5190         * rt/tst-aio.c: Include <fcntl.h>.
5191         * rt/tst-aio7.c: Likewise.
5192         * rt/tst-aio64.c: Likewise.
5193
5194         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
5195
5196 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
5197
5198         * manual/install.texi (--with-headers): Describe headers as
5199         interface headers, not private headers.
5200         (Specific advice for GNU/Linux systems): Describe use of headers
5201         from "make headers_install", not private headers from older
5202         kernels.
5203         * INSTALL: Regenerated.
5204         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
5205         Change to 2.6.19.
5206         * sysdeps/unix/sysv/linux/configure: Regenerated.
5207
5208         * manual/llio.texi (fclean): Remove documentation.
5209
5210         * manual/Makefile (libc-texi-generated): New variable.  Include
5211         version.texi.
5212         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
5213         $(libc-texi-generated), not duplicated list of files.
5214         (version.texi, stamp-version): New rules.
5215         (realclean): Remove $(libc-texi-generated), not individual files
5216         from that list.  Do not remove dir-add.texinfo.
5217         * manual/libc.texinfo: Comment out uses of edition numbers and
5218         references to printed manual.  Remove last-updated dates.
5219         (EDITION): Comment out.
5220         (ISBN): Likewise.
5221         (VERSION, UPDATED): Remove.
5222         (version.texi): Include.
5223
5224 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
5225
5226         * sysdeps/posix/spawni.c: Include <signal.h>.
5227         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
5228         * sysdeps/pthread/aio_fsync.c: Likewise.
5229
5230 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
5231
5232         * conform/Makefile (tests): Run only when not cross-compiling and
5233         when fast-check is not defined.
5234
5235         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
5236         * conform/data/limits.h-data: Fixes for POSIX2008.
5237         * conform/run-conformtest.sh: Run all tests.
5238         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
5239         headers.
5240         * include/bits/dlfcn.h: Likewise.
5241         * include/langinfo.h: Likewise.
5242         * include/monetary.h: Likewise.
5243         * include/sys/poll.h: Likewise.
5244
5245         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
5246         for __USE_GNU.
5247         * posix/spawn.h: Define __need_sigset_t.
5248         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
5249         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
5250         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
5251         to get sigevent_t only.
5252         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
5253         only for __USE_GNU.
5254         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5255         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
5256         process_vm_writev only for __USE_GNU.
5257         * termios/termios.h: Declare tcgetsid also for POSIX2008.
5258
5259         * conform/Makefile: For now ignore errors from run-conformtest.
5260         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
5261         POSIX to avoid namespace pollution.  Don't prepend headers.
5262         * conform/data/aio.h-data: Fixes for POSIX testing.
5263         * conform/data/fcntl.h-data: Likewise.
5264         * conform/data/glob.h-data: Likewise.
5265         * conform/data/grp.h-data: Likewise.
5266         * conform/data/pthread.h-data: Likewise.
5267         * conform/data/pwd.h-data: Likewise.
5268         * conform/data/signal.h-data: Likewise.
5269         * conform/data/spawn.h-data: Likewise.
5270         * conform/data/stdio.h-data: Likewise.
5271         * conform/data/stdlib.h-data: Likewise.
5272         * conform/data/stropts.h-data: Likewise.
5273         * conform/data/sys/mman.h-data: Likewise.
5274         * conform/data/sys/stat.h-data: Likewise.
5275         * conform/data/sys/types.h-data: Likewise.
5276         * conform/data/sys/wait.h-data: Likewise.
5277         * conform/data/time.h-data: Likewise.
5278         * conform/data/unistd.h-data: Likewise.
5279         * conform/data/utime.h-data: Likewise.
5280
5281         * io/sys/stat.h: fchmod was always in POSIX.
5282         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
5283         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
5284         * rt/aio.h: Define __need_timespec before including <time.h>.
5285         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
5286         struct.  Add forward declaration of pthread_attr_t and use it in
5287         sigevent.
5288         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
5289         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
5290         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
5291         always remove CLK_TCK definition.
5292
5293 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
5294
5295         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
5296
5297 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
5298
5299         * conform/run-conformtest.sh: New file.
5300         * conform/Makefile: Run run-conformtest for tests.
5301         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
5302         support.
5303
5304         * conform/data/uchar.h-data: New file.
5305         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
5306         * conform/data/arpa/inet.h-data: Likewise.
5307         * conform/data/assert.h-data: Likewise.
5308         * conform/data/complex.h-data: Likewise.
5309         * conform/data/cpio.h-data: Likewise.
5310         * conform/data/ctype.h-data: Likewise.
5311         * conform/data/dirent.h-data: Likewise.
5312         * conform/data/dlfcn.h-data: Likewise.
5313         * conform/data/errno.h-data: Likewise.
5314         * conform/data/fcntl.h-data: Likewise.
5315         * conform/data/float.h-data: Likewise.
5316         * conform/data/fmtmsg.h-data: Likewise.
5317         * conform/data/fnmatch.h-data: Likewise.
5318         * conform/data/ftw.h-data: Likewise.
5319         * conform/data/glob.h-data: Likewise.
5320         * conform/data/grp.h-data: Likewise.
5321         * conform/data/iconv.h-data: Likewise.
5322         * conform/data/inttypes.h-data: Likewise.
5323         * conform/data/langinfo.h-data: Likewise.
5324         * conform/data/libgen.h-data: Likewise.
5325         * conform/data/limits.h-data: Likewise.
5326         * conform/data/locale.h-data: Likewise.
5327         * conform/data/math.h-data: Likewise.
5328         * conform/data/monetary.h-data: Likewise.
5329         * conform/data/mqueue.h-data: Likewise.
5330         * conform/data/ndbm.h-data: Likewise.
5331         * conform/data/net/if.h-data: Likewise.
5332         * conform/data/netdb.h-data: Likewise.
5333         * conform/data/netinet/in.h-data: Likewise.
5334         * conform/data/nl_types.h-data: Likewise.
5335         * conform/data/poll.h-data: Likewise.
5336         * conform/data/pthread.h-data: Likewise.
5337         * conform/data/pwd.h-data: Likewise.
5338         * conform/data/regex.h-data: Likewise.
5339         * conform/data/sched.h-data: Likewise.
5340         * conform/data/search.h-data: Likewise.
5341         * conform/data/semaphore.h-data: Likewise.
5342         * conform/data/setjmp.h-data: Likewise.
5343         * conform/data/signal.h-data: Likewise.
5344         * conform/data/spawn.h-data: Likewise.
5345         * conform/data/stdarg.h-data: Likewise.
5346         * conform/data/stdio.h-data: Likewise.
5347         * conform/data/stdlib.h-data: Likewise.
5348         * conform/data/string.h-data: Likewise.
5349         * conform/data/strings.h-data: Likewise.
5350         * conform/data/stropts.h-data: Likewise.
5351         * conform/data/sys/ipc.h-data: Likewise.
5352         * conform/data/sys/mman.h-data: Likewise.
5353         * conform/data/sys/msg.h-data: Likewise.
5354         * conform/data/sys/resource.h-data: Likewise.
5355         * conform/data/sys/select.h-data: Likewise.
5356         * conform/data/sys/sem.h-data: Likewise.
5357         * conform/data/sys/shm.h-data: Likewise.
5358         * conform/data/sys/socket.h-data: Likewise.
5359         * conform/data/sys/stat.h-data: Likewise.
5360         * conform/data/sys/statvfs.h-data: Likewise.
5361         * conform/data/sys/time.h-data: Likewise.
5362         * conform/data/sys/timeb.h-data: Likewise.
5363         * conform/data/sys/times.h-data: Likewise.
5364         * conform/data/sys/types.h-data: Likewise.
5365         * conform/data/sys/uio.h-data: Likewise.
5366         * conform/data/sys/un.h-data: Likewise.
5367         * conform/data/sys/utsname.h-data: Likewise.
5368         * conform/data/sys/wait.h-data: Likewise.
5369         * conform/data/syslog.h-data: Likewise.
5370         * conform/data/tar.h-data: Likewise.
5371         * conform/data/termios.h-data: Likewise.
5372         * conform/data/utime.h-data: Likewise.
5373         * conform/data/utmpx.h-data: Likewise.
5374         * conform/data/varargs.h-data: Likewise.
5375         * conform/data/wchar.h-data: Likewise.
5376         * conform/data/wctype.h-data: Likewise.
5377         * conform/data/wordexp.h-data: Likewise.
5378
5379         * include/stropts.h: New file.
5380         * include/uchar.h: New file.
5381         * include/aio.h: Changes to allow conformtest.pl to use the headers.
5382         * include/assert.h: Likewise.
5383         * include/ctype.h: Likewise.
5384         * include/dirent.h: Likewise.
5385         * include/dlfcn.h: Likewise.
5386         * include/fcntl.h: Likewise.
5387         * include/fnmatch.h: Likewise.
5388         * include/glob.h: Likewise.
5389         * include/grp.h: Likewise.
5390         * include/libio.h: Likewise.
5391         * include/locale.h: Likewise.
5392         * include/math.h: Likewise.
5393         * include/net/if.h: Likewise.
5394         * include/netdb.h: Likewise.
5395         * include/netinet/in.h: Likewise.
5396         * include/pthread.h: Likewise.
5397         * include/pwd.h: Likewise.
5398         * include/regex.h: Likewise.
5399         * include/sched.h: Likewise.
5400         * include/search.h: Likewise.
5401         * include/setjmp.h: Likewise.
5402         * include/signal.h: Likewise.
5403         * include/stdio.h: Likewise.
5404         * include/stdlib.h: Likewise.
5405         * include/string.h: Likewise.
5406         * include/sys/cdefs.h: Likewise.
5407         * include/sys/mman.h: Likewise.
5408         * include/sys/msg.h: Likewise.
5409         * include/sys/resource.h: Likewise.
5410         * include/sys/select.h: Likewise.
5411         * include/sys/socket.h: Likewise.
5412         * include/sys/stat.h: Likewise.
5413         * include/sys/statvfs.h: Likewise.
5414         * include/sys/time.h: Likewise.
5415         * include/sys/times.h: Likewise.
5416         * include/sys/uio.h: Likewise.
5417         * include/sys/utsname.h: Likewise.
5418         * include/sys/wait.h: Likewise.
5419         * include/termios.h: Likewise.
5420         * include/time.h: Likewise.
5421         * include/ulimit.h: Likewise.
5422         * include/unistd.h: Likewise.
5423         * include/utime.h: Likewise.
5424         * include/wchar.h: Likewise.
5425         * include/wctype.h: Likewise.
5426         * include/wordexp.h: Likewise.
5427
5428         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
5429
5430         * time/time.h: TIME_UTC must be a macro.
5431         Make timespec_get available for ISO C11 only as well.
5432
5433 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
5434
5435         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
5436         Reported by Peng Haitao <penght@cn.fujitsu.com>.
5437
5438 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
5439
5440         * configure.in: Use -o not -a in test for unsupported multi-arch.
5441
5442 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
5443
5444         * manual/texinfo.tex: Update to version 2012-01-19.16.
5445
5446 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
5447
5448         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
5449
5450 2012-02-24  Roland McGrath  <roland@hack.frob.com>
5451
5452         [BZ #13738]
5453         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
5454         * manual/fdl-1.3.texi: New file.
5455         * manual/fdl-1.1.texi: File removed.
5456
5457         [BZ #13738]
5458         * manual/libc.texinfo (FDL_VERSION): New @set.
5459         Use it for mention of FDL in cover text.
5460         (Documentation License): Use it in @include file name.
5461
5462 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5463             Roland McGrath  <roland@hack.frob.com>
5464
5465         [BZ #5461]
5466         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
5467         not LONG_LONG_MAX and LONG_LONG_MIN.
5468         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
5469         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
5470         name.
5471         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
5472
5473 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5474
5475         [BZ #2547]
5476         [BZ #11365]
5477         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
5478         manipulate bits before adding and subtracting TWO23[sx].
5479         * math/libm-test.inc (nearbyint_test): Add more tests.
5480
5481 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5482
5483         [BZ #2548]
5484         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
5485         bits before adding and subtracting TWO23[sx].
5486         * math/libm-test.inc (rint_test): Add more tests.
5487         (rint_test_tonearest): Likewise.
5488         (rint_test_towardzero): Likewise.
5489         (rint_test_downward): Likewise.
5490         (rint_test_upward: Likewise.
5491
5492 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5493
5494         [BZ #10110]
5495         * include/stdc-predef.h: New file.  Extracted from features.h.
5496         * include/features.h: Include stdc-predef.h.
5497         * Makefile (headers): Add stdc-predef.h.
5498         * CONFORMANCE (Compiler limitations): Update.
5499
5500 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5501
5502         * manual/libc.texinfo (VERSION, UPDATED): Revert.
5503
5504 2012-02-21  David S. Miller  <davem@davemloft.net>
5505
5506         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
5507         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
5508
5509 2012-02-20  David S. Miller  <davem@davemloft.net>
5510
5511         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
5512         using a normal save/restore sequence, rather than allocating a
5513         dummy stack frame just to store a frame pointer and restore.
5514         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
5515
5516 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
5517
5518         * manual/install.texi: Fix stray word in line-wrapped comment.
5519
5520 2012-02-20  David S. Miller  <davem@davemloft.net>
5521
5522         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
5523         both binutils and gcc support GOTDATA.
5524
5525         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
5526         "rd %pc" in the PIC register setup sequences.
5527
5528         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
5529         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
5530         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
5531         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
5532         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5533         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
5534         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5535         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
5536         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5537         (SYSCALL_ERROR_HANDLER): Likewise.
5538         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
5539         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
5540         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5541         (SYSCALL_ERROR_HANDLER): Likewise.
5542
5543         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
5544         (HAVE_GCC_GOTDATA): New.
5545         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
5546         relocation support in both binutils and gcc.
5547         * sysdeps/sparc/elf/configure: Regenerate.
5548
5549         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
5550         * sysdeps/sparc/sparc32/elf/configure: Delete.
5551         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
5552         * sysdeps/sparc/sparc64/elf/configure: Delete.
5553         * sysdeps/sparc/elf/configure.in: New file.
5554         * sysdeps/sparc/elf/configure: Generate.
5555
5556         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
5557         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
5558         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
5559         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
5560         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
5561
5562 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
5563
5564         * manual/install.texi: Do not mention specific glibc version
5565         numbers.
5566         * manual/libc.texinfo (VERSION, UPDATED): Update.
5567         (@copying): Use @copyright{} and range of years.
5568
5569 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
5570
5571         [BZ #13695]
5572         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
5573         [crti.S not in sysdirs] (generated): Do not append.
5574         [crti.S not in sysdirs] (omit-deps): Likewise.
5575         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
5576         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
5577         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
5578         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
5579         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
5580         Likewise.
5581         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
5582         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
5583         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
5584         * csu/defs.awk: Remove file.
5585         * sysdeps/generic/initfini.c: Likewise.
5586         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
5587         variable.
5588         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
5589         Likewise.
5590
5591 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
5592
5593         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
5594         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
5595         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
5596         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
5597         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5598         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
5599         <bits/epoll.h>.
5600         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
5601         (__EPOLL_PACKED): Define to empty if not defined by
5602         <bits/epoll.h>.
5603         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
5604         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5605         bits/epoll.h.
5606
5607 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
5608
5609         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
5610         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
5611         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
5612         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
5613         <bits/timerfd.h>.
5614         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
5615         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5616         bits/timerfd.h.
5617
5618 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
5619
5620         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
5621         in C locale.
5622         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5623         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
5624         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
5625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5626
5627 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
5628
5629         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
5630         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
5631
5632 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
5633
5634         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
5635         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
5636         defined.
5637         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
5638         Likewise.
5639         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
5640         entry for 2.16.
5641
5642 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
5643
5644         * math/w_acos.c: Use non-signaling floating-point comparisons.
5645         * math/w_acosf.c: Likewise.
5646         * math/w_acosh.c: Likewise.
5647         * math/w_acoshf.c: Likewise.
5648         * math/w_acoshl.c: Likewise.
5649         * math/w_acosl.c: Likewise.
5650         * math/w_asin.c: Likewise.
5651         * math/w_asinf.c: Likewise.
5652         * math/w_asinl.c: Likewise.
5653         * math/w_atanh.c: Likewise.
5654         * math/w_atanhf.c: Likewise.
5655         * math/w_atanhl.c: Likewise.
5656         * math/w_exp2.c: Likewise.
5657         * math/w_exp2f.c: Likewise.
5658         * math/w_exp2l.c: Likewise.
5659         * math/w_j0.c: Likewise.
5660         * math/w_j0f.c: Likewise.
5661         * math/w_j0l.c: Likewise.
5662         * math/w_j1.c: Likewise.
5663         * math/w_j1f.c: Likewise.
5664         * math/w_j1l.c: Likewise.
5665         * math/w_jn.c: Likewise.
5666         * math/w_jnf.c: Likewise.
5667         * math/w_log.c: Likewise.
5668         * math/w_log10.c: Likewise.
5669         * math/w_log10f.c: Likewise.
5670         * math/w_log10l.c: Likewise.
5671         * math/w_log2.c: Likewise.
5672         * math/w_log2f.c: Likewise.
5673         * math/w_log2l.c: Likewise.
5674         * math/w_logf.c: Likewise.
5675         * math/w_logl.c: Likewise.
5676         * math/w_sqrt.c: Likewise.
5677         * math/w_sqrtf.c: Likewise.
5678         * math/w_sqrtl.c: Likewise.
5679         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5680         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
5681         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5682         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
5683         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
5684
5685 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5686
5687         [BZ #9739]
5688         * manual/string.texi (strnlen): Use correct parameter name in
5689         equivalent expression.
5690
5691 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5692
5693         [BZ #11174]
5694         * manual/users.texi (seteuid): Consistently use neweuid for
5695         argument name.
5696
5697 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5698
5699         [BZ #13704]
5700         * manual/nss.texi (Services in the NSS configuration): Correct
5701         list of services in example configuration file.
5702
5703 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
5704
5705         [BZ #11322]
5706         * manual/arith.texi: Remove statements about negative zero
5707         behaving identically to zero.
5708
5709 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
5710
5711         [BZ #5993]
5712         * manual/install.texi: Do not document upgrading from libc5.
5713
5714 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
5715
5716         [BZ #4596]
5717         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
5718
5719 2012-02-18  David S. Miller  <davem@davemloft.net>
5720
5721         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
5722         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
5723         %o7 across the call.
5724         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
5725         instead.
5726         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
5727         SETUP_PIC_REG_LEAF.
5728         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5729         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
5730         * sysdeps/sparc/crtn.S: Likewise.
5731
5732 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
5733
5734         * aout/Makefile: Remove.
5735
5736 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
5737
5738         [BZ #13058]
5739         * manual/examples/argp-ex1.c (main): Format definition in GNU
5740         style.
5741         * manual/examples/argp-ex2.c (main): Likewise.
5742         * manual/examples/argp-ex3.c (main): Likewise.
5743         * manual/examples/argp-ex4.c (main): Likewise.
5744         * manual/examples/longopt.c (main): Use new-style prototype
5745         definition.
5746         * manual/examples/strncat.c (main): Specify return type and use
5747         (void) for arguments.
5748         * manual/examples/subopt.c (main): Use char **argv argument.
5749
5750 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5751
5752         [BZ #5077]
5753         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
5754         rounding modes.
5755
5756 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
5757
5758         [BZ #6907]
5759         * manual/string.texi (strchr): Change when strchrnul is
5760         recommended.
5761
5762 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
5763
5764         [BZ #174]
5765         * manual/locale.texi (setlocale): Document LOCPATH.
5766
5767 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5768
5769         [BZ #10210]
5770         * manual/process.texi (execle): Move @dots{} before last argument.
5771
5772 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
5773
5774         [BZ #12047]
5775         * manual/charset.texi (Generic Charset Conversion): Fix typo
5776         (LC_TYPE -> LC_CTYPE).
5777
5778 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
5779
5780         [BZ #5805]
5781         * manual/arith.texi (scalbn): Use @var{} on parameter names.
5782         (scalbnf): Likewise.
5783         (scalbnl): Likewise.
5784         (scalbln): Likewise.
5785         (scalblnf): Likewise.
5786         (scalblnl): Likewise.
5787         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
5788         (vwarnx): Likewise.
5789         (verr): Likewise.
5790         (verrx): Likewise.
5791         * manual/filesys.texi (telldir): Use braces around return type.
5792         * manual/llio.texi (mmap): Add space after comma.
5793         (mmap64): Likewise.
5794         * manual/math.texi (jn): Use @var{} on parameter names.
5795         (jnf): Likewise.
5796         (jnl): Likewise.
5797         (yn): Likewise.
5798         (ynf): Likewise.
5799         (ynl): Likewise.
5800         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
5801         line.
5802         * manual/resource.texi (ulimit): Use @dots{} instead of literal
5803         "...".
5804         (sched_get_priority_min): Remove semicolon on @deftypefun line.
5805         (sched_get_priority_max): Likewise.
5806         * manual/signal.texi (sigvec): Add space after comma.
5807         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
5808         names.
5809         (if_indextoname): Likewise.
5810         (if_freenameindex): Likewise.
5811         (sendto): Use ',' instead of '.' in prototype.
5812         * manual/startup.texi (syscall): Use @dots{} instead of literal
5813         "...".
5814         * manual/stdio.texi (__fpending): Separate initial words of
5815         paragraph from @deftypefun line.
5816         * manual/syslog.texi (syslog): Use @dots{} instead of literal
5817         "...".
5818         (vsyslog): Use @var{} on parameter names.
5819         * manual/terminal.texi (stty): Use @var{} on parameter names.
5820         * manual/users.texi (getutmp): Use @var{} on parameter names.
5821         (getutmpx): Likewise.
5822
5823 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5824
5825         [BZ #6884]
5826         * manual/stdio.texi (fopen): Fix typos in description of
5827         ",ccs=STRING".
5828
5829 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
5830
5831         [BZ #4026]
5832         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
5833         get clock_id definition.
5834
5835 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
5836
5837         [BZ #4822]
5838         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
5839         (madvise): Cast every argument to void on its own.
5840
5841 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5842
5843         [BZ #9902]
5844         * manual/startup.texi (Exit Status): Fix typo.
5845
5846 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5847
5848         [BZ #10140]
5849         * manual/examples/argp-ex1.c: Include <stdlib.h>.
5850         * manual/examples/argp-ex2.c: Likewise.
5851         * manual/examples/argp-ex3.c: Likewise.
5852
5853 2012-02-16  Richard Henderson  <rth@redhat.com>
5854
5855         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
5856         * sysdeps/s390/s390-32/initfini.c: Remove.
5857         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
5858         * sysdeps/s390/s390-64/initfini.c: Remove.
5859
5860 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5861
5862         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
5863         compiler output for sysdeps/generic/initfini.c.
5864         * sysdeps/sh/elf/initfini.c: Remove file.
5865
5866 2012-02-16  David S. Miller  <davem@davemloft.net>
5867
5868         [BZ #11494]
5869         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
5870
5871         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
5872         * sysdeps/sparc/crti.S: New file.
5873         * sysdeps/sparc/crtn.S: New file.
5874         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
5875         * sysdeps/sparc/sparc64/Makefile: Likewise.
5876
5877 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
5878
5879         [BZ #3335]
5880         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
5881
5882 2012-02-15  Roland McGrath  <roland@hack.frob.com>
5883
5884         [BZ #4822]
5885         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
5886
5887         * mach/devstream.c (cookie_io_functions_t): Macro removed.
5888         (write, read, close): Likewise.
5889         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5890
5891 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
5892
5893         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
5894         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
5895         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
5896         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
5897         <bits/signalfd.h>.
5898         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
5899         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5900         bits/signalfd.h.
5901
5902 2012-02-14  Marek Polacek  <polacek@redhat.com>
5903
5904         * sysdeps/x86_64/crti.S: New file.
5905         * sysdeps/x86_64/crtn.S: New file.
5906         * sysdeps/x86_64/elf/initfini.c: Remove file.
5907
5908 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
5909
5910         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
5911         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
5912         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
5913         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
5914         <bits/inotify.h>.
5915         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
5916         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5917         bits/inotify.h.
5918
5919 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
5920
5921         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
5922         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
5923         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
5924         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
5925         <bits/eventfd.h>.
5926         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
5927         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5928         bits/eventfd.h.
5929
5930 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
5931
5932         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
5933         __feraiseexcept instead of feraiseexcept.
5934
5935         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
5936         nanosleep invocations.
5937         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
5938         strings, and add error checking for a nanosleep invocations.
5939
5940 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5941
5942         Replace FSF snail mail address with URLs, as per GNU coding standards.
5943         Most of the snail mail addresses were wrong anyway, and omitting
5944         them makes the source code easier to maintain.  Almost all of the
5945         changes are to license notices and to locale LC_IDENTIFICATION
5946         addresses, except for this one:
5947         * manual/libc.texinfo: In "Published by", give the FSF's URL,
5948         not its snail mail address.
5949
5950 2012-02-09  Richard Henderson  <rth@twiddle.net>
5951
5952         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
5953         of kernel-features.h.
5954
5955         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
5956
5957 2012-02-08  Marek Polacek  <polacek@redhat.com>
5958
5959         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
5960         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
5961         * sysdeps/gnu/_G_config.h: Likewise.
5962         * sysdeps/generic/_G_config.h: Likewise.
5963
5964 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
5965
5966         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
5967         tests.
5968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5969
5970         * sysdeps/powerpc/powerpc32/crti.S: New file.
5971         * sysdeps/powerpc/powerpc32/crtn.S: New file.
5972         * sysdeps/powerpc/powerpc64/crti.S: New file.
5973         * sysdeps/powerpc/powerpc64/crtn.S: New file.
5974
5975         * Makeconfig (have-initfini): Don't set.
5976         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
5977         * configure.in (nopic_initfini): Don't substitute.
5978         * config.h.in (HAVE_INITFINI): Don't #undef.
5979         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
5980         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
5981
5982 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
5983
5984         Support crti.S and crtn.S provided directly by architectures.
5985         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
5986         [crti.S in sysdirs] (omit-deps): Likewise.
5987         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
5988         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
5989         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
5990         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
5991         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
5992         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
5993         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
5994         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
5995         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
5996         compiler output for sysdeps/generic/initfini.c.
5997         * sysdeps/i386/elf/Makefile: Remove file.
5998         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
5999
6000 2012-02-07  Marek Polacek  <polacek@redhat.com>
6001
6002         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
6003         * sysdeps/gnu/_G_config.h: Likewise.
6004         * sysdeps/mach/hurd/_G_config.h: Likewise.
6005
6006 2012-02-07  Marek Polacek  <polacek@redhat.com>
6007
6008         * math/Makefile (tests): Add tst-CMPLX2.
6009         * math/tst-CMPLX2.c: New file.
6010
6011 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
6012
6013         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6014
6015         * math/libm-test.inc (jn_test): Add missing L suffix.
6016
6017 2012-02-06  Marek Polacek  <polacek@redhat.com>
6018
6019         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
6020         * sysdeps/i386/fpu/e_powf.S: Likewise.
6021         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6022         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
6023         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6024         * sysdeps/i386/fpu/e_pow.S: Likewise.
6025         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
6026         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6027         * sysdeps/i386/fpu/s_expm1.S: Likewise.
6028         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
6029         * sysdeps/i386/fpu/e_log2.S: Likewise.
6030         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6031         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6032         * sysdeps/i386/fpu/e_powl.S: Likewise.
6033         * sysdeps/i386/fpu/s_log1p.S: Likewise.
6034         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6035         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
6036         * sysdeps/i386/fpu/e_logl.S: Likewise.
6037         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
6038         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
6039         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
6040         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
6041         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6042         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6043         * sysdeps/i386/fpu/e_log.S: Likewise.
6044         * sysdeps/i386/fpu/s_cexp.S: Likewise.
6045         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6046         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
6047         * sysdeps/i386/fpu/e_logf.S: Likewise.
6048         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6049         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6050         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
6051         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
6052         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
6053         * sysdeps/i386/fpu/e_log10.S: Likewise.
6054         * sysdeps/i386/fpu/s_frexp.S: Likewise.
6055         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6056         * sysdeps/i386/fpu/s_asinh.S: Likewise.
6057         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
6058         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6059         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
6060         * sysdeps/i386/asm-syntax.h: Likewise.
6061         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
6062         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6063         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
6064         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
6065         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
6066         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
6067         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
6068         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
6069         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
6070         * sysdeps/powerpc/sysdep.h: Likewise.
6071         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
6072         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6073
6074 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
6075
6076         [BZ #411]
6077         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
6078
6079 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
6080
6081         * sysdeps/i386/sysdep.h: Include <features.h>.
6082         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
6083         version.
6084
6085 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
6086
6087         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
6088         Define.
6089         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
6090         LOAD_PIC_REG_STR.
6091
6092 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
6093
6094         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
6095         (SETUP_PIC_REG): Use GET_PC_THUNK.
6096         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
6097         macro.
6098
6099 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
6100
6101         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
6102         for non-PIC compilation.
6103         (SETUP_PIC_REG): Add .p2align directive.
6104         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
6105         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
6106         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
6107         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
6108         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
6109         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
6110         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
6111         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
6112         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
6113         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
6114         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
6115         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
6116         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
6117         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
6118         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
6119         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6120         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6121         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
6122         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
6123         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
6124         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6125         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6126         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
6127         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
6128         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
6129         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
6130         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6131         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6132         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
6133         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
6134         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
6135         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6136         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
6137         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
6138         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
6139         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
6140         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
6141         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
6142         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
6143         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
6144         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
6145
6146 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
6147
6148         * math/tst-CMPLX.c: Include <stdio.h>.
6149
6150 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
6151
6152         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
6153         float.
6154         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
6155         * sysdeps/sparc/bits/mathdef.h: Likewise.
6156
6157 2012-01-31  Marek Polacek  <polacek@redhat.com>
6158
6159         * libio/libio.h: Don't define _PARAMS.
6160         * locale/programs/config.h: Don't define PARAMS.
6161         * stdlib/strtol_l.c: Likewise.
6162         (__strtol_l): Remove PARAMS from the prototype.
6163
6164 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
6165
6166         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
6167         names.  Just use the correct names.  Remove unnecessary wrapper
6168         functions.
6169         * malloc/arena.c: Likewise.
6170         * malloc/hooks.c: Likewise.
6171
6172         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
6173         ARENA_TEST says not to.  Simplify test for creation of a new arena.
6174         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
6175
6176 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
6177
6178         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
6179         into tail calls.
6180         (update_get_addr): New function.
6181         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
6182         GET_ADDR_MODULE parameter.
6183
6184 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
6185
6186         * crypt/cert.c: Remove __STDC__ conditionals.
6187         * crypt/crypt-entry.c: Likewise.
6188         * crypt/crypt_util.c: Likewise.
6189         * libio/filedoalloc.c: Likewise.
6190         * libio/fileops.c: Likewise.
6191         * libio/genops.c: Likewise.
6192         * libio/iofclose.c: Likewise.
6193         * libio/iofdopen.c: Likewise.
6194         * libio/iofopen.c: Likewise.
6195         * libio/iofopen64.c: Likewise.
6196         * libio/iogetdelim.c: Likewise.
6197         * libio/iopopen.c: Likewise.
6198         * libio/obprintf.c: Likewise.
6199         * libio/oldfileops.c: Likewise.
6200         * libio/oldiofclose.c: Likewise.
6201         * libio/oldiofdopen.c: Likewise.
6202         * libio/oldiofopen.c: Likewise.
6203         * libio/oldiopopen.c: Likewise.
6204         * libio/wfiledoalloc.c: Likewise.
6205         * libio/wgenops.c: Likewise.
6206         * locale/programs/xmalloc.c: Likewise.
6207         * misc/syslog.c: Likewise.
6208         * stdio-common/xbug.c: Likewise.
6209         * string/memchr.c: Likewise.
6210         * string/memcmp.c: Likewise.
6211         * string/memrchr.c: Likewise.
6212         * string/rawmemchr.c: Likewise.
6213         * sysdeps/posix/getcwd.c: Likewise.
6214         * time/strftime_l.c: Likewise.
6215
6216 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
6217
6218         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
6219         * config.make.in (config-cflags-sse2avx): Define.
6220         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
6221         Fix typo.
6222
6223 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
6224
6225         * scripts/config.guess: Update from upstream config git repository.
6226         * scripts/config.sub: Likewise.
6227
6228 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
6229
6230         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
6231         (EM_NUM): Update.
6232         (R_TILEPRO_*, R_TILEGX_*): New macros.
6233
6234         * scripts/firstversions.awk: Fix bug in version range handling.
6235
6236         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
6237
6238         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
6239
6240         * include/sys/epoll.h: New file.
6241         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
6242         libc_hidden_def.
6243
6244 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
6245
6246         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
6247         Avoid unnecessary __WORDSIZE == 64 test.
6248         (fmaxf): Use VEX format if possible.
6249         (fmax): Likewise.
6250         (fminf): Likewise.
6251         (fmin): Likewise.
6252
6253         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
6254         * math/math_private.h: Remove libc_fegetround* and
6255         libc_fesetround*.
6256         * sysdeps/i386/configure.in: Check for -msse2avx.
6257         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
6258         also if SSE2AVX is defined.
6259         Remove libc_fegetround* and libc_fesetround*.
6260         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
6261         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
6262         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
6263         of HAS_YMM_USABLE.
6264         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6265         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6266         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6267         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6268         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6269
6270         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
6271
6272 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6273
6274         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
6275         size is not set.
6276         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
6277
6278 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
6279
6280         [BZ #13618]
6281         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
6282         relocation.
6283         * Makeconfig (libm): Define.
6284         * elf/Makefile: Add rules to build and run tst-relsort1.
6285         * elf/tst-relsort1.c: New file.
6286         * elf/tst-relsort1mod1.c: New file.
6287         * elf/tst-relsort1mod2.c: New file.
6288
6289 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
6290
6291         * math/s_ldexp.c: Remove __STDC__ conditionals.
6292         * math/s_ldexpf.c: Likewise.
6293         * math/s_ldexpl.c: Likewise.
6294         * math/s_nextafter.c: Likewise.
6295         * math/s_nexttowardf.c: Likewise.
6296         * math/s_significand.c: Likewise.
6297         * math/s_significandf.c: Likewise.
6298         * math/s_significandl.c: Likewise.
6299         * math/w_jnl.c: Likewise.
6300         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
6301         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6302         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
6303         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
6304         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
6305         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6306         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
6307         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6308         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
6309         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
6310         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6311         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6312         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
6313         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
6314         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6315         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
6316         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6317         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
6318         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6319         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6320         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6321         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
6322         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
6323         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6324         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
6325         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
6326         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
6327         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6328         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
6329         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
6330         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
6331         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6332         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
6333         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
6334         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6335         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
6336         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
6337         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
6338         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
6339         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
6340         * sysdeps/ieee754/k_standard.c: Likewise.
6341         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6342         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
6343         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
6344         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6345         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6346         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
6347         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
6348         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
6349         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6350         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6351         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
6352         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
6353         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6354         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
6355         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
6356         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6357         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
6358         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
6359         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
6360         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6361         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
6362         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
6363         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
6364         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
6365         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
6366         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
6367         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6368         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6369         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6370         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
6371         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
6372         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6373         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6374         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
6375         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
6376         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
6377         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6378         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
6379         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
6380         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6381         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6382         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
6383         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6384         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6385         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
6386         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
6387         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
6388         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
6389         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
6390         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6391         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6392         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
6393         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
6394         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
6395         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
6396         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
6397         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6398         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6399         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6400         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6401         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
6402         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6403         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
6404         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
6405         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
6406         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6407         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
6408         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
6409         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
6410         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
6411         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
6412         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
6413         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
6414         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
6415         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
6416         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
6417         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
6418         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
6419         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
6420         * sysdeps/ieee754/s_matherr.c: Likewise.
6421         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
6422         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
6423         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
6424         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
6425
6426 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
6427
6428         * crypt/md5.h: Remove __STDC__ conditionals.
6429         * libio/libioP.h: Likewise.
6430         * locale/programs/config.h: Likewise.
6431         * sysdeps/generic/sysdep.h: Likewise.
6432         * sysdeps/i386/asm-syntax.h: Likewise.
6433         * sysdeps/s390/asm-syntax.h: Likewise.
6434         * sysdeps/unix/sysdep.h: Likewise.
6435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
6436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
6437
6438 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
6439
6440         * libio/libio.h: Remove __STDC__ conditionals.
6441         * malloc/obstack.h: Likewise.
6442         * math/complex.h: Likewise.
6443         * math/math.h: Likewise.
6444         * sysdeps/generic/_G_config.h: Likewise.
6445         * sysdeps/gnu/_G_config.h: Likewise.
6446         * sysdeps/mach/hurd/_G_config.h: Likewise.
6447         * sysdeps/powerpc/bits/mathdef.h: Likewise.
6448         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
6449         * sysdeps/sparc/bits/mathdef.h: Likewise.
6450
6451 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
6452
6453         [BZ #13583]
6454         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
6455         Clean up HAS_* macros.
6456         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
6457         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
6458         possible.
6459         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
6460         HAS_AVX.
6461         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6462         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6463         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6464         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6465         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6466
6467 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
6468
6469         * elf/tst-unique3.cc (gets): Remove declaration.
6470         * elf/tst-unique3lib.cc (gets): Likewise.
6471         * elf/tst-unique3lib2.cc (gets): Likewise.
6472         * elf/tst-unique4.cc (gets): Likewise.
6473
6474 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
6475
6476         * include/stdio.h: Add C++ protection.  Add gets declarations and
6477         definitions.
6478         * debug/tst-chk1.c: Don't declare gets here.
6479         * stdio-common/tst-gets.c: Likewise.
6480
6481 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
6482
6483         * posix/glob: Remove directory.
6484
6485 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
6486
6487         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
6488
6489 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
6490
6491         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
6492         of the non-standard EPFNOSUPPORT.
6493
6494 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6495
6496         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
6497         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
6498         ANYWHERE set to 1 only on KERN_NO_SPACE error.
6499
6500 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
6501
6502         * wcsmbs/uchar.h: Test __STDC_VERSION__.
6503
6504 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
6505
6506         * nscd/aicache.c (addhstaiX): Do not cache negative results of
6507         transient errors.
6508         * nscd/grpcache.c (cache_addgr): Likewise.
6509         * nscd/hstcache.c (cache_addhst): Likewise.
6510         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6511         * nscd/pwdcache.c (cache_addpw): Likewise.
6512         * nscd/servicescache.c (cache_addserv): Likewise.
6513
6514 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
6515
6516         * malloc/malloc.c: Various cleanups.
6517         * malloc/hooks.c: Likewise.
6518
6519         * stdlib/Makefile (tests): Add bug-fmtmsg1.
6520         * stdlib/bug-fmtmsg1.c: New file.
6521
6522         * stdlib/fmtmsg.c (init): Add missing unlock.
6523         Patch by Peng Haitao <penght@cn.fujitsu.com>.
6524
6525 2012-01-12  Marek Polacek  <polacek@redhat.com>
6526
6527         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
6528         and _GNU_SOURCE.
6529
6530 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
6531
6532         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
6533         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
6534         macro to ensure uniqueness of label name.
6535         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
6536         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
6537
6538 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
6539
6540         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
6541
6542         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
6543         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
6544         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
6545         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
6546
6547 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
6548
6549         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
6550
6551         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
6552         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
6553         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
6554
6555         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
6556
6557         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
6558         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
6559         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
6560         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
6561
6562         * math/bits/math-finite.h: Add ldexp support.
6563
6564 2012-01-10  Marek Polacek  <polacek@redhat.com>
6565
6566         * locale/programs/localedef.h (show_archive_content): Add noreturn
6567         attribute.
6568
6569 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
6570
6571         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
6572
6573 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
6574
6575         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
6576
6577         * io/Makefile (headers): Add bits/poll2.h.
6578
6579 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
6580
6581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
6582         typo #include statement.
6583
6584 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
6585
6586         * include/sys/cdefs.h: Define __attribute_alloc_size.
6587         * catgets/gencat.c: Add alloc_size attribute and apply consistently
6588         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
6589         * elf/pldd.c: Likewise.
6590         * iconv/iconv_charmap.c: Likewise.
6591         * iconv/iconvconfig.c: Likewise.
6592         * iconv/strtab.c: Likewise.
6593         * locale/programs/locale.c: Likewise.
6594         * locale/programs/localedef.h: Likewise.
6595         * locale/programs/simple-hash.c: Likewise.
6596         * nscd/nscd.h: Likewise.
6597         * nss/makedb.c: Likewise.
6598         * sysdeps/generic/ldconfig.h: Likewise.
6599         * locale/programs/localedef.c: Remove xmalloc prototype.
6600         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
6601
6602 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
6603
6604         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
6605         appropriate.
6606
6607 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
6608
6609         * math/Makefile (tests): Add tst-CMPLX.
6610         * math/tst-CMPLX.c: New file.
6611
6612         * math/complex.h (CMPLXL): Fix typo.
6613
6614         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
6615         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
6616         GLIBC_2.16.
6617         * debug/tst-chk1.c: Add poll and ppoll tests.
6618         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
6619         * include/sys/poll.h: Add hidden proto for ppoll.
6620         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
6621         * sysdeps/mach/hurd/ppoll.c: Likewise.
6622         * io/ppoll.c: Likewise.
6623         * debug/poll_chk.c: New file.
6624         * debug/ppoll_chk.c: New file.
6625         * include/bits/poll2.h: New file.
6626         * io/bits/poll2.h: New file.
6627
6628         [BZ #1350]
6629         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
6630
6631         * configure.in: static is always set to yes.  Remove.
6632         * config.make.in: Don't set build-static.
6633         * Makeconfig: Remove use of build-static.
6634         * dlfcn/Makefile: Likewise.
6635         * elf/Makefile: Likewise.
6636         * math/Makefile: Likewise.
6637         * misc/Makefile: Likewise.
6638         * nptl/Makefile: Likewise.
6639         * sysdeps/mach/hurd/Makefile: Likewise.
6640
6641         * configure.in: PWD_P is not used anymore.
6642         * config.make.in: Remove PWD_P entry.
6643
6644         * configure.in: Remove last remnants of RANLIB.
6645         No need to check for signed size_t anymore.
6646         Don't set libc_commonpagesize and libc_relro_required here for Alpha
6647         and IA-64.
6648         Remove __builtin_expect test because we require at least gcc 3.4.
6649         * aclocal.m4: Likewise.
6650
6651         * wcsmbs/mbrtoc16.c: Implement using towc function.
6652         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
6653         * wcsmbs/wcsmbsload.c: Likewise.
6654         * iconv/gconv_simple.c: Likewise.
6655         * iconv/gconv_int.h: Likewise.
6656         * iconv/gconv_builtin.h: Likewise.
6657         * iconv/iconv_prog.c: Remove CHAR16 handling.
6658
6659         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
6660
6661         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
6662
6663         * configure.in: Remove --with-elf and --enable-bounded options.
6664         Dont set base_machine for ia64.  More non-ELF conditions removed.
6665         Remove testing and setting of leading underscore information.
6666         * config.make.in (build-bounded): Set to no.
6667         * config.h.in: Remove NO_UNDERSCORES entry.
6668         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
6669         them.
6670         * csu/start.c: Remove !NO_UNDERSCORE code.
6671         * locale/localeinfo.h: Likewise.
6672         * sysdeps/generic/machine-gmon.h: Likewise.
6673         * sysdeps/generic/sysdep.h: Likewise.
6674         * sysdeps/i386/sysdep.h: Likewise.
6675         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
6676         * sysdeps/mach/sysdep.h: Likewise.
6677         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6678         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6679         * sysdeps/sh/sysdep.h: Likewise.
6680         * sysdeps/sparc/sparc32/alloca.S: Likewise.
6681         * sysdeps/unix/i386/sysdep.S: Likewise.
6682         * sysdeps/unix/sparc/start.c: Likewise.
6683         * sysdeps/unix/sparc/sysdep.S: Likewise.
6684         * sysdeps/unix/sparc/sysdep.h: Likewise.
6685         * sysdeps/unix/start.c: Likewise.
6686         * sysdeps/unix/x86_64/sysdep.S: Likewise.
6687         * sysdeps/x86_64/sysdep.h: Likewise.
6688
6689 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
6690
6691         [BZ #13553]
6692         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
6693         for non-gcc.
6694         * argp/argp-fmtstream.h: Use const instead __const.
6695         * argp/argp.h: Likewise.
6696         * assert/assert.h: Likewise.
6697         * bits/fenv.h: Likewise.
6698         * bits/sched.h: Likewise.
6699         * bits/sigset.h: Likewise.
6700         * bits/sigthread.h: Likewise.
6701         * catgets/nl_types.h: Likewise.
6702         * conform/data/pthread.h-data: Likewise.
6703         * crypt/crypt-private.h: Likewise.
6704         * crypt/crypt.h: Likewise.
6705         * crypt/crypt_util.c: Likewise.
6706         * ctype/ctype.h: Likewise.
6707         * debug/execinfo.h: Likewise.
6708         * debug/mbsnrtowcs_chk.c: Likewise.
6709         * debug/mbsrtowcs_chk.c: Likewise.
6710         * debug/wcsnrtombs_chk.c: Likewise.
6711         * debug/wcsrtombs_chk.c: Likewise.
6712         * debug/wcstombs_chk.c: Likewise.
6713         * dirent/dirent.h: Likewise.
6714         * dlfcn/dlfcn.h: Likewise.
6715         * elf/neededtest4.c: Likewise.
6716         * grp/grp.h: Likewise.
6717         * gshadow/gshadow.h: Likewise.
6718         * iconv/gconv.h: Likewise.
6719         * iconv/gconv_int.h: Likewise.
6720         * iconv/gconv_simple.c: Likewise.
6721         * iconv/iconv.h: Likewise.
6722         * iconv/loop.c: Likewise.
6723         * iconv/skeleton.c: Likewise.
6724         * include/aio.h: Likewise.
6725         * include/aliases.h: Likewise.
6726         * include/argz.h: Likewise.
6727         * include/arpa/inet.h: Likewise.
6728         * include/assert.h: Likewise.
6729         * include/dirent.h: Likewise.
6730         * include/dlfcn.h: Likewise.
6731         * include/execinfo.h: Likewise.
6732         * include/fcntl.h: Likewise.
6733         * include/fenv.h: Likewise.
6734         * include/glob.h: Likewise.
6735         * include/grp.h: Likewise.
6736         * include/libintl.h: Likewise.
6737         * include/mntent.h: Likewise.
6738         * include/netdb.h: Likewise.
6739         * include/pwd.h: Likewise.
6740         * include/rpc/netdb.h: Likewise.
6741         * include/sched.h: Likewise.
6742         * include/search.h: Likewise.
6743         * include/shadow.h: Likewise.
6744         * include/signal.h: Likewise.
6745         * include/stdio.h: Likewise.
6746         * include/stdlib.h: Likewise.
6747         * include/string.h: Likewise.
6748         * include/sys/socket.h: Likewise.
6749         * include/sys/stat.h: Likewise.
6750         * include/sys/statfs.h: Likewise.
6751         * include/sys/statvfs.h: Likewise.
6752         * include/sys/syslog.h: Likewise.
6753         * include/sys/time.h: Likewise.
6754         * include/sys/uio.h: Likewise.
6755         * include/time.h: Likewise.
6756         * include/unistd.h: Likewise.
6757         * include/utmp.h: Likewise.
6758         * include/wchar.h: Likewise.
6759         * include/wctype.h: Likewise.
6760         * inet/aliases.h: Likewise.
6761         * inet/arpa/inet.h: Likewise.
6762         * inet/netinet/ether.h: Likewise.
6763         * inet/netinet/in.h: Likewise.
6764         * intl/libintl.h: Likewise.
6765         * io/bits/fcntl2.h: Likewise.
6766         * io/fcntl.h: Likewise.
6767         * io/ftw.h: Likewise.
6768         * io/sys/poll.h: Likewise.
6769         * io/sys/stat.h: Likewise.
6770         * io/sys/statfs.h: Likewise.
6771         * io/sys/statvfs.h: Likewise.
6772         * io/utime.h: Likewise.
6773         * libio/bits/stdio.h: Likewise.
6774         * libio/bits/stdio2.h: Likewise.
6775         * libio/libio.h: Likewise.
6776         * libio/libioP.h: Likewise.
6777         * libio/stdio.h: Likewise.
6778         * locale/lc-ctype.c: Likewise.
6779         * locale/locale.h: Likewise.
6780         * login/utmp.h: Likewise.
6781         * malloc/arena.c: Likewise.
6782         * malloc/malloc.c: Likewise.
6783         * malloc/malloc.h: Likewise.
6784         * malloc/mcheck.c: Likewise.
6785         * malloc/mtrace.c: Likewise.
6786         * math/bits/mathcalls.h: Likewise.
6787         * math/fenv.h: Likewise.
6788         * math/math_private.h: Likewise.
6789         * misc/bits/error.h: Likewise.
6790         * misc/bits/syslog.h: Likewise.
6791         * misc/err.h: Likewise.
6792         * misc/error.h: Likewise.
6793         * misc/fstab.h: Likewise.
6794         * misc/mntent.h: Likewise.
6795         * misc/regexp.h: Likewise.
6796         * misc/search.h: Likewise.
6797         * misc/sgtty.h: Likewise.
6798         * misc/sys/mman.h: Likewise.
6799         * misc/sys/syslog.h: Likewise.
6800         * misc/sys/uio.h: Likewise.
6801         * misc/sys/xattr.h: Likewise.
6802         * misc/ttyent.h: Likewise.
6803         * nis/rpcsvc/ypclnt.h: Likewise.
6804         * nss/nss.h: Likewise.
6805         * posix/bits/unistd.h: Likewise.
6806         * posix/fnmatch.h: Likewise.
6807         * posix/glob.h: Likewise.
6808         * posix/sched.h: Likewise.
6809         * posix/spawn.h: Likewise.
6810         * posix/sys/wait.h: Likewise.
6811         * posix/unistd.h: Likewise.
6812         * posix/wordexp.h: Likewise.
6813         * pwd/pwd.h: Likewise.
6814         * resolv/netdb.h: Likewise.
6815         * resource/sys/resource.h: Likewise.
6816         * rt/aio.h: Likewise.
6817         * rt/bits/mqueue2.h: Likewise.
6818         * rt/mqueue.h: Likewise.
6819         * shadow/shadow.h: Likewise.
6820         * signal/signal.h: Likewise.
6821         * socket/send.c: Likewise.
6822         * socket/sendto.c: Likewise.
6823         * socket/sys/socket.h: Likewise.
6824         * stdio-common/printf.h: Likewise.
6825         * stdlib/bits/stdlib.h: Likewise.
6826         * stdlib/fmtmsg.h: Likewise.
6827         * stdlib/monetary.h: Likewise.
6828         * stdlib/stdlib.h: Likewise.
6829         * stdlib/ucontext.h: Likewise.
6830         * streams/stropts.h: Likewise.
6831         * string/argz.h: Likewise.
6832         * string/bits/string2.h: Likewise.
6833         * string/string.h: Likewise.
6834         * string/strings.h: Likewise.
6835         * sunrpc/rpc/auth.h: Likewise.
6836         * sunrpc/rpc/auth_des.h: Likewise.
6837         * sunrpc/rpc/clnt.h: Likewise.
6838         * sunrpc/rpc/netdb.h: Likewise.
6839         * sunrpc/rpc/pmap_clnt.h: Likewise.
6840         * sunrpc/rpc/xdr.h: Likewise.
6841         * sysdeps/generic/inttypes.h: Likewise.
6842         * sysdeps/generic/net/if.h: Likewise.
6843         * sysdeps/generic/sys/swap.h: Likewise.
6844         * sysdeps/gnu/net/if.h: Likewise.
6845         * sysdeps/gnu/utmpx.h: Likewise.
6846         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
6847         * sysdeps/i386/i486/bits/string.h: Likewise.
6848         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
6849         * sysdeps/s390/bits/string.h: Likewise.
6850         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
6851         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
6852         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6853         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
6854         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6855         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6856         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6857         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
6858         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
6859         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6860         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
6861         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
6862         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
6863         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
6864         * sysdeps/unix/sysv/linux/readv.c: Likewise.
6865         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
6866         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
6867         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6868         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
6869         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
6870         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
6871         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
6872         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
6873         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
6874         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
6875         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
6876         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
6877         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6878         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
6879         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
6880         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
6881         * sysvipc/sys/ipc.h: Likewise.
6882         * sysvipc/sys/msg.h: Likewise.
6883         * sysvipc/sys/sem.h: Likewise.
6884         * sysvipc/sys/shm.h: Likewise.
6885         * termios/termios.h: Likewise.
6886         * time/sys/time.h: Likewise.
6887         * time/time.h: Likewise.
6888         * wcsmbs/bits/wchar2.h: Likewise.
6889         * wcsmbs/uchar.h: Likewise.
6890         * wcsmbs/wchar.h: Likewise.
6891         * wctype/wctype.h: Likewise.
6892
6893         [BZ #13551]
6894         * Makeconfig: Remove all but ELF support including AIX support.
6895         * Makerules: Likewise.
6896         * config.h.in: Likewise.
6897         * config.make.in: Likewise.
6898         * configure: Likewise.
6899         * configure.in: Likewise.
6900         * csu/Makefile: Likewise.
6901         * csu/version.c: Likewise.
6902         * debug/Makefile: Likewise.
6903         * dlfcn/Makefile: Likewise.
6904         * elf/Makefile: Likewise.
6905         * extra-lib.mk: Likewise.
6906         * iconv/Makefile: Likewise.
6907         * include/libc-symbols.h: Likewise.
6908         * include/shlib-compat.h: Likewise.
6909         * resolv/Makefile: Likewise.
6910         * resolv/res_libc.c: Likewise.
6911         * rt/Makefile: Likewise.
6912         * sysdeps/i386/asm-syntax.h: Likewise.
6913         * sysdeps/i386/sysdep.h: Likewise.
6914         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
6915         * sysdeps/mach/sysdep.h: Likewise.
6916         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
6917         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
6918         * sysdeps/s390/asm-syntax.h: Likewise.
6919         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6920         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6921         * sysdeps/sh/sysdep.h: Likewise.
6922         * sysdeps/unix/sparc/sysdep.h: Likewise.
6923         * sysdeps/wordsize-32/divdi3.c: Likewise.
6924         * sysdeps/x86_64/sysdep.h: Likewise.
6925
6926         * argp/Versions: Remove _argp_unlock_xxx.
6927
6928         [BZ #13559]
6929         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
6930         * abilist/libBrokenLocale.abilist: Likewise.
6931         * abilist/libanl.abilist: Likewise.
6932         * abilist/libc.abilist: Likewise.
6933         * abilist/libcrypt.abilist: Likewise.
6934         * abilist/libdl.abilist: Likewise.
6935         * abilist/libm.abilist: Likewise.
6936         * abilist/libnsl.abilist: Likewise.
6937         * abilist/libpthread.abilist: Likewise.
6938         * abilist/libresolv.abilist: Likewise.
6939         * abilist/librt.abilist: Likewise.
6940         * abilist/libthread_db.abilist: Likewise.
6941         * abilist/libutil.abilist: Likewise.
6942         * abilist/libnss_db.abilist: New file.
6943
6944         * scripts/abilist.awk: Add support for indirect functions.
6945
6946         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
6947
6948         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
6949
6950         * shlib-versions: Remove entries for ports architectures.
6951
6952         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
6953         files in ports.
6954         * elf/stackguard-macros.h: Remove support for IA-64.
6955         * elf/tst-auditmod1.c: Likewise.
6956         * sysdeps/generic/ldsodefs.h: Likewise.
6957
6958         * sysdeps/unix/sysv/linux/configure.in: Ports should define
6959         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
6960         configure files.
6961
6962         [BZ #13552]
6963         * configure.in: Remove --enable-omitfp support.
6964         * FAQ.in: Adjust.
6965         * config.make.in: Likewise.
6966         * Makeconfig: Likewise.
6967         * manual/install.texi: Likewise.
6968
6969         In case anyone cares, the IA-64 architecture could move to ports.
6970         * sysdeps/ia64/*: Removed.
6971         * sysdeps/unix/sysv/linux/ia64/*: Removed.
6972         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
6973
6974         [BZ #13555]
6975         * configure.in: Remove entries for unsupported architectures.
6976
6977         [BZ #13533]
6978         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
6979         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
6980         routines.
6981         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
6982         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
6983         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
6984         fall back to using wcrtomb.
6985         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
6986         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
6987         renaming.
6988         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
6989         * wcsmbs/tst-c16c32-1.c: New file.
6990
6991         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
6992         local variable.
6993
6994         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
6995
6996         * elf/tst-unique3.cc: Add explicit declaration of gets.
6997         * elf/tst-unique3lib.cc: Likewise.
6998         * elf/tst-unique3lib2.cc: Likewise.
6999         * elf/tst-unique4.cc: Likewise.
7000
7001         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
7002
7003 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
7004
7005         [BZ #13566]
7006         * assert/assert.h (static_assert): Don't define for C++.
7007         * libio/stdio.h (gets): Do declare for C++ <= C++11.
7008         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
7009
7010 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
7011
7012         * iconv/loop.c (single loop): Fix assertion in storing of
7013         remaining bytes.
7014
7015         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
7016
7017 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
7018
7019         * posix/getconf.c: Update copyright year.
7020         * nss/getent.c: Likewise.
7021         * nss/makedb.c: Likewise.
7022         * iconv/iconvconfig.c: Likewise.
7023         * iconv/iconv_prog.c: Likewise.
7024         * elf/ldconfig.c: Likewise.
7025         * elf/pldd.c: Likewise.
7026         * elf/sotruss.ksh: Likewise.
7027         * catgets/gencat.c: Likewise.
7028         * csu/version.c: Likewise.
7029         * elf/ldd.bash.in: Likewise.
7030         * elf/sprof.c (print_version): Likewise.
7031         * locale/programs/locale.c: Likewise.
7032         * locale/programs/localedef.c: Likewise.
7033         * login/programs/pt_chown.c: Likewise.
7034         * nscd/nscd.c (print_version): Likewise.
7035         * debug/xtrace.sh: Likewise.
7036         * malloc/memusage.sh: Likewise.
7037         * malloc/mtrace.pl: Likewise.
7038         * debug/catchsegv.sh: Likewise.
7039
7040 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
7041
7042         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
7043         pure attribute.
7044
7045 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
7046
7047         [BZ #13533]
7048         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
7049         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
7050         transformations.
7051         * iconv/gconv_int.h: Likewise.
7052         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
7053         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
7054         from libc for GLIBC_2.16.
7055         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
7056         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
7057         * wcsmbs/uchar.h: Really define mbstate_t.
7058         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
7059         * wcsmbs/c16rtomb.c: New file.
7060         * wcsmbs/mbrtoc16.c: New file.
7061         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
7062         for C/POSIX locale.
7063         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
7064         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
7065
7066         * wcsmbs/wchar.h: Add missing __restrict.
7067
7068 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
7069
7070         [BZ #13532]
7071         * time/Makefile (routines): Add timespec_get.
7072         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
7073         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
7074         timespec for ISO C11.
7075         * time/timespec_get.c: New file.
7076         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
7077         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
7078
7079         [BZ #13531]
7080         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
7081         * stdlib/stdlib.h: Declare aligned_alloc.
7082         * Versions.def: Add GLIBC_2.16 for libc.
7083         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
7084
7085         [BZ 13527]
7086         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
7087         ISO C11.
7088
7089         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
7090         code.
7091
7092         [BZ #13528]
7093         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
7094
7095         [BZ #13529]
7096         * assert/assert.h (static_assert): Define.
7097
7098         * version.h: Update for 2.16 development version.
7099
7100         [BZ #13526]
7101         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
7102         _ISOC11_SOURCE.
7103
7104         * version.h (RELEASE): Bump for 2.15 release.
7105         * include/features.h (__GLIBC_MINOR__): Bump to 15.
7106
7107         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
7108         Patch by Marek Polacek <mpolacek@redhat.com>.
7109
7110         * bits/byteswap.h: Protect long long constants with __extension__.
7111         * sysdeps/i386/bits/byteswap.h: Likewise.
7112         * sysdeps/ia64/bits/byteswap.h: Likewise.
7113         * sysdeps/s390/bits/byteswap.h: Likewise.
7114         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7115
7116 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7117
7118         [BZ #13540]
7119         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
7120         destination buffer.
7121         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
7122
7123 2011-12-23  Marek Polacek  <polacek@redhat.com>
7124
7125         * elf/dl-addr.c (determine_info): Add inline keyword.
7126         * elf/tst-auditmod4b.c (check_avx): Likewise.
7127         * elf/tst-auditmod6b.c (check_avx): Likewise.
7128         * elf/tst-auditmod6c.c (check_avx): Likewise.
7129         * elf/tst-auditmod7b.c (check_avx): Likewise.
7130
7131 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
7132
7133         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
7134         !__SSE_MATH__.
7135
7136 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7137
7138         [BZ #13540]
7139         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
7140         processing for last bytes.
7141
7142 2011-08-06  Bruno Haible  <bruno@clisp.org>
7143
7144         [BZ #13061]
7145         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
7146         U+0385, not to U+1FEE.
7147
7148         [BZ #13062]
7149         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
7150         entry for U+00A5 U+0301.
7151
7152 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
7153
7154         [BZ #13166]
7155         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
7156         buffer for the output is too small.
7157
7158         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
7159         optimization.
7160
7161         [BZ #13185]
7162         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
7163         SSE flags if possible.
7164
7165 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7166
7167         [BZ #13540]
7168         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
7169         processing for last bytes.
7170
7171 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
7172
7173         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
7174         (syscall-list-default-options, syscall-list-default-condition)
7175         (syscall-list-includes): Define.
7176         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
7177         list of ABIs and options and #if conditions for each ABI.  Do not
7178         handle common syscalls between ABIs specially.
7179         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
7180         Remove.
7181         (syscall-list-variants, syscall-list-32bit-options)
7182         (syscall-list-32bit-condition, syscall-list-64bit-options)
7183         (syscall-list-64bit-condition): Define.
7184         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
7185         (syscall-list-variants, syscall-list-32bit-options)
7186         (syscall-list-32bit-condition, syscall-list-64bit-options)
7187         (syscall-list-64bit-condition): Define.
7188         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
7189         Remove.
7190         (syscall-list-variants, syscall-list-32bit-options)
7191         (syscall-list-32bit-condition, syscall-list-64bit-options)
7192         (syscall-list-64bit-condition): Define.
7193         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
7194         Remove.
7195         (syscall-list-variants, syscall-list-32bit-options)
7196         (syscall-list-32bit-condition, syscall-list-64bit-options)
7197         (syscall-list-64bit-condition): Define.
7198
7199 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
7200
7201         * locale/iso-639.def: Add brx entry.
7202
7203         [BZ #13328]
7204         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
7205         Proposed by Mariusz_Cukr <marcukr@op.pl>.
7206
7207         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
7208         __feraiseexcept_renamed.
7209
7210 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
7211
7212         [BZ #13538]
7213         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
7214         EPOLLET with unsigned values.
7215         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
7216         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
7217
7218         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
7219         to large cancellation.
7220         * math/s_cacoshf.c: Likewise.
7221         * math/s_cacoshl.c: Likewise.
7222
7223 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
7224
7225         [BZ #13305]
7226         [BZ #12786]
7227         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
7228         * math/s_cacoshf.c: Likewise.
7229         * math/s_cacoshl.c: Likewise.
7230
7231 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
7232
7233         [BZ #13439]
7234         * iconv/gconv.h: Define __GCONV_SWAP.
7235         * iconvdata/unicode.c: The swap bit must be stored in __flags.
7236         * iconvdata/utf-16.c: Likewise.
7237         * iconvdata/utf-32.c: Likewise.
7238
7239 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
7240
7241         [BZ #13524]
7242         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
7243         numerator after shifting it by one limb.
7244
7245 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
7246
7247         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
7248         under [__USE_EXTERN_INLINES].
7249
7250 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
7251
7252         [BZ #13446]
7253         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
7254
7255 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7256
7257         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
7258         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
7259         optimized code.
7260         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
7261         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
7262         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
7263         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
7264         for strncasecmp/strncasecmp_l compilation.
7265         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
7266         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
7267
7268 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
7269
7270         [BZ #13484]
7271         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
7272         of __asm__.
7273
7274 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
7275
7276         [BZ #13506]
7277         * time/tzfile.c (__tzfile_read): Check values from file header.
7278
7279 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
7280
7281         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
7282         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
7283         * powerpc/powerpc32/dl-start.S: Likewise.
7284         * powerpc/powerpc32/elf/start.S: Likewise.
7285         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
7286         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
7287         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
7288         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
7289         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
7290         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
7291         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
7292         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
7293         * powerpc/powerpc32/fpu/s_round.S: Likewise.
7294         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
7295         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
7296         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
7297         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
7298         * powerpc/powerpc32/memset.S: Likewise.
7299         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
7300         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
7301         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
7302         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
7303         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
7304         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
7305         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
7306         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
7307         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
7308         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
7309         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
7310         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
7311         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
7312
7313 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7314
7315         * math/libm-test.inc: Added more nearbyint tests.
7316         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
7317         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
7318         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
7319         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
7320
7321 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
7322
7323         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
7324         FD_CLOEXEC.
7325
7326 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7327
7328         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
7329         Add wcscpy-ssse3 wcscpy-c.
7330         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
7331         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
7332         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
7333         * sysdeps/x86_64/wcschr.S: New file.
7334         * sysdeps/x86_64/wcsrchr.S: New file.
7335         * string/test-strcmp.c: Remove checking of wcscmp function for
7336         wrong alignments.
7337         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
7338         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
7339         wcsrchr-sse2 wcsrchr-c.
7340         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
7341         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
7342         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
7343         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
7344         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
7345         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
7346         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
7347         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
7348         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
7349         * wcsmbc/wcschr.c (WCSCHR): New macro.
7350
7351 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7352
7353         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
7354         * wcsmbs/test-wcsrchr.c: New file.
7355         * string/test-strrchr.c: Add wcsrchr support.
7356         (WIDE): New macro.
7357         * wcsmbs/test-wcscpy.c: New file.
7358         * string/test-strcpy.c: Add wcscpy support.
7359         (WIDE): New macro.
7360
7361 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
7362
7363         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
7364         the inner loop.
7365
7366 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
7367
7368         [BZ #13472]
7369         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
7370
7371 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
7372
7373         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
7374         Minor optimizations.
7375
7376         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
7377         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
7378         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7379
7380 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
7381
7382         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
7383         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
7384         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
7385         for gcc to avoid warnings.
7386         * inet/Makefile (tests): Add tst-checks.
7387         * inet/tst-checks.c: New file.
7388
7389         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
7390         warning.
7391
7392         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
7393         __wmemcmp_sse2.
7394
7395         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
7396         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
7397
7398         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
7399
7400 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
7401
7402         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
7403         problem.
7404
7405         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
7406
7407 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
7408
7409         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
7410         conditional on GCC version.
7411         (__arch_compare_and_exchange_val_8_acq)
7412         (__arch_compare_and_exchange_val_16_acq)
7413         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
7414         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
7415         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
7416
7417 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
7418
7419         * sysdeps/sh/backtrace.c: New file.
7420
7421 2011-12-02  Andreas Schwab  <schwab@redhat.com>
7422
7423         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
7424         parenthesis.
7425
7426 2011-12-01  Andreas Schwab  <schwab@redhat.com>
7427
7428         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
7429         falling back to utime.
7430
7431 2011-11-30  Andreas Schwab  <schwab@redhat.com>
7432
7433         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
7434         expectations for float.
7435
7436 2011-11-29  Andreas Schwab  <schwab@redhat.com>
7437
7438         * locale/weight.h (findidx): Add parameter len.
7439         * locale/weightwc.h (findidx): Likewise.
7440         * posix/fnmatch_loop.c (FCT): Adjust caller.
7441         * posix/regcomp.c (build_equiv_class): Likewise.
7442         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
7443         * posix/regexec.c (check_node_accept_bytes): Likewise.
7444         * string/strcoll_l.c (STRCOLL): Likewise.
7445         * string/strxfrm_l.c (STRXFRM): Likewise.
7446
7447 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
7448
7449         * Makefile.in: Remove CVSOPT handling.
7450         * configure.in: Remove use of AC_REVISION.
7451         * iconvdata/Makefile (distribute): No need to filter out CVS.
7452         * scripts/list-sources.sh: Remove CVS, subversion and monotone
7453         handling.
7454
7455 2011-11-16  Andreas Schwab  <schwab@redhat.com>
7456
7457         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
7458         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
7459         [USE_AS_STRNCASECMP_L]: Likewise.
7460         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
7461         NO_TLS_DIRECT_SEG_REFS.
7462         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
7463         Fix argument offsets for non-PIC.
7464         [USE_AS_STRNCASECMP_L]: Likewise.
7465         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
7466         NO_TLS_DIRECT_SEG_REFS.
7467
7468 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
7469
7470         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
7471         O_CLOEXEC.
7472         * locale/loadlocale.c (_nl_load_locale): Likewise.
7473
7474 2011-11-15  Andreas Schwab  <schwab@redhat.com>
7475
7476         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
7477         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
7478         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
7479         (SYSCALL_GETTIME): Set errno on error.
7480
7481         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
7482         count references to noai6ai_cached.
7483
7484 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
7485
7486         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
7487
7488         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
7489         FD_CLOEXEC for /proc/self/maps.
7490
7491         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
7492         FD_CLOEXEC for /proc/meminfo.
7493
7494         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
7495         gai.conf.
7496
7497         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
7498         FD_CLOEXEC for given file.
7499
7500         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
7501
7502         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
7503         FD_CLOEXEC for /etc/hosts.
7504         (_gethtent): Likewise.
7505
7506         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
7507
7508         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
7509         cancellation and set FD_CLOEXEC for /etc/netgroup.
7510
7511         * nss/nss_files/files-key.c (search): Don't allow cancellation when
7512         reading /etc/publickey.
7513
7514         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
7515         allow cancellation when reading /etc/group.
7516
7517         * nss/nss_files/files-alias.c (internal_setent): Don't allow
7518         cancellation.
7519         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
7520
7521         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
7522         when using data file.
7523
7524         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
7525
7526         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
7527         (write_nis_obj): Use "c" and "e" in fopen.
7528
7529         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
7530
7531         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
7532
7533         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
7534
7535         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
7536
7537         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
7538         locale.alias.
7539
7540         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
7541
7542         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
7543
7544         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
7545
7546         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
7547         file parsing and set FD_CLOEXEC.
7548
7549 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
7550
7551         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
7552
7553 2011-11-14  Andreas Schwab  <schwab@redhat.com>
7554
7555         * malloc/arena.c (arena_get2): Don't call reused_arena when
7556         _int_new_arena failed.
7557
7558 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
7559
7560         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
7561         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
7562         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
7563         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7564         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7565         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
7566         to compile strcasecmp and strncasecmp.
7567         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
7568         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
7569
7570         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
7571
7572 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
7573
7574         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
7575         locale-defines.sym to gen-as-const-headers.
7576         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
7577         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
7578         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
7579         to compile strcasecmp and strncasecmp.
7580         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
7581         strcasecmp_l and strncasecmp_l.
7582         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
7583         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
7584         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
7585         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
7586         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
7587         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
7588         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
7589         * sysdeps/i386/i686/multiarch/strncase.S: New file.
7590         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
7591         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
7592         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
7593
7594 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
7595
7596         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
7597         result of SYSDEP_GETTIME_CPU to retval.
7598         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
7599         parameter list to macro.  Remove trailing semicolon.  Adjust users.
7600
7601         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
7602         variable.
7603
7604         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
7605         mantissa words.
7606         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7607
7608         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
7609         from unused variable.
7610
7611         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
7612         DWARF definitions.
7613         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
7614         for assembling.
7615
7616         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
7617         over namespaces.
7618
7619         * sunrpc/rpc_prot.c (rejected): Fix case value.
7620
7621         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
7622         unsigned long long int to avoid warnings in shift.
7623
7624         * posix/regex_internal.c (re_string_reconstruct): Actually use result
7625         of use of trans.
7626         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
7627         variable tmp.
7628
7629         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
7630         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
7631         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
7632
7633         * nis/nis_table.c (nis_list): Use variable of correct type for
7634         result of __follow_path call.
7635
7636 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7637
7638         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
7639         of math functions ceil, trunc, floor, round, and sqrt, when
7640         avaliable on the platform.
7641         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
7642         name clash.
7643         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7644         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
7645         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
7646
7647 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
7648
7649         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
7650         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
7651
7652 2011-11-11  Roland McGrath  <roland@hack.frob.com>
7653
7654         * include/unistd.h: Fix __readlink return type.
7655         Reported by Chris Metcalf <cmetcalf@tilera.com>.
7656
7657 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
7658
7659         * stdlib/ucontext.h: Undo last change for makecontext.
7660
7661 2011-11-11  Andreas Schwab  <schwab@redhat.com>
7662
7663         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
7664
7665         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
7666         * setjmp/setjmp.h: Mark functions as non-leaf.
7667         * setjmp/bits/setjmp2.h: Likewise.
7668         * stdlib/ucontext.h: Likewise.
7669
7670 2011-11-10  Andreas Schwab  <schwab@redhat.com>
7671
7672         * malloc/arena.c (_int_new_arena): Don't increment narenas.
7673         (reused_arena): Don't check arena limit.
7674         (arena_get2): Atomically check arena limit.
7675
7676 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
7677
7678         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
7679         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
7680
7681         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
7682         instructions.
7683
7684 2011-11-07  Andreas Schwab  <schwab@redhat.com>
7685
7686         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
7687         handler when locking.
7688
7689         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7690         Fix size of allocated buffer.
7691
7692 2011-11-04  Andreas Schwab  <schwab@redhat.com>
7693
7694         [BZ #10103]
7695         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
7696         declarations for long double functions.
7697         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
7698
7699         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
7700
7701 2011-11-03  Andreas Schwab  <schwab@redhat.com>
7702
7703         * nscd/nscd.c (main): Don't start AVC thread until credentials are
7704         installed.
7705
7706         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
7707         is disabled.
7708
7709 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7710
7711         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
7712
7713 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7714
7715         * include/alloca.h (stackinfo_alloca_round): Define.
7716         (extend_alloca): Use it.
7717         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
7718         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
7719         here.
7720
7721         * scripts/check-local-headers.sh: Ignore libaudit.h.
7722
7723         * nscd/Makefile (extra-objs): Make recursively expanded.
7724
7725 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
7726
7727         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
7728         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7729
7730         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
7731         * posix/tst-rfc3484-2.c: Likewise.
7732         * posix/tst-rfc3484-3.c: Likewise.
7733
7734         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
7735         process_vm_writev.
7736         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
7737         process_vm_writev.
7738         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
7739         process_vm_writev from libc using GLIBC_2.15 version.
7740
7741         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
7742
7743 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
7744
7745         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
7746         stack usage.
7747
7748 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
7749
7750         [BZ #13367]
7751         * nss/getent.c (initgroups_keys): Show error message in case no group
7752         names are given.
7753
7754         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
7755         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
7756         __bump_nl_timestamp.
7757         * nscd/connections (nscd_init): When host database is served open
7758         netlink socket and request notification about configuration changes.
7759         (main_loop_poll): Track netlink file descriptor and bump timestamp
7760         in case data becomes available.
7761         (main_loop_epoll): Likewise.
7762         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
7763         (database_pers_head): Add extra_data fileds.
7764         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
7765         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
7766         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
7767         Adjust caller.
7768         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
7769         in6ai data, call __free_in6ai.
7770         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
7771         Add -DHAVE_NETLINK.
7772         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
7773         interface information.  Reuse previous data if netlink timestamp
7774         is not changed.
7775         (__bump_nl_timestamp): New function.
7776         (__free_in6ai): New function.
7777
7778 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
7779
7780         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
7781         close_not_cancel_no_status here.
7782         (__check_pf): Reorganize code a bit to not call close twice if OOM.
7783
7784 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
7785
7786         [BZ #13276]
7787         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
7788         return value.
7789
7790         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
7791         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
7792         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
7793
7794 2011-07-03  Andreas Jaeger  <aj@suse.de>
7795
7796         [BZ #10709]
7797         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
7798         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
7799         * math/libm-test.inc (sin_test): Add test case.
7800
7801 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
7802
7803         [BZ #13337]
7804         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
7805         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
7806
7807         * elf/chroot_canon.c (chroot_canon): Cleanups.
7808
7809         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
7810
7811         [BZ #13335]
7812         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
7813         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
7814
7815         * string/test-strchr.c: Make usable for strchrnul testing.
7816         * string/test-strchrnul.c: New file.
7817         * string/Makefile (strop-tests): Add strchrnul.
7818
7819         * po/it.po: Update from translation team.
7820         * po/es.po: Likewise.
7821
7822 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
7823
7824         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
7825         the three constants needed as parameters.  Drop the others.
7826         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
7827         __m128i_strloadu_tolower.
7828         Create and initialize variable zero and use it in all the places
7829         where _mm_setzero_si128 was used.
7830
7831         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
7832         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
7833         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
7834         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
7835         anymore.
7836         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
7837         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
7838         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
7839         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
7840         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
7841         __mpranred, __mptan.
7842         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
7843         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
7844         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
7845         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
7846         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
7847         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
7848         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
7849         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
7850         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
7851
7852 2011-10-28  Andreas Schwab  <schwab@redhat.com>
7853
7854         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
7855         redefine if SHARED.
7856         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
7857
7858         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
7859         wide char related routines to wcsmbs subdir.
7860
7861 2011-10-27  Andreas Schwab  <schwab@redhat.com>
7862
7863         [BZ #13344]
7864         * misc/sys/cdefs.h (__THROWNL): Define.
7865         * posix/unistd.h: Use __THREADNL instead of __THREAD
7866         for memory synchronization functions.
7867
7868 2011-10-26  Roland McGrath  <roland@hack.frob.com>
7869
7870         [BZ #13349]
7871         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
7872         doesn't exist.
7873         * manual/stdio.texi (Obstack Streams): Node removed.
7874
7875 2011-10-26  Andreas Schwab  <schwab@redhat.com>
7876
7877         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
7878         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7879         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7880
7881         * math/math_private.h (math_force_eval): Allow non-addressable
7882         arguments.
7883         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
7884
7885 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7886
7887         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
7888         file is not needed.
7889
7890         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
7891         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
7892         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7893         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7894         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7895         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7896         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7897         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
7898         Add AVX variants.
7899         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
7900         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
7901         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
7902         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
7903         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
7904         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
7905         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
7906         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
7907         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
7908         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
7909         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
7910         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
7911         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
7912         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
7913         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
7914         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
7915         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
7916         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
7917         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
7918
7919         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
7920         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
7921
7922         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
7923         place.  Use VEX encoding when compiling for AVX.
7924
7925 2011-10-25  Andreas Schwab  <schwab@redhat.com>
7926
7927         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
7928         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7929
7930         * string/test-strchr.c (do_test): Don't generate NUL bytes.
7931
7932 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7933
7934         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
7935         useless if() expression.
7936         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7937         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7938         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
7939         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7940         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
7941         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7942         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7943         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7944         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7945         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7946         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7947         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7948         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
7949         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7950         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
7951         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7952         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7953         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7954         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7955
7956         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
7957
7958 2011-10-25  Andreas Schwab  <schwab@redhat.com>
7959
7960         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
7961         condition.
7962         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7963
7964 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7965
7966         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
7967         .text section.  Avoid duplicate constants.
7968         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
7969         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7970         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7971         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7972         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7973         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7974         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7975         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7976         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
7977         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
7978         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
7979         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
7980         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
7981         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
7982         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
7983         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
7984         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
7985         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
7986         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7987         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7988         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
7989         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
7990         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
7991         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
7992         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
7993         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
7994         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
7995         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
7996         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
7997         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
7998         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
7999         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
8000         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
8001         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
8002         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
8003         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
8004         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
8005         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
8006         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
8007         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
8008         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
8009         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
8010         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
8011         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
8012         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
8013
8014 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
8015
8016         * sysdeps/x86_64/dla.h: Move to ...
8017         * sysdeps/x86_64/fpu/dla.h: ...here.
8018         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
8019         situations.  Use __builtin_fma only for gcc 4.6 and up.
8020
8021         * config.make.in: Add have-mfma4 entry.
8022         * configure.in: Substitute libc_cv_cc_fma4.
8023         * math/Makefile (dbl-only-routines): Add sincostab.
8024         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
8025         Use __sincostab not sincos.
8026         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
8027         name is a macro.
8028         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8029         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8030         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8031         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
8032         using __copysign.
8033         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
8034         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
8035         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
8036         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
8037         and __inv.
8038         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
8039         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
8040         __copysign.
8041         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
8042         define aliases when function name is a macro.
8043         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
8044         sysdeps/ieee754/dbl-64/sincos.tbl.
8045         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
8046         fma4-enabled routines.
8047         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
8048         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
8049         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
8050         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
8051         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
8052         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
8053         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
8054         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
8055         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
8056         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
8057         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
8058         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
8059         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
8060         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
8061         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
8062         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
8063         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
8064         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
8065         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
8066         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
8067         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
8068         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
8069         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
8070         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
8071         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
8072         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
8073         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
8074         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
8075         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
8076         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
8077
8078         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
8079         rename.
8080         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8081         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8082         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8083         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8084         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8085         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8086         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8087         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8088
8089 2011-10-24  Andreas Schwab  <schwab@redhat.com>
8090
8091         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
8092
8093 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
8094
8095         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
8096
8097         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
8098         prediction.
8099         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
8100
8101         * string/strnlen.c: Don't define STRNLEN, reverse logic.
8102         Remove unused variable magic_bits.
8103         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
8104
8105         * string/strnlen.c: Define and use STRNLEN macro.
8106         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
8107         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
8108         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
8109         * wcsmbs/wcslen.c: Define and use WCSLEN.
8110         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
8111         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
8112         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
8113         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
8114         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
8115         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
8116         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
8117
8118 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8119
8120         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8121         strnlen-sse2-no-bsf.
8122         Rename strlen-no-bsf to strlen-sse2-no-bsf.
8123         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
8124         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
8125         Add strnlen support.
8126         (USE_AS_STRNLEN): New macro.
8127         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
8128         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
8129         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
8130         * sysdeps/x86_64/wcslen.S: New file.
8131
8132 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
8133
8134         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8135         XMM-moves are used for copying on small sizes.
8136
8137 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8138
8139         * wcsmbs/Makefile (strop-tests): Add wcschr.
8140         * wcsmbs/test-wcschr.c: New file.
8141         * string/test-strchr.c: Update.
8142         Add wcschr support.
8143         (WIDE): New macro.
8144
8145 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8146
8147         * wcsmbs/Makefile (strop-tests): Add wcslen.
8148         * wcsmbs/test-wcslen.c: New file.
8149         * string/test-strlen.c: Update.
8150         Add wcslen support.
8151         (WIDE): New macro.
8152
8153 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
8154
8155         * po/it.po: Update from translation team.
8156
8157 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8158
8159         * sysdeps/x86_64/wcscmp.S: Update.
8160         Fix wrong comparison semantics.
8161         wcscmp shall use signed comparison not unsigned.
8162         Don't use substraction to avoid overflow bug.
8163         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
8164         * wcsmbc/wcscmp.c: Likewise.
8165         * string/test-strcmp.c: Likewise.
8166         Add new tests to check cases with negative values.
8167
8168 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
8169
8170         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
8171         * sysdeps/x86_64/dla.h: ...here.  New file.
8172         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
8173         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8174         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8175         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8176         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8177         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8178         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8179         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8180         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8181
8182 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
8183
8184         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
8185         __ynl_finite aliases.
8186
8187 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
8188
8189         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8190
8191         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
8192         define DLA_FMA.
8193         [DLA_FMA] (EMULV): Use DLA_FMA.
8194         [DLA_FMA] (MUL12): Use EMULV.
8195         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
8196         that are not needed.
8197         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8198         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8199         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8200         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8201         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8202         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8203         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8204
8205 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
8206
8207         * math/s_nan.c: Undef __nan.
8208         * math/s_nanf.c: Undef __nanf.
8209         * math/s_nanl.c: Undef __nanl.
8210         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
8211         "math_private.h".
8212
8213 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
8214
8215         * math/s_catan.c: Add branch predictions.
8216         * math/s_catanf.c: Likewise.
8217         * math/s_catanh.c: Likewise.
8218         * math/s_catanhf.c: Likewise.
8219         * math/s_catanhl.c: Likewise.
8220         * math/s_catanl.c: Likewise.
8221         * math/s_cexp.c: Likewise.
8222         * math/s_cexpf.c: Likewise.
8223         * math/s_cexpl.c: Likewise.
8224         * math/s_clog.c: Likewise.
8225         * math/s_clog10.c: Likewise.
8226         * math/s_clog10f.c: Likewise.
8227         * math/s_clog10l.c: Likewise.
8228         * math/s_clogf.c: Likewise.
8229         * math/s_clogl.c: Likewise.
8230         * math/s_csqrt.c: Likewise.
8231         * math/s_csqrtf.c: Likewise.
8232         * math/s_csqrtl.c: Likewise.
8233         * math/s_ctanf.c: Likewise.
8234         * math/s_ctanh.c: Likewise.
8235         * math/s_ctanhf.c: Likewise.
8236         * math/s_ctanhl.c: Likewise.
8237         * math/s_ctanl.c: Likewise.
8238
8239         * math/math_private.h: Define __nan, __nanf, __nanl.
8240         * math/s_cacosh.c: Include <math_private.h>.
8241         * math/s_cacoshl.c: Likewise.
8242         * math/s_casinh.c: Likewise.
8243         * math/s_casinhf.c: Likewise.
8244         * math/s_casinhl.c: Likewise.
8245         * math/s_ccos.c: Rely entire on ccosh.
8246         * math/s_ccosf.c: Rely entire on ccoshf.
8247         * math/s_ccosl.c: Rely entirely on ccoshl.
8248         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
8249         Remove tests for FE_INVALID.
8250         * math/s_ccoshf.c: Likewise.
8251         * math/s_ccoshl.c: Likewise.
8252         * math/s_csin.c: Likewise.
8253         * math/s_csinf.c: Likewise.
8254         * math/s_csinh.c Likewise.
8255         * math/s_csinhf.c: Likewise.
8256         * math/s_csinhl.c: Likewise.
8257         * math/s_csinl.c: Likewise.
8258         * math/s_ctan.c: Likewise.
8259         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
8260         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
8261         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
8262
8263 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
8264
8265         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
8266         compilation problems.
8267
8268         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
8269         __builtin_expect.
8270
8271 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
8272
8273         * sysdeps/i386/configure.in: Test for -mfma4 option.
8274         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
8275         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
8276         COMMON_CPUID_INDEX_80000001.
8277         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
8278         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
8279         use it if FMA3 is not supported.
8280         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
8281
8282         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
8283         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
8284
8285 2011-10-20  Andreas Schwab  <schwab@redhat.com>
8286
8287         [BZ #12892]
8288         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
8289         it would create a cycle with a link time dependency.
8290
8291 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
8292
8293         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
8294         instruction.
8295         * string/Makefile (strop-tests): Add rawmemchr.
8296         * string/test-rawmemchr.c: New file.
8297
8298         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
8299         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
8300         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
8301         when compiling str{,n}casecmp and when AVX is available.  Hook up
8302         new optimized code in initializers.
8303
8304 2011-10-19  Andreas Schwab  <schwab@redhat.com>
8305
8306         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
8307         __feraiseexcept instead of feraiseexcept.
8308
8309 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
8310
8311         * math/math_private.h: Define defaults for libc_fetestexcept and
8312         libc_feupdateenv.
8313         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
8314         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8315         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
8316         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
8317         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8318         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
8319         libc_fetestexcept and libc_feupdateenv.
8320
8321         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
8322         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
8323         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
8324         * sysdeps/x86_64/fpu/math_private.h: Define special version of
8325         libc_feholdexcept_setround.
8326
8327         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
8328         Add s_nearbyint-c and s_nearbyintf-c.
8329         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
8330         nearbyintf inlines.
8331         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
8332         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
8333         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
8334         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
8335
8336         * math/math_private.h: Define defaults for libc_fegetround,
8337         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
8338         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
8339         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
8340         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
8341         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
8342         standard functions.
8343         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8344         Remove comments and hacks for old compiler versions.
8345         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
8346         libc_fegetround, libc_fesetround, libc_feholdexcept, and
8347         libc_feholdexceptl.
8348
8349 2011-10-18  Andreas Schwab  <schwab@redhat.com>
8350
8351         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
8352         (__feraiseexcept_renamed): Add __NTH.
8353         (feraiseexcept): Add __NTH.  Rename local variables to fix
8354         namespace violations.
8355
8356 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
8357
8358         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
8359
8360         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
8361
8362         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
8363         recently added interfaces.
8364         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8365
8366         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
8367         about macro parameter expansion.
8368
8369         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
8370         __NO_MATH_INLINES is defined.  Cleanups.
8371
8372         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
8373         and __floorf is target has SSE4.1.
8374         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
8375         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
8376         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
8377         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
8378
8379         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
8380         name.
8381         (floorf): Likewise.
8382
8383         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
8384
8385 2011-10-17  Andreas Schwab  <schwab@redhat.com>
8386
8387         * misc/sys/cdefs.h: Fix last change.
8388
8389         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
8390         database lookup.
8391
8392 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
8393
8394         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
8395
8396         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
8397         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8398         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8399         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8400         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8401         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8402         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8403         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8404         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8405         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
8406         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
8407         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
8408         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
8409         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
8410         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
8411         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
8412         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
8413         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
8414         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
8415         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
8416         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
8417         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
8418
8419         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
8420         ceil, ceilf, floor, floorf.
8421
8422         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
8423         Perform IRELATIVE relocations last.
8424
8425         * elf/do-rel.h: Add another parameter nrelative, replacing the
8426         local variable with the same name.  Change name of the function
8427         to end in Rel or Rela (uppercase).
8428         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
8429         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
8430         elf_dynamic_do_##reloc function.
8431
8432 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
8433
8434         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
8435         is sufficient, at least on modern CPUs.
8436
8437         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
8438
8439         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
8440         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
8441
8442         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
8443         __expl_finite.
8444         * math/bits/math-finite.h: Add entries for exp.
8445         * math/e_expl.c: Add __*_finite alias.
8446         * sysdeps/i386/fpu/e_exp.S: Likewise.
8447         * sysdeps/i386/fpu/e_expf.S: Likewise.
8448         * sysdeps/i386/fpu/e_expl.c: Likewise.
8449         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8450         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
8451         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8452         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
8453         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
8454         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
8455         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
8456
8457         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
8458         is sufficient, at least on modern CPUs.
8459
8460         * ctype/ctype-info.c (__ctype_init): Define.
8461         * include/ctype.h (__ctype_init): Declare.
8462         (__ctype_b_loc): The variable is always initialized.
8463         (__ctype_toupper_loc): Likewise.
8464         (__ctype_tolower_loc): Likewise.
8465         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
8466         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
8467
8468 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
8469
8470         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
8471
8472         * configure.in: Also look in $cxxmachine/include for C++ system
8473         headers.
8474
8475 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8476
8477         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
8478         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
8479         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
8480         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
8481         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
8482         (USE_AS_WMEMCMP): New macro.
8483         Fixing indents.
8484         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
8485         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
8486         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
8487         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
8488         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8489         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
8490         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
8491         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
8492         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
8493         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
8494         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
8495         (USE_AS_WMEMCMP): New macro.
8496         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
8497         * sysdeps/string/test-memcmp.c: Update.
8498         Fix simple_wmemcmp.
8499         Add new tests.
8500         * wcsmbs/wmemcmp.c: Update.
8501         (WMEMCMP): New macro.
8502         Fix overflow bug.
8503
8504 2011-10-12  Andreas Jaeger  <aj@suse.de>
8505
8506         [BZ #13268]
8507         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
8508
8509 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
8510
8511         * libio/iofwide.c (do_length): Avoid warning.
8512
8513         * ctype/ctype.h (__isctype_f): Add missing __THROW.
8514
8515 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
8516
8517         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
8518
8519         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
8520         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
8521         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
8522         * sysdeps/i386/i686/fpu/e_log.S: New file.
8523         * sysdeps/i386/i686/fpu/e_logf.S: New file.
8524         * sysdeps/i386/i686/fpu/e_logl.S: New file.
8525
8526         * ctype/ctype.h: Add support for inlined isXXX functions when
8527         compiling C++ code.
8528
8529 2011-10-14  Andreas Schwab  <schwab@redhat.com>
8530
8531         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8532
8533         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
8534
8535 2011-10-13  Roland McGrath  <roland@hack.frob.com>
8536
8537         [BZ #13291]
8538         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
8539
8540 2011-10-13  Andreas Schwab  <schwab@redhat.com>
8541
8542         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
8543         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
8544         feraiseexcept.
8545
8546         * sysdeps/x86_64/memrchr.S: Check for zero size.
8547
8548         * string/stratcliff.c: Add memrchr tests.
8549
8550 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8551
8552         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8553         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
8554         rawmemchr-sse2 rawmemchr-sse2-bsf.
8555         * sysdeps/i386/i686/multiarch/memchr.S: New file.
8556         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
8557         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
8558         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
8559         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
8560         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
8561         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
8562         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
8563         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
8564         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
8565         * string/memrchr.c (MEMRCHR): New macro.
8566
8567 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
8568
8569         Add integration with gcc's -ffinite-math-only and optimize wrapper
8570         functions in libm.
8571         * Versions.def: Define GLIBC_2.15 version for libm.
8572         * math/Makefile (headers): Add bits/math-finite.h.
8573         * math/bits/math-finite.h: New file.
8574         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
8575         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
8576         * math/e_acoshl.c: Add __*_finite alias.
8577         * math/e_acosl.c: Likewise.
8578         * math/e_asinl.c: Likewise.
8579         * math/e_atan2l.c: Likewise.
8580         * math/e_atanhl.c: Likewise.
8581         * math/e_coshl.c: Likewise.
8582         * math/e_exp10.c: Likewise.
8583         * math/e_exp10f.c: Likewise.
8584         * math/e_exp10l.c: Likewise.
8585         * math/e_exp2l.c: Likewise.
8586         * math/e_fmodl.c: Likewise.
8587         * math/e_gammal_r.c: Likewise.
8588         * math/e_hypotl.c: Likewise.
8589         * math/e_j0l.c: Likewise.
8590         * math/e_j1l.c: Likewise.
8591         * math/e_jnl.c: Likewise.
8592         * math/e_lgammal_r.c: Likewise.
8593         * math/e_log10l.c: Likewise.
8594         * math/e_log2l.c: Likewise.
8595         * math/e_logl.c: Likewise.
8596         * math/e_powl.c: Likewise.
8597         * math/e_sinhl.c: Likewise.
8598         * math/e_sqrtl.c: Likewise.
8599         * math/e_scalb.c: Completely rewritten and optimized.
8600         * math/e_scalbf.c: Likewise.
8601         * math/e_scalbl.c: Likewise.
8602         * math/w_acos.c: Likewise.
8603         * math/w_acosf.c: Likewise.
8604         * math/w_acosl.c: Likewise.
8605         * math/w_acosh.c: Likewise.
8606         * math/w_acoshf.c: Likewise.
8607         * math/w_acoshl.c: Likewise.
8608         * math/w_asin.c: Likewise.
8609         * math/w_asinf.c: Likewise.
8610         * math/w_asinl.c: Likewise.
8611         * math/w_atan2.c: Likewise.
8612         * math/w_atan2f.c: Likewise.
8613         * math/w_atan2l.c: Likewise.
8614         * math/w_atanh.c: Likewise.
8615         * math/w_atanhf.c: Likewise.
8616         * math/w_atanhl.c: Likewise.
8617         * math/w_exp10.c: Likewise.
8618         * math/w_exp10f.c: Likewise.
8619         * math/w_exp10l.c: Likewise.
8620         * math/w_fmod.c: Likewise.
8621         * math/w_fmodf.c: Likewise.
8622         * math/w_fmodl.c: Likewise.
8623         * math/w_j0.c: Likewise.
8624         * math/w_j0f.c: Likewise.
8625         * math/w_j0l.c: Likewise.
8626         * math/w_j1.c: Likewise.
8627         * math/w_j1f.c: Likewise.
8628         * math/w_j1l.c: Likewise.
8629         * math/w_jn.c: Likewise.
8630         * math/w_jnf.c: Likewise.
8631         * math/w_log.c: Likewise.
8632         * math/w_logf.c: Likewise.
8633         * math/w_logl.c: Likewise.
8634         * math/w_log10.c: Likewise.
8635         * math/w_log10f.c: Likewise.
8636         * math/w_log10l.c: Likewise.
8637         * math/w_log2.c: Likewise.
8638         * math/w_log2f.c: Likewise.
8639         * math/w_log2l.c: Likewise.
8640         * math/w_pow.c: Likewise.
8641         * math/w_powf.c: Likewise.
8642         * math/w_powl.c: Likewise.
8643         * math/w_remainder.c: Likewise.
8644         * math/w_remainderf.c: Likewise.
8645         * math/w_remainderl.c: Likewise.
8646         * math/w_scalb.c: Likewise.
8647         * math/w_scalbf.c: Likewise.
8648         * math/w_scalbl.c: Likewise.
8649         * math/w_sqrt.c: Likewise.
8650         * math/w_sqrtf.c: Likewise.
8651         * math/w_sqrtl.c: Likewise.
8652         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
8653         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
8654         used.
8655         * math/math_private.h: Declare __kernel_standard_f.
8656         * math/w_cosh.c: Remove cruft and optimize a bit.
8657         * math/w_coshf.c: Likewise.
8658         * math/w_coshl.c: Likewise.
8659         * math/w_exp2.c: Likewise.
8660         * math/w_exp2f.c: Likewise.
8661         * math/w_exp2l.c: Likewise.
8662         * math/w_hypot.c: Likewise.
8663         * math/w_hypotf.c: Likewise.
8664         * math/w_hypotl.c: Likewise.
8665         * math/w_lgamma.c: Likewise.
8666         * math/w_lgamma_r.c: Likewise.
8667         * math/w_lgammaf.c: Likewise.
8668         * math/w_lgammaf_r.c: Likewise.
8669         * math/w_lgammal.c: Likewise.
8670         * math/w_lgammal_r.c: Likewise.
8671         * math/w_sinh.c: Likewise.
8672         * math/w_sinhf.c: Likewise.
8673         * math/w_sinhl.c: Likewise.
8674         * math/w_tgamma.c: Likewise.
8675         * math/w_tgammaf.c: Likewise.
8676         * math/w_tgammal.c: Likewise.
8677         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8678         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8679         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
8680         Minor optimizations.  Pretty printing.  Remove cruft.
8681         * sysdeps/i386/fpu/e_acosf.S: Likewise.
8682         * sysdeps/i386/fpu/e_acosh.S: Likewise.
8683         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
8684         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
8685         * sysdeps/i386/fpu/e_acosl.c: Likewise.
8686         * sysdeps/i386/fpu/e_asin.S: Likewise.
8687         * sysdeps/i386/fpu/e_asinf.S: Likewise.
8688         * sysdeps/i386/fpu/e_atan2.S: Likewise.
8689         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
8690         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
8691         * sysdeps/i386/fpu/e_atanh.S: Likewise.
8692         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
8693         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
8694         * sysdeps/i386/fpu/e_exp10.S: Likewise.
8695         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
8696         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
8697         * sysdeps/i386/fpu/e_exp2.S: Likewise.
8698         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
8699         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
8700         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8701         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
8702         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8703         * sysdeps/i386/fpu/e_hypot.S: Likewise.
8704         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
8705         * sysdeps/i386/fpu/e_log.S: Likewise.
8706         * sysdeps/i386/fpu/e_log10.S: Likewise.
8707         * sysdeps/i386/fpu/e_log10f.S: Likewise.
8708         * sysdeps/i386/fpu/e_log10l.S: Likewise.
8709         * sysdeps/i386/fpu/e_log2.S: Likewise.
8710         * sysdeps/i386/fpu/e_log2f.S: Likewise.
8711         * sysdeps/i386/fpu/e_log2l.S: Likewise.
8712         * sysdeps/i386/fpu/e_logf.S: Likewise.
8713         * sysdeps/i386/fpu/e_logl.S: Likewise.
8714         * sysdeps/i386/fpu/e_pow.S: Likewise.
8715         * sysdeps/i386/fpu/e_powf.S: Likewise.
8716         * sysdeps/i386/fpu/e_powl.S: Likewise.
8717         * sysdeps/i386/fpu/e_remainder.S: Likewise.
8718         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
8719         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
8720         * sysdeps/i386/fpu/e_scalb.S: Likewise.
8721         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
8722         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
8723         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
8724         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
8725         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
8726         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
8727         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8728         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8729         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8730         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8731         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
8732         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8733         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8734         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8735         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8736         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8737         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8738         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8739         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
8740         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
8741         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8742         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8743         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8744         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8745         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8746         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8747         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
8748         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8749         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8750         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
8751         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8752         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
8753         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
8754         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8755         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
8756         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8757         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8758         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8759         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8760         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
8761         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
8762         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
8763         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
8764         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
8765         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8766         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
8767         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8768         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
8769         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
8770         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8771         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
8772         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8773         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
8774         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
8775         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8776         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8777         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
8778         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8779         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8780         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
8781         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8782         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
8783         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
8784         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8785         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
8786         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8787         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
8788         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8789         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8790         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
8791         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8792         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
8793         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
8794         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8795         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8796         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
8797         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
8798         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
8799         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8800         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
8801         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8802         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
8803         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
8804         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8805         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
8806         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8807         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
8808         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8809         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8810         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8811         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8812         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8813         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8814         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
8815         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8816         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8817         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8818         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8819         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8820         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8821         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8822         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8823         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
8824         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
8825         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
8826         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
8827         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
8828         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
8829         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
8830         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8831         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8832         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8833         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8834         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
8835         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8836         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
8837         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
8838         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
8839         (__isnanf): Likewise.
8840         (__isinf_ns): Likewise.
8841         (__isinf_nsf): Likewise.
8842         (__finite): Likewise.
8843         (__finitef): Likewise.
8844         (__ieee754_sqrt): Define as macro.
8845         (__ieee754_sqrtf): Define as macro.
8846         (__ieee754_sqrtl): Define as macro.
8847         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
8848         inlined copy.
8849         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
8850         __FINITE_MATH_ONLY__ consistent.
8851         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
8852
8853 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
8854
8855         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
8856         of rawmemchr.
8857
8858         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
8859
8860 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
8861
8862         * po/ja.po: Update from translation team.
8863
8864 2011-10-08  Roland McGrath  <roland@hack.frob.com>
8865
8866         * locale/programs/locarchive.c (prepare_address_space): New function.
8867         (create_archive, enlarge_archive, open_archive): Use it.
8868
8869         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
8870         inside [SHARED], where it is used.
8871
8872         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
8873
8874         * nss/getent.c (netgroup_keys): Remove unused variable.
8875         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
8876
8877 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
8878
8879         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
8880         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
8881         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
8882         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
8883         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
8884         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
8885         * math/Makefile (libm-calls): Add s_isinf_ns.
8886         * math/divtc3.c: Use __isinf_nsl instead of isinf.
8887         * math/multc3.c: Likewise.
8888         * math/s_casin.c: Likewise.
8889         * math/s_casinf.c: Likewise.
8890         * math/s_casinl.c: Likewise.
8891         * math/s_ccos.c: Likewise.
8892         * math/s_ccosf.c: Likewise.
8893         * math/s_ccosl.c: Likewise.
8894         * math/s_ctan.c: Likewise.
8895         * math/s_ctanf.c: Likewise.
8896         * math/s_ctanh.c: Likewise.
8897         * math/s_ctanhf.c: Likewise.
8898         * math/s_ctanhl.c: Likewise.
8899         * math/s_ctanl.c: Likewise.
8900         * math/w_fmod.c: Likewise.
8901         * math/w_fmodf.c: Likewise.
8902         * math/w_fmodl.c: Likewise.
8903         * math/w_remainder.c: Likewise.
8904         * math/w_remainderf.c: Likewise.
8905         * math/w_remainderl.c: Likewise.
8906         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
8907         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
8908         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
8909         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
8910         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
8911         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
8912         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
8913         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
8914
8915         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
8916         of the number.
8917         * stdio-common/printf_fphex.c: Likewise.
8918         * stdio-common/printf_size.c: Likewise.
8919
8920         * math/e_exp10.c: Include math_private.h using <...> not "...".
8921         * math/e_exp10f.c: Likewise.
8922         * math/e_exp10l.c: Likewise.
8923         * math/e_exp2l.c: Likewise.
8924         * math/e_j0l.c: Likewise.
8925         * math/e_j1l.c: Likewise.
8926         * math/e_jnl.c: Likewise.
8927         * math/e_lgammal_r.c: Likewise.
8928         * math/e_rem_pio2l.c: Likewise.
8929         * math/e_scalb.c: Likewise.
8930         * math/e_scalbf.c: Likewise.
8931         * math/e_scalbl.c: Likewise.
8932         * math/k_cosl.c: Likewise.
8933         * math/k_sinl.c: Likewise.
8934         * math/k_tanl.c: Likewise.
8935         * math/s_cacoshf.c: Likewise.
8936         * math/s_catan.c: Likewise.
8937         * math/s_catanf.c: Likewise.
8938         * math/s_catanh.c: Likewise.
8939         * math/s_catanhf.c: Likewise.
8940         * math/s_catanhl.c: Likewise.
8941         * math/s_catanl.c: Likewise.
8942         * math/s_ccosh.c: Likewise.
8943         * math/s_ccoshf.c: Likewise.
8944         * math/s_ccoshl.c: Likewise.
8945         * math/s_cexp.c: Likewise.
8946         * math/s_cexpf.c: Likewise.
8947         * math/s_cexpl.c: Likewise.
8948         * math/s_clog.c: Likewise.
8949         * math/s_clog10.c: Likewise.
8950         * math/s_clog10f.c: Likewise.
8951         * math/s_clog10l.c: Likewise.
8952         * math/s_clogf.c: Likewise.
8953         * math/s_clogl.c: Likewise.
8954         * math/s_csin.c: Likewise.
8955         * math/s_csinf.c: Likewise.
8956         * math/s_csinh.c: Likewise.
8957         * math/s_csinhf.c: Likewise.
8958         * math/s_csinhl.c: Likewise.
8959         * math/s_csinl.c: Likewise.
8960         * math/s_csqrt.c: Likewise.
8961         * math/s_csqrtf.c: Likewise.
8962         * math/s_csqrtl.c: Likewise.
8963         * math/s_ctan.c: Likewise.
8964         * math/s_ctanf.c: Likewise.
8965         * math/s_ctanh.c: Likewise.
8966         * math/s_ctanhf.c: Likewise.
8967         * math/s_ctanhl.c: Likewise.
8968         * math/s_ctanl.c: Likewise.
8969         * math/s_ldexp.c: Likewise.
8970         * math/s_ldexpf.c: Likewise.
8971         * math/s_ldexpl.c: Likewise.
8972         * math/s_significand.c: Likewise.
8973         * math/s_significandf.c: Likewise.
8974         * math/s_significandl.c: Likewise.
8975         * math/w_acos.c: Likewise.
8976         * math/w_acosf.c: Likewise.
8977         * math/w_acosh.c: Likewise.
8978         * math/w_acoshf.c: Likewise.
8979         * math/w_acoshl.c: Likewise.
8980         * math/w_acosl.c: Likewise.
8981         * math/w_asin.c: Likewise.
8982         * math/w_asinf.c: Likewise.
8983         * math/w_asinl.c: Likewise.
8984         * math/w_atan2.c: Likewise.
8985         * math/w_atan2f.c: Likewise.
8986         * math/w_atan2l.c: Likewise.
8987         * math/w_atanh.c: Likewise.
8988         * math/w_atanhf.c: Likewise.
8989         * math/w_atanhl.c: Likewise.
8990         * math/w_cosh.c: Likewise.
8991         * math/w_coshf.c: Likewise.
8992         * math/w_coshl.c: Likewise.
8993         * math/w_dremf.c: Likewise.
8994         * math/w_exp10.c: Likewise.
8995         * math/w_exp10f.c: Likewise.
8996         * math/w_exp10l.c: Likewise.
8997         * math/w_exp2.c: Likewise.
8998         * math/w_exp2f.c: Likewise.
8999         * math/w_fmod.c: Likewise.
9000         * math/w_fmodf.c: Likewise.
9001         * math/w_fmodl.c: Likewise.
9002         * math/w_hypot.c: Likewise.
9003         * math/w_hypotf.c: Likewise.
9004         * math/w_hypotl.c: Likewise.
9005         * math/w_j0.c: Likewise.
9006         * math/w_j0f.c: Likewise.
9007         * math/w_j0l.c: Likewise.
9008         * math/w_j1.c: Likewise.
9009         * math/w_j1f.c: Likewise.
9010         * math/w_j1l.c: Likewise.
9011         * math/w_jn.c: Likewise.
9012         * math/w_jnf.c: Likewise.
9013         * math/w_jnl.c: Likewise.
9014         * math/w_lgamma.c: Likewise.
9015         * math/w_lgamma_r.c: Likewise.
9016         * math/w_lgammaf.c: Likewise.
9017         * math/w_lgammaf_r.c: Likewise.
9018         * math/w_lgammal.c: Likewise.
9019         * math/w_lgammal_r.c: Likewise.
9020         * math/w_log.c: Likewise.
9021         * math/w_log10.c: Likewise.
9022         * math/w_log10f.c: Likewise.
9023         * math/w_log10l.c: Likewise.
9024         * math/w_log2.c: Likewise.
9025         * math/w_log2f.c: Likewise.
9026         * math/w_log2l.c: Likewise.
9027         * math/w_logf.c: Likewise.
9028         * math/w_logl.c: Likewise.
9029         * math/w_pow.c: Likewise.
9030         * math/w_powf.c: Likewise.
9031         * math/w_powl.c: Likewise.
9032         * math/w_remainder.c: Likewise.
9033         * math/w_remainderf.c: Likewise.
9034         * math/w_remainderl.c: Likewise.
9035         * math/w_scalb.c: Likewise.
9036         * math/w_scalbf.c: Likewise.
9037         * math/w_scalbl.c: Likewise.
9038         * math/w_sinh.c: Likewise.
9039         * math/w_sinhf.c: Likewise.
9040         * math/w_sinhl.c: Likewise.
9041         * math/w_sqrt.c: Likewise.
9042         * math/w_sqrtf.c: Likewise.
9043         * math/w_sqrtl.c: Likewise.
9044         * math/w_tgamma.c: Likewise.
9045         * math/w_tgammaf.c: Likewise.
9046         * math/w_tgammal.c: Likewise.
9047
9048         * po/ja.po: Update from translation team.
9049
9050 2011-09-29  Andreas Jaeger  <aj@suse.de>
9051
9052         [BZ #13179]
9053         * sunrpc/netname.c (netname2host): Fix logic.
9054
9055         [BZ #6779]
9056         [BZ #6783]
9057         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
9058         correctly.
9059         * math/w_remainder.c (__remainder): Likewise.
9060         * math/w_remainderf.c (__remainderf): Likewise.
9061         * math/libm-test.inc (remainder_test): Add test cases.
9062
9063 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9064
9065         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
9066         sdiv_qrnnd.
9067
9068 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
9069
9070         * string/test-memcmp.c: Avoid unncessary #defines.
9071         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
9072
9073 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9074
9075         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
9076         Use new sse2 version for core i3 - i7 as it's faster
9077         than sse42 version.
9078         (bit_Prefer_PMINUB_for_stringop): New.
9079         * sysdeps/x86_64/rawmemchr.S: Update.
9080         Replace with faster SSE2 version.
9081         * sysdeps/x86_64/memrchr.S: New file.
9082         * sysdeps/x86_64/memchr.S: Update.
9083         Replace with faster SSE2 version.
9084
9085 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
9086
9087         * elf/dl-load.c (lose): Add cast to avoid warning.
9088
9089 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
9090
9091         * po/ca.po: Update from translation team.
9092
9093         * inet/getnetgrent_r.c: Hook up nscd.
9094         * nscd/Makefile (routines): Add nscd_netgroup.
9095         (nscd-modules): Add netgroupcache.
9096         (CFLAGS-netgroupcache.c): Define.
9097         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
9098         (cache_search): Add const to second parameter.
9099         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
9100         INNETGR.
9101         (dbs): Add netgrdb entry.
9102         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
9103         (verify_persistent_db): Handle netgrdb.
9104         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
9105         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
9106         GETFDNETGR.
9107         (netgroup_response_header): Define.
9108         (innetgroup_response_header): Define.
9109         (datahead): Add netgroup_response_header and innetgroup_response_header
9110         elements.
9111         * nscd/nscd.conf: Add entries for netgroup cache.
9112         * nscd/nscd.h (dbtype): Add netgrdb.
9113         (_PATH_NSCD_NETGROUP_DB): Define.
9114         (netgroup_iov_disabled): Declare.
9115         (xmalloc, xcalloc, xrealloc): Move declarations here.
9116         (cache_search): Adjust prototype.
9117         Add netgroup-related prototypes.
9118         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
9119         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
9120         (__nscd_innetgr): Declare.
9121         * nscd/selinux.c (perms): Use access_vector_t as element type and
9122         add netgroup-related initializers.
9123         * nscd/netgroupcache.c: New file.
9124         * nscd/nscd_netgroup.c: New file.
9125         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
9126         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
9127         For four parameters use innetgr.
9128         * nss/nss_files/files-init.c: Add definition and callback for netgr.
9129         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
9130         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
9131         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
9132
9133         * nscd/connections.c (register_traced_file): Don't register file
9134         for disabled databases.
9135
9136 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
9137
9138         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
9139
9140         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
9141         from tree and freeing node.
9142
9143 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
9144
9145         * nss/nsswitch.c (__nss_database_lookup): Handle
9146         nss_parse_service_list out of memory case.
9147
9148 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
9149
9150         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
9151         out of memory case.
9152
9153 2011-10-04  Andreas Schwab  <schwab@redhat.com>
9154
9155         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
9156         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
9157         pass it down.
9158         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
9159         elf_machine_rela, elf_machine_lazy_rel.
9160         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
9161         (ELF_DYNAMIC_DO_REL): Likewise.
9162         (ELF_DYNAMIC_DO_RELA): Likewise.
9163         (ELF_DYNAMIC_RELOCATE): Likewise.
9164         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
9165         to ELF_DYNAMIC_DO_REL.
9166         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
9167         (dl_main): In trace mode always set __RTLD_NOIFUNC.
9168         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
9169         elf_machine_rela.
9170         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
9171         skip_ifunc, don't call ifunc function if non-zero.
9172         (elf_machine_rela): Likewise.
9173         (elf_machine_lazy_rel): Likewise.
9174         (elf_machine_lazy_rela): Likewise.
9175         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
9176         (elf_machine_lazy_rel): Likewise.
9177         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
9178         Likewise.
9179         (elf_machine_lazy_rel): Likewise.
9180         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
9181         Likewise.
9182         (elf_machine_lazy_rel): Likewise.
9183         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
9184         (elf_machine_lazy_rel): Likewise.
9185         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
9186         (elf_machine_lazy_rel): Likewise.
9187         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9188         (elf_machine_lazy_rel): Likewise.
9189         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
9190         (elf_machine_lazy_rel): Likewise.
9191         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
9192         (elf_machine_lazy_rel): Likewise.
9193         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9194         (elf_machine_lazy_rel): Likewise.
9195
9196 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
9197
9198         * nss/nss_files/files-init.c (_nss_files_init): Use static
9199         initialization for all the *_traced_file variables.
9200
9201 2011-09-28  Andreas Schwab  <schwab@redhat.com>
9202
9203         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9204
9205 2011-09-27  Roland McGrath  <roland@hack.frob.com>
9206
9207         [BZ #13226]
9208         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
9209
9210 2011-09-27  Andreas Schwab  <schwab@redhat.com>
9211
9212         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9213         Reread the line before reparsing it.
9214
9215 2011-09-26  Andreas Schwab  <schwab@redhat.com>
9216
9217         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
9218
9219 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
9220             Maxim Kuvyrkov  <maxim@codesourcery.com>
9221             Joseph Myers  <joseph@codesourcery.com>
9222
9223         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
9224         if needed for __stack_chk_guard.
9225
9226 2011-09-19  Roland McGrath  <roland@hack.frob.com>
9227
9228         * sysdeps/posix/spawni.c (script_execute): Always define it.
9229         It will be optimized away if unused.
9230         (maybe_script_execute): New function.
9231         (__spawni): Call it.
9232
9233         * Makerules: Don't include tls.make.
9234         (config-tls): Always set to thread.
9235         * tls.make.c: File removed.
9236
9237 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
9238
9239         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
9240         * config.make.in (CPPFLAGS-config): New substituted variable.
9241
9242 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
9243
9244         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
9245
9246         [BZ #13192]
9247         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
9248         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
9249
9250 2011-09-15  Roland McGrath  <roland@hack.frob.com>
9251
9252         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
9253         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
9254         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
9255         (CALL_FAIL): Likewise.
9256         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
9257         (CALL_FAIL): Macro removed.
9258         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
9259
9260 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
9261
9262         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
9263         for __FINITE_MATH_ONLY__ == 1.
9264
9265 2011-09-15  Andreas Schwab  <schwab@redhat.com>
9266
9267         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
9268         __ieee754_sqrt instead of sqrt.
9269         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
9270         __ieee754_sqrtf instead of sqrtf.
9271         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
9272         __floorf instead of floorf.
9273         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
9274         __floorf, __truncf instead of floorf, truncf.
9275
9276 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
9277
9278         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
9279
9280         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
9281         __extern_always_inline.
9282         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
9283         32-bit.
9284
9285 2011-09-14  Andreas Schwab  <schwab@redhat.com>
9286
9287         * elf/rtld.c (dl_main): Also relocate in dependency order when
9288         doing symbol dependency testing.
9289
9290 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
9291
9292         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
9293         Always define `refsym'.
9294
9295 2011-09-13  Andreas Schwab  <schwab@redhat.com>
9296
9297         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
9298         (__FD_ELT): Renamed from __FDELT.
9299         * misc/bits/select2.h (__FD_ELT): Likewise.
9300         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
9301         __FD_MASK instead of __FDELT, __FDMASK.
9302         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
9303         Likewise.
9304         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
9305         Likewise.
9306
9307         * elf/Makefile (gen-ldd): Fix pattern.
9308
9309         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
9310         (init_tls): Likewise.
9311
9312 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
9313
9314         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
9315
9316 2011-09-12  Andreas Schwab  <schwab@redhat.com>
9317
9318         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
9319         `struct cmsghdr *' instead of `void *'.
9320         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
9321         Likewise.
9322
9323 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
9324
9325         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
9326         if non-absolute.
9327         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
9328         ldd_rewrite_script.
9329
9330 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
9331
9332         * configure.in: Remove --with-tls option.
9333         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
9334         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
9335         out in case it is missing.
9336         * sysdeps/ia64/elf/configure.in: Likewise.
9337         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
9338         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
9339         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
9340         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
9341         * sysdeps/sh/elf/configure.in: Likewise.
9342         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
9343         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
9344         * sysdeps/x86_64/elf/configure.in: Likewise.
9345         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
9346         * sysdeps/mach/hurd/tls.h: Likewise.
9347
9348         [BZ #13067]
9349         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
9350
9351         [BZ #13090]
9352         * configure.in: Fix use of AC_INIT.
9353
9354         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
9355
9356 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
9357
9358         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
9359         __set_errno.
9360         * malloc/hooks.c: Likewise.
9361
9362         [BZ #11929]
9363         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
9364         variables statically.
9365         (narenas): Initialize.
9366         (list_lock): Initialize.
9367         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
9368         initializtion of main_arena and list_lock.  Small cleanups.
9369         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
9370         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
9371         Add initializers to main_arena and mp_.
9372         (malloc_state): Remove pagesize member.  Change all users to use
9373         GLRO(dl_pagesize).
9374
9375         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
9376         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
9377         is always initialized.
9378
9379         * malloc/malloc.c: Removed unused configurations and dead code.
9380         * malloc/arena.c: Likewise.
9381         * malloc/hooks.c: Likewise.
9382         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
9383
9384         * include/tls.h: Removed.  USE___THREAD must always be defined.
9385         * bits/libc-tsd.h: Don't handle !USE___THREAD.
9386         * elf/dl-libc.c: Likewise.
9387         * elf/dl-tsd.c: Likewise.
9388         * include/errno.h: Likewise.
9389         * include/netdb.h: Likewise.
9390         * include/resolv.h: Likewise.
9391         * inet/herrno-loc.c: Likewise.
9392         * inet/herrno.c: Likewise.
9393         * malloc/arena.c: Likewise.
9394         * malloc/hooks.c: Likewise.
9395         * malloc/malloc.c: Likewise.
9396         * resolv/res-state.c: Likewise.
9397         * resolv/res_libc.c: Likewise.
9398         * sysdeps/i386/dl-machine.h: Likewise.
9399         * sysdeps/ia64/dl-machine.h: Likewise.
9400         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9401         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9402         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9403         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9404         * sysdeps/sh/dl-machine.h: Likewise.
9405         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9406         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9407         * sysdeps/unix/i386/sysdep.S: Likewise.
9408         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9409         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
9410         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
9411         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9412         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
9413         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9414         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9415         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9416         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9417         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9418         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9419         * sysdeps/x86_64/dl-machine.h: Likewise.
9420         * tls.make.c: Likewise.
9421
9422         * configure.in: Remove --with-__thread option.  Make tests for
9423         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
9424         tls_model attribute fail if no support is available.  Remove
9425         USE_IN_LIBIO.
9426         * Makeconfig: Adjust for dropped configure option.  All features are
9427         now mandatory.
9428         * Makerules: Likewise.
9429         * Versions.def: Likewise.
9430         * argp/argp-fmtstream.c: Likewise.
9431         * argp/argp-fmtstream.h: Likewise.
9432         * argp/argp-help.c: Likewise.
9433         * assert/assert.c: Likewise.
9434         * config.h.in: Likewise.
9435         * config.make.in: Likewise.
9436         * configure: Likewise.
9437         * configure.in: Likewise.
9438         * csu/Versions: Likewise.
9439         * csu/init.c: Likewise.
9440         * elf/tst-audit2.c: Likewise.
9441         * elf/tst-tls10.c: Likewise.
9442         * elf/tst-tls10.h: Likewise.
9443         * elf/tst-tls11.c: Likewise.
9444         * elf/tst-tls12.c: Likewise.
9445         * elf/tst-tls14.c: Likewise.
9446         * elf/tst-tlsmod11.c: Likewise.
9447         * elf/tst-tlsmod12.c: Likewise.
9448         * elf/tst-tlsmod13.c: Likewise.
9449         * elf/tst-tlsmod13a.c: Likewise.
9450         * elf/tst-tlsmod14a.c: Likewise.
9451         * elf/tst-tlsmod15b.c: Likewise.
9452         * elf/tst-tlsmod16a.c: Likewise.
9453         * elf/tst-tlsmod16b.c: Likewise.
9454         * elf/tst-tlsmod7.c: Likewise.
9455         * elf/tst-tlsmod8.c: Likewise.
9456         * elf/tst-tlsmod9.c: Likewise.
9457         * gmon/gmon.c: Likewise.
9458         * grp/fgetgrent_r.c: Likewise.
9459         * grp/putgrent.c: Likewise.
9460         * hurd/fopenport.c: Likewise.
9461         * include/libc-symbols.h: Likewise.
9462         * include/tls.h: Likewise.
9463         * intl/gettextP.h: Likewise.
9464         * intl/loadinfo.h: Likewise.
9465         * locale/global-locale.c: Likewise.
9466         * locale/localeinfo.h: Likewise.
9467         * mach/devstream.c: Likewise.
9468         * malloc/arena.c: Likewise.
9469         * malloc/set-freeres.c: Likewise.
9470         * misc/err.c: Likewise.
9471         * misc/getttyent.c: Likewise.
9472         * misc/mntent_r.c: Likewise.
9473         * posix/getopt.c: Likewise.
9474         * posix/wordexp.c: Likewise.
9475         * pwd/fgetpwent_r.c: Likewise.
9476         * resolv/Versions: Likewise.
9477         * resolv/res_hconf.c: Likewise.
9478         * shadow/fgetspent_r.c: Likewise.
9479         * shadow/putspent.c: Likewise.
9480         * stdio-common/printf_fphex.c: Likewise.
9481         * stdio-common/tmpfile.c: Likewise.
9482         * stdlib/abort.c: Likewise.
9483         * stdlib/fmtmsg.c: Likewise.
9484         * sunrpc/auth_unix.c: Likewise.
9485         * sunrpc/clnt_perr.c: Likewise.
9486         * sunrpc/clnt_tcp.c: Likewise.
9487         * sunrpc/clnt_udp.c: Likewise.
9488         * sunrpc/clnt_unix.c: Likewise.
9489         * sunrpc/openchild.c: Likewise.
9490         * sunrpc/svc_simple.c: Likewise.
9491         * sunrpc/svc_tcp.c: Likewise.
9492         * sunrpc/svc_udp.c: Likewise.
9493         * sunrpc/svc_unix.c: Likewise.
9494         * sunrpc/xdr.c: Likewise.
9495         * sunrpc/xdr_array.c: Likewise.
9496         * sunrpc/xdr_rec.c: Likewise.
9497         * sunrpc/xdr_ref.c: Likewise.
9498         * sunrpc/xdr_stdio.c: Likewise.
9499
9500 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
9501
9502         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9503
9504 2011-07-03  Andreas Jaeger  <aj@suse.de>
9505
9506         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
9507         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
9508         regenerate with gen-libm-tests.pl.
9509
9510 2010-05-12  Petr Baudis  <pasky@suse.cz>
9511
9512         [BZ #11589]
9513         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
9514         around j0() zero points by switching to j1().
9515         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9516         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9517         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9518         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9519
9520 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
9521
9522         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
9523         instead of 0.
9524         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
9525         instead of 0.                              .
9526         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9527         Patch in part by Pavel Roskin <proski@gnu.org>.
9528
9529         [BZ #13138]
9530         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
9531         realloc.
9532         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
9533         Free memory block if necessary.
9534
9535         [BZ #12847]
9536         * libio/genops.c (INTDEF): For string streams the _lock pointer can
9537         be NULL.  Don't lock in this case.
9538
9539 2011-09-09  Roland McGrath  <roland@hack.frob.com>
9540
9541         * elf/elf.h (ELFOSABI_GNU): New macro.
9542         (ELFOSABI_LINUX): Define to that.
9543
9544 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
9545
9546         * string/strncat.c (strncat): Undef the symbol in case it has been
9547         defined in bits/string.h.
9548
9549 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
9550
9551         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
9552
9553         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
9554         link map.
9555
9556 2011-08-17  Andreas Jaeger  <aj@suse.de>
9557
9558         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
9559
9560 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
9561             Ian Lance Taylor  <iant@google.com>
9562
9563         * math/libm-test.inc (lround_test): New testcase.
9564         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
9565
9566 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
9567
9568         * Makefile: Remove support for automatic cvs check-ins.
9569         * Makerules: Likewise.
9570         * config.make.in: Likewise.
9571         * configure.in: Likewise.
9572         * intl/Makefile: Likewise.
9573         * locale/Makefile: Likewise.
9574         * po/Makefile: Likewise.
9575         * posix/Makefile: Likewise.
9576         * sysdeps/gnu/Makefile: Likewise.
9577         * sysdeps/mach/hurd/Makefile: Likewise.
9578         * sysdeps/sparc/sparc32/Makefile: Likewise.
9579
9580         [BZ #13118]
9581         * posix/Makefile (bug-regex32-ENV): Define.
9582         Patch by John Stanley <jpsinthemix@verizon.net>.
9583
9584         * misc/Makefile (headers): Add bits/select2.h.
9585         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
9586         * misc/bits/select2.h: New file.
9587         * include/bits/select2.h: New file.
9588         * debug/Makefile (routines): Add fdelt_chk.
9589         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
9590         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
9591         FD_ISSET.
9592         * debug/fdelt_chk.c: New file.
9593
9594         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
9595         * wcsmbs/test-wmemcmp.c: Likewise.
9596         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
9597         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
9598
9599 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9600
9601         * string/Makefile (strop-tests): Add memcmp.
9602         * string/test-wmemcmp.c: New file.
9603         * string/test-memcmp.c: Add wmemcmp support.
9604
9605 2011-09-08  Roland McGrath  <roland@hack.frob.com>
9606
9607         [BZ #13153]
9608         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
9609         2011-07-19 change.
9610
9611         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
9612         garbage value in a __mach_port_mod_refs call in the cases of the
9613         task-self and thread-self ports.
9614
9615 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9616
9617         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
9618
9619 2011-09-08  Andreas Schwab  <schwab@redhat.com>
9620
9621         * elf/dl-load.c (lose): Check for non-null L.
9622
9623 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
9624
9625         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
9626
9627         * elf/dl-libc.c (dlerror_run): Pass back error code from
9628         dl_catch_error.
9629
9630         [BZ #13123]
9631         * elf/dl-load.c (lose): Free l_origin if it is valid.
9632
9633         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
9634         names.
9635         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
9636         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
9637         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
9638         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
9639         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
9640         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
9641
9642 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9643
9644         * sysdeps/powerpc/fpu/e_hypot.c: New file.
9645         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
9646         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
9647         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
9648         * sysdeps/powerpc/fpu/k_cosf.c: New file.
9649         * sysdeps/powerpc/fpu/k_sinf.c: New file.
9650         * sysdeps/powerpc/fpu/s_cosf.c: New file.
9651         * sysdeps/powerpc/fpu/s_sinf.c: New file.
9652         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
9653         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
9654
9655 2011-08-15  Alan Modra  <amodra@gmail.com>
9656
9657         [BZ #13092]
9658         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
9659         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
9660         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
9661         ppc_mcount to static-only-routines.
9662         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
9663         __mcount_internal.
9664         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
9665         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
9666
9667 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
9668
9669         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
9670         for finite and infinity parameters.
9671
9672 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
9673
9674         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
9675         and add nop instructions for throughput optimization.
9676         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9677
9678 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
9679
9680         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
9681         aligned copy for power7 with vector-scalar instructions.
9682         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
9683
9684 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9685
9686         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
9687         AVX check.
9688
9689 2011-09-07  Andreas Schwab  <schwab@redhat.com>
9690
9691         [BZ #13144]
9692         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
9693         last change.
9694
9695 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
9696
9697         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9698         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
9699         syscall wrapper around clock_gettime in __vdso_clock_gettime.
9700         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
9701         clock_gettime.
9702
9703 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
9704
9705         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
9706         Forgot to demangle the pointer.
9707
9708         * sysdeps/i386/sysdep.h: Define atom_text_section.
9709         * sysdeps/x86_64/sysdep.h: Likewise.
9710         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
9711         section with atom_text_section.
9712         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
9713         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
9714         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
9715         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
9716         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
9717
9718         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
9719         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
9720         already be defined.  Change to take two parameters and don't assign
9721         result to variable.  Adjust all users.
9722         Define INTERNAL_GETTIME if not already defined.
9723         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
9724         call.
9725         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
9726         HAVE_CLOCK_GETTIME_VSYSCALL.
9727         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
9728
9729         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
9730         gettimeofday vsyscall, just use time.
9731
9732 2011-09-06  Andreas Schwab  <schwab@redhat.com>
9733
9734         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
9735         <errno.h>.
9736
9737 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
9738
9739         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
9740         syscall on x86-64.
9741         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
9742         syscall.
9743         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
9744         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
9745         syscall if possible.
9746
9747 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9748
9749         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
9750         e_ident.  Don't pass to find_mapsXX.
9751         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
9752
9753 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9754
9755         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9756         strchr-sse2-no-bsf strrchr-sse2-no-bsf
9757         * sysdeps/x86_64/multiarch/strchr.S: Update.
9758         Check bit_slow_BSF bit.
9759         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
9760         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
9761         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
9762
9763 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9764
9765         [BZ #13134]
9766         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
9767         before glibc 2.15.
9768         (tryshell): Define.
9769         (__spawni): Change last parameter to be flag.  Test
9770         SPAWN_XFLAGS_USE_PATH flag to use path or not.
9771         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
9772         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
9773         * posix/spawni.c: Likewise.
9774         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
9775         * posix/spawnp.c: Likewise.  Change normal version to use
9776         SPAWN_XFLAGS_USE_PATH.
9777         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
9778         SPAWN_XFLAGS_TRY_SHELL.
9779
9780         [BZ #13150]
9781         * posix/glob.h: Remove gcc 1.x support.
9782
9783         [BZ #13068]
9784         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
9785
9786 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9787
9788         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9789         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
9790         strrchr-sse2-bsf
9791         * sysdeps/i386/i686/multiarch/strchr.S: New file.
9792         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
9793         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
9794         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
9795         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
9796         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
9797
9798 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9799
9800         * sysdeps/x86_64/wcscmp.S: New file.
9801
9802         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
9803         wcscmp-c wcscmp-sse2
9804         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
9805         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
9806         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
9807         * wcsmbs/wcscmp.c: Allow renaming.
9808
9809 2011-09-05  David S. Miller  <davem@davemloft.net>
9810
9811         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
9812         stack slot, rather than the struct return pointer slot.
9813         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
9814         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
9815         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
9816         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
9817
9818 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9819
9820         * po/ja.po: Update from translation team.
9821
9822         [BZ #13144]
9823         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
9824         kernel in 64-bit binaries.
9825
9826 2011-09-01  David S. Miller  <davem@davemloft.net>
9827
9828         * elf/elf.h (HWCAP_SPARC_*): Move to..
9829         * sysdeps/sparc/sysdep.h: this new file and add new values.
9830         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
9831         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
9832         _DL_HWCAP_COUNT to 24.
9833         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9834         entries.
9835         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
9836         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
9837         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
9838         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
9839         instead of magic constants.
9840         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9841
9842 2011-08-31  David S. Miller  <davem@davemloft.net>
9843
9844         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
9845         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
9846         Reimplement to do errno handling inline.
9847         (SYSCALL_ERROR_HANDLER): New macro.
9848         (__SYSCALL_STRING): Do not do errno handling in asm.
9849         (__CLONE_SYSCALL_STRING): Delete.
9850         (__INTERNAL_SYSCALL_STRING): Delete.
9851         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
9852         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
9853         (PSEUDO): Reimplement to do errno handling inline.
9854         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
9855         (SYSCALL_ERROR_HANDLER): New macro.
9856         (__SYSCALL_STRING): Do not do errno handling in asm.
9857         (__CLONE_SYSCALL_STRING): Delete.
9858         (__INTERNAL_SYSCALL_STRING): Delete.
9859         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
9860         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
9861         i386.
9862         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
9863         (inline_syscall*): Add 'err' argument.
9864         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
9865         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
9866         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
9867         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
9868
9869         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
9870         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9871
9872 2011-08-30  Andreas Schwab  <schwab@redhat.com>
9873
9874         * elf/rtld.c (dl_main): Relocate objects in dependency order.
9875
9876 2011-08-29  Jiri Olsa <jolsa@redhat.com>
9877
9878         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
9879         directive.
9880
9881 2011-08-24  David S. Miller  <davem@davemloft.net>
9882
9883         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
9884
9885 2011-08-24  Andreas Schwab  <schwab@redhat.com>
9886
9887         * elf/Makefile: Add rules to build and run unload8 test.
9888         * elf/unload8.c: New file.
9889         * elf/unload8mod1.c: New file.
9890         * elf/unload8mod1x.c: New file.
9891         * elf/unload8mod2.c: New file.
9892         * elf/unload8mod3.c: New file.
9893
9894         * elf/dl-close.c (_dl_close_worker): Reset private search list if
9895         it wasn't used.
9896
9897 2011-08-23  David S. Miller  <davem@davemloft.net>
9898
9899         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
9900         subtract stack bias.
9901         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
9902         %sp not %fp in calculations.
9903         (_JMPBUF_UNWINDS_ADJ): Likewise.
9904
9905         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
9906         (aio_suspend): Call it to force an exception region around the
9907         AIO_MISC_WAIT() invocation.
9908
9909 2011-08-23  Andreas Schwab  <schwab@redhat.com>
9910
9911         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
9912         backslash.
9913
9914 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
9915
9916         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
9917         protection macro.
9918         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
9919         and <dl-machine.h>.
9920         (Elf64_FuncDesc): Remove.
9921
9922 2011-08-22  David S. Miller  <davem@davemloft.net>
9923
9924         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
9925         sigaltstack check, add missing cfi directives.
9926         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
9927         missing cfi directives, and sigaltstack handling.
9928
9929 2011-08-16  Andreas Schwab  <schwab@redhat.com>
9930
9931         [BZ #11724]
9932         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
9933         object is seen twice.
9934         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9935
9936         * elf/Makefile (distribute): Add tst-initorder2.c.
9937         (tests): Add tst-initorder2.
9938         (modules-names): Add tst-initorder2a tst-initorder2b
9939         tst-initorder2c tst-initorder2d.  Add rules to build them.
9940         ($(objpfx)tst-initorder2.out): New rule.
9941         * elf/tst-initorder2.c: New file.
9942         * elf/tst-initorder2.exp: New file.
9943
9944 2011-08-22  Andreas Schwab  <schwab@redhat.com>
9945
9946         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
9947
9948         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
9949         dependencies back to end of function.
9950
9951         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
9952         $(elfobjdir)/ld.so.
9953
9954 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
9955
9956         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
9957         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
9958         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9959         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9960         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
9961         of __vdso_gettimeofday.
9962         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
9963         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
9964         attribute_hidden.
9965         (_libc_vdso_platform_setup): Remove initialization of
9966         __vdso_gettimeofday and __vdso_time.
9967
9968 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
9969
9970         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
9971         and fgetc_unlocked.
9972         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
9973         getc_unlocked.
9974
9975         * elf/dl-open.c (add_to_global): Report additions to the global scope
9976         for LD_DEBUG=scopes.
9977         (dl_open_worker): Also print scope of newly loaded dependencies.
9978         (_dl_show_scope): Indicate if there is no scope.
9979
9980         [BZ #13114]
9981         * stdio-common/Makefile (tests): Add bug24.
9982         * stdio-common/bug24.c: New file.
9983
9984 2011-08-19  Andreas Jaeger  <aj@suse.de>
9985
9986         [BZ #13114]
9987         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
9988         non-existant file when using close-on-exec mode.
9989
9990 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
9991
9992         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
9993         the very first instruction.
9994
9995         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
9996         the CFI state in the end.
9997         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
9998         inclusion of dl-trampoline.h.
9999         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
10000
10001 2011-08-19  Andreas Schwab  <schwab@redhat.com>
10002
10003         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
10004         expectations for long double.
10005
10006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
10007         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
10008
10009 2011-08-14  David S. Miller  <davem@davemloft.net>
10010
10011         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
10012         artificual limit depends upon the system page size.
10013
10014 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
10015
10016         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
10017         * resolv/Makefile: Define CFLAGS-libresolv.
10018
10019 2011-08-17  Andreas Schwab  <schwab@redhat.com>
10020
10021         * nss/makedb.c (compute_tables): Make variables used in nested
10022         function static.
10023
10024 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
10025
10026         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
10027         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
10028         if buffer was too small.
10029
10030         * elf/pldd.c (main): Attach to all threads in the process.
10031         Rewrite /proc handling to use *at functions.
10032
10033 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
10034
10035         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
10036         specifies first scope to show.
10037         (dl_open_worker): Update callers.  Move printing scope of new
10038         object to before the relocation.
10039         * elf/rtld.c (dl_main): Update _dl_show_scope call.
10040         * sysdeps/generic/ldsodefs.h: Update declaration.
10041
10042         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
10043         string for the scope number.
10044
10045 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
10046
10047         * nscd/servicescache.c (cache_addserv): Make sure written is always
10048         initialized.
10049
10050 2011-08-14  Roland McGrath  <roland@hack.frob.com>
10051
10052         * sysdeps/i386/i486/bits/atomic.h
10053         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
10054         statement expression, so as to suppress "set but not used" warning.
10055         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
10056
10057         * string/strncat.c (STRNCAT): Use prototype definition.
10058
10059         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
10060         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
10061         -Iprograms here.
10062         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
10063         (localedef-modules): Add localedef.
10064         (locale-modules): Add locale.
10065
10066         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
10067         * elf/rtld.c (dl_main): Invert order of assignment in last change,
10068         to avoid a warning.
10069
10070 2011-08-14  David S. Miller  <davem@davemloft.net>
10071
10072         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
10073         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
10074
10075 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
10076
10077         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
10078         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
10079         * elf/rtld.c (dl_main): Set l_name of vDSO.
10080         Call _dl_show_scope when DL_DEBUG_SCOPES.
10081         (process_dl_debug): Recognize scopes flag and also set it for all.
10082         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
10083         Declare _dl_show_scope.
10084
10085         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
10086         (do_dlopen): Pass caller_dlopen to dl_open.
10087         (__libc_dlopen_mode): Initialize caller_dlopen.
10088
10089         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
10090         of libc.  Make tolower call locale-independent.  Optimize a bit by
10091         using isdigit instead of isalnum.
10092         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
10093
10094 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
10095
10096         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
10097         was a dependency or dynamically loaded.
10098
10099 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
10100
10101         * intl/l10nflist.c: Allow architecture-specific pop function.
10102         * sysdeps/x86_64/l10nflist.c: New file.
10103
10104         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
10105         classification.
10106
10107 2011-08-10  Andreas Schwab  <schwab@redhat.com>
10108
10109         * include/dirent.h: Add libc_hidden_proto for scandirat and
10110         scandirat64.  Don't declare __scandirat64.
10111         * dirent/scandirat.c: Add libc_hidden_def.
10112         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
10113         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
10114
10115 2011-08-10  David S. Miller  <davem@davemloft.net>
10116
10117         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
10118         enum.
10119         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10120         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10121         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10122
10123 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
10124
10125         * Versions.def [libc]: Add GLIBC_2.15.
10126         * dirent/Makefile (routines): Add scandirat and scandirat64.
10127         * dirent/Versions [libc]: Export scandirat and scandirat64 for
10128         GLIBC_2.15.
10129         * dirent/dirent.h: Declare scandirat and scandirat64.
10130         * dirent/scandirat.c: New file.
10131         * dirent/scandirat64.c: New file.
10132         * sysdeps/wordsize-64/scandirat.c: New file.
10133         * sysdeps/wordsize-64/scandirat64.c: New file.
10134         * dirent/opendir.c: Define opendirat.
10135         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
10136         using scandirat.
10137         * dirent/scandir64.c: Adjust for scandir.c change.
10138         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
10139         __scandirat64, and __scandir_cancel_handler.
10140         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
10141         additional parameter and use openat instead of open (outside of ld.so).
10142         Add new __opendir as wrapper around __opendirat.
10143         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
10144         here without requiring old scandirat implementation.
10145
10146 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
10147
10148         * dirent/scandir.c (cancel_handler): Renamed to
10149         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
10150         defined.  Adjust users.
10151         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
10152         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
10153
10154 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
10155
10156         * string/test-string.h (IMPL): Use __STRING to expand name and then
10157         stringify it.
10158
10159         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
10160         of cleanups.
10161
10162 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10163
10164         * string/Makefile: Update.
10165         (strop-tests): Append strncat.
10166         * string/test-wcscmp.c: New file.
10167         New comprehensive test for wcscmp.
10168         * string/test-strcmp.c: Update.
10169         (WIDE): New define.
10170
10171 2011-07-22  Andreas Schwab  <schwab@redhat.com>
10172
10173         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
10174         line.
10175
10176 2011-07-26  Andreas Schwab  <schwab@redhat.com>
10177
10178         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
10179         encoding to ACE if AI_IDN.
10180
10181 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
10182
10183         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
10184         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
10185
10186 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10187
10188         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
10189         Fix overflow bug in strncat.
10190         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
10191
10192         * string/test-strncat.c: Update.
10193         Add new tests for checking overflow bugs.
10194
10195 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10196
10197         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10198         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
10199         * sysdeps/i386/i686/multiarch/strcat.S: New file.
10200         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
10201         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
10202         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
10203         * sysdeps/i386/i686/multiarch/strncat.S: New file.
10204         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
10205         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
10206
10207         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
10208         (USE_AS_STRCAT): Define.
10209         Add strcat and strncat support.
10210         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
10211
10212 2011-07-25  Andreas Schwab  <schwab@redhat.com>
10213
10214         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
10215         __n bigger than INT_MAX+1.
10216         (__strncmp_g): Likewise.
10217
10218 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
10219
10220         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
10221         * libio/stido.h: Likewise.
10222
10223         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
10224         (AF_NFC): Define.
10225         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
10226         (AF_NFC): Define.
10227
10228         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
10229         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10230         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10231         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10232         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10233
10234         [BZ #13021]
10235         * scripts/test-installation.pl: Don't expect libnss_test1 to be
10236         installed.
10237
10238         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
10239         typo.
10240         (_dl_x86_64_save_sse): Likewise.
10241
10242 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
10243
10244         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
10245         OSXSAVE.
10246         (_dl_x86_64_save_sse): Likewise.
10247
10248         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
10249
10250         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
10251
10252 2011-07-21  Andreas Schwab  <schwab@redhat.com>
10253
10254         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
10255         change.
10256         (_dl_x86_64_save_sse): Use correct AVX check.
10257
10258 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10259
10260         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
10261         bug in strncpy/strncat.
10262         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
10263
10264 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
10265
10266         * string/tester.c (test_strcat): Add tests for different alignments
10267         of source and destination.
10268         (test_strncat): Likewise.
10269
10270 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
10271
10272         [BZ #12852]
10273         * posix/glob.c (glob): Check passed in values before using them in
10274         expressions to avoid some overflows.
10275         (glob_in_dir): Likewise.
10276
10277         [BZ #13007]
10278         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
10279         check for AVX enablement so that we don't crash with old kernels and
10280         new hardware.
10281         * elf/tst-audit4.c: Add same checks here.
10282         * elf/tst-audit6.c: Likewise.
10283
10284         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
10285
10286 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
10287
10288         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
10289
10290 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
10291
10292         * po/cs.po: Update from translation team.
10293         * po/bg.po: Likewise.
10294
10295 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
10296
10297         * misc/sys/cdefs.h: Add support for const attribute.
10298         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
10299         to gnu_dev_{major,minor,makedev} functions.
10300
10301 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
10302
10303         * intl/dcigettext.c (get_output_charset): Add missing bracket.
10304
10305 2011-07-20  Andreas Schwab  <schwab@redhat.com>
10306
10307         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
10308         strlen results.
10309
10310 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10311
10312         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
10313         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
10314         register in order to avoid conflicts with the soft frame pointer
10315         being held in r11 when necessary.
10316         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
10317         (INTERNAL_VSYSCALL_NCS): Likewise.
10318
10319 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
10320
10321         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
10322         * elf/dl-fini.c (_dl_fini): Adjust caller.
10323         * elf/dl-close.c (_dl_close_worker): Likewise.
10324         * sysdeps/generic/ldsodefs.h: Adjust declaration.
10325
10326 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
10327
10328         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
10329         "aux_cache->nlibs < 0".
10330
10331         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
10332         in the reload-count case.
10333
10334 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10335
10336         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10337         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
10338         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
10339         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
10340         * sysdeps/x86_64/multiarch/strcat.S: New file.
10341         * sysdeps/x86_64/multiarch/strncat.S: New file.
10342         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
10343         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
10344         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
10345         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
10346         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
10347         (USE_AS_STRCAT): Define.
10348         Add strcat and strncat support.
10349         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
10350         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
10351         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
10352         * string/strncat.c: Update.
10353         (USE_AS_STRNCAT): Define.
10354         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10355         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
10356         and i7.
10357         * sysdeps/x86_64/multiarch/init-arch.h
10358         (bit_Prefer_PMINUB_for_stringop): New.
10359         (index_Prefer_PMINUB_for_stringop): Likewise.
10360         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
10361         bit_Prefer_PMINUB_for_stringop.
10362
10363 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
10364
10365         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
10366         buffer64.
10367         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
10368         of casting of buffer.
10369         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
10370         buffer32 and buffer64.
10371         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
10372         writes instead of casting of buffer.
10373         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
10374         buffer32.
10375         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
10376         casting of buffer.
10377
10378 2011-07-19  Andreas Schwab  <schwab@redhat.com>
10379
10380         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
10381
10382 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
10383
10384         * nscd/nscd.c (termination_handler): Don't do anything for a database
10385         if it has not yet been initialized.
10386
10387 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
10388
10389         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
10390
10391 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
10392
10393         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
10394
10395 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
10396
10397         * po/nl.po: Update from translation team.
10398         * po/sv.po: Likewise.
10399
10400 2011-07-16  Roland McGrath  <roland@hack.frob.com>
10401
10402         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
10403         now disallowed by GCC.
10404
10405         * configure.in (use-default-link): Default to yes if a test -shared
10406         link meets our qualifications.
10407         * configure: Regenerated.
10408
10409         * config.make.in (output-format): New variable.
10410         * configure.in: Check for ld --print-output-format support.
10411         * configure: Regenerated.
10412         * Makerules ($(common-objpfx)format.lds)
10413         [$(output-format) != unknown]: Just use $(output-format),
10414         instead of the linker-script munging.
10415
10416 2011-07-14  Roland McGrath  <roland@hack.frob.com>
10417
10418         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
10419         of $(common-objpfx)shlib.lds.
10420         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
10421
10422         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
10423         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
10424
10425         * configure.in (-z relro check): Adjust test code to add a large
10426         writable data section after it.
10427         * configure: Regenerated.
10428
10429 2011-07-11  Roland McGrath  <roland@hack.frob.com>
10430
10431         * configure.in (-z relro check): Fix test code to make the variable
10432         truly const.
10433         * configure: Regenerated.
10434
10435 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
10436
10437         * nscd/nscd.h (struct traced_file): Define.
10438         (struct database_dyn): Remove inotify_descr, reset_res, and filename
10439         elements.  Add traced_files.
10440         (inotify_fd): Declare.
10441         (register_traced_file): Declare.
10442         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
10443         (inotify_fd): Export.
10444         (resolv_conf_descr): Remove.
10445         (nscd_init): Move inotify descriptor creation to main.
10446         Don't register files for notification here.
10447         (register_traced_file): New function.
10448         (invalidate_cache): Don't use reset_res to determine whether to call
10449         res_init, go through the list of registered files.
10450         (main_loop_poll): The inotify descriptors are now stored in the
10451         structures for the traced files.
10452         (main_loop_epoll): Likewise
10453         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
10454         to __nss_disable_nscd.
10455         * nscd/cache.c (prune_cache): There is no single inotify descriptor
10456         for a database anymore.  Check the records for all the registered
10457         files instead.
10458         * nss/Makefile (libnss_files-routines): Add files-init.
10459         (libnss_db-routines): Add db-init.
10460         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
10461         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
10462         * nss/nss_db/db-init.c: New file.
10463         * nss/nss_files/files-init.c: New file.
10464         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
10465         __nss_lookup_function.
10466         (__nss_lookup_function): Call nss_load_library.
10467         (nss_load_all_libraries): New function.
10468         (__nss_disable_nscd): Take parameter with callback function for files
10469         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
10470         used for the cached services.
10471         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
10472         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
10473         options for features to all the files in nscd.
10474
10475         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
10476
10477 2011-07-10  Roland McGrath  <roland@hack.frob.com>
10478
10479         * csu/elf-init.c (__libc_csu_init): Comment typo.
10480
10481 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
10482
10483         * po/pl.po: Update from translation team.
10484         * po/ja.po: Likewise.
10485         * po/ru.po: Likewise.
10486         * po/ko.po: Likewise.
10487         * po/fr.po: Likewise.
10488
10489 2011-07-09  Roland McGrath  <roland@hack.frob.com>
10490
10491         * configure.in (.ctors/.dtors header and trailer check):
10492         Use an empirical test on a built program.
10493         * configure: Regenerated.
10494
10495         * configure.in (-z relro check): Use an empirical test on a built DSO.
10496         Detect, but do not require, on ia64.
10497         * configure: Regenerated.
10498
10499         * configure.in (READELF): Find it with AC_CHECK_TOOL.
10500         Update tests that use readelf to use $READELF instead.
10501         * configure: Regenerated.
10502
10503 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
10504
10505         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
10506         if the result is not used.
10507
10508 2011-07-05  Andreas Jaeger  <aj@suse.de>
10509
10510         [BZ#9696]
10511         * stdlib/tst-strtod.c: Add testcase.
10512
10513 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
10514
10515         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
10516         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
10517         The latter has a higher limit.  Take additional parameter to pass to
10518         the new function.
10519         (__pathconf): Pass file to __statfs_link_max.
10520         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
10521         __statfs_link_max.
10522         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
10523         __statfs_link_max.
10524
10525         [BZ #12868]
10526         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
10527         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10528         Handle Lustre.
10529         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
10530         (__statfs_filesize_max): Likewise.
10531         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
10532
10533 2011-07-05  Andreas Jaeger  <aj@suse.de>
10534
10535         * resolv/res_comp.c (dn_skipname): Remove unused variable.
10536
10537 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
10538
10539         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
10540         `status' variable.
10541         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
10542         Likewise.
10543
10544 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
10545
10546         * Makefile (strop-tests): Add strncat.
10547         * string/test-strncat.c: New file.
10548
10549 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
10550
10551         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
10552
10553 2011-06-21  Andreas Jaeger  <aj@suse.de>
10554
10555         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
10556         Copy rule from iconvdata/Makefile.
10557
10558 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
10559
10560         [BZ #12922]
10561         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
10562         but no long options are defined, just return 'W'.
10563
10564 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
10565
10566         [BZ #9696]
10567         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
10568
10569 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
10570
10571         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
10572         netgroups to read.
10573         (innetgr): Likewise.
10574
10575 2011-07-05  Roland McGrath  <roland@hack.frob.com>
10576
10577         * config.make.in (install_root): Default to $(DESTDIR).
10578
10579 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
10580
10581         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
10582
10583 2011-07-02  Roland McGrath  <roland@hack.frob.com>
10584
10585         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
10586
10587         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
10588         containing directory rather than embedding absolute directory names.
10589
10590         * scripts/check-local-headers.sh: Rewritten using awk.
10591         Match by word, not by line.  Print error messages for matches.
10592         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
10593
10594         * Makerules [shlib-lds-flags empty]:
10595         ($(common-objpfx)libc_pic.opts): New target.
10596         ($(common-objpfx)libc_pic.os.clean): New target.
10597         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
10598
10599         * config.make.in (OBJCOPY): New variable.
10600         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
10601         * configure: Regenerated.
10602
10603         * config.make.in (use-default-link): New variable.
10604         * configure.in (use_default_link): Grok --with-default-link to set it.
10605         * configure: Regenerated.
10606         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
10607         (shlib-lds, shlib-lds-flags): Define to empty.
10608
10609         * Makerules (shlib-lds): New variable.
10610         (shlib-lds-flags): New variable.
10611         (build-shlib, build-moduile, build-module-asneeded): Use it.
10612         ($(common-objpfx)libc.so): Use $(shlib-lds).
10613         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
10614         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
10615
10616         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
10617         DT_FLAGS/DT_FLAGS_1 with zero flags.
10618
10619         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
10620         linker script munging.
10621
10622 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
10623
10624         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
10625         as 128-bit value.
10626         * crypt/sha512.c (sha512_process_block): Perform total addition using
10627         128-bit if possible.
10628         (__sha512_finish_ctx): Likewise.
10629         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
10630         as 64-bit value.
10631         * crypt/sha256.c (SWAP64): Define.
10632         (sha256_process_block): Perform total addition using 64-bit if
10633         possible.
10634         (__sha256_finish_ctx): Likewise.
10635
10636 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
10637
10638         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
10639         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10640         * nscd/hstcache.c (cache_addhst): Likewise.
10641         * nscd/grpcache.c (cache_addgr): Likewise.
10642         * nscd/aicache.c (addhstaiX): Likewise
10643         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
10644
10645 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
10646
10647         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
10648         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10649         * nscd/hstcache.c (cache_addhst): Likewise.
10650         * nscd/grpcache.c (cache_addgr): Likewise.
10651         * nscd/aicache.c (addhstaiX): Likewise
10652
10653 2011-07-01  Andreas Schwab  <schwab@redhat.com>
10654
10655         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
10656         domain only when needed.
10657
10658 2011-06-30  Andreas Schwab  <schwab@redhat.com>
10659
10660         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
10661         is always restored.
10662
10663 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
10664
10665         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
10666         are re-adding the entry.
10667         * nscd/servicescache.c (cache_addserv): Likewise.
10668
10669 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
10670
10671         * sysdeps/generic/dl-irel.h: fix protection against multiple
10672         inclusions.
10673         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
10674
10675 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
10676
10677         [BZ #12935]
10678         * malloc/memusage.sh: Fix quoting in message.
10679         * debug/xtrace.sh: Likewise.
10680
10681         * configure.in: Remove support for --experimental-malloc option, make
10682         it the default.
10683         * config.make.in: Likewise.
10684         * malloc/Makefile: Likewise.
10685
10686 2011-06-27  Andreas Schwab  <schwab@redhat.com>
10687
10688         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
10689         two-byte characters.
10690
10691 2011-06-27  Roland McGrath  <roland@hack.frob.com>
10692
10693         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
10694         AC_CACHE_CHECK invocation.
10695         * configure: Regenerated.
10696
10697         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
10698
10699 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
10700
10701         [BZ #12350]
10702         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
10703         bit from old_res_options.
10704
10705         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
10706
10707         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
10708         value type for setfct.
10709
10710 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
10711
10712         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
10713         __gettimeofday instead of gettimeofday.
10714
10715 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
10716
10717         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
10718
10719 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10720
10721         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
10722
10723         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
10724         info.
10725
10726 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10727
10728         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10729         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
10730         strcpy-sse2-unaligned strncpy-sse2-unaligned
10731         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
10732         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
10733         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
10734         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
10735         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
10736         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
10737         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
10738         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
10739         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
10740         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
10741         (STRCPY): Support SSE2 and SSSE3 versions.
10742
10743 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
10744
10745         [BZ #12874]
10746         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
10747         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
10748         kernels which artificially limit size of requests.
10749
10750 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10751
10752         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10753         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
10754         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
10755         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
10756         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
10757         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
10758         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
10759         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
10760         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
10761         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
10762         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
10763         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
10764         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
10765         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
10766         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
10767         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10768         Enable unaligned load optimization for Intel Core i3, i5 and i7
10769         processors.
10770         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
10771         Define.
10772         (index_Fast_Unaligned_Load): Define.
10773         (HAS_FAST_UNALIGNED_LOAD): Define.
10774
10775 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
10776
10777         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
10778
10779 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
10780
10781         [BZ #12907]
10782         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
10783         until it is clear that the information is realy needed.
10784         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
10785
10786 2011-06-22  Andreas Schwab  <schwab@redhat.com>
10787
10788         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
10789
10790 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
10791
10792         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
10793         /sys/devices/system/cpu/online if it is usable.
10794
10795         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
10796         reading the information from the /proc filesystem to once a second.
10797
10798 2011-06-21  Andreas Jaeger  <aj@suse.de>
10799
10800         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
10801         NULL after inclusion of kernel headers.
10802
10803 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
10804
10805         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
10806         calls to internal_setent.
10807
10808         [BZ #12885]
10809         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
10810         addresses using gethostbyname4_r ignore IPv4 addresses.
10811
10812         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
10813         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
10814
10815         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
10816
10817 2011-06-20  David S. Miller  <davem@davemloft.net>
10818
10819         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
10820         inclusions.
10821         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
10822
10823         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
10824         (elf_irel): Use it.
10825         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
10826         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
10827         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
10828         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
10829         * sysdeps/x86_64/dl-irel.h: Likewise.
10830
10831         * elf/dl-runtime.c: Use elf_ifunc_invoke.
10832         * elf/dl-sym.c: Likewise.
10833
10834 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
10835
10836         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
10837         need to dereference resplen2.
10838
10839 2011-06-14  Andreas Schwab  <schwab@redhat.com>
10840
10841         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
10842
10843 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
10844
10845         * Makeconfig: Define vardbdir and inst_vardbdir.
10846         * nss/Makefile: Add rules to install db-Makefile.
10847
10848         * nss/nss_db/db-XXX.c: Cleanup.
10849
10850         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
10851         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
10852         GLIBC_PRIVATE.
10853         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
10854         * nss/makedb.c: Implement -g option to specify that value strings
10855         are generated and should not be added to table iterated over for
10856         get*ent calls.
10857         * nss/nss_db/db-initgroups.c: New file.
10858
10859         * nss/getent.c: Add support for initgroups lookups through getgrouplist
10860         interface.
10861
10862         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
10863         (internal_getgrouplist): Adjust to name change.
10864         Update use_initgroups_entry if this is not the first call.
10865         * nss/databases.def: Add initgroups entry.
10866
10867         * nss/makedb.c (compute_tables): Check result of multiple hash table
10868         sizes to minimize maximum chain length.
10869
10870 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
10871
10872         * Versions.def: Add entry for libnss_db.
10873         * shlib-versions: Likewise.
10874         * nss/Makefile: Add rules to build libnss_db.
10875         * nss/Versions: Add libnss_db information.  Organize libnss_files
10876         entries better.
10877         * nss/db-Makefile: Add gshadow support.  Change rules for the new
10878         makedb progra.  Some minor improvements to generate smaller files.
10879         * nss/nss_db/nss_db.h: Move NSS database header data structures to
10880         here from...
10881         * nss/makedb.c: ...here.
10882         Improve database format to be smaller and require less memory at
10883         runtime.
10884         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
10885         db anymore.
10886         * nss/nss_db/db-netgrp.c: Likewise.
10887         * nss/nss_db/db-open.c: Likewise.
10888         * nss/nss_files/flies-XXX.x: Adjust comments.
10889         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
10890         * nss/nss_files/files-grp.c: Likewise.
10891         * nss/nss_files/files-hosts.c: Likewise.
10892         * nss/nss_files/files-network.c: Likewise.
10893         * nss/nss_files/files-proto.c: Likewise.
10894         * nss/nss_files/files-pwd.c: Likewise.
10895         * nss/nss_files/files-rpc.c: Likewise.
10896         * nss/nss_files/files-service.c: Likewise.
10897         * nss/nss_files/files-sgrp.c: Likewise.
10898         * nss/nss_files/files-spwd.c: Likewise.
10899         * nss/nss_db/db-alias.c: Removed.
10900         * nss/nss_db/dummy-db.h: Removed.
10901
10902 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
10903
10904         * nss/makedb.c: Rewritten to not use database library.
10905         * nss/Makefile: Update to build new makedb program.
10906
10907 2011-06-14  Andreas Jaeger  <aj@suse.de>
10908
10909         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
10910         memset declaration.
10911
10912 2011-06-10  Andreas Schwab  <schwab@redhat.com>
10913
10914         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
10915         tmpbuf.
10916
10917 2011-06-10  Roland McGrath  <roland@hack.frob.com>
10918
10919         * Makerules (shlib.lds): Fail if the linker script comes out empty.
10920         * elf/Makefile ($(objpfx)ld.so): Likewise.
10921
10922         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
10923         Don't list ld.so twice in dependencies.
10924
10925         * posix/bug-regex31.c: Include <stdlib.h>.
10926
10927         * nscd/hstcache.c (cache_addhst): Remove unused variable.
10928
10929         * nis/nss_compat/compat-spwd.c
10930         (getspent_next_nss_netgr): Remove unused variable.
10931         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
10932
10933         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
10934         nonmembers" output to use the right array.
10935
10936         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
10937
10938         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
10939
10940         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
10941         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
10942         * catgets/gencat.c (read_input_file): Likewise.
10943         * locale/programs/locarchive.c (enlarge_archive): Likewise.
10944
10945         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
10946         variable definition inside #if's controlling its use.
10947
10948         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
10949
10950         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
10951
10952         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
10953
10954         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
10955         unreachable code.
10956
10957         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
10958
10959         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
10960         * configure: Regenerated.
10961
10962         * Makerules: Revert last change.
10963         * elf/Makefile: Likewise.
10964
10965 2011-06-09  Roland McGrath  <roland@hack.frob.com>
10966
10967         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
10968         * elf/Makefile ($(objpfx)librtld.os): Likewise.
10969         (reloc-link): Likewise.
10970
10971 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
10972
10973         * elf/Makefile: Add rules to build pldd.
10974         * elf/pldd.c: New file.
10975         * elf/pldd-xx.c: New file.
10976
10977 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
10978
10979         * version.h: Update for 2.15 development version.
10980
10981 2011-06-07  David S. Miller  <davem@davemloft.net>
10982
10983         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
10984         ifuncs.
10985         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
10986         elf_machine_lazy_rel): Likewise.
10987         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
10988         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
10989         elf_machine_lazy_rel): Likewise.
10990         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
10991         dl_hwcap via passed in argument.
10992         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
10993         Likewise.
10994
10995 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10996
10997         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
10998
10999 2011-06-06  Roland McGrath  <roland@hack.frob.com>
11000
11001         [BZ #12849]
11002         * manual/fdl-1.1.texi: New file, verbatim from:
11003         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
11004         * manual/lgpl-2.1.texi: New file, verbatim from:
11005         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
11006         * manual/Makefile (licenses): New variable, list those new file names.
11007         (texis): Use it.
11008         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
11009
11010         * manual/fdl.texi: File removed.
11011         * manual/lesser.texi: File removed.
11012         * manual/libc.texinfo (Copying, Documentation License):
11013         Use new @include file names, put @appendix directive before @include.
11014
11015 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
11016
11017         [BZ #12841]
11018         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
11019         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
11020         (mq_open): Add __NTH.
11021
11022 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
11023
11024         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11025         Assume Intel Core i3/i5/i7 processor if AVX is available.
11026
11027 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
11028
11029         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11030         typo.
11031
11032 2011-05-31  Andreas Schwab  <schwab@redhat.com>
11033
11034         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
11035         memory.  Use alloca_account.  Fix memory leak when retrying.
11036
11037 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
11038
11039         * version.h (RELEASE): Bump for 2.14 release.
11040         * include/features.h (__GLIBC_MINOR__): Bump to 14.
11041
11042         * config.make.in (RANLIB): Remove entry.
11043
11044 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
11045
11046         * po/Makefile (po-sed-cmd): Add ksh to extensions.
11047         (libc.pot): Work around missing support for .ksh extension in xgettext.
11048
11049         [BZ #12684]
11050         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
11051         if both request failed.
11052         (send_dg): In case of server errors clear resplen or *resplen2.
11053
11054         [BZ #12454]
11055         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
11056         when there are multiple maps.
11057         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
11058         (_dl_fini): Remove test here.
11059
11060         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
11061
11062 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
11063
11064         [BZ #12350]
11065         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
11066         bit from old_res_options.
11067         (gaih_inet): Likewise.
11068
11069         [BZ #11099]
11070         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
11071         as signed.
11072
11073         * resolv/res_init.c (res_setoptions): Make the code more compact.
11074
11075         [BZ #11558]
11076         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
11077         set RES_USEVC.
11078
11079         [BZ #11634]
11080         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
11081
11082         * malloc/malloc.h: Mark malloc hook variables as deprecated.
11083
11084         [BZ #11781]
11085         * malloc/malloc.h: Declare malloc hook variables as volatile.
11086
11087         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
11088         in last patch.
11089
11090         [BZ #11799]
11091         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
11092         raise in the comment.
11093         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11094         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11095         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
11096
11097 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
11098
11099         [BZ #12811]
11100         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
11101         grow the buffers more if it already has to be sufficient.
11102         (build_wcs_upper_buffer): Likewise.
11103         * posix/regexec.c (check_matching): Likewise.
11104         (clean_state_log_if_needed): Likewise.
11105         (extend_buffers): Don't enlarge buffers beyond size of the input
11106         buffer.
11107         Patches mostly by Emil Wojak <emil@wojak.eu>.
11108         * posix/bug-regex32.c: New file.
11109         * posix/Makefile (tests): Add bug-regex32.
11110
11111         * locale/findlocale.c (_nl_find_locale): Return right away if
11112         _nl_explode_name failed.
11113         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
11114
11115         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
11116
11117         * debug/xtrace.sh: Unify messages.
11118         * malloc/memusage.sh: Likewise.
11119
11120         [BZ #12813]
11121         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
11122         time symbol from vDSO.  Substitute with vsyscall if not available.
11123         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
11124         __vdso_time.
11125
11126         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
11127         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
11128         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
11129         Add sendmmsg and internal_sendmmsg.
11130         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
11131         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
11132         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
11133
11134         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
11135         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
11136         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
11137
11138 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
11139
11140         [BZ #12813]
11141         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
11142         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
11143         available.
11144         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
11145         __vdso_getcpu.
11146
11147         [BZ #12814]
11148         * iconvdata/Makefile (tests): Add bug-iconv9.
11149         * iconvdata/bug-iconv9.c: New file.
11150
11151 2011-05-27  Andreas Schwab  <schwab@redhat.com>
11152
11153         [BZ #12814]
11154         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
11155
11156 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
11157
11158         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
11159         (struct user_regs_struct): Change intcs field back to cs.
11160
11161 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
11162
11163         * po/ja.po: Update from translation team.
11164
11165 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
11166
11167         [BZ #12795]
11168         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
11169         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
11170
11171 2011-05-20  Andreas Schwab  <schwab@redhat.com>
11172
11173         * stdlib/longlong.h: Update from GCC.
11174
11175 2011-05-23  Andreas Schwab  <schwab@redhat.com>
11176
11177         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
11178         parameter name.
11179         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
11180         Add parameter name.
11181         (__sysconf): Pass it down.
11182
11183 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
11184
11185         [BZ #12671]
11186         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
11187         some situations.
11188         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11189         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
11190         add in in __libc_use_alloca calls.  Adjust callers.
11191         (glob): Use malloc in some situations.
11192
11193         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
11194         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
11195         pltexit.
11196
11197 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
11198
11199         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
11200         and CLOCK_BOOTTIME_ALARM.
11201
11202         [BZ #12782]
11203         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
11204         is returned.
11205
11206         * string/_strerror.c (__strerror_r): Print negative errors as signed
11207         numbers.
11208
11209         [BZ #12777]
11210         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
11211         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
11212         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
11213
11214         * configure.in: Fix typo in redirection and correct removal of test
11215         files in two cases.
11216
11217         [BZ #12788]
11218         * locale/setlocale.c (new_composite_name): Fix test to check for
11219         identical name of all categories.
11220
11221         [BZ #12792]
11222         * libio/filedoalloc.c (local_isatty): New function.
11223         (_IO_file_doallocate): Use local_isatty.
11224         * stdio-common/perror.c (perror): In case a new stream is used
11225         forward the stream error.
11226         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
11227         error flag.
11228
11229 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
11230
11231         [BZ #11869]
11232         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
11233         alloca.
11234         * include/alloca.h (extend_alloca_account): Define.
11235
11236         [BZ #11857]
11237         * posix/regex.h: Fix comments with documentation of user-accessible
11238         fields after compilation and describe correct free'ing of pattern
11239         after re_compile_pattern.
11240         Patch by Reuben Thomas <rrt@sc3d.org>.
11241
11242 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
11243
11244         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
11245         and -mno-altivec to prevent the compiler from using Altivec and/or
11246         VSX instructions when the corresponding registers are not available.
11247
11248 2011-05-19  Andreas Schwab  <schwab@redhat.com>
11249
11250         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
11251
11252 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
11253
11254         * libio/freopen.c (freopen): Use __dup2, not dup2.
11255         * libio/freopen64.c (freopen64): Likewise.
11256
11257 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11258
11259         [BZ #12775]
11260         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
11261         * math/Makefile (tests): Add test-powl.
11262         (CFLAGS-test-powl.c): Define.
11263         * math/test-powl.c: New file.
11264
11265 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11266
11267         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
11268
11269 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
11270
11271         [BZ #11837]
11272         * iconvdata/gb18030.c: Update to GB18020-2005.
11273
11274 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
11275
11276         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
11277         RE_SYNTAX_POSIX_AWK): Update to match recent development.
11278         Patch by Aharon Robbins <arnold@skeeve.com>.
11279
11280         [BZ #11892]
11281         * stdlib/putenv.c (putenv): Don't always create copy of the variable
11282         on the stack.
11283
11284         [BZ #11895]
11285         * misc/pselect.c (__pselect): Handle timeout value errors hidden
11286         through underflows.
11287
11288         [BZ #12766]
11289         * misc/error.c (error_at_line): Ensure file_name and old_file_name
11290         point to strings before performing equality test for error_one_per_line
11291         mode.
11292
11293         [BZ #11697]
11294         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
11295
11296         [BZ #11820]
11297         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
11298         (struct user_fpregs_struct): Avoid __uint*_t types.
11299
11300         [BZ #6420]
11301         * malloc/mtrace.c (tr_where): Add additional parameter to point to
11302         symbol info.  Use it instead of calling _dl_addr locally.
11303         (lock_and_info): New function.
11304         (tr_freehook): Call lock_and_info and pass symbol info as additional
11305         parameter to tr_where.
11306         (tr_mallochook): Likewise.
11307         (tr_reallochook): Likewise.
11308         (tr_memalignhook): Likewise.
11309
11310         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
11311         used and couldn't be at all thread-safe.
11312
11313 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
11314
11315         * libio/freopen.c (freopen): Don't close old file descriptor
11316         before the new one is opened.  Instead dup the new file descriptor
11317         to the old one after the new stream is created.
11318         * libio/freopen64.c (freopen64): Likewise.
11319         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
11320         * libio/fileops.c (_IO_new_file_close_it): Handle new
11321         _IO_FLAGS2_NOCLOSE flag.
11322         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
11323         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
11324         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
11325         _IO_FLAGS2_NOCLOSE flag.
11326         * include/unistd.h: Add hidden_proto for dup3.
11327         Define __have_dup3.
11328         * io/dup3.c: Define hidden symbol.
11329         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
11330
11331         [BZ #7101]
11332         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
11333         when an incomplete long option is used.
11334         * posix/tst-getopt_long1.c: New file.
11335         * posix/Makefile (tests): Add tst-getopt_long1.
11336
11337         [BZ #10138]
11338         * scripts/config.guess: Update from autoconf-2.68.
11339         * scripts/config.sub: Likewise.
11340
11341         [BZ #10157]
11342         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
11343         tests into ...
11344         (has_cpuclock): ...this.  New function.
11345         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
11346         macro here based on has_cpuclock code.
11347
11348         [BZ #10149]
11349         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11350         First byte (not low byte) is now always NUL.
11351         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
11352
11353         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11354         Use non-cancelable interfaces.
11355
11356         [BZ #9809]
11357         * locale/iso-639.def: Add entry for Sorani.
11358
11359         [BZ #11901]
11360         * include/stdlib.h: Move include protection to the right place.
11361         Define abort_msg_s.  Declare __abort_msg with it.
11362         * stdlib/abort.c (__abort_msg): Adjust type.
11363         * assert/assert.c (__assert_fail_base): New function.  Majority
11364         of code from __assert_fail.  Allocate memory for __abort_msg with
11365         mmap.
11366         (__assert_fail): Now call __assert_fail_base.
11367         * assert/assert-perr.c: Remove bulk of implementation.  Use
11368         __assert_fail_base.
11369         * include/assert.hL Declare __assert_fail_base.
11370         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
11371         mmap.
11372         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
11373
11374 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
11375
11376         [BZ #11952]
11377         [BZ #12453]
11378         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
11379         until all modules are registered in the DTV.
11380         * elf/Makefile: Add rules to build and run tst-tls19.
11381         * elf/tst-tls19.c: New file.
11382         * elf/tst-tls19mod1.c: New file.
11383         * elf/tst-tls19mod2.c: New file.
11384         * elf/tst-tls19mod3.c: New file.
11385         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
11386
11387         [BZ #12083]
11388         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
11389         correctly.
11390
11391         [BZ #12601]
11392         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
11393         two-byte sequence errors.
11394         * iconvdata/Makefile (tests): Add bug-iconv8.
11395         * iconvdata/bug-iconv8.c: New file.
11396
11397         [BZ #12626]
11398         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
11399         buf2 definition.
11400
11401         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
11402
11403         [BZ #12432]
11404         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
11405         (dummy_getcfa): New function.
11406         (init): Get _Unwind_GetCFA address, use dummy if not found.
11407         (backtrace_helper): In recursion check, also check whether CFA changes.
11408         (__backtrace): Completely initialize arg.
11409
11410         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
11411         storing incomplete byte sequence in state object.  Avoid testing for
11412         guaranteed too small input if we know there is enough data available.
11413
11414 2011-05-11  Andreas Schwab  <schwab@redhat.com>
11415
11416         * Makeconfig (+link-pie): Indent.
11417         * Rules (binaries-pie): Define if $(have-fpie) and
11418         $(build-shared).
11419         (binaries-shared): Also filter out $(binaries-pie).
11420         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
11421         * nscd/Makefile (others-pie): Add nscd.
11422         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
11423         ($(objpfx)nscd): Remove command override.
11424         * login/Makefile (others-pie): Add pt_chown.
11425         ($(objpfx)pt_chown): Remove command override.
11426         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
11427         remove command overrides.
11428
11429 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
11430
11431         * libio/tst_putwc.c: Fix error messages.
11432
11433         [BZ #12724]
11434         * libio/fileops.c (_IO_new_file_close_it): Always flush when
11435         currently writing and seek to current position when not.
11436         * libio/Makefile (tests): Add bug-fclose1.
11437         * libio/bug-fclose1.c: New file.
11438
11439 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
11440
11441         [BZ #12511]
11442         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
11443         don't set DF_1_NODELETE here.
11444         (do_lookup_x): When entering new entry test for copy relocation
11445         and if necessary set DF_1_NODELETE flag.
11446         * elf/tst-unique4.cc: New file.
11447         * elf/tst-unique4.h: New file.
11448         * elf/tst-unique4lib.cc: New file.
11449         * elf/Makefile: Add rules to build and run tst-unique4.
11450         Patch by Piotr Bury <pbury@goahead.com>.
11451
11452 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11453
11454         [BZ #12052]
11455         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
11456
11457         [BZ #12625]
11458         * misc/mntent_r.c (addmntent): Flush the stream after the output
11459
11460         [BZ #12393]
11461         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
11462         (is_trusted_path_normalize): Skip initial colon.  Append slash
11463         to empty buffer.  Duplicate is_trusted_path code but allow
11464         constructed patch to be prefix.
11465         (is_dst): Allow $ORIGIN followed by /.
11466         (_dl_dst_substitute): Correct clearing of check_for_trusted.
11467         Correct testing of result of is_trusted_path_normalize
11468         (decompose_rpath): Fix warning.
11469
11470 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
11471
11472         [BZ #11257]
11473         * grp/initgroups.c (internal_getgrouplist): When we found the service
11474         list through the initgroups entry in nsswitch.conf do not always
11475         continue on a successful lookup.  Don't always use the
11476         __nss_group_database value if it is set.
11477         * nss/nsswitch.conf (initgroups): Change action for successful db
11478         lookup to continue for compatibility.
11479
11480 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
11481
11482         [BZ #11532]
11483         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
11484         and CP774 modules.
11485         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
11486         and CP774 modules.
11487         * iconvdata/tst-tables.sh: Likewise.
11488         * iconvdata/cp770.c: New file.
11489         * iconvdata/cp771.c: New file.
11490         * iconvdata/cp772.c: New file.
11491         * iconvdata/cp773.c: New file.
11492         * iconvdata/cp774.c: New file.
11493         * iconvdata/testdata/CP770: New file.
11494         * iconvdata/testdata/CP770..UTF8: New file.
11495         * iconvdata/testdata/CP771: New file.
11496         * iconvdata/testdata/CP771..UTF8: New file.
11497         * iconvdata/testdata/CP772: New file.
11498         * iconvdata/testdata/CP772..UTF8: New file.
11499         * iconvdata/testdata/CP773: New file.
11500         * iconvdata/testdata/CP773..UTF8: New file.
11501         * iconvdata/testdata/CP774: New file.
11502         * iconvdata/testdata/CP774..UTF8: New file.
11503
11504         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
11505         END CHARMAP line.
11506         * iconvdata/gen-8bit-gap.sh: Likewise.
11507         * iconvdata/gen-8bit.sh: Likewise.
11508
11509         * locale/iso-639.def: Add ary entry.
11510
11511         [BZ #11258]
11512         * locale/C-translit.h.in: Add U20A1 transliteration.
11513
11514         [BZ #12178]
11515         * locale/iso-639.def: Add wae entry.
11516         Patch by Kevin Bortis <bortis@translate-wae.ch>.
11517
11518         [BZ #12545]
11519         * locale/programs/localedef.c (construct_output_path): Use ssize_t
11520         for n.
11521
11522         [BZ #12711]
11523         * locale/C-translit.h.in: Add entry for U20B9.
11524         Patch by pravin.d.s@gmail.com.
11525
11526 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
11527
11528         [BZ #12713]
11529         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
11530         ENAMETOOLONG use generic getcwd.
11531         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
11532         in rtld.  Use *stat64.
11533         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
11534         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
11535         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
11536         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
11537         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
11538         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
11539         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
11540         __fstatat64 macros.
11541         * include/dirent.h: Add libc_hidden_proto for rewinddir.
11542         * dirent/rewinddir.c: Add libc_hidden_def.
11543         * sysdeps/mach/hurd/rewinddir.c: Likewise.
11544         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
11545
11546         * include/dirent.h (__alloc_dir): Add flags parameter.
11547         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
11548         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
11549         __alloc_dir.
11550         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
11551         from fdopendir if O_CLOEXEC is already set.
11552
11553 2011-03-15  Alan Modra  <amodra@gmail.com>
11554
11555         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
11556         l_tls_firstbyte_offset non-zero.  Save padding offset in
11557         l_tls_firstbyte_offset for later use.
11558         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
11559         freeing static tls block.
11560
11561 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
11562
11563         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
11564         where #ifdef was intended.  The intent is to prevent ARG_MAX from
11565         being defined by the kernel headers.
11566
11567 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
11568
11569         [BZ #12734]
11570         * resolv/resolv.h: Define RES_NOTLDQUERY.
11571         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
11572         no-tld-query and set RES_NOTLDQUERY.
11573         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
11574         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
11575         modern BIND to search name as TLD unless forbidden.
11576
11577 2011-05-07  Petr Baudis  <pasky@suse.cz>
11578             Ulrich Drepper  <drepper@gmail.com>
11579
11580         [BZ #12393]
11581         * elf/dl-load.c (fillin_rpath): Move trusted path check...
11582         (is_trusted_path): ...to here.
11583         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
11584         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
11585         using is_trusted_path_normalize() in setuid scripts.
11586
11587 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11588
11589         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
11590         __BEGIN/__END_DECLS.
11591
11592 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
11593
11594         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
11595         NSS_STATUS_NOTFOUND if no record was found.
11596
11597 2011-05-05  Andreas Schwab  <schwab@redhat.com>
11598
11599         * sunrpc/Makefile (headers): Add rpc/netdb.h.
11600         (headers-not-in-tirpc): Remove rpc/netdb.h
11601         * resolv/netdb.h: Revert last change.
11602
11603 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11604
11605         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
11606         circular dependency between libgcc.a and libc.a.
11607
11608 2011-05-05  Andreas Schwab  <schwab@redhat.com>
11609
11610         * resolv/netdb.h: Don't include <rpc/netdb.h>.
11611         * nis/Makefile: Don't install rpcsvc/*.
11612         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
11613         instead of <rpc/types.h>.
11614         (MAXHOSTNAMELEN): Define.
11615
11616 2011-05-03  Andreas Schwab  <schwab@redhat.com>
11617
11618         * elf/ldconfig.c (add_dir): Don't crash on empty path.
11619
11620 2011-04-28  Maciej Babinski  <mbabinski@google.com>
11621
11622         [BZ #12714]
11623         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
11624         gethostbyname4_r when IPv6 results are possible.
11625
11626 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
11627
11628         [BZ #12723]
11629         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
11630         _PC_PIPE_BUF handling.
11631
11632 2011-04-30  Bruno Haible  <bruno@clisp.org>
11633
11634         [BZ #12717]
11635         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
11636         * resolv/netdb.h (getnameinfo): Change type of flags parameter
11637         to 'int'.
11638         * inet/getnameinfo.c (getnameinfo): Likewise.
11639
11640 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
11641
11642         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
11643         to groups setting in database lookup.
11644         * nss/nsswitch.conf: Add initgroups entry.
11645
11646 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
11647
11648         [BZ #12685]
11649         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
11650         mode string.
11651         Patch by Eric Blake <eblake@redhat.com>.
11652
11653 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11654
11655         * sunrpc/Makefile (need-export-routines): Add svc_run.
11656         (routines): Remove svc_run.
11657         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
11658         * sunrpc/clnt_perr.c (clnt_perrno): Export.
11659         * sunrpc/svc_run.c (svc_run): Likewise.
11660         * sunrpc/svc_udp.c (svcudp_create): Likewise.
11661
11662 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
11663
11664         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
11665         problem in reallocation in last patch.
11666
11667 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
11668
11669         * sunrpc/Makefile: Move inclusion of Rules.
11670
11671 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
11672
11673         * nss/nss_files/files-initgroups.c: New file.
11674         * nss/Makefile (libnss_files-routines): Add files-initgroups.
11675         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
11676         _nss_files_initgroups_dyn.
11677
11678 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
11679
11680         * elf/elf.h (R_ARM_IRELATIVE): Define.
11681
11682 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
11683
11684         * po/ru.po: Update from translation team.
11685
11686 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
11687
11688         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
11689         dependencies.
11690
11691 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
11692
11693         [BZ #12653]
11694         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
11695         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
11696         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11697         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
11698         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
11699
11700 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
11701
11702         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
11703         differing bytes.
11704         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
11705         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
11706         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11707
11708 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
11709
11710         [BZ #12420]
11711         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
11712         storing it.
11713         * stdlib/bug-getcontext.c: New file.
11714         * stdlib/Makefile: Add rules to build and run bug-getcontext.
11715
11716 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11717
11718         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
11719         instructions into .machine "z9-109".
11720         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
11721         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
11722
11723 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11724
11725         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
11726         between environment variables and auxiliary vector.
11727
11728 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
11729
11730         * Makefile: Add rules to build linkobj/libc.so.
11731         * include/libc-symbols.h: Define libc_hidden_nolink.
11732         * include/rpc/auth.h: Mark functions which are to be hidden.
11733         * include/rpc/auth_des.h: Likewise.
11734         * include/rpc/auth_unix.h: Likewise.
11735         * include/rpc/clnt.h: Likewise.
11736         * include/rpc/des_crypt.h: Likewise.
11737         * include/rpc/key_prot.h: Likewise.
11738         * include/rpc/pmap_clnt.h: Likewise.
11739         * include/rpc/pmap_prot.h: Likewise.
11740         * include/rpc/pmap_rmt.h: Likewise.
11741         * include/rpc/rpc_msg.h: Likewise.
11742         * include/rpc/svc.h: Likewise.
11743         * include/rpc/svc_auth.h: Likewise.
11744         * include/rpc/xdr.h: Likewise.
11745         * nis/Makefile: Link all DSOs against linkobj/libc.so.
11746         * nss/Makefile: Likewise.
11747         * sunrpc/Makefile: Don't install headers.  Build library with normal
11748         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
11749         * sunrpc/auth_des.c: Hide exported symbols by default, export some
11750         for the compat linking library.  Remove use of INTDEF/INTUSE.
11751         * sunrpc/auth_none.c: Likewise.
11752         * sunrpc/auth_unix.c: Likewise.
11753         * sunrpc/authdes_prot.c: Likewise.
11754         * sunrpc/authuxprot.c: Likewise.
11755         * sunrpc/clnt_gen.c: Likewise.
11756         * sunrpc/clnt_perr.c: Likewise.
11757         * sunrpc/clnt_raw.c: Likewise.
11758         * sunrpc/clnt_simp.c: Likewise.
11759         * sunrpc/clnt_tcp.c: Likewise.
11760         * sunrpc/clnt_udp.c: Likewise.
11761         * sunrpc/clnt_unix.c: Likewise.
11762         * sunrpc/des_crypt.c: Likewise.
11763         * sunrpc/des_soft.c: Likewise.
11764         * sunrpc/get_myaddr.c: Likewise.
11765         * sunrpc/key_call.c: Likewise.
11766         * sunrpc/key_prot.c: Likewise.
11767         * sunrpc/netname.c: Likewise.
11768         * sunrpc/pm_getmaps.c: Likewise.
11769         * sunrpc/pm_getport.c: Likewise.
11770         * sunrpc/pmap_clnt.c: Likewise.
11771         * sunrpc/pmap_prot.c: Likewise.
11772         * sunrpc/pmap_prot2.c: Likewise.
11773         * sunrpc/pmap_rmt.c: Likewise.
11774         * sunrpc/publickey.c: Likewise.
11775         * sunrpc/rpc_cmsg.c: Likewise.
11776         * sunrpc/rpc_common.c: Likewise.
11777         * sunrpc/rpc_dtable.c: Likewise.
11778         * sunrpc/rpc_prot.c: Likewise.
11779         * sunrpc/rpc_thread.c: Likewise.
11780         * sunrpc/rtime.c: Likewise.
11781         * sunrpc/svc.c: Likewise.
11782         * sunrpc/svc_auth.c: Likewise.
11783         * sunrpc/svc_authux.c: Likewise.
11784         * sunrpc/svc_raw.c: Likewise.
11785         * sunrpc/svc_run.c: Likewise.
11786         * sunrpc/svc_simple.c: Likewise.
11787         * sunrpc/svc_tcp.c: Likewise.
11788         * sunrpc/svc_udp.c: Likewise.
11789         * sunrpc/svc_unix.c: Likewise.
11790         * sunrpc/svcauth_des.c: Likewise.
11791         * sunrpc/xcrypt.c: Likewise.
11792         * sunrpc/xdr.c: Likewise.
11793         * sunrpc/xdr_array.c: Likewise.
11794         * sunrpc/xdr_float.c: Likewise.
11795         * sunrpc/xdr_intXX_t.c: Likewise.
11796         * sunrpc/xdr_mem.c: Likewise.
11797         * sunrpc/xdr_rec.c: Likewise.
11798         * sunrpc/xdr_ref.c: Likewise.
11799         * sunrpc/xdr_sizeof.c: Likewise.
11800         * sunrpc/xdr_stdio.c: Likewise.
11801
11802 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
11803
11804         [BZ #12650]
11805         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
11806         * sysdeps/ia64/dl-tls.h: Likewise.
11807         * sysdeps/powerpc/dl-tls.h: Likewise.
11808         * sysdeps/s390/dl-tls.h: Likewise.
11809         * sysdeps/sh/dl-tls.h: Likewise.
11810         * sysdeps/sparc/dl-tls.h: Likewise.
11811         * sysdeps/x86_64/dl-tls.h: Likewise.
11812         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
11813
11814 2011-03-14  Andreas Schwab  <schwab@redhat.com>
11815
11816         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
11817         rpath element also skip the following colon.
11818         (expand_dynamic_string_token): Add is_path parameter and pass
11819         down to DL_DST_REQUIRED and _dl_dst_substitute.
11820         (decompose_rpath): Call expand_dynamic_string_token with
11821         non-zero is_path.  Ignore empty rpaths.
11822         (_dl_map_object_from_fd): Call expand_dynamic_string_token
11823         with zero is_path.
11824
11825 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
11826
11827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
11828         Make cancelable.
11829
11830 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
11831
11832         [BZ #12655]
11833         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
11834         Patch by Filipe David Manana <fdmanana@apache.org>.
11835
11836 2011-04-07  Andreas Schwab  <schwab@redhat.com>
11837
11838         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
11839         Maintain aligned stack.
11840         (CHECK_RSP): Remove unused macro.
11841
11842 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
11843
11844         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
11845         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
11846
11847 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
11848
11849         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
11850
11851         * include/features.h: Mention __USE_XOPEN2K8 in comment.
11852
11853 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11854
11855         [BZ #12518]
11856         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
11857         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
11858         * sysdeps/x86_64/memmove.c: New file.
11859         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
11860         (memcpy): Renamed to ...
11861         (__new_memcpy): This.
11862         (memcpy): Provide GLIBC_2_14 memcpy.
11863         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
11864         (memcpy): Provide GLIBC_2_2_5 memcpy.
11865
11866 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11867
11868         [BZ #12631]
11869         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
11870
11871 2011-03-30  Andreas Schwab  <schwab@redhat.com>
11872
11873         * misc/syncfs.c: New file.
11874         * misc/Makefile (routines): Add syncfs.
11875         * posix/unistd.h: Declare syncfs.
11876         * sysdeps/unix/syscalls.list: Add syncfs.
11877
11878 2011-04-01  Andreas Schwab  <schwab@redhat.com>
11879
11880         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
11881         open_by_handle_at.
11882         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11883         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11884         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11885         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11886         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11887         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
11888         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11889
11890 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11891
11892         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
11893         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11894         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11895         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11896         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11897         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11898         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11899
11900         * io/Makefile: Compile fallocate.c, fallocate64.c, and
11901         sync_file_range.c with -fexceptions.
11902         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
11903         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
11904         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
11905         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
11906         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
11907         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
11908         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
11909         sync_file_range as cancellation point
11910         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
11911         now a wrapper around __call_sync_file_range with cancellation handling.
11912         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
11913         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
11914         function name to __call_sync_file_range.
11915         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
11916         Add call_sync_file_range.
11917
11918 2011-04-01  Andreas Schwab  <schwab@redhat.com>
11919
11920         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11921         bits/timex.h.
11922
11923 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11924
11925         * iconv/iconv.h: Fix typo in comment.
11926         * io/fcntl.h: Likewise.
11927         * libio/stdio.h: Likewise.
11928         * posix/spawn.h: Likewise.
11929         * posix/unistd.h: Likewise.
11930         * stdlib/stdlib.h: Likewise.
11931         * time/time.h: Likewise.
11932         * wcsmbs/wchar.h: Likewise.
11933
11934         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
11935         open_by_handle): Add.
11936         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
11937         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
11938         Augment a few comments.
11939         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11940         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11941         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11942         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11943         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11944         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
11945         open_by_handle.
11946
11947         * io/fcntl.h (AT_EMPTY_PATH): Define.
11948
11949 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
11950
11951         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
11952         * sysdeps/unix/sysv/linux/bits/time.h: New file.
11953         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
11954         to...
11955         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
11956         * Versions.def: Add GLIBC_2.14.
11957         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
11958         Export.
11959
11960 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
11961
11962         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
11963         round counter.
11964         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
11965
11966 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11967
11968         [BZ #12597]
11969         * string/test-strncmp.c (do_page_test): New function.
11970         (check2): Likewise.
11971         (test_main): Call check2.
11972         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
11973
11974 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
11975
11976         [BZ #12587]
11977         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11978         Handle cache information in CPU leaf 4.
11979         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
11980
11981 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
11982
11983         [BZ #12583]
11984         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
11985         character representation.
11986         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
11987
11988 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
11989
11990         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
11991         END(__isnan) to END(__isnanf) to match function entry point/label
11992         EALIGN(__isnanf,...).
11993
11994 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11995
11996         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
11997
11998 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
11999
12000         [BZ #12510]
12001         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
12002         copy from the symbol referenced in the relocation to initialize the
12003         used variable.
12004         Patch by Piotr Bury <pbury@goahead.com>.
12005         * elf/Makefile: Add rules to build and tst-unique3.
12006         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
12007         * elf/tst-unique3.cc: New file.
12008         * elf/tst-unique3.h: New file.
12009         * elf/tst-unique3lib.cc: New file.
12010         * elf/tst-unique3lib2.cc: New file.
12011
12012         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
12013
12014 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
12015
12016         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
12017         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
12018         to _start.
12019
12020 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
12021
12022         * elf/dl-load.c (_dl_map_object): If we are looking for the first
12023         to-be-loaded object along a path to loader is ld.so.
12024
12025 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
12026             Ulrich Drepper  <drepper@gmail.com>
12027
12028         * sysdeps/x86_64/memset.S: After aligning destination, code
12029         branches to different locations depending on the value of
12030         misalignment, when multiarch is enabled. Fix this.
12031
12032 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
12033
12034         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
12035         Set _x86_64_preferred_memory_instruction for AMD processsors.
12036         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12037         Set bit_Prefer_SSE_for_memop for AMD processors.
12038
12039 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
12040
12041         * libio/fmemopen.c (fmemopen): Optimize a bit.
12042
12043 2011-03-03  Andreas Schwab  <schwab@redhat.com>
12044
12045         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
12046
12047 2011-03-03  Roland McGrath  <roland@redhat.com>
12048
12049         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
12050
12051 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
12052
12053         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
12054         __bzero_ultra1 instead of __memset_ultra1.
12055
12056 2011-02-23  Andreas Schwab  <schwab@redhat.com>
12057             Ulrich Drepper  <drepper@gmail.com>
12058
12059         [BZ #12509]
12060         * include/link.h (struct link_map): Add l_orig_initfini.
12061         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
12062         returning unsuccessfully.
12063         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
12064         close of a file loaded at startup, restore the original l_initfini
12065         list.
12066         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
12067         list, store the pointer.
12068         * elf/Makefile ($(objpfx)noload-mem): New rule.
12069         (noload-ENV): Define.
12070         (tests): Add $(objpfx)noload-mem.
12071         * elf/noload.c: Include <memcheck.h>.
12072         (main): Call mtrace.  Close all opened handles.
12073
12074 2011-02-17  Andreas Schwab  <schwab@redhat.com>
12075
12076         [BZ #12454]
12077         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
12078         dependencies are missing.
12079
12080 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12081
12082         Fix __if_freereq crash: Unlike the generic version which uses free,
12083         Hurd needs munmap.
12084         * sysdeps/mach/hurd/ifreq.h: New file.
12085
12086 2011-01-27  Petr Baudis  <pasky@suse.cz>
12087             Ulrich Drepper  <drepper@gmail.com>
12088
12089         [BZ 12445]#
12090         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
12091         to extend_alloca().
12092         * stdio-common/bug23.c: New file.
12093         * stdio-common/Makefile (tests): Add bug23.
12094
12095 2010-09-28  Andreas Schwab  <schwab@redhat.com>
12096             Ulrich Drepper  <drepper@gmail.com>
12097
12098         [BZ #12489]
12099         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
12100         before performing relro protection.  At old place add assertion
12101         to make sure nothing changed.
12102
12103 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
12104             Glauber de Oliveira Costa  <glommer@gmail.com>
12105
12106         * elf/elf.h: Add new ARM TLS relocs.
12107
12108 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
12109
12110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12111         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
12112         cast from r3.
12113         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
12114         'tests' variable.
12115         * sysdeps/wordsize-64/tst-writev.c: New file.
12116
12117 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
12118
12119         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
12120         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
12121         insns in _dl_start to prevent a TOC reference before relocs are
12122         resolved.
12123
12124 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
12125
12126         [BZ #12469]
12127         * Makeconfig: Remove RANLIB definition.
12128         * Makerules: Don't use RANLIB.
12129         * aclocal.m4: Remove ranlib test.
12130         * configure.in: No need to check for ranlib.
12131         * elf/rtld-Rules: Don't use RANLIB.
12132
12133 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12134
12135         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
12136         protection macro.
12137         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
12138         inclusion protection macro.
12139
12140         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
12141         SIGRTMIN and SIGRTMAX and print information in that case only when
12142         SIGRTMIN is defined.
12143
12144 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12145
12146         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
12147         arginfo fn returning -1.
12148
12149         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
12150         and thousands string is zero terminated.
12151
12152 2011-02-03  Andreas Schwab  <schwab@redhat.com>
12153
12154         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
12155         sysdeps/unix/sysv/linux/bits/socket.h.
12156
12157 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12158
12159         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
12160         (__CPU_COUNT): Remove old macros.
12161         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
12162         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
12163         (__CPU_ALLOC, __CPU_FREE): Add macros.
12164         (__sched_cpualloc, __sched_cpufree): Add declarations.
12165
12166 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
12167
12168         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
12169         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
12170         * nscd/aicache.c (addhstaiX): Return timeout of added value.
12171         (readdhstai): Return value of addhstaiX call.
12172         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
12173         (addgrbyX): Return value returned by cache_addgr.
12174         (readdgrbyname): Return value returned by addgrbyX.
12175         (readdgrbygid): Likewise.
12176         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
12177         (addpwbyX): Return value returned by cache_addpw.
12178         (readdpwbyname): Return value returned by addhstbyX.
12179         (readdpwbyuid): Likewise.
12180         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
12181         (addservbyX): Return value returned by cache_addserv.
12182         (readdservbyname): Return value returned by addservbyX:
12183         (readdservbyport): Likewise.
12184         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
12185         (addhstbyX): Return value returned by cache_addhst.
12186         (readdhstbyname): Return value returned by addhstbyX.
12187         (readdhstbyaddr): Likewise.
12188         (readdhstbynamev6): Likewise.
12189         (readdhstbyaddrv6): Likewise.
12190         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
12191         (readdinitgroups): Return value returned by addinitgroupsX.
12192         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
12193         (prune_cache): Keep track of timeout value of re-added entries.
12194         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
12195         * nscd/nscd.h: Adjust prototypes of readd* functions.
12196
12197 2011-02-04  Roland McGrath  <roland@redhat.com>
12198
12199         * nis/nis_server.c (nis_servstate): Use the right name for 0.
12200         (nis_stats): Likewise.
12201         * nis/nis_modify.c (nis_modify): Likewise.
12202         * nis/nis_remove.c (nis_remove): Likewise.
12203         * nis/nis_add.c (nis_add): Likewise.
12204
12205         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
12206
12207         * posix/fnmatch_loop.c: Add some consts.
12208
12209         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
12210
12211 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
12212
12213         [BZ #12460]
12214         * config.make.in (config-cflags-novzeroupper): Define.
12215         * configure.in: Substitute libc_cv_cc_novzeroupper.
12216         * elf/Makefile (AVX-CFLAGS): Define.
12217         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
12218         (CFLAGS-tst-auditmod4a.c): Likewise.
12219         (CFLAGS-tst-auditmod4b.c): Likewise.
12220         (CFLAGS-tst-auditmod6b.c): Likewise.
12221         (CFLAGS-tst-auditmod6c.c): Likewise.
12222         (CFLAGS-tst-auditmod7b.c): Likewise.
12223         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
12224
12225 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
12226
12227         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
12228         function to the callback.
12229         Patch partly by Jiri Olsa <jolsa@redhat.com>.
12230
12231 2011-02-02  Andreas Schwab  <schwab@redhat.com>
12232
12233         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
12234         of errno.
12235
12236 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
12237
12238         [BZ #11724]
12239         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
12240         of constructors.
12241         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
12242         of destructors.
12243         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
12244
12245         [BZ #11724]
12246         * elf/Makefile: Add rules to build and run new test.
12247         * elf/tst-initorder.c: New file.
12248         * elf/tst-initorder.exp: New file.
12249         * elf/tst-initordera1.c: New file.
12250         * elf/tst-initordera2.c: New file.
12251         * elf/tst-initordera3.c: New file.
12252         * elf/tst-initordera4.c: New file.
12253         * elf/tst-initorderb1.c: New file.
12254         * elf/tst-initorderb2.c: New file.
12255         * elf/tst-order-a1.c: New file.
12256         * elf/tst-order-a2.c: New file.
12257         * elf/tst-order-a3.c: New file.
12258         * elf/tst-order-a4.c: New file.
12259         * elf/tst-order-b1.c: New file.
12260         * elf/tst-order-b2.c: New file.
12261         * elf/tst-order-main.c: New file.
12262         New test case by George Gensure <werkt0@gmail.com>.
12263
12264 2010-10-01  Andreas Schwab  <schwab@redhat.com>
12265
12266         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
12267         decoding ACE if AI_CANONIDN.
12268
12269 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
12270
12271         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
12272
12273 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
12274
12275         * version.h (RELEASE): Bump for 2.13 release.
12276         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
12277
12278         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
12279
12280         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
12281         MADV_NOHUGEPAGE.
12282         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
12283         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
12284         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12285         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12286         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
12287         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
12288
12289         * posix/getconf.c: Update copyright year.
12290         * catgets/gencat.c: Likewise.
12291         * csu/version.c: Likewise.
12292         * debug/catchsegv.sh: Likewise.
12293         * debug/xtrace.sh: Likewise.
12294         * elf/ldconfig.c: Likewise.
12295         * elf/ldd.bash.in: Likewise.
12296         * elf/sprof.c (print_version): Likewise.
12297         * iconv/iconv_prog.c: Likewise.
12298         * iconv/iconvconfig.c: Likewise.
12299         * locale/programs/locale.c: Likewise.
12300         * locale/programs/localedef.c: Likewise.
12301         * malloc/memusage.sh: Likewise.
12302         * malloc/mtrace.pl: Likewise.
12303         * nscd/nscd.c (print_version): Likewise.
12304         * nss/getent.c: Likewise.
12305
12306         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
12307         PF_CAIF, and PF_ALG.
12308         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12309
12310 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
12311
12312         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
12313         (modules-names): Use them.
12314         (ifunc-test-modules, ifunc-pie-tests): Define.
12315         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
12316         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
12317         (test-extras): Likewise.
12318         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
12319         $(compile-command.c).
12320         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
12321         (all-built-dso): Define.
12322         (check-textrel.out, check-execstack.out): Depend on it.
12323
12324         * configure.in: Don't override --enable-multi-arch.
12325
12326 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
12327
12328         [BZ #6812]
12329         * nscd/hstcache.c (tryagain): Define.
12330         (cache_addhst): Return tryagain not notfound for temporary errors.
12331         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
12332         failed.
12333
12334 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
12335
12336         [BZ #10563]
12337         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
12338         to make the syscall.
12339         * sysdeps/unix/sysv/linux/setgroups.c: New file.
12340
12341         [BZ #12378]
12342         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
12343         and fall back to matching as normal character if the string ends before
12344         the matching ']' is found.  This is what POSIX requires.
12345         * posix/testfnm.c: Adjust test result.
12346         * posix/globtest.sh: Adjust test result.  Add new test.
12347         * posix/tst-fnmatch.input: Likewise.
12348         * posix/tst-fnmatch2.c: Add new test.
12349
12350 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
12351
12352         * elf/Makefile (check-execstack): Revert last change.  Depend on
12353         check-execstack.h.
12354         (check-execstack.h): New target.
12355         (generated): Add check-execstack.h.
12356         * elf/check-execstack.c: Include "check-execstack.h".
12357         (main): Revert last change.
12358         (handle_file): Return zero if GNU_STACK is absent and
12359         DEFAULT_STACK_PERMS doesn't include PF_X.
12360
12361 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
12362
12363         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
12364         in child fails because the descriptor is already closed.
12365         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
12366         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
12367         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
12368
12369         [BZ #12397]
12370         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
12371         syscall.
12372
12373         [BZ #10484]
12374         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
12375         temporary buffer used to handle multi lookups locally.
12376         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
12377
12378 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
12379
12380         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
12381         loader is ld.so.
12382
12383 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
12384
12385         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
12386         alignment for SSE2.
12387
12388 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
12389
12390         [BZ #12394]
12391         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
12392         characters.  When rounding increased number of integer digits recompute
12393         number of groups.
12394         * stdio-common/tst-grouping.c: New file.
12395         * stdio-common/Makefile: Add rules to build and run tst-grouping.
12396
12397 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
12398
12399         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
12400         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
12401
12402         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
12403         void.
12404         * bits/select.h: Likewise.
12405
12406 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
12407
12408         * po/ja.po: Update from translation team.
12409
12410 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
12411
12412         [BZ #11155]
12413         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
12414         implementation just like for lxstat, fxstatat, et al.
12415
12416 2010-12-27  Jim Meyering  <meyering@redhat.com>
12417
12418         [BZ #12348]
12419         * posix/regexec.c (build_trtable): Return failure indication upon
12420         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12421
12422 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
12423
12424         [BZ #12201]
12425         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
12426         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
12427         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
12428         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
12429
12430         [BZ #12207]
12431         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
12432
12433         [BZ #12204]
12434         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
12435         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
12436
12437 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12438
12439         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
12440         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
12441         script has SORT_BY_INIT_PRIORITY.
12442         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
12443         NO_CTORS_DTORS_SECTIONS is defined.
12444         * elf/soinit.c: Likewise.
12445         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
12446         NO_CTORS_DTORS_SECTIONS is defined.
12447         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
12448         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
12449         * sysdeps/sh/init-first.c: Likewise.
12450         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
12451
12452 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
12453
12454         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
12455         always use the slow path.
12456
12457 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
12458
12459         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
12460         similar rule which adds the sysdep directories to the header search in
12461         order to pick up the correct platform stackinfo.h.
12462         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
12463         perform test if it is, otherwise return successfully without testing.
12464         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
12465         DEFAULT_STACK_PERMS define in stackinfo.h.
12466         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
12467         defined in stackinfo.h.
12468         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
12469         DEFAULT_STACK_PERMS defined in stackinfo.h.
12470         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
12471         * sysdeps/ia64/stackinfo.h: Likewise.
12472         * sysdeps/s390/stackinfo.h: Likewise.
12473         * sysdeps/sh/stackinfo.h: Likewise.
12474         * sysdeps/sparc/stackinfo.h: Likewise.
12475         * sysdeps/x86_64/stackinfo.h: Likewise.
12476         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
12477         PF_X for powerpc64.  Retain PF_X for powerpc32.
12478
12479 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
12480
12481         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
12482         accurately.
12483         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
12484         GETDENTS_64BIT_ALIGNED.
12485
12486 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
12487
12488         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
12489
12490 2010-12-10  Andreas Schwab  <schwab@redhat.com>
12491
12492         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
12493         _GNU_SOURCE.
12494
12495         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
12496         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
12497         Remove __restrict.
12498         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
12499         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
12500
12501 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
12502
12503         [BZ #11655]
12504         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
12505         are initialized.
12506
12507 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
12508
12509         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
12510
12511 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
12512
12513         * po/it.po: Update from translation team.
12514
12515 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
12516
12517         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
12518         unused codes.
12519
12520 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
12521
12522         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
12523
12524 2010-11-24  Andreas Schwab  <schwab@redhat.com>
12525
12526         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
12527         specially.
12528         (gaih_getanswer_slice): Likewise.
12529
12530 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
12531
12532         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
12533
12534 2010-05-31  Petr Baudis  <pasky@suse.cz>
12535
12536         [BZ #11149]
12537         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
12538         silently even in the chroot mode.
12539
12540 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
12541
12542         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
12543         last patch a bit.  Pretty printing
12544
12545 2010-05-31  Petr Baudis <pasky@suse.cz>
12546
12547         [BZ #10085]
12548         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
12549         initialization of skip_initgroups_dyn.
12550
12551 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
12552
12553         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
12554         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
12555
12556 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
12557
12558         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
12559
12560 2010-11-11  Andreas Schwab  <schwab@redhat.com>
12561
12562         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
12563         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
12564         (tst-fnmatch-ENV): Set MALLOC_TRACE.
12565         ($(objpfx)tst-fnmatch-mem): New rule.
12566         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
12567         * posix/tst-fnmatch.c (main): Call mtrace.
12568
12569 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
12570
12571         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12572         Support Intel processor model 6 and model 0x2c.
12573
12574 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
12575
12576         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
12577           signed comparison.
12578
12579 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
12580
12581         [BZ #12205]
12582         * string/test-strncasecmp.c (check_result): New function.
12583         (do_one_test): Use it.
12584         (check1): New function.
12585         (test_main): Use it.
12586         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
12587         Support strcasecmp and strncasecmp.
12588
12589 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
12590
12591         [BZ #12194]
12592         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
12593         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12594
12595 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
12596
12597         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
12598         IFUNC support.
12599         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12600         memset-x86-64.
12601         * sysdeps/x86_64/multiarch/bzero.S: New file.
12602         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
12603         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
12604         * sysdeps/x86_64/multiarch/memset.S: New file.
12605         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
12606         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12607         Set bit_Prefer_SSE_for_memop for Intel processors.
12608         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
12609         Define.
12610         (index_Prefer_SSE_for_memop): Define.
12611         (HAS_PREFER_SSE_FOR_MEMOP): Define.
12612
12613 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
12614
12615         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
12616         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
12617
12618 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
12619
12620         [BZ #12191]
12621         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
12622         (__x86_64_raw_data_cache_size_half): Likewise.
12623         (__x86_64_raw_shared_cache_size): Likewise.
12624         (__x86_64_raw_shared_cache_size_half): Likewise.
12625
12626         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
12627         (__x86_64_raw_data_cache_size_half): Likewise.
12628         (__x86_64_raw_shared_cache_size): Likewise.
12629         (__x86_64_raw_shared_cache_size_half): Likewise.
12630         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
12631         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
12632         and __x86_64_raw_shared_cache_size_half.  Round
12633         __x86_64_data_cache_size_half, __x86_64_data_cache_size
12634         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
12635         to multiple of 256 bytes.
12636
12637 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
12638
12639         [BZ #12167]
12640         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
12641         of inacessible symlinks.  Verify result of symlink before returning it.
12642         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
12643         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
12644
12645 2010-10-28  Erich Ritz  <erichritz@gmail.com>
12646
12647         * math/math.h (isinf): Fix typo in comment.
12648
12649 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
12650
12651         * po/da.po: Update from translation team.
12652
12653 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
12654
12655         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
12656         is added to the list.
12657
12658 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12659             Ulrich Drepper  <drepper@gmail.com>
12660
12661         * elf/dl-object.c (_dl_new_object): Don't append the new object to
12662         the global list here.  Move code to...
12663         (_dl_add_to_namespace_list): ...here.  New function.
12664         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
12665         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
12666         * elf/dl-load.c (lose): Don't remove the element from the list.
12667         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
12668         (_dl_map_object): Likewise.
12669
12670 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
12671
12672         [BZ #12159]
12673         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
12674         into all bytes of SSE register.
12675         Patch by Richard Li <richardpku@gmail.com>.
12676
12677 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
12678
12679         [BZ #12140]
12680         * malloc/malloc.c (_int_free): Fill correct number of bytes when
12681         perturbing.
12682
12683 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
12684
12685         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
12686         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
12687         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
12688         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
12690         submachine.
12691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12692
12693 2010-10-22  Andreas Schwab  <schwab@redhat.com>
12694
12695         * include/dlfcn.h (__RTLD_SECURE): Define.
12696         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
12697         mode & __RTLD_SECURE instead.
12698         (open_path): Rename preloaded parameter to secure.
12699         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
12700         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
12701         * elf/dl-deps.c (openaux): Likewise.
12702         * elf/rtld.c (struct map_args): Remove is_preloaded.
12703         (map_doit): Don't use it.
12704         (dl_main): Likewise.
12705         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
12706         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
12707
12708 2010-09-09  Andreas Schwab  <schwab@redhat.com>
12709
12710         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
12711         (sysd-rules-targets): Remove duplicates.
12712         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
12713         rtld-%.$o dependency.
12714
12715 2010-10-18  Andreas Schwab  <schwab@redhat.com>
12716
12717         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
12718         _dl_map_object do it.
12719
12720 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
12721
12722         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
12723         fast fma builtins, define the macros in the C99 standard.
12724         (FP_FAST_FMAF): Likewise.
12725         (FP_FAST_FMAL): Likewise.
12726         * sysdeps/x86_64/bits/mathdef.h: Likewise.
12727
12728         * bits/mathdef.h: Update copyright year.
12729         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12730
12731 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
12732
12733         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
12734         builtins, define the macros in the C99 standard.
12735         (FP_FAST_FMAF): Likewise.
12736         (FP_FAST_FMAL): Likewise.
12737         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
12738         multiply/add.
12739         (FP_FAST_FMAF): Likewise.
12740
12741 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
12742
12743         [BZ #3268]
12744         * math/libm-test.inc (fma_test): Some new testcases.
12745         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
12746         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
12747         y and infinite z.  Do multiplication by C already in long double.
12748         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
12749         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
12750         y and infinite z.  Do bitwise or of inexact bit into u.d.
12751         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
12752         * sysdeps/i386/fpu/s_fmaf.S: Removed.
12753         * sysdeps/i386/fpu/s_fma.S: Removed.
12754         * sysdeps/i386/fpu/s_fmal.S: Removed.
12755
12756 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
12757
12758         [BZ #3268]
12759         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
12760         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
12761         computation is not scheduled after fetestexcept.  Fix value
12762         of minimum denormal long double.
12763
12764 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
12765
12766         [BZ #3268]
12767         * math/libm-test.inc (fma_test): Add some more tests.
12768         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
12769         correctly.
12770
12771 2010-10-15  Andreas Schwab  <schwab@redhat.com>
12772
12773         * scripts/data/localplt-s390-linux-gnu.data: New file.
12774         * scripts/data/localplt-s390x-linux-gnu.data: New file.
12775
12776 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
12777
12778         [BZ #3268]
12779         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
12780         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
12781         instead of dbl-64.
12782         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
12783         inlines.
12784         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
12785         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
12786         if one of x and y is very large and the other is subnormal.
12787         * sysdeps/s390/fpu/s_fmaf.c: New file.
12788         * sysdeps/s390/fpu/s_fma.c: New file.
12789         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
12790         * sysdeps/powerpc/fpu/s_fma.S: New file.
12791         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
12792         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
12793         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
12794
12795 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
12796
12797         [BZ #3268]
12798         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
12799         fma tests.
12800         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
12801         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
12802         * sysdeps/i386/i686/multiarch/s_fma.c: Include
12803         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
12804         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
12805         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
12806         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
12807
12808 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
12809
12810         [BZ #12078]
12811         * posix/regcomp.c (parse_branch): One more memory leak plugged.
12812         * posix/bug-regex31.input: Add test case.
12813
12814 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
12815
12816         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
12817         * posix/bug-regex31.input: New file.
12818
12819         [BZ #12078]
12820         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
12821         (parse_sub_exp): Fix last change, use postorder.
12822
12823         * posix/bug-regex31.c: New file.
12824         * posix/Makefile: Add rules to build and run bug-regex31.
12825
12826         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
12827
12828         [BZ #12078]
12829         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
12830
12831         [BZ #12108]
12832         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
12833         to have entries in sys_siglist.
12834
12835         [BZ #12093]
12836         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
12837         be NULL.
12838
12839 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
12840
12841         [BZ #3268]
12842         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
12843         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
12844         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
12845         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
12846         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
12847         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
12848         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
12849         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
12850         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
12851         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
12852         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
12853         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
12854         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
12855         * math/ftestexcept.c (fetestexcept): Likewise.
12856         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
12857         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
12858         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12859         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
12860         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
12861         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
12862         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12863
12864 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
12865
12866         [BZ #12107]
12867         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
12868         newline.
12869
12870 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
12871
12872         * string/bug-strstr1.c: New file.
12873         * string/Makefile: Add rules to build and run bug-strstr1.
12874
12875 2010-10-05  Eric Blake  <eblake@redhat.com>
12876
12877         [BZ #12092]
12878         * string/str-two-way.h (two_way_long_needle): Always clear memory
12879         when skipping input due to the shift table.
12880
12881 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
12882
12883         [BZ #12005]
12884         * malloc/mcheck.c: Handle large requests.
12885
12886         [BZ #12077]
12887         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
12888         for strncmp and strncasecmp.
12889         * string/stratcliff.c: Add tests for strcmp and strncmp.
12890         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
12891
12892 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12893
12894         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
12895         __set_fpscr.
12896
12897 2010-09-30  Andreas Jaeger  <aj@suse.de>
12898
12899         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
12900         (CGROUP_SUPER_MAGIC): Define.
12901         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12902         Handle btrfs and cgroup file systems.
12903         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
12904         Likewise.
12905
12906 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
12907
12908         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
12909         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
12910
12911 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12912
12913         [BZ #12067]
12914         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
12915         trying to locate the ELF header.
12916
12917 2010-09-27  Andreas Schwab  <schwab@redhat.com>
12918
12919         [BZ #11611]
12920         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
12921         Mask out sign-bit copies when constructing f_fsid.
12922
12923 2010-09-24  Petr Baudis <pasky@suse.cz>
12924
12925         * debug/stack_chk_fail_local.c: Add missing licence exception.
12926         * debug/warning-nop.c: Likewise.
12927
12928 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
12929
12930         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
12931         implementing getdents64 using getdents syscall, set d_type if
12932         __ASSUME_GETDENTS32_D_TYPE.
12933
12934 2010-09-16  Andreas Schwab  <schwab@redhat.com>
12935
12936         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
12937         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
12938
12939 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
12940
12941         [BZ #12037]
12942         * posix/unistd.h: Undo change of feature selection for ftruncate from
12943         2010-01-11.
12944
12945 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
12946
12947         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
12948         detection.
12949
12950 2010-09-20  Andreas Schwab  <schwab@redhat.com>
12951
12952         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
12953         fanotify_mark.
12954         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
12955
12956 2010-09-14  Andreas Schwab  <schwab@redhat.com>
12957
12958         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
12959         variables after CHECK_SP call.
12960         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
12961
12962 2010-09-13  Andreas Schwab  <schwab@redhat.com>
12963             Ulrich Drepper  <drepper@redhat.com>
12964
12965         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
12966         re-relocationg ld.so.
12967         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
12968         _dl_init_paths call.
12969         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
12970         here anymore.
12971
12972 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
12973
12974         * resolv/res_init.c (__res_vinit): Count the default server we added.
12975
12976 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
12977             Ulrich Drepper  <drepper@redhat.com>
12978
12979         [BZ #11968]
12980         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
12981         (____longjmp_chk): Use %ebx for saving value across system call.
12982         Add unwind info.
12983
12984 2010-09-06  Andreas Schwab  <schwab@redhat.com>
12985
12986         * manual/Makefile: Don't mix pattern rules with normal rules.
12987
12988 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
12989
12990         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
12991         operation.
12992         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
12993         * libio/iofopncook.c (_IO_cookie_init): Likewise.
12994         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
12995         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
12996         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12997         Likewise.
12998
12999 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
13000
13001         [BZ #11979]
13002         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
13003         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
13004
13005 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
13006
13007         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
13008         * sysdeps/x86_64/addmul_1.S: Likewise.
13009         * sysdeps/x86_64/lshift.S: Likewise.
13010         * sysdeps/x86_64/mul_1.S: Likewise.
13011         * sysdeps/x86_64/rshift.S: Likewise.
13012         * sysdeps/x86_64/sub_n.S: Likewise.
13013         * sysdeps/x86_64/submul_1.S: Likewise.
13014
13015 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13016
13017         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
13018         Define __sched_param instead of SCHED_* and sched_param when
13019         <bits/sched.h> is included with __need_schedparam defined.
13020         * bits/sched.h [__need_schedparam]
13021         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
13022         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
13023         (__defined_schedparam): Define to 1.
13024         (__sched_param): New structure, identical to sched_param.
13025         (__need_schedparam): Undefine.
13026
13027 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
13028
13029         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
13030         (epoll_create1): Declare.
13031
13032         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
13033
13034 2010-08-31  Andreas Schwab  <schwab@redhat.com>
13035
13036         [BZ #7066]
13037         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
13038         shifting retval into place.
13039
13040 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
13041
13042         * nis/rpcsvc/nis.h: Update copyright notice.
13043         * nis/rpcsvc/nis.x: Likewise.
13044         * nis/rpcsvc/nis_callback.h: Likewise.
13045         * nis/rpcsvc/nis_callback.x: Likewise.
13046         * nis/rpcsvc/nis_object.x: Likewise.
13047         * nis/rpcsvc/nis_tags.h: Likewise.
13048         * nis/rpcsvc/yp.h: Likewise.
13049         * nis/rpcsvc/yp.x: Likewise.
13050         * nis/rpcsvc/ypupd.h: Likewise.
13051         * nis/yp_xdr.c: Likewise.
13052         * nis/ypupdate_xdr.c: Likewise.
13053
13054         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
13055         mainly the body of pmap_getport.  Add parameters to specify timeouts.
13056         (pmap_getport): Use __libc_rpc_getport.
13057         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
13058         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
13059         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
13060
13061 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
13062
13063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
13064         fanotify_mark.
13065
13066 2010-08-27  Roland McGrath  <roland@redhat.com>
13067
13068         * sysdeps/i386/i686/multiarch/Makefile
13069         (CFLAGS-varshift.c): New variable.
13070
13071 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
13072
13073         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
13074         * sysdeps/i386/i686/multiarch/varshift.c: New file.
13075
13076         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
13077
13078         * sysdeps/x86_64/strlen.S: Minimal code improvement.
13079
13080 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
13081
13082         * sysdeps/x86_64/strlen.S: Unroll the loop.
13083         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13084         strlen-sse2 strlen-sse2-bsf.
13085         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
13086         __strlen_no_bsf if bit_Slow_BSF is set.
13087         (__strlen_sse42): Removed.
13088         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
13089         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
13090
13091 2010-08-25  Roland McGrath  <roland@redhat.com>
13092
13093         * sysdeps/x86_64/multiarch/varshift.S: File removed.
13094         * sysdeps/x86_64/multiarch/varshift.c: New file.
13095         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
13096         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
13097         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
13098         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13099
13100 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13101
13102         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13103         strlen-sse2 strlen-sse2-bsf.
13104         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
13105         __strlen_sse2_bsf if bit_Slow_BSF is unset.
13106         (__strlen_sse2): Removed.
13107         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
13108         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
13109         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
13110         bit_Slow_BSF for Atom.
13111         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
13112         (index_Slow_BSF): Define.
13113         (HAS_SLOW_BSF): Define.
13114
13115 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
13116
13117         [BZ #10851]
13118         * resolv/res_init.c (__res_vinit): When no server address at all
13119         is given default to loopback.
13120
13121 2010-08-24  Roland McGrath  <roland@redhat.com>
13122
13123         * configure.in: Remove config-name.h generation.
13124         * configure: Regenerated.
13125         * config-name.in: File removed.
13126         * scripts/config-uname.sh: New file.
13127         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
13128         ($(objdir)config-name.h): New target.
13129
13130         * sunrpc/rpc_parse.h: Avoid nested comment.
13131
13132 2010-08-24  Richard Henderson  <rth@redhat.com>
13133             Ulrich Drepper  <drepper@redhat.com>
13134             H.J. Lu  <hongjiu.lu@intel.com>
13135
13136         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
13137         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
13138         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
13139         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
13140         _mm_alignr_epi8 with _mm_loadu_si128.
13141         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
13142         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
13143         (__m128i_shift_right): Removed.
13144         * sysdeps/i386/i686/multiarch/varshift.h: New file.
13145         * sysdeps/i386/i686/multiarch/varshift.S: New file.
13146         * sysdeps/x86_64/multiarch/varshift.h: New file.
13147         * sysdeps/x86_64/multiarch/varshift.S: New file.
13148
13149 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
13150
13151         * configure.in: Move assembler checks to before sysdep dir checking.
13152
13153 2010-08-20  Petr Baudis  <pasky@suse.cz>
13154
13155         * LICENSES: Sync the sunrpc license.
13156
13157 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
13158
13159         * sunrpc/auth_des.c: Update copyright notice once again.
13160         * sunrpc/auth_none.c: Likewise.
13161         * sunrpc/auth_unix.c: Likewise.
13162         * sunrpc/authdes_prot.c: Likewise.
13163         * sunrpc/authuxprot.c: Likewise.
13164         * sunrpc/bindrsvprt.c: Likewise.
13165         * sunrpc/clnt_gen.c: Likewise.
13166         * sunrpc/clnt_perr.c: Likewise.
13167         * sunrpc/clnt_raw.c: Likewise.
13168         * sunrpc/clnt_simp.c: Likewise.
13169         * sunrpc/clnt_tcp.c: Likewise.
13170         * sunrpc/clnt_udp.c: Likewise.
13171         * sunrpc/clnt_unix.c: Likewise.
13172         * sunrpc/des_crypt.c: Likewise.
13173         * sunrpc/des_soft.c: Likewise.
13174         * sunrpc/get_myaddr.c: Likewise.
13175         * sunrpc/getrpcport.c: Likewise.
13176         * sunrpc/key_call.c: Likewise.
13177         * sunrpc/key_prot.c: Likewise.
13178         * sunrpc/openchild.c: Likewise.
13179         * sunrpc/pm_getmaps.c: Likewise.
13180         * sunrpc/pm_getport.c: Likewise.
13181         * sunrpc/pmap_clnt.c: Likewise.
13182         * sunrpc/pmap_prot.c: Likewise.
13183         * sunrpc/pmap_prot2.c: Likewise.
13184         * sunrpc/pmap_rmt.c: Likewise.
13185         * sunrpc/rpc/auth.h: Likewise.
13186         * sunrpc/rpc/auth_unix.h: Likewise.
13187         * sunrpc/rpc/clnt.h: Likewise.
13188         * sunrpc/rpc/des_crypt.h: Likewise.
13189         * sunrpc/rpc/key_prot.h: Likewise.
13190         * sunrpc/rpc/netdb.h: Likewise.
13191         * sunrpc/rpc/pmap_clnt.h: Likewise.
13192         * sunrpc/rpc/pmap_prot.h: Likewise.
13193         * sunrpc/rpc/pmap_rmt.h: Likewise.
13194         * sunrpc/rpc/rpc.h: Likewise.
13195         * sunrpc/rpc/rpc_des.h: Likewise.
13196         * sunrpc/rpc/rpc_msg.h: Likewise.
13197         * sunrpc/rpc/svc.h: Likewise.
13198         * sunrpc/rpc/svc_auth.h: Likewise.
13199         * sunrpc/rpc/types.h: Likewise.
13200         * sunrpc/rpc/xdr.h: Likewise.
13201         * sunrpc/rpc_clntout.c: Likewise.
13202         * sunrpc/rpc_cmsg.c: Likewise.
13203         * sunrpc/rpc_common.c: Likewise.
13204         * sunrpc/rpc_cout.c: Likewise.
13205         * sunrpc/rpc_dtable.c: Likewise.
13206         * sunrpc/rpc_hout.c: Likewise.
13207         * sunrpc/rpc_main.c: Likewise.
13208         * sunrpc/rpc_parse.c: Likewise.
13209         * sunrpc/rpc_parse.h: Likewise.
13210         * sunrpc/rpc_prot.c: Likewise.
13211         * sunrpc/rpc_sample.c: Likewise.
13212         * sunrpc/rpc_scan.c: Likewise.
13213         * sunrpc/rpc_scan.h: Likewise.
13214         * sunrpc/rpc_svcout.c: Likewise.
13215         * sunrpc/rpc_tblout.c: Likewise.
13216         * sunrpc/rpc_util.c: Likewise.
13217         * sunrpc/rpc_util.h: Likewise.
13218         * sunrpc/rpcinfo.c: Likewise.
13219         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
13220         * sunrpc/rpcsvc/key_prot.x: Likewise.
13221         * sunrpc/rpcsvc/klm_prot.x: Likewise.
13222         * sunrpc/rpcsvc/mount.x: Likewise.
13223         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
13224         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
13225         * sunrpc/rpcsvc/rex.x: Likewise.
13226         * sunrpc/rpcsvc/rstat.x: Likewise.
13227         * sunrpc/rpcsvc/rusers.x: Likewise.
13228         * sunrpc/rpcsvc/sm_inter.x: Likewise.
13229         * sunrpc/rpcsvc/spray.x: Likewise.
13230         * sunrpc/rpcsvc/yppasswd.x: Likewise.
13231         * sunrpc/rtime.c: Likewise.
13232         * sunrpc/svc.c: Likewise.
13233         * sunrpc/svc_auth.c: Likewise.
13234         * sunrpc/svc_authux.c: Likewise.
13235         * sunrpc/svc_raw.c: Likewise.
13236         * sunrpc/svc_run.c: Likewise.
13237         * sunrpc/svc_simple.c: Likewise.
13238         * sunrpc/svc_tcp.c: Likewise.
13239         * sunrpc/svc_udp.c: Likewise.
13240         * sunrpc/svc_unix.c: Likewise.
13241         * sunrpc/svcauth_des.c: Likewise.
13242         * sunrpc/xcrypt.c: Likewise.
13243         * sunrpc/xdr.c: Likewise.
13244         * sunrpc/xdr_array.c: Likewise.
13245         * sunrpc/xdr_float.c: Likewise.
13246         * sunrpc/xdr_mem.c: Likewise.
13247         * sunrpc/xdr_rec.c: Likewise.
13248         * sunrpc/xdr_ref.c: Likewise.
13249         * sunrpc/xdr_sizeof.c: Likewise.
13250         * sunrpc/xdr_stdio.c: Likewise.
13251
13252         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
13253         handling.
13254
13255 2010-08-19  Andreas Schwab  <schwab@redhat.com>
13256
13257         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
13258
13259 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
13260
13261         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
13262         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
13263         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
13264         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
13265         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
13266         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
13267         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
13268         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
13269         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
13270         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
13271         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
13272         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
13273         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
13274         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
13275
13276 2010-07-26  Anton Blanchard  <anton@samba.org>
13277
13278         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
13279         * malloc/arena.c (heap_trim): Likewise.
13280
13281 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
13282
13283         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
13284         here.  Not...
13285         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
13286         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
13287
13288 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
13289
13290         * sysdeps/i386/elf/Makefile: New file.
13291
13292 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
13293
13294         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
13295         from fanotify_init.
13296         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
13297         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13298
13299 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
13300
13301         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
13302         of strncasecmp_l.
13303         * sysdeps/multiarch/strcmp.S: Likewise.
13304
13305 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
13306
13307         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
13308         strncase_l-nonascii.
13309         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
13310         Add strncase_l-ssse3.
13311         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
13312         * sysdeps/x86_64/strcmp.S: Likewise.
13313         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
13314         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
13315         * sysdeps/x86_64/strncase.S: New file.
13316         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
13317         * sysdeps/x86_64/strncase_l.S: New file.
13318         * string/Makefile (strop-tests): Add strncasecmp.
13319         * string/test-strncasecmp.c: New file.
13320
13321         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
13322         warning.
13323
13324         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
13325         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
13326
13327 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
13328
13329         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
13330
13331 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
13332
13333         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
13334         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
13335         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
13336
13337 2010-05-01  Alan Modra  <amodra@gmail.com>
13338
13339         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
13340         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
13341         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
13342         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
13343         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
13344         tidying.  Don't tail-call __sigjmp_save for static lib.
13345         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
13346         save location.
13347         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
13348         (CALL_MCOUNT): Add eh info, and nop after bl.
13349         (TAIL_CALL_SYSCALL_ERROR): New macro.
13350         (PSEUDO_RET): Use it.
13351         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
13352         Correct save location of integer regs and cr.
13353         (_dl_profile_resolve): Correct cr save location.  Delete nops
13354         after bl when SHARED.  Reduce cfi size a little by better
13355         placement of cfi directives.
13356         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
13357         make a stack frame.  Instead use parm save area as a temp.
13358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
13359         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
13360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
13361         Don't make a stack frame for parent, use parm save area.
13362         Increase child stack frame to 112 bytes.  Don't save unused reg,
13363         and adjust reg usage.  Set up cfi on error recovery and
13364         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
13365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
13366         (__makecontext): Add dummy nop after jump to exit.
13367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
13368         Use correct parm save area and cr save, reduce stack frame.
13369         Correct cfi for possible PSEUDO_RET frame setup.
13370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
13371         Branch to local label emitted by PSEUDO_RET rather than
13372         __syscall_error.
13373
13374 2010-08-12  Andreas Schwab  <schwab@redhat.com>
13375
13376         [BZ #11904]
13377         * locale/programs/locale.c (print_assignment): New function.
13378         (show_locale_vars): Use it.
13379
13380 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
13381
13382         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
13383         field.
13384         (struct statfs64): Likewise.
13385         (_STATFS_F_FLAGS): Define.
13386         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
13387         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13388         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
13389         (ST_VALID): Define locally.
13390         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
13391         __statvfs_getflags, use the provided value.
13392         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13393         __ASSUME_STATFS_F_FLAGS.
13394
13395         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
13396
13397         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
13398         Add sys/fanotify.h.
13399         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
13400         fanotify_mask for GLIBC_2.13.
13401         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
13402         fanotify_init and fanotify_mark.
13403         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13404         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
13405
13406         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
13407         Add prlimit.
13408         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
13409         prlimit64 for GLIBC_2.13.
13410         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
13411         prlimit64.
13412         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
13413         syscall.
13414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13415         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
13416         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
13417         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
13418         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
13419         add prlimit alias.
13420         * sysdeps/unix/sysv/linux/prlimit.c: New file.
13421
13422         [BZ #11903]
13423         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
13424         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
13425
13426         * nss/Makefile: Add rules to build and run tst-nss-test1.
13427         * shlib-versions: Add entry for libnss_test1.
13428         * nss/nss_test1.c: New file.
13429         * nss/tst-nss-test1.c: New file.
13430
13431         * nss/nsswitch.c (__nss_database_custom): Define new variable.
13432         (__nss_configure_lookup): Set appropriate entry in
13433         __nss_configure_lookup to true.
13434         * nss/nsswitch.h: Define enum with indeces of databases in
13435         databases and __nss_database_custom arrays.  Declare
13436         __nss_database_custom.
13437         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
13438         to avoid using nscd when custom rules are installed.
13439         * nss/getXXbyYY_r.c: Likewise.
13440         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13441
13442         * nss/nss_files/files-parse.c: Whitespace fixes.
13443
13444 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
13445
13446         [BZ #11883]
13447         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
13448         * posix/fnmatch_loop.c: Likewise.
13449
13450 2010-07-17  Andi Kleen  <ak@linux.intel.com>
13451
13452         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
13453         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
13454         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
13455         * Versions.def [GLIBC_2.13]: Add.
13456
13457 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
13458
13459         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
13460         Also fail if tpwd after pwuid call is NULL.
13461
13462 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13463
13464         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
13465         when converting to ms.
13466
13467 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13468
13469         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
13470         EOPNOTSUPP errors with ENOTTY.
13471         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
13472         EOPNOTSUPP errors with ENOTTY.
13473
13474 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
13475
13476         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
13477         Add strcasecmp_l-ssse3.
13478         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
13479         strcasecmp.
13480         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
13481         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
13482         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
13483
13484 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
13485
13486         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
13487
13488         * string/Makefile (strop-tests): Add strcasecmp.
13489         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
13490         strcasecmp_l-nonascii.
13491         (gen-as-const-headers): Add locale-defines.sym.
13492         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
13493         * sysdeps/x86_64/strcasecmp.S: New file.
13494         * sysdeps/x86_64/strcasecmp_l.S: New file.
13495         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
13496         * sysdeps/x86_64/locale-defines.sym: New file.
13497         * string/test-strcasecmp.c: New file.
13498
13499         * string/test-strcasestr.c: Test both ends of the range of characters.
13500         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
13501
13502 2010-07-29  Roland McGrath  <roland@redhat.com>
13503
13504         [BZ #11856]
13505         * manual/locale.texi (Yes-or-No Questions): Fix example code.
13506
13507 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
13508
13509         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
13510         for ld.so.
13511
13512 2010-07-27  Andreas Schwab  <schwab@redhat.com>
13513
13514         * manual/memory.texi (Malloc Tunable Parameters): Document
13515         M_PERTURB.
13516
13517 2010-07-26  Roland McGrath  <roland@redhat.com>
13518
13519         [BZ #11840]
13520         * configure.in (-fgnu89-inline check): Set and substitute
13521         gnu89_inline, not libc_cv_gnu89_inline.
13522         * configure: Regenerated.
13523         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
13524
13525 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
13526
13527         * string/test-strnlen.c: New file.
13528         * string/Makefile (strop-tests): Add strnlen.
13529         * string/tester.c (test_strnlen): Add a few more test cases.
13530         * string/tst-strlen.c: Better error reporting.
13531
13532         * sysdeps/x86_64/strnlen.S: New file.
13533
13534 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
13535
13536         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
13537         lower-latency instructions.
13538
13539 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
13540
13541         * string/test-strcasestr.c: New file.
13542         * string/test-strstr.c: New file.
13543         * string/Makefile (strop-tests): Add strstr and strcasestr.
13544         * string/str-two-way.h: Don't undefine MAX.
13545         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
13546
13547 2010-07-21  Andreas Schwab  <schwab@redhat.com>
13548
13549         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13550         strcasestr-nonascii.
13551         (CFLAGS-strcasestr-nonascii.c): Define.
13552         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
13553         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
13554         Remove unused attribute.
13555
13556 2010-07-20  Roland McGrath  <roland@redhat.com>
13557
13558         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
13559         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
13560         ld.so.cache was broken.  With it, there is no way to disable dsocaps
13561         like LD_HWCAP_MASK can disable hwcaps.
13562
13563 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
13564
13565         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
13566
13567 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
13568
13569         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
13570         call in strcasestr.
13571         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
13572         __strcasestr_sse42_nonascii.
13573         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
13574         strcasestr-nonascii.c.
13575         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
13576
13577 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
13578
13579         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
13580         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
13581         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
13582         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
13583
13584 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
13585
13586         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
13587         fcntl.
13588
13589 2010-07-06  Andreas Schwab  <schwab@redhat.com>
13590
13591         [BZ #11577]
13592         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
13593         dl_signal_cerror.
13594
13595 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
13596
13597         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
13598         _PC_PIPE_BUF using F_GETPIPE_SZ.
13599
13600 2010-07-05  Roland McGrath  <roland@redhat.com>
13601
13602         * manual/arith.texi (Rounding Functions): Fix rint description
13603         implicit in round description.
13604
13605 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
13606
13607         * elf/Makefile: Fix linking for a few tests to make recent linker
13608         happy.
13609
13610 2010-06-30  Andreas Schwab  <schwab@redhat.com>
13611
13612         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
13613         $(common-objpfx)libc_nonshared.a.
13614
13615 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
13616
13617         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
13618         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
13619         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
13620         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
13621         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
13622         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
13623         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
13624         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
13625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
13626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
13627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
13628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
13629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
13630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
13631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
13632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
13633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
13634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
13635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
13636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
13637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
13638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
13639         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
13640         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
13641         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
13642         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
13643         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
13644         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
13645         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
13646         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
13647         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
13648         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
13649         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
13650         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
13651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
13652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
13653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
13654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
13655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
13656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
13657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
13658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
13659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
13660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
13661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
13662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
13663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
13664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
13665
13666 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
13667
13668         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
13669         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
13670         * string/memmove.c (memmove): Renamed to ...
13671         (MEMMOVE): ...this.  Default to memmove.
13672         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
13673         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
13674         (END_CHK): Define.
13675         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13676         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
13677         mempcpy-ssse3-back memmove-ssse3-back.
13678         * sysdeps/x86_64/multiarch/bcopy.S: New file .
13679         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
13680         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
13681         * sysdeps/x86_64/multiarch/memcpy.S: New file.
13682         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
13683         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
13684         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
13685         * sysdeps/x86_64/multiarch/memmove.c: New file.
13686         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
13687         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
13688         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
13689         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
13690         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
13691         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
13692         Define.
13693         (index_Fast_Copy_Backward): Define.
13694         (HAS_ARCH_FEATURE): Define.
13695         (HAS_FAST_REP_STRING): Define.
13696         (HAS_FAST_COPY_BACKWARD): Define.
13697
13698 2010-06-21  Andreas Schwab  <schwab@redhat.com>
13699
13700         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
13701         Restore proper fallback handling.
13702
13703 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
13704
13705         [BZ #11701]
13706         * posix/group_member.c (__group_member): Correct checking loop.
13707
13708         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
13709         OOM in getpwuid_r correctly.  Return error number when the caller
13710         should return, otherwise -1.
13711         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
13712         call returning > 0 value.
13713         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
13714
13715 2010-06-07  Andreas Schwab  <schwab@redhat.com>
13716
13717         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
13718         libc_nonshared.a from targets in modules-names.
13719
13720 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
13721
13722         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
13723         requires it.
13724
13725 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
13726
13727         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
13728         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
13729         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
13730         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
13731
13732 2010-06-02  Andreas Schwab  <schwab@redhat.com>
13733
13734         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
13735
13736 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
13737
13738         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
13739         and F_GETPIPE_SZ.
13740         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13741         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13742         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13743         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13744         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13745         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
13746
13747 2010-06-14  Roland McGrath  <roland@redhat.com>
13748
13749         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
13750
13751 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
13752
13753         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
13754         __REDIRECT followed by __THROW.
13755         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
13756         * posix/getopt.h (getopt): Likewise.
13757
13758 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
13759
13760         * hurd/lookup-at.c (__file_name_lookup_at): Accept
13761         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
13762         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
13763         in AT_FLAGS.
13764         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
13765         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
13766
13767 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
13768
13769         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
13770
13771 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
13772
13773         [BZ #11640]
13774         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13775         Properly check family and model.
13776
13777 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
13778
13779         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
13780
13781 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
13782
13783         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
13784
13785 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
13786
13787         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
13788         symbol reference.
13789
13790 2010-05-19  Andreas Schwab  <schwab@redhat.com>
13791
13792         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
13793         symbol reference.
13794
13795 2010-05-21  Andreas Schwab  <schwab@redhat.com>
13796
13797         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
13798         and internal_recvmmsg.
13799         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
13800         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
13801         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
13802         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
13803
13804         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
13805         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
13806         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
13807
13808 2010-05-20  Andreas Schwab  <schwab@redhat.com>
13809
13810         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
13811
13812 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
13813
13814         POWER7 optimizations.
13815         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
13816         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
13817
13818 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
13819
13820         * version.h: Update for 2.13 development version.
13821
13822 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
13823
13824         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
13825         exceptions.  Return 0.
13826
13827 2010-05-07  Roland McGrath  <roland@redhat.com>
13828
13829         * elf/ldconfig.c (main): Add a const.
13830
13831 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
13832
13833         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
13834         (args_options): Add no-idn option.
13835         (ahosts_keys_int): Add idn_flags to ai_flags.
13836         (parse_option): Handle 'i' option to clear idn_flags.
13837
13838         * malloc/malloc.c (_int_free): Possible race in the most recently
13839         added check.  Only act on the data if no current modification
13840         happened.
13841
13842 See ChangeLog.17 for earlier changes.