Hurd: Missing critical region locks.
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2
3         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
4         HURD_CRITICAL_END around holding _hurd_dtable_lock.
5         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8         d->port.lock.
9
10         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
11         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
12         when handler == SIG_ERR, not when handler != SIG_ERR.
13
14 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15
16         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
17         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
18         definitions.
19
20         accept4 for GNU Hurd.
21         * include/sys/socket.h (__libc_accept4): New prototype.
22         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
23         to implement __libc_accept4.
24         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
25         __libc_accept4.
26         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
27
28         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
29         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
30         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
31         signal-defines.sym.
32
33 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34
35         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
36
37 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
38
39         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
40         assertion on O_CLOEXEC flag.
41         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
42         * hurd/intern-fd.c: Likewise.
43         * hurd/port2fd.c: Likewise.
44
45 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46
47         [BZ #3906]
48         * bits/in.h (IPV6_PKTINFO): Define new macro.
49         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
50
51 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52
53         [BZ #13954]
54         [BZ #13955]
55         [BZ #13956]
56         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
57         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
58         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
59         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
60         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
62         * math/libm-test.inc (logb_test) : Additional logb tests.
63
64 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
65             Andreas Jaeger  <aj@suse.de>
66
67         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
68         * configure: Regenerated.
69         * config.h.in (LINK_OBSOLETE_RPC): New macro.
70         * config.make.in (link-obsolete-rpc): New substituted variable.
71         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
72         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
73         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
74         (shared-only-routines): Don't set it under [link-obsolete-rpc],
75         so that libc.a contains the symbols.
76         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
78         * sunrpc/auth_none.c: Likewise.
79         * sunrpc/auth_unix.c: Likewise.
80         * sunrpc/authdes_prot.c: Likewise.
81         * sunrpc/authuxprot.c: Likewise.
82         * sunrpc/clnt_gen.c: Likewise.
83         * sunrpc/clnt_perr.c: Likewise.
84         * sunrpc/clnt_raw.c: Likewise.
85         * sunrpc/clnt_simp.c: Likewise.
86         * sunrpc/clnt_tcp.c: Likewise.
87         * sunrpc/clnt_udp.c: Likewise.
88         * sunrpc/clnt_unix.c: Likewise.
89         * sunrpc/des_crypt.c: Likewise.
90         * sunrpc/des_soft.c: Likewise.
91         * sunrpc/get_myaddr.c: Likewise.
92         * sunrpc/key_call.c: Likewise.
93         * sunrpc/key_prot.c: Likewise.
94         * sunrpc/netname.c: Likewise.
95         * sunrpc/pm_getmaps.c: Likewise.
96         * sunrpc/pm_getport.c: Likewise.
97         * sunrpc/pmap_clnt.c: Likewise.
98         * sunrpc/pmap_prot.c: Likewise.
99         * sunrpc/pmap_prot2.c: Likewise.
100         * sunrpc/pmap_rmt.c: Likewise.
101         * sunrpc/publickey.c: Likewise.
102         * sunrpc/rpc_cmsg.c: Likewise.
103         * sunrpc/rpc_common.c: Likewise.
104         * sunrpc/rpc_dtable.c: Likewise.
105         * sunrpc/rpc_prot.c: Likewise.
106         * sunrpc/rpc_thread.c: Likewise.
107         * sunrpc/rtime.c: Likewise.
108         * sunrpc/svc.c: Likewise.
109         * sunrpc/svc_auth.c: Likewise.
110         * sunrpc/svc_raw.c: Likewise.
111         * sunrpc/svc_run.c: Likewise.
112         * sunrpc/svc_tcp.c: Likewise.
113         * sunrpc/svc_udp.c: Likewise.
114         * sunrpc/svc_unix.c: Likewise.
115         * sunrpc/svcauth_des.c: Likewise.
116         * sunrpc/xcrypt.c: Likewise.
117         * sunrpc/xdr.c: Likewise.
118         * sunrpc/xdr_array.c: Likewise.
119         * sunrpc/xdr_float.c: Likewise.
120         * sunrpc/xdr_intXX_t.c: Likewise.
121         * sunrpc/xdr_mem.c: Likewise.
122         * sunrpc/xdr_rec.c: Likewise.
123         * sunrpc/xdr_ref.c: Likewise.
124         * sunrpc/xdr_sizeof.c: Likewise.
125         * sunrpc/xdr_stdio.c: Likewise.
126
127 2012-05-10  Roland McGrath  <roland@hack.frob.com>
128
129         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
130         change.  Update copyright years.
131
132 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
133
134         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
135
136 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
137             Joseph Myers  <joseph@codesourcery.com>
138             Paul Pluzhnikov  <ppluzhnikov@google.com>
139
140         [BZ #14012]
141         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
142         requiring rpcgen.
143         [cross-compiling] (extra-libs): Likewise.
144         [cross-compiling] (extra-libs-others): Likewise.
145         [cross-compiling] (librpcsvc-routines): Likewise.
146         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
147         [cross-compiling] (omit-deps): Likewise.
148         (sunrpc-CPPFLAGS): New variable.
149         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
150         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
151         (cross-rpcgen-objs): New variable.
152         (extra-objs): Append $(cross-rpcgen-objs).
153         ($(cross-rpcgen-objs)): New rule.
154         ($(objpfx)cross-rpcgen): Likewise.
155         (rpcgen-cmd): Define to use $(built-program-file).  Expand
156         comment.
157         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
158         ($(objpfx)x%.stmp): Likewise.
159         * sunrpc/proto.h [IS_IN_build] (_): Define.
160         [IS_IN_build] (_libc_intl_domainname): Likewise.
161
162 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
163
164         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
165         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
166         and R_X86_64_TPOFF64.
167
168 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
169
170         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
171         sysdeps/unix/sysv/syscalls.list.
172         (stime): Likewise.
173         (utime): Likewise.
174         * sysdeps/unix/sysv/syscalls.list: Remove file.
175
176 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
177
178         [BZ #3440]
179         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
180         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
181         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
182         (__LC_IDENTIFICATION): Make these macros useful in #if
183         expressions, as required by C99.
184
185 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
186
187         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
188         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
189         after this.
190
191 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
192
193         * stdlib/longlong.h: Updated from GCC.
194
195 2012-05-09  Andreas Jaeger  <aj@suse.de>
196
197         * nscd/nscd.c (run_modes): Make named enum, reorder so that
198         default is first entry.
199         (run_mode): Set type.
200         (main): Remove informal message about syslog.
201         (options): Fix typo.
202
203         [BZ #14053]
204         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
205         to asm.
206         (lrint): Likewise.
207         (llrintf): Likewise.
208         (llrint): Likewise.
209         (rint): Likewise.
210         (rintf): Likewise.
211         (nearbyint): Likewise.
212         (nearbyintf): Likewise.
213
214 2012-05-09  Andreas Jaeger  <aj@suse.de>
215             Pedro Alves  <palves@redhat.com>
216
217         * nscd/nscd.c (run_mode): Use enum.
218         (main): Cleanup coding style issue.
219
220 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
221             Andreas Jaeger  <aj@suse.de>
222
223         * nscd/nscd.c (go_background): Replaced with...
224         (run_mode): ... this.
225         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
226         (options): Add -F --foreground.
227         (main): Implement it.
228         (parse_opt): Parse it.
229
230 2012-05-09  Andreas Jaeger  <aj@suse.de>
231
232         [BZ #14083]
233         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
234         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
235         -Wconversion warning.
236         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
237         Likewise.
238
239 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
240
241         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
242         == 0.
243         (LC_ALL): Use macro-int-constant.
244         (LC_COLLATE): Likewise.
245         (LC_CTYPE): Likewise.
246         (LC_MESSAGES): Likewise.
247         (LC_MONETARY): Likewise.
248         (LC_NUMERIC): Likewise.
249         (LC_TIME): Likewise.
250         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
251         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
252         [ISO || ISO99 || ISO11] (*_t): Do not allow.
253         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
254         Specify type.
255         [C99-based standards] (float_t): Expect type.
256         [C99-based standards] (double_t): Expect type.
257         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
258         type.
259         [C99-based standards] (HUGE_VALL): Likewise.
260         [C99-based standards] (INFINITY): Likewise.
261         [C99-based standards] (NAN): Likewise.
262         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
263         [C99-based standards] (FP_NAN): Likewise.
264         [C99-based standards] (FP_NORMAL): Likewise.
265         [C99-based standards] (FP_SUBNORMAL): Likewise.
266         [C99-based standards] (FP_ZERO): Likewise.
267         [C99-based standards] (FP_FAST_FMA): Use
268         optional-macro-int-constant.  Specify type.  Require == 1.
269         [C99-based standards] (FP_FAST_FMAF): Likewise.
270         [C99-based standards] (FP_FAST_FMAL): Likewise.
271         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
272         [C99-based standards] (FP_ILOGBNAN): Likewise.
273         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
274         Specify type.
275         [C99-based standards] (MATH_ERREXCEPT): Likewise.
276         [C99-based standards] (math_errhandling): Specify type.
277         [ISO99 || ISO11] (signgam): Do not allow.
278         [non-C99-based standards] (copysignf): Do not allow.
279         [non-C99-based standards] (exp2f): Likewise.
280         [non-C99-based standards] (log2f): Likewise.
281         [non-C99-based standards] (modff): Allow.
282         [non-C99-based standards] (erff): Do not allow.
283         [non-C99-based standards] (erfcf): Likewise.
284         [non-C99-based standards] (gammaf): Likewise.
285         [non-C99-based standards] (hypotf): Likewise.
286         [non-C99-based standards] (j0f): Likewise.
287         [non-C99-based standards] (j1f): Likewise.
288         [non-C99-based standards] (jnf): Likewise.
289         [non-C99-based standards] (lgammaf): Likewise.
290         [non-C99-based standards] (tgammaf): Likewise.
291         [non-C99-based standards] (y0f): Likewise.
292         [non-C99-based standards] (y1f): Likewise.
293         [non-C99-based standards] (ynf): Likewise.
294         [non-C99-based standards] (isnanf): Likewise.
295         [non-C99-based standards] (acoshf): Likewise.
296         [non-C99-based standards] (asinhf): Likewise.
297         [non-C99-based standards] (atanhf): Likewise.
298         [non-C99-based standards] (cbrtf): Likewise.
299         [non-C99-based standards] (expm1f): Likewise.
300         [non-C99-based standards] (ilogbf): Likewise.
301         [non-C99-based standards] (log1pf): Likewise.
302         [non-C99-based standards] (logbf): Likewise.
303         [non-C99-based standards] (nextafterf): Likewise.
304         [non-C99-based standards] (remainderf): Likewise.
305         [non-C99-based standards] (rintf): Likewise.
306         [non-C99-based standards] (scalbf): Likewise.
307         [non-C99-based standards] (copysignl): Likewise.
308         [non-C99-based standards] (exp2l): Likewise.
309         [non-C99-based standards] (log2l): Likewise.
310         [non-C99-based standards] (modfl): Allow.
311         [non-C99-based standards] (erfl): Do not allow.
312         [non-C99-based standards] (erfcl): Likewise.
313         [non-C99-based standards] (gammal): Likewise.
314         [non-C99-based standards] (hypotl): Likewise.
315         [non-C99-based standards] (j0l): Likewise.
316         [non-C99-based standards] (j1l): Likewise.
317         [non-C99-based standards] (jnl): Likewise.
318         [non-C99-based standards] (lgammal): Likewise.
319         [non-C99-based standards] (tgammal): Likewise.
320         [non-C99-based standards] (y0l): Likewise.
321         [non-C99-based standards] (y1l): Likewise.
322         [non-C99-based standards] (ynl): Likewise.
323         [non-C99-based standards] (isnanl): Likewise.
324         [non-C99-based standards] (acoshl): Likewise.
325         [non-C99-based standards] (asinhl): Likewise.
326         [non-C99-based standards] (atanhl): Likewise.
327         [non-C99-based standards] (cbrtl): Likewise.
328         [non-C99-based standards] (expm1l): Likewise.
329         [non-C99-based standards] (ilogbl): Likewise.
330         [non-C99-based standards] (log1pl): Likewise.
331         [non-C99-based standards] (logbl): Likewise.
332         [non-C99-based standards] (nextafterl): Likewise.
333         [non-C99-based standards] (remainderl): Likewise.
334         [non-C99-based standards] (rintl): Likewise.
335         [non-C99-based standards] (scalbl): Likewise.
336         [ISO || ISO99 || ISO11] (*_t): Do not allow.
337         [non-C99-based standards] (FP_*): Do not allow.
338         [C99-based standards] (FP_*): Change to
339         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
340         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
341         allow.
342         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
343         (SIG_ERR): Likewise.
344         [X/Open-based standards] (SIG_HOLD): Likewise.
345         (SIG_IGN): Likewise.
346         (SIGABRT): Use macro-int-constant.  Specify type.  Require
347         positive value.
348         (SIGFPE): Likewise.
349         (SIGILL): Likewise.
350         (SIGINT): Likewise.
351         (SIGSEGV): Likewise.
352         (SIGTER): Likewise.
353         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
354         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
355         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
356         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
357         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
358         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
359         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
360         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
361         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
362         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
363         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
364         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
365         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
366         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
367         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
368         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
369         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
370         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
371         [X/Open-based standards] (SIGTRAP): Likewise.
372         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
373         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
374         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
375         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
376         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
377         allow.
378
379 2012-05-08  Ian Wienand  <ianw@vmware.com>
380
381         [BZ #14080]
382         * time/tzset.c (__tzset_parse_tz): Update default rules for
383         daylight time changes in the Energy Policy Act of 2005.
384
385 2012-05-09  Andreas Jaeger  <aj@suse.de>
386
387         [BZ #13983]
388         * elf/ldconfig.c (parse_conf): Change string to make clear that
389         ldconfig only issued a warning if ld.so.conf does not exist.
390
391 2012-05-08  David S. Miller  <davem@davemloft.net>
392
393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
394         movxtod instead of popping the value on the stack.
395
396         * sysdeps/sparc/fpu/libm-test-ulps: Update.
397
398 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
399
400         * config.h.in: Add HAVE_ARM_PCS_VFP.
401
402 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
403
404         [BZ #13979]
405         * include/features.h: Warn if user requests __FORTIFY_SOURCE
406         checking but the checks are disabled for any reason.
407
408 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
409
410         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
411         and ELF64_R_TYPE with ELFW(R_TYPE).
412
413 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
414
415         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
416         (ulimit): Likewise.
417
418         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
419         (settimeofday): Likewise.
420
421 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
422
423         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
424         a struct th_u2 inside the union, and move tu_block/tu_code into
425         a new th_u3 union of tu_block/tu_code inside of that.  Move
426         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
427         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
428         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
429         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
430         (th_stuff): Change to th_u1.tu_stuff.
431         (th_data): Define.
432         (th_msg): Change to th_u1.th_u2.tu_data.
433
434 2012-05-07  David S. Miller  <davem@davemloft.net>
435
436         * sysdeps/sparc/fpu/libm-test-ulps: Update.
437
438         [BZ #14074]
439         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
440         (SETUP_PIC_REG): Use it.
441         (SETUP_PIC_REG_LEAF): Use it.
442
443 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
444
445         [BZ #13885]
446         [BZ #13923]
447         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
448         USE_AS_EXPM1L.
449         (EXPL_FINITE): Likewise.
450         (FLDLOG): Likewise.
451         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
452         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
453         e_expl.S.
454         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
455         USE_AS_EXPM1L.
456         (EXPL_FINITE): Likewise.
457         (FLDLOG): Likewise.
458         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
459         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
460         e_expl.S.
461         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
462         test of -max_value argument for long double.
463         * sysdeps/i386/fpu/libm-test-ulps: Update.
464         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
465
466 2012-05-06  David S. Miller  <davem@davemloft.net>
467
468         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
469         quad soft-float symbols whose references which are compiler
470         generated.
471         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
472
473 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
474
475         [BZ #13884]
476         [BZ #13914]
477         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
478         USE_AS_EXP10L.
479         (EXPL_FINITE): Likewise.
480         (FLDLOG): Likewise.
481         (c0): Likewise.
482         (c1): Likewise.
483         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
484         Adjust comments for base varying.
485         (__expl_finite): Change alias to EXPL_FINITE.
486         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
487         e_expl.S.
488         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
489         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
490         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
491         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
492         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
493         USE_AS_EXP10L.
494         (EXPL_FINITE): Likewise.
495         (FLDLOG): Likewise.
496         (c0): Likewise.
497         (c1): Likewise.
498         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
499         Adjust comments for base varying.
500         (__expl_finite): Change alias to EXPL_FINITE.
501         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
502         tests for bugs.
503         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
504
505         [BZ #14064]
506         * math/libm-test.inc (check_float_internal): Correct ulp
507         calculation for subnormal expected results.
508
509 2012-05-06  Andreas Jaeger  <aj@suse.de>
510
511         * Makeconfig (+math-flags): New, set to -frounding-math.
512         (+cflags): Add +math-flags so that all of glibc gets compiled with
513         it.
514
515         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
516
517 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
518
519         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
520         Disable one test.
521
522         [BZ #13787]
523         [BZ #13922]
524         [BZ #14036]
525         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
526         (__ieee754_expl): Allow for and saturate large arguments.
527         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
528         (u_threshold): Likewise.
529         (__exp): Call __ieee754_exp before checking for overflow and
530         underflow.
531         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
532         (u_threshold): Likewise.
533         (__expf): Call __ieee754_expf before checking for overflow and
534         underflow.
535         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
536         (u_threshold): Likewise.
537         (__expl): Call __ieee754_expl before checking for overflow and
538         underflow.
539         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
540         (__ieee754_expl): Allow for and saturate large arguments.
541         * math/libm-test.inc (exp_test): Add another test.  Do not allow
542         missing overflow exception on overflow.
543         (expm1_test): Do not allow missing overflow exception on overflow.
544
545         * sysdeps/i386/fpu/e_expl.c: Move to ...
546         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
547         rather than using inline asm.
548         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
549         * sysdeps/x86_64/fpu/e_expl.S: Copy from
550         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
551
552         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
553         (nice): Likewise.
554         (poll): Likewise.
555         (signal): Likewise.
556         (time): Likewise.
557         (times): Likewise.
558
559 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
560
561         * sysdeps/unix/syscalls.list (adjtime): Add entry from
562         sysdeps/unix/common/syscalls.list.
563         (fchmod): Likewise.
564         (fchown): Likewise.
565         (ftruncate): Likewise.
566         (getrusage): Likewise.
567         (gettimeofday): Likewise.
568         (setpgid): Likewise.
569         (setregid): Likewise.
570         (setreuid): Likewise.
571         (sigaction): Likewise.
572         (truncate): Likewise.
573         (vhangup): Likewise.
574         * sysdeps/unix/common/syscalls.list: Remove file.
575         * sysdeps/unix/bsd/Implies: Don't include unix/common.
576         * sysdeps/unix/sysv/linux/Implies: Likewise.
577
578 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
579
580         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
581         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
582         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
583         Moved to ...
584         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
585         Here.
586         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
587         to ...
588         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
589         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
590         to ...
591         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
592         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
593         to ...
594         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
595         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
596         to ...
597         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
598         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
599         to ...
600         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
601         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
602         to ...
603         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
604         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
605         to ...
606         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
607         Here.
608         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
609         to ...
610         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
611         Here.
612         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
613         to ...
614         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
615         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
616         Moved to ...
617         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
618         Here.
619         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
620         to ...
621         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
622
623 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
624
625         * sysdeps/unix/common/bits/dirent.h: Remove file.
626         * sysdeps/unix/common/bits/fcntl.h: Likewise.
627
628         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
629         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
630         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
631         * sysdeps/unix/bsd/isatty.c: Likewise.
632         * sysdeps/unix/bsd/tcdrain.c: Likewise.
633         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
634         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
635
636 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
637
638         [BZ #13563]
639         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
640         long double comparison inaccuracies.
641         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
642         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
643
644 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
645
646         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
647         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
648
649 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
650
651         [BZ #14049]
652         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
653         nonzero digits before rounding a hex value.
654         * stdlib/tst-strtod.c (tests): Add another test.
655
656 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
657
658         * sysdeps/s390/fpu/libm-test-ulps: Update.
659
660 2012-05-03  Andreas Jaeger  <aj@suse.de>
661
662         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
663         does not get optimized out.
664         (malloc_opt_barrier): New.
665
666 2012-05-03  Andreas Jaeger  <aj@suse.de>
667             Roland McGrath  <roland@hack.frob.com>
668
669         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
670         intermediate file deletion.
671         (generated): Add .symlist files.
672
673 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
674
675         [BZ #13775]
676         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
677         Redirect under this condition.
678         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
679         [__USE_GNU] (__dprintf_chk): Not under this condition.
680         [__USE_GNU] (__vdprintf_chk): Likewise.
681         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
682         under this condition.
683         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
684         [__USE_XOPEN2K8] (dprintf): Define under this condition.
685         [__USE_XOPEN2K8] (vdprintf): Likewise.
686         [__USE_GNU] (__dprintf_chk): Not under this condition.
687         [__USE_GNU] (__vdprintf_chk): Likewise.
688         [__USE_GNU] (dprintf): Likewise.
689         [__USE_GNU] (vdprintf): Likewise.
690
691 2012-05-03  Roland McGrath  <roland@hack.frob.com>
692
693         * elf/Makefile (common-generated): Set this instead of generated for
694         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
695         $(all-built-dso)-derived lists.
696
697 2012-05-03  Andreas Jaeger  <aj@suse.de>
698
699         * sysdeps/i386/fpu/libm-test-ulps: Update.
700
701         * FAQ: Removed.
702         * FAQ.in: Likewise.
703         * scripts/gen-FAQ.pl: Likewise.
704         * manual/install.texi (Installation): Point to online location of
705         FAQ.
706         * Makefile (files-for-dist): Remove FAQ.
707         (FAQ): Remove.
708
709 2012-05-02  Allan McRae  <allan@archlinux.org>
710
711         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
712         (LDFLAGS-reldepmod5.so): Likewise.
713         (LDFLAGS-reldep6mod1.so): Likewise.
714         (LDFLAGS-reldep6mod4.so): Likewise.
715         (LDFLAGS-reldep8mod3.so): Likewise.
716         (LDFLAGS-unload4mod1.so): Likewise.
717         (LDFLAGS-unload4mod2.so): Likewise.
718         (LDFLAGS-tst-initorder): Likewise.
719         (LDFLAGS-tst-initordera2.so): Likewise.
720         (LDFLAGS-tst-initordera3.so): Likewise.
721         (LDFLAGS-tst-initordera4.so): Likewise.
722         (LDFLAGS-tst-initorderb2.so): Likewise.
723         (LDFLAGS-noload): Likewise.
724         (LDFLAGS-next): Likewise.
725         (LDFLAGS-order2mod1.so): Likewise.
726         (LDFLAGS-order2mod2.so): Likewise.
727         (LDFLAGS-tst-initorder2): Likewise.
728         (LDFLAGS-tst-initorder2a.so): Likewise.
729         (LDFLAGS-tst-initorder2b.so): Likewise.
730         (LDFLAGS-tst-initorder2c.so): Likewise.
731         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
732
733 2012-05-02  David S. Miller  <davem@davemloft.net>
734
735         * sysdeps/sparc/fpu/libm-test-ulps: Update.
736
737 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
738
739         [BZ #14055]
740         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
741
742 2012-05-02  Andreas Jaeger  <aj@suse.de>
743
744         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
745         since we manipulate rounding mode.
746         (CPPFLAGS-test-idouble.c): Likewise.
747         (CPPFLAGS-test-ifloat.c): Likewise.
748         (CFLAGS-test-ldouble.c): Likewise.
749         (CFLAGS-test-double.c): Likewise.
750         (CFLAGS-test-float.c): Likewise.
751         (CFLAGS-test-misc.c): Likewise.
752         (CFLAGS-test-test-fenv.c): Likewise.
753
754 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
755
756         [BZ #2550]
757         [BZ #2570]
758         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
759         comparisons to determine direction to adjust input.
760
761 2012-05-01  Roland McGrath  <roland@hack.frob.com>
762
763         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
764         output to the target.
765
766         * scripts/localplt.awk: New file.
767         * elf/Makefile ($(objpfx)check-localplt): Target removed.
768         (check-localplt-CFLAGS): Variable removed.
769         ($(all-built-dso:=.jmprel)): New static pattern rule.
770         (generated): Add those targets.
771         (localplt-built-dso): New variable.
772         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
773
774         * elf/check-localplt.c: File removed.
775
776         * scripts/check-execstack.awk: New file.
777         * elf/Makefile ($(objpfx)check-execstack): Target removed.
778         (check-execstack-CFLAGS): Variable removed.
779         ($(objpfx)check-execstack.h): Target removed.
780         ($(objpfx)execstack-default): New target.
781         (generated): Add that instead of check-execstack.h.
782         ($(all-built-dso:=.phdr)): New static pattern rule.
783         (generated): Add those targets.
784         * elf/check-execstack.c: File removed.
785
786         * scripts/check-textrel.awk: New file.
787         * elf/Makefile ($(objpfx)check-textrel): Target removed.
788         (check-textrel-CFLAGS): Variable removed.
789         (all-built-dso): Use := to define.o
790         ($(all-built-dso:=.dyn)): New static pattern rule.
791         (generated): Add those targets.
792         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
793         * config.make.in (READELF): New substituted variable.
794         * elf/check-textrel.c: File removed.
795
796 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
797
798         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
799         allow.
800         * conform/data/ctype.h-data [C99-based standards] (isblank):
801         Expect function.
802         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
803         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
804         [ISO || ISO99 || ISO11] (*_t): Do not allow.
805         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
806         Specify type.  Require positive value.
807         (EILSEQ): Likewise.
808         (ERANGE): Likewise.
809         [ISO || POSIX] (EILSEQ): Do not expect.
810         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
811         Specify type.  Require positive value.
812         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
813         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
814         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
815         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
816         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
817         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
818         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
819         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
820         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
821         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
822         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
823         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
824         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
825         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
826         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
827         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
828         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
829         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
830         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
831         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
832         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
833         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
834         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
835         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
836         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
837         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
838         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
839         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
840         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
841         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
842         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
843         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
844         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
845         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
846         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
847         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
848         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
849         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
850         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
851         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
852         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
853         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
854         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
855         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
856         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
857         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
858         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
859         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
860         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
861         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
862         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
863         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
864         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
865         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
866         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
867         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
868         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
869         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
870         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
871         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
872         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
873         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
874         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
875         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
876         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
877         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
878         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
879         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
880         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
881         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
882         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
883         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
884         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
885         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
886         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
887         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
888         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
889         Require >= 2.
890         (FLT_ROUNDS): Expect as macro, not constant.
891         (FLT_MANT_DIG): Use macro-int-constant.
892         (DBL_MANT_DIG): Likewise.
893         (LDBL_MANT_DIG): Likewise.
894         (FLT_DIG): Likewise.
895         (DBL_DIG): Likewise.
896         (LDBL_DIG): Likewise.
897         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
898         (DBL_MIN_EXP): Likewise.
899         (LDBL_MIN_EXP): Likewise.
900         (FLT_MAX_EXP): Use macro-int-constant.
901         (DBL_MAX_EXP): Likewise.
902         (LDBL_MAX_EXP): Likewise.
903         (FLT_MAX_10_EXP): Likewise.
904         (DBL_MAX_10_EXP): Likewise.
905         (LDBL_MAX_10_EXP): Likewise.
906         (FLT_MAX): Use macro-constant.
907         (DBL_MAX): Likewise.
908         (LDBL_MAX): Likewise.
909         (FLT_EPSILON): Use macro-constant.  Give upper bound.
910         (DBL_EPSILON): Likewise.
911         (LDBL_EPSILON): Likewise.
912         (FLT_MIN): Likewise.
913         (DBL_MIN): Likewise.
914         (LDBL_MIN): Likewise.
915         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
916         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
917         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
918         [ISO11] (FLT_HAS_SUBNORM): Likewise.
919         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
920         [ISO11] (DBL_DECIMAL_DIG): Likewise.
921         [ISO11] (FLT_DECIMAL_DIG): Likewise.
922         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
923         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
924         [ISO11] (FLT_TRUE_MIN): Likewise.
925         [ISO11] (LDBL_TRUE_MIN): Likewise.
926         [ISO || ISO99 || ISO11] (*_t): Do not allow.
927         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
928         (SCHAR_MIN): Use macro-int-constant.  Specify type.
929         (SCHAR_MAX): Likewise.
930         (UCHAR_MAX): Likewise.
931         (CHAR_MIN): Likewise.
932         (CHAR_MAX): Likewise.
933         (MB_LEN_MAX): Use macro-int-constant.
934         (SHRT_MIN): Use macro-int-constant.  Specify type.
935         (SHRT_MAX): Likewise.
936         (USHRT_MAX): Likewise.
937         (INT_MAX): Likewise.
938         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
939         bound negative.
940         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
941         bound with "U".
942         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
943         bound with "L".
944         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
945         bound negative.  Suffix upper bound with "L".
946         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
947         bound with "UL".
948         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
949         Specify type.
950         [C99-based standards] (LLONG_MAX): Likewise.
951         [C99-based standards] (ULLONG_MAX): Likewise.
952         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
953         == 0.
954         [ISO11] (max_align_t): Require type.
955         [ISO || ISO99 || ISO11] (*_t): Do not allow.
956
957         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
958         from $CFLAGS, without defining away __attribute__ calls.
959         (checknamespace): Use $CFLAGS_namespace.
960
961         * conform/conformtest.pl (@keywords): Only include C99 keywords
962         for standards based on C99 or C11.
963
964         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
965         Disable tests.
966         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
967         UNIX98]: Likewise.
968
969         * conform/conformtest.pl: Handle "macro-int-constant" and test for
970         usability of symbols in #if.
971
972         * conform/conformtest.pl: If macro or constant types start
973         "promoted:", expect the symbol to be of the following type
974         promoted by the integer promotions.
975
976         * conform/conformtest.pl: Parse all "constant" and "macro" lines
977         in one place.  Also handle "macro-constant".
978
979         * conform/conformtest.pl: Only accept expected macro values with
980         "==".  Parse all "macro" lines in one place.
981         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
982
983         * conform/conformtest.pl: Handle braced types on "constant" lines
984         instead of handling "typed-constant".
985         * conform/data/signal.h-data: Use "constant" instead of
986         "typed-constant".
987
988         * conform/conformtest.pl: Handle "optional-" at start of lines in
989         one place rather than duplicating several cases.  Handle each
990         format of "macro" line with initial "optional-".
991
992         * conform/conformtest.pl: Only accept expected constant or
993         optional-constant values with "==".  Parse all "constant" lines in
994         one place.  Parse all "optional-constant" lines in one place.
995         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
996         * conform/data/fmtmsg.h-data: Likewise.
997         * conform/data/netinet/in.h-data: Likewise.
998         * conform/data/tar.h-data: Likewise.
999         * conform/data/limits.h-data: Use "==" form on "constant" and
1000         "optional-constant" lines.
1001
1002         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
1003         Use -std=c99 for XOPEN2K.
1004         (@knownproblems): Remove.
1005         (newtoken): Don't check %isknown.
1006
1007         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
1008         Do not expect macro.
1009         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
1010         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
1011         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
1012         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
1013         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
1014         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
1015         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
1016         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
1017         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
1018         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
1019         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
1020         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
1021         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
1022         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
1023         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
1024         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
1025         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
1026         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
1027         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
1028         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
1029         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
1030         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
1031         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
1032         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
1033         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
1034         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
1035         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
1036         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
1037         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
1038         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
1039         [XPG3] (acosh): Likewise.
1040         [XPG3] (asinh): Likewise.
1041         [XPG3] (atanh): Likewise.
1042         [XPG3] (cbrt): Likewise.
1043         [XPG3] (expm1): Likewise.
1044         [XPG3] (ilogb): Likewise.
1045         [XPG3] (log1p): Likewise.
1046         [XPG3] (logb): Likewise.
1047         [XPG3] (nextafter): Likewise.
1048         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
1049         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
1050         [XPG3] (remainder): Likewise.
1051         [XPG3] (rint): Likewise.
1052         [XPG3 || XPG4 || UNIX98] (round): Likewise.
1053         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
1054         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
1055         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
1056         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
1057         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
1058         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
1059         [UNIX98 || XOPEN2K] (scalb): Expect.
1060         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
1061         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
1062         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
1063         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
1064         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
1065         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
1066         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
1067         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
1068         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
1069         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
1070         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
1071         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
1072         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
1073         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
1074         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
1075         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
1076         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
1077         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
1078         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
1079         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
1080         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
1081         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
1082         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
1083         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
1084         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
1085         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
1086         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
1087         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
1088         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
1089         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
1090         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
1091         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
1092         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
1093         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
1094         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
1095         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
1096         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
1097         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
1098         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
1099         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
1100         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
1101         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
1102         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
1103         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
1104         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
1105         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
1106         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
1107         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
1108         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
1109         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
1110         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
1111         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
1112         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
1113         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
1114         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
1115         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
1116         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
1117         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
1118         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
1119         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
1120         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
1121         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
1122         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
1123         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
1124         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
1125         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
1126         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
1127         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
1128         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
1129         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
1130         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
1131         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
1132         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
1133         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
1134         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
1135         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
1136         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
1137         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
1138         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
1139         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
1140         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
1141         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
1142         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
1143         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
1144         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
1145         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
1146         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
1147         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
1148         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
1149         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
1150         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
1151         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
1152         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
1153         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
1154         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
1155         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
1156         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
1157         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
1158         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
1159         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
1160         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
1161         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
1162         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
1163         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
1164         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
1165         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
1166         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
1167         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
1168         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
1169         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
1170         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
1171         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
1172         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
1173         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
1174         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
1175         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
1176         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
1177         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
1178         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
1179         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
1180         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
1181         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
1182         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
1183         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
1184         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
1185         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
1186         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
1187         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
1188         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
1189         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
1190         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
1191         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
1192         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
1193         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
1194         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
1195         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
1196         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
1197
1198         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
1199         _XOPEN_SOURCE_EXTENDED for XPG4.
1200
1201         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
1202
1203         * Makeconfig (localtime): Remove variable.
1204         (inst_localtime-file): Likewise.
1205
1206 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
1207
1208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
1209         Update.
1210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1211         Update.
1212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
1213         Update.
1214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
1215         Update.
1216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
1217         Update.
1218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
1219         Update.
1220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1221         Update.
1222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
1223         Update.
1224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
1225         Update.
1226
1227 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
1228
1229         [BZ #2550]
1230         [BZ #2570]
1231         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
1232         comparisons to determine direction to adjust input.
1233         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
1234         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
1235         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
1236         Likewise.
1237         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
1238         Likewise.
1239         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
1240         Likewise.
1241         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
1242         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
1243         Likewise.
1244         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
1245         Likewise.
1246         * math/libm-test.inc (nexttoward_test): Add more tests.
1247
1248 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
1249
1250         [BZ #14040]
1251         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
1252         in version GLIBC_2.1, not GLIBC_2.0.
1253         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
1254         Likewise.
1255
1256 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
1257
1258         [BZ #13942]
1259         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
1260         (1 - x) * (1 + x).
1261         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
1262         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
1263         * math/libm-test.inc (acos_test): Add more tests.
1264         (asin_test): Likewise.
1265         * sysdeps/i386/fpu/libm-test-ulps: Update.
1266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1267
1268         [BZ #14034]
1269         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
1270         of square root.
1271         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
1272         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
1273         * math/libm-test.inc (acos_test_tonearest): New function.
1274         (acos_test_towardzero): Likewise.
1275         (acos_test_downward): Likewise.
1276         (acos_test_upward): Likewise.
1277         (asin_test_tonearest): Likewise.
1278         (asin_test_towardzero): Likewise.
1279         (asin_test_downward): Likewise.
1280         (asin_test_upward): Likewise.
1281         (main): Call the new functions.
1282         * sysdeps/i386/fpu/libm-test-ulps: Update.
1283         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1284
1285         [BZ #13884]
1286         [BZ #13924]
1287         * math/e_exp10.c: Include <float.h>.
1288         (__ieee754_exp10): Handle underflow here rather than multiplying
1289         large negative argument by M_LN10.
1290         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
1291         of __ieee754_expf.
1292         * math/e_exp10l.c: Include <float.h>.
1293         (__ieee754_exp10l): Handle underflow here rather than multiplying
1294         large negative argument by M_LN10l.
1295         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
1296         spurious overflow exception on underflow.
1297
1298 2012-04-29  Marek Polacek  <polacek@redhat.com>
1299
1300         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
1301         (__fortify_function): New macro.
1302         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
1303         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
1304         __extern_always_inline.
1305         * libio/bits/stdio2.h: Likewise.
1306         * libio/bits/stdio.h: Likewise.
1307         * string/string.h: Likewise.
1308         * string/bits/string3.h: Likewise.
1309         * include/stdio.h: Likewise.
1310         * stdlib/bits/stdlib.h: Likewise.
1311         * stdlib/stdlib.h: Likewise.
1312         * rt/bits/mqueue2.h: Likewise.
1313         * rt/mqueue.h: Likewise.
1314         * posix/bits/unistd.h: Likewise.
1315         * posix/unistd.h: Likewise.
1316         * io/bits/poll2.h: Likewise.
1317         * io/bits/fcntl2.h: Likewise.
1318         * io/fcntl.h: Likewise.
1319         * io/sys/poll.h: Likewise.
1320         * misc/bits/syslog.h: Likewise.
1321         * misc/bits/syslog-ldbl.h: Likewise.
1322         * misc/sys/syslog.h: Likewise.
1323         * socket/bits/socket2.h: Likewise.
1324         * socket/sys/socket.h: Likewise.
1325         * debug/tst-chk1.c: Likewise.
1326         * wcsmbs/bits/wchar2.h: Likewise.
1327         * wcsmbs/bits/wchar-ldbl.h: Likewise.
1328         * wcsmbs/wchar.h: Likewise.
1329
1330 2012-04-29  Andreas Jaeger  <aj@suse.de>
1331
1332         * Makerules (tests): Remove enable-check-abi protection.
1333         (check-abi-warn): Remove.
1334         (check-abi-%): Remove check-abi-warn usage.
1335
1336         * configure.in: Remove check-abi configure option.
1337         * configure: Regenerated.
1338         * config.make.in (enable-check-abi): Remove.
1339
1340 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
1341
1342         [BZ #14033]
1343         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
1344         double functions to double *_finite functions.
1345
1346         [BZ #13941]
1347         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
1348         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
1349         LDBL_MIN_EXP.
1350         * stdio-common/Makefile (tests): Add tst-sprintf3.
1351         * stdio-common/tst-sprintf3.c: New file.
1352
1353         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
1354         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
1355
1356 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
1357
1358         * conform/conformtest.pl: Remove duplicate typed-constant
1359         handling.
1360
1361 2012-04-28  David S. Miller  <davem@davemloft.net>
1362
1363         * Makerules (%.abilist): Add vpath on sysdep_dirs.
1364         (check-abi-%): Remove AWK script prerequisite and explicit
1365         abilist directory.
1366         (check-abi): Rewrite to just diff the symlist with the abilist.
1367         (config-tls, config-abi-config): Delete, no longer used.
1368         (update-abi-%): Remove AWK script and explicit abilist directory.
1369         (update-abi): Rewrite to simply compare and conditionally copy the
1370         symlist and the sysdep abilist file.  Remove update-abi-config
1371         checks.
1372         * abilist/ld.abilist: Remove.
1373         * abilist/libBrokenLocale.abilist: Remove.
1374         * abilist/libanl.abilist: Remove.
1375         * abilist/libcrypt.abilist: Remove.
1376         * abilist/libdl.abilist: Remove.
1377         * abilist/librt.abilist: Remove.
1378         * abilist/libthread_db.abilist: Remove.
1379         * abilist/libutil.abilist: Remove.
1380         * scripts/extract-abilist.awk: Remove.
1381         * scripts/merge-abilist.awk: Remove.
1382         * sysdeps/generic/libcidn.abilist: New file.
1383         * sysdeps/generic/libnss_compat.abilist: New file.
1384         * sysdeps/generic/libnss_db.abilist: New file.
1385         * sysdeps/generic/libnss_dns.abilist: New file.
1386         * sysdeps/generic/libnss_files.abilist: New file.
1387         * sysdeps/generic/libnss_hesiod.abilist: New file.
1388         * sysdeps/generic/libnss_nis.abilist: New file.
1389         * sysdeps/generic/libnss_nisplus.abilist: New file.
1390         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
1391         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
1392         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
1393         file.
1394         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
1395         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
1396         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
1397         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
1398         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
1399         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
1400         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
1401         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
1402         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
1403         file.
1404         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
1405         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
1406         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
1407         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
1408         file.
1409         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
1410         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
1411         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
1412         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
1413         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
1414         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
1415         file.
1416         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
1417         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
1418         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
1419         file.
1420         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
1421         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
1422         New file.
1423         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
1424         New file.
1425         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
1426         New file.
1427         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
1428         New file.
1429         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
1430         New file.
1431         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
1432         New file.
1433         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
1434         New file.
1435         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
1436         New file.
1437         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
1438         New file.
1439         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
1440         New file.
1441         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
1442         New file.
1443         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
1444         New file.
1445         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
1446         New file.
1447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
1448         file.
1449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
1450         New file.
1451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
1452         New file.
1453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
1454         file.
1455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
1456         New file.
1457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
1458         New file.
1459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
1460         file.
1461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
1462         New file.
1463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
1464         New file.
1465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
1466         New file.
1467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
1468         New file.
1469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
1470         New file.
1471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
1472         New file.
1473         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
1474         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
1475         file.
1476         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
1477         New file.
1478         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
1479         file.
1480         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
1481         file.
1482         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
1483         file.
1484         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
1485         file.
1486         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
1487         file.
1488         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
1489         New file.
1490         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
1491         file.
1492         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
1493         file.
1494         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
1495         New file.
1496         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
1497         file.
1498         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
1499         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
1500         file.
1501         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
1502         New file.
1503         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
1504         file.
1505         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
1506         file.
1507         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
1508         file.
1509         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
1510         file.
1511         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
1512         file.
1513         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
1514         New file.
1515         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
1516         file.
1517         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
1518         file.
1519         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
1520         New file.
1521         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
1522         file.
1523         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
1524         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
1525         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
1526         file.
1527         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
1528         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
1529         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
1530         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
1531         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
1532         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
1533         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
1534         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
1535         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
1536         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
1537         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
1538         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
1539         file.
1540         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
1541         New file.
1542         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
1543         file.
1544         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
1545         file.
1546         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
1547         file.
1548         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
1549         file.
1550         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
1551         file.
1552         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
1553         New file.
1554         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
1555         New file.
1556         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
1557         file.
1558         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
1559         New file.
1560         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
1561         file.
1562         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
1563         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
1564         file.
1565         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
1566         New file.
1567         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
1568         file.
1569         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
1570         file.
1571         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
1572         file.
1573         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
1574         file.
1575         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
1576         file.
1577         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
1578         New file.
1579         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
1580         New file.
1581         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
1582         file.
1583         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
1584         New file.
1585         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
1586         file.
1587
1588 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
1589
1590         * conform/conformtest.pl: Fix typo in handling typed-constant from
1591         allow-header.
1592
1593 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
1594
1595         * README: Cut down references to pre-2.6 Linux kernels and
1596         Linuxthreads.  Update lists of configurations in libc and ports
1597         and sort alphabetically.  Say "or newer" with Linux kernel version
1598         requirements.
1599
1600         * config.h.in [IS_IN_build]: Allow compiling without optimization.
1601
1602 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1603
1604         [BZ #887]
1605         * math/libm-test.inc (logb_test_downward): New test to expose
1606         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
1607         rounding mode.
1608
1609 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
1610
1611         [BZ #14027]
1612         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
1613         to be done.
1614         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
1615         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
1616
1617 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
1618
1619         * sysdeps/unix/i386/brk.S: Remove file.
1620         * sysdeps/unix/i386/dl-brk.S: Likewise.
1621         * sysdeps/unix/i386/pipe.S: Likewise.
1622         * sysdeps/unix/i386/sigreturn.S: Likewise.
1623         * sysdeps/unix/i386/syscall.S: Likewise.
1624         * sysdeps/unix/i386/vfork.S: Likewise.
1625         * sysdeps/unix/i386/wait.S: Likewise.
1626
1627         * sysdeps/unix/common/tcsendbrk.c: Move to ...
1628         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
1629
1630         * configure.in (arm*-none*): Do not allow without
1631         --enable-hacker-mode.
1632         (netbsd*): Remove case setting base_os.
1633         (386bsd*): Likewise.
1634         (freebsd*): Likewise.
1635         (bsdi*): Likewise.
1636         (osf*): Likewise.
1637         (sunos*): Likewise.
1638         (ultrix*): Likewise.
1639         (newsos*): Likewise.
1640         (dynix*): Likewise.
1641         (*bsd*): Likewise.
1642         (sysv*): Likewise.
1643         (isc*): Likewise.
1644         (esix*): Likewise.
1645         (sco*): Likewise.
1646         (minix*): Likewise.
1647         (irix4*): Likewise.
1648         (irix6*): Likewise.
1649         (solaris[2-9]*): Likewise.
1650         (none): Likewise.
1651         * configure: Regenerated.
1652
1653 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1654
1655         [BZ #11521]
1656         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
1657         overflow or cancellation in calculating denominator.
1658         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
1659         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
1660         down expression to avoid unexpected rounding in newer GCCs.
1661         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
1662
1663 2012-04-26  David S. Miller  <davem@davemloft.net>
1664
1665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
1666         long-double compat symbols.
1667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
1671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1672         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
1673         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
1674         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
1675         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
1676         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
1677         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
1678         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
1679         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
1680
1681 2012-04-25  David S. Miller  <davem@davemloft.net>
1682
1683         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
1684         HWCAP_* values only after the memory barriers have been defined.
1685         (atomic_full_barrier): Define.
1686         (atomic_read_barrier): Define.
1687         (atomic_write_barrier): Define.
1688
1689 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1690
1691         * shlib-versions: Add libgcc_s version information.
1692         * sysdeps/generic/libgcc_s.h: Remove.
1693         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
1694         libgcc_s.h.
1695         * sysdeps/gnu/unwind-resume.c: Likewise.
1696         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
1697
1698 2012-04-25  David S. Miller  <davem@davemloft.net>
1699
1700         * sysdeps/unix/sparc/brk.S: Delete.
1701         * sysdeps/unix/sparc/dl-brk.S: Delete.
1702         * sysdeps/unix/sparc/pipe.S: Delete.
1703         * sysdeps/unix/sparc/sysdep.S: Delete.
1704         * sysdeps/unix/sparc/sysdep.h: Delete.
1705         * sysdeps/unix/sparc/vfork.S: Delete.
1706         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
1707         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
1708         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
1709         ret_ERRVAL, r0, r1, MOVE): Define.
1710         (JUMPTARGET): Remove.
1711         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
1712         sysdeps/unix/sparc/sysdep.h
1713         (ENTRY, END): Remove.
1714         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1715
1716 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
1717
1718         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
1719         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
1720         -DIS_IN_build.
1721
1722         * timezone/README: Update upstream location and email address for
1723         tzcode and tzdata.
1724         * timezone/zdump.c: Update from tzcode 2012b.
1725         * timezone/zic.c: Likewise.
1726
1727         * configure.in (libc_cv_as_needed): Remove test.
1728         * configure: Regenerated.
1729         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
1730         conditional definition.
1731         [$(have-as-needed) != yes] (no-as-needed): Likewise.
1732         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
1733         * config.make.in (have-as-needed): Remove variable.
1734
1735 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1736             Paul Pluzhnikov  <ppluzhnikov@google.com>
1737
1738         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
1739         strings correctly.
1740
1741 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
1742
1743         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
1744         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
1745         * sysdeps/sh/strlen.S: Likewise.
1746
1747 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1748
1749         * sysdeps/unix/fork.S: Remove file.
1750         * sysdeps/unix/i386/fork.S: Likewise.
1751         * sysdeps/unix/sparc/fork.S: Likewise.
1752
1753         * sysdeps/unix/system.c: Remove file.
1754         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
1755
1756         * sysdeps/unix/getegid.S: Remove file.
1757         * sysdeps/unix/geteuid.S: Likewise.
1758
1759 2012-04-24  Roland McGrath  <roland@hack.frob.com>
1760
1761         * scripts/check-localplt.awk: New file.
1762         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
1763         of diff.
1764         * scripts/data/localplt-generic.data: Add a comment.
1765
1766         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
1767         NODE when __dir_mkfile failed.
1768         * sysdeps/mach/hurd/symlinkat.c: Likewise.
1769         Reported by Ludovic Courtès <ludo@gnu.org>.
1770
1771 2012-04-24  Andreas Jaeger  <aj@suse.de>
1772
1773         * Makerules (common-clean): Also remove gen-as-const-headers
1774         files.
1775
1776 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1777
1778         * Makerules (native-compile): Do not change working directory for
1779         build.  Use $(OUTPUT_OPTION) in command.
1780         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
1781
1782 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1783
1784         [BZ #13886]
1785         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
1786         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
1787         * math/libm-test.inc (floor_test): Add more tests.
1788         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
1789
1790 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1791
1792         * sysdeps/unix/getdents.c: Remove file.
1793         * sysdeps/unix/sysv/getdents.c: Likewise.
1794         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
1795
1796         * sysdeps/unix/syscalls.list (madvise): Add syscall from
1797         sysdeps/unix/mman/syscalls.list.
1798         (mmap): Likewise.
1799         (mprotect): Likewise.
1800         (msync): Likewise.
1801         (munmap): Likewise.
1802         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
1803         * sysdeps/unix/mman/syscalls.list: Remove.
1804         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
1805
1806         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
1807         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
1808         * configure: Regenerated.
1809         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
1810         $(libgcc_s_suffix).
1811         * config.make.in (libgcc_s_suffix): Remove variable.
1812
1813 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
1814
1815         * sysdeps/unix/sysv/gethostname.c: Move to ...
1816         * sysdeps/posix/gethostname.c: ... here.
1817
1818         * sysdeps/unix/execve.S: Remove file.
1819
1820         * sysdeps/unix/_exit.S: Remove file.
1821
1822 2012-04-23  Andreas Jaeger  <aj@suse.de>
1823
1824         [BZ #13739]
1825         * manual/Makefile: Remove make dist support, there's no
1826         need for a stand-alone documentation tar ball.
1827         (TEXI2DVI): Define always, it's not in Makeconfig.
1828         (dist): Removed.
1829         (tar-it): Removed.
1830         (edition): Removed.
1831         (glibc-doc-$(edition).tar): Removed
1832         (%.Z): Removed.
1833         (%.gz): Removed.
1834         (%.uu): Removed.
1835         (ETAGS): Remove, it's in Makeconfig.
1836         (move-if-change): Remove, it's in Makeconfig.
1837
1838 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1839
1840         [BZ #13970]
1841         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
1842         (strtod, strtof, strtold, strtol, strtoul, strtoq)
1843         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
1844         (strtod_l, strtof_l, strtold_l): Remove __wur.
1845         It is not necessarily an error to ignore strtol's return value.
1846         One can reliably look at the stored endptr to decide whether
1847         the number had valid syntax.
1848
1849 2012-04-21  Andreas Jaeger  <aj@suse.de>
1850
1851         [BZ #13739]
1852         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
1853
1854 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
1855
1856         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
1857         * sysdeps/unix/sysv/Versions: Remove file.
1858
1859 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1860
1861         [BZ #13927]
1862         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1863
1864 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
1865
1866         [BZ #7064]
1867         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
1868         version from __vm86.
1869
1870 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
1871
1872         * sysdeps/unix/common/lxstat.c: Remove file.
1873         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
1874
1875         * sysdeps/unix/sysv/Makefile: Remove file.
1876
1877         * sysdeps/unix/sysv/direct.h: Remove file.
1878
1879         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
1880         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
1881         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
1882         * sysdeps/unix/sysv/bits/signum.h: Likewise.
1883         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1884         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
1885         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
1886
1887         * sysdeps/unix/sysv/setrlimit.c: Remove file.
1888
1889         * sysdeps/unix/xmknod.c: Remove file.
1890         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
1891
1892         * sysdeps/unix/sysv/settimeofday.c: Remove file.
1893
1894         * sysdeps/unix/sysv/i386/time.S: Remove file.
1895
1896         * sysdeps/unix/fxstat.c: Remove file.
1897         * sysdeps/unix/xstat.c: Likewise.
1898         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
1899
1900         * sysdeps/unix/sysv/sigaction.c: Remove file.
1901
1902         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
1903         (sysdep_headers): Remove variable.
1904         [termio.h not in sysdep_headers] (generated): Likewise.
1905         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
1906         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
1907         * sysdeps/unix/sysv/tcdrain.c: Likewise.
1908         * sysdeps/unix/sysv/tcflow.c: Likewise.
1909         * sysdeps/unix/sysv/tcflush.c: Likewise.
1910         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
1911         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
1912         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
1913         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
1914         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
1915
1916         * sysdeps/unix/siglist.c: Remove file.
1917
1918         * sysdeps/unix/getppid.S: Remove file.
1919
1920         * sysdeps/unix/mkdir.c: Remove file.
1921         * sysdeps/unix/rmdir.c: Likewise.
1922
1923 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
1924
1925         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
1926         ERR_MAX value.
1927         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
1928         errlist-compat value.
1929
1930 2012-04-18  David S. Miller  <davem@davemloft.net>
1931
1932         * sysdeps/generic/memcopy.h (reg_char): Delete.
1933         * debug/strcat_chk.c: Use char, not reg_char.
1934         * debug/strcpy_chk.c: Likewise.
1935         * debug/strncat_chk.c: Likewise.
1936         * debug/strncpy_chk.c: Likewise.
1937         * string/memchr.c: Likewise.
1938         * string/memrchr.c: Likewise.
1939         * string/rawmemchr.c: Likewise.
1940         * string/strcat.c: Likewise.
1941         * string/strchr.c: Likewise.
1942         * string/strchrnul.c: Likewise.
1943         * string/strcmp.c: Likewise.
1944         * string/strcpy.c: Likewise.
1945         * string/strncat.c: Likewise.
1946         * string/strncmp.c: Likewise.
1947         * string/strncpy.c: Likewise.
1948
1949 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1950
1951         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
1952         __builtin_memcopy is called when src and dest ranges are known to not
1953         overlap.
1954
1955 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1956
1957         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
1958         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
1959         fwd_align_merge macro call.
1960         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
1961         bwd_align_merge macro call.
1962         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
1963
1964 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1965
1966         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
1967         bwd_align_merge macros.
1968         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
1969         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
1970         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
1971
1972 2012-04-18  David S. Miller  <davem@davemloft.net>
1973
1974         * sysdeps/sparc/sparc64/memcopy.h: Delete.
1975
1976 2012-04-18  Andreas Jaeger  <aj@suse.de>
1977
1978         [BZ# 6794]
1979         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
1980         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
1981         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1982
1983         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
1984         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
1985         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1986
1987         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
1988         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
1989         Adjust for changed ldbl-128 files.
1990
1991         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
1992         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
1993         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1994
1995 2012-04-17  David S. Miller  <davem@davemloft.net>
1996
1997         * sysdeps/sparc/sparc32/memcopy.h: Delete.
1998
1999 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
2000
2001         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
2002         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
2003         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
2004         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
2005         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
2006         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
2007
2008 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2009
2010         [BZ #6794]
2011         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
2012         * math/libm-test.inc: Add ilogb errno and exception tests.
2013         * math/w_ilogb.c: New file: ilogb wrapper.
2014         * math/w_ilogbf.c: New file: ilogbf wrapper.
2015         * math/w_ilogbl.c: New file: ilogbl wrapper.
2016         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
2017         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
2018         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
2019         exception being thrown with 0.0 as argument.
2020         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
2021         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
2022         exception being thrown with 0.0 as argument.
2023         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
2024         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
2025         exception being thrown with 0.0 as argument.
2026         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
2027         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
2028         exception being thrown with 0.0 as argument.
2029         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
2030         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
2031         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
2032         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
2033         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
2034         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
2035         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
2036         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
2037         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
2038
2039 2012-04-17  Petr Baudis  <pasky@ucw.cz>
2040
2041         * include/sys/uio.h: Change __vector to __iovec to avoid clash
2042         with altivec.
2043
2044 2012-04-16  Marek Polacek  <polacek@redhat.com>
2045
2046         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
2047
2048 2012-04-16  Marek Polacek  <polacek@redhat.com>
2049
2050         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
2051         operands of fdivp instruction.
2052
2053 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
2054
2055         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
2056         * elf/tst-auditmod3b.c: Likewise.
2057         * elf/tst-auditmod4b.c: Likewise.
2058         * elf/tst-auditmod5b.c: Likewise.
2059         * elf/tst-auditmod6b.c: Likewise.
2060         * elf/tst-auditmod6c.c: Likewise.
2061         * elf/tst-auditmod7b.c: Likewise.
2062         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
2063         * sysdeps/x86_64/preconfigure.in: Likewise.
2064         * sysdeps/x86_64/preconfigure: Regenerated.
2065
2066 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
2067
2068         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
2069         __ILP32__.
2070
2071 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
2072
2073         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2074         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
2075
2076 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
2077
2078         [BZ #13973]
2079         * locale/iso-639.def: Fix gl language name. Spotted by
2080         Yaron Shahrabani.
2081
2082 2012-04-12  Roland McGrath  <roland@hack.frob.com>
2083
2084         [BZ #2074]
2085         * libio/libio.h (__io_write_fn): Update comment.
2086
2087 2012-04-12  Petr Baudis  <pasky@ucw.cz>
2088
2089         [BZ #2074]
2090         * stdio.texi (Hook Functions): The user provided writer function
2091         is not allowed to return -1.
2092
2093 2012-04-11  David S. Miller  <davem@davemloft.net>
2094
2095         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2096
2097 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
2098
2099         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
2100         Add a leading slash to rtkaio.
2101
2102 2012-04-11  Jim Meyering  <meyering@redhat.com>
2103
2104         [BZ #11959]
2105         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
2106         It is not necessarily an error to ignore fwrite's return
2107         value.  One can reliably use ferror to test for errors after
2108         the fact.
2109
2110 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
2111
2112         * bits/types.h (__snseconds_t): New type.
2113         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
2114
2115         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
2116         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2117         (__SNSECONDS_T_TYPE): Likewise.
2118         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2119         (__SNSECONDS_T_TYPE): Likewise.
2120         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2121         (__SNSECONDS_T_TYPE): Likewise.
2122
2123 2012-04-10  Andreas Jaeger  <aj@suse.de>
2124
2125         [BZ #2636]
2126         * manual/time.texi (Processor Time): Return type of times is
2127         elapsed real time since an arbitrary point in the past.
2128         (CPU Time): Move CLK_TCK from here...
2129         (Processor Time): ...to here.  Correct description.
2130         * manual/conf.texi (Constants for Sysconf): Correct description of
2131         _SC_CLK_TCK.
2132
2133 2012-04-10  David S. Miller  <davem@davemloft.net>
2134
2135         [BZ #13967]
2136         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
2137         where the is a gap between DT_REL(A) and DT_JMPREL.
2138
2139 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
2140
2141         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
2142         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
2143         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
2144
2145 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2146
2147         * elf/dl-support.c (_dl_inhibit_cache): New variable.
2148         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
2149         (dl_main): Handle --inhibit-cache.
2150         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
2151         _dl_inhibit_cache.
2152         * elf/dl-load.c (_dl_map_object): Use it.
2153         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
2154
2155 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
2156
2157         [BZ #13872]
2158         * sysdeps/i386/fpu/e_powl.S (p78): New object.
2159         (__ieee754_powl): Saturate large exponents rather than testing for
2160         overflow of y*log2(x).
2161         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2162         * math/libm-test.inc (pow_test): Do not permit spurious overflow
2163         exceptions.
2164
2165         [BZ #11521]
2166         * math/s_ctan.c: Include <float.h>.
2167         (__ctan): Avoid internal overflow or cancellation in calculating
2168         denominator.
2169         * math/s_ctanf.c: Likewise.
2170         * math/s_ctanl.c: Likewise.
2171         * math/s_ctanh.c: Likewise.
2172         * math/s_ctanhf.c: Likewise.
2173         * math/s_ctanhl.c: Likewise.
2174         * math/libm-test.inc (ctan_test): Add more tests.
2175         (ctanh_test): Likewise.
2176         * sysdeps/i386/fpu/libm-test-ulps: Update.
2177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2178
2179 2012-04-09  Andreas Jaeger  <aj@suse.de>
2180
2181         [BZ #6894]
2182         * manual/filesys.texi (Directory Entries): Mention that d_namlen
2183         is an optional BSD extension.
2184
2185         [BZ #10254]
2186         * manual/stdio.texi (Opening Streams): Document additional fopen
2187         parameters.
2188
2189 2012-04-09  Roland McGrath  <roland@hack.frob.com>
2190
2191         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
2192         %eax without telling the compiler.
2193
2194 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
2195
2196         [BZ # 13963]
2197         * manual/install.texi: Use sourceware.org.
2198
2199 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
2200
2201         [BZ #13873]
2202         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
2203         (__ieee754_pow): Generate overflow and underflow using huge*huge
2204         and tiny*tiny rather than just returning constant infinity or zero
2205         for large exponents.
2206         * math/libm-test.inc (pow_test): Require overflow exceptions for
2207         applicable cases of large exponents.
2208
2209         [BZ #706]
2210         * sysdeps/i386/fpu/e_pow.S (p10): New object.
2211         (__ieee754_pow): Use iterative multiplication algorithm only for
2212         integer exponents with absolute value below 1024.  Check for odd
2213         integer exponents when using algorithm for real exponents.
2214         * math/libm-test.inc (pow_test): Add more tests.
2215         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2216
2217 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
2218
2219         [BZ #13705]
2220         * math/libm-test.inc (exp_test): Do not allow overflow exception
2221         on underflow test.
2222
2223 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
2224
2225         [BZ #13705]
2226         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
2227         instead of __kernel_standard_f.
2228
2229 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
2230
2231         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
2232         * sysdeps/x86_64/memset_chk.S: Likewise.
2233
2234 2012-04-08  Andreas Jaeger  <aj@suse.de>
2235
2236         [BZ #10153]
2237         * manual/startup.texi (Environment Access): Describe return value
2238         for putenv and setenv.
2239
2240         [BZ #6895]
2241         * manual/filesys.texi (Directory Entries): Add description for
2242         DT_LNK.
2243
2244         [BZ #6890]
2245         * manual/filesys.texi (Directory Entries): Clarify that it's file
2246         system not operating system in the description of DT_UNKNOWN.
2247
2248         [BZ #6578]
2249         * manual/syslog.texi (closelog): Fix reference, it's openlog.
2250
2251 2012-04-08  Stephen Compall  <s11@member.fsf.org>
2252
2253         [BZ #6649]
2254         * manual/llio.texi (Opening and Closing Files): Add cross
2255         reference to explain mode argument.
2256
2257 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
2258
2259         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
2260         * sysdeps/x86_64/memset_chk.S: Likewise.
2261
2262 2012-04-07  David S. Miller  <davem@davemloft.net>
2263
2264         * elf/elf.h (R_SPARC_WDISP10): Define.
2265         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
2266         R_SPARC_SIZE32.
2267         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
2268         R_SPARC_SIZE64 and R_SPARC_H34.
2269
2270 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
2271
2272         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
2273         conditions and remove no longer applicable assertion.
2274
2275 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
2276
2277         * bits/byteswap.h: Include <features.h>.
2278         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
2279         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
2280
2281 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
2282
2283         * bits/byteswap.h (__bswap_16): Removed.
2284         Include <bits/byteswap-16.h> to get __bswap_16.
2285         * sysdeps/i386/bits/byteswap.h: Likewise.
2286         * sysdeps/s390/bits/byteswap.h: Likewise.
2287         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2288         * bits/byteswap-16.h: New file.
2289         * sysdeps/i386/bits/byteswap-16.h: Likewise.
2290         * sysdeps/s390/bits/byteswap-16.h: Likewise.
2291         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
2292         * string/Makefile (headers): Add bits/byteswap-16.h.
2293
2294 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2295
2296         [BZ #13895]
2297         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
2298         extra indirection.
2299         * nss/Makefile (tests-static, tests): Add tst-nss-static.
2300         * nss/tst-nss-static.c: New.
2301
2302 2012-04-06  Robert Millan  <rmh@gnu.org>
2303
2304         [BZ #6486]
2305         * manual/llio.texi (File Position Primitive): lseek
2306         refers to WHENCE when it really means OFFSET.
2307
2308 2012-04-06  Andreas Jaeger  <aj@suse.de>
2309
2310         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
2311         strncmp declarations.
2312
2313         * abilist/libc.abilist: Add __poll and __ppoll.
2314
2315 2012-04-05  David S. Miller  <davem@davemloft.net>
2316
2317         * scripts/check-local-headers.sh: Accept a host triplet in the
2318         path matched by the exclude regexp.
2319
2320         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
2321         definition.
2322         * sysdeps/powerpc/powerpc32/dl-machine.h
2323         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
2324         * sysdeps/s390/s390-32/dl-machine.h
2325         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
2326         * sysdeps/sparc/sparc32/dl-machine.h
2327         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
2328         * sysdeps/sparc/sparc64/dl-machine.h
2329         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
2330
2331         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
2332         lazy binding.
2333         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
2334         undefined symbol errors.
2335
2336         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
2337         DT_NEEDED entries.
2338
2339 2012-04-05  Michael Matz  <matz@suse.de>
2340
2341         [BZ #13592]
2342         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
2343
2344 2012-04-05  Andreas Jaeger  <aj@suse.de>
2345
2346         [BZ #13908]
2347         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
2348         comment.
2349
2350 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2351
2352         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
2353         which ROUND is no valid rounding mode.
2354
2355 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2356
2357         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
2358         read again.
2359         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
2360
2361 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2362
2363         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
2364         an exception using FPU order intentionally.
2365
2366 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2367
2368         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
2369         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
2370         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
2371         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
2372
2373 2012-04-05  Simon Josefsson  <simon@josefsson.org>
2374
2375         [BZ #12340]
2376         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
2377         EINVAL when BUFLEN is too smal.
2378
2379 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
2380
2381         [BZ #13553]
2382         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
2383         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
2384
2385 2012-04-03  Andreas Jaeger  <aj@suse.de>
2386
2387         [BZ #13938]
2388         * manual/setjmp.texi (System V contexts): Fix sentence.
2389
2390         [BZ #13926]
2391         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
2392         New macro for this case.
2393         [!__GNUC__] (__bswap_64): New inline function for this case.
2394         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2395         * bits/byteswap.h: Likewise.
2396         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
2397         ull, guard with __GLIBC_HAVE_LONG_LONG.
2398
2399         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
2400         __GLIBC_HAVE_LONG_LONG.
2401
2402         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
2403         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
2404
2405 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
2406
2407         [BZ #13691]
2408         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
2409         inptr and inend, rather than using last_ch.
2410
2411 2012-04-02  David S. Miller  <davem@davemloft.net>
2412
2413         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
2414         * stdio-common/printf-parse.h (read_int): Change return type to
2415         'int', return -1 on INT_MAX overflow.
2416         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
2417         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
2418         overflows INT_MAX.  Check for overflow of in-format-string precision
2419         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
2420         SIZE_MAX not INT_MAX for integer overflow test.
2421         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
2422         skip the construct in the format string but do not record anything.
2423         * stdio-common/bug22.c: Adjust to test both width/prevision
2424         INT_MAX overflow as well as total length INT_MAX overflow.  Check
2425         explicitly for proper errno values.
2426
2427 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
2428
2429         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
2430         CHAR_MAX.
2431         * string/test-strcmp.c [! WIDE]: Likewise.
2432         * time/tst-mktime2.c: Likewise for INT_MAX.
2433         * string/test-string.h: #include <sys/param.h> for MIN.
2434
2435         * csu/init-first.c (__libc_init_first): Call __ctype_init.
2436         * sysdeps/i386/init-first.c (init): Likewise.
2437         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
2438         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
2439         * sysdeps/sh/init-first.c (init): Likewise.
2440
2441 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
2442
2443         * po/ru.po: Update from translation team.
2444         * po/vi.po: Likewise.
2445
2446 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
2447
2448         * resolv/nss_dns/dns-host.c: Merge copyright years.
2449
2450 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2451
2452         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
2453         Optimize memcpy with prefetch if
2454         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
2455         src, dst pointers have unequal 16 byte alignments.
2456
2457 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2458
2459         [BZ #13928]
2460         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
2461         from a CNAME entry and return the minimum ttl for the query.
2462         (gaih_getanswer_slice): Likewise.
2463
2464 2012-03-30  Jeff Law  <law@redhat.com>
2465
2466         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
2467         due to long keys.
2468         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
2469         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
2470
2471         * resolv/nss_dns/dns-host.c: Update copyright year.
2472
2473 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
2474
2475         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
2476         requests to save a system call.  Fix check that all bytes are sent.
2477
2478         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
2479         comments for sendmmsg.
2480
2481 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2482
2483         [BZ #13691]
2484         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
2485         with only 1 character between 0x0041 and 0x01b0.
2486         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
2487         * wcsmbs/tst-mbsnrtowcs.c: New file.
2488
2489 2012-03-29  David S. Miller  <davem@davemloft.net>
2490
2491         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
2492         small copies by hand.
2493
2494 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2495
2496         [BZ #13761]
2497         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
2498         _nss_compat_initgroups_dyn): Fall back to malloc/free
2499         for large group memberships.
2500
2501 2012-03-28  David S. Miller  <davem@davemloft.net>
2502
2503         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
2504         that branches into memcpy.
2505         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2506         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
2507         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
2508         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
2509         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
2510         bits.
2511         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
2512         implementation too.
2513         * sysdeps/sparc/mempcpy.S: New file.
2514
2515         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
2516         the IFUNC routine in the libc case.
2517         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
2518
2519         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
2520         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
2521         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
2522         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
2523         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
2524         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
2525         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
2526         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
2527
2528         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
2529         loop to 256 bytes instead of 64 bytes and fix test signedness.
2530
2531         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
2532         * sysdeps/sparc/sparc32/Makefile: rather than here...
2533         * sysdeps/sparc/sparc64/Makefile: and here.
2534
2535 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
2536
2537         * malloc/mallocbug.c: Avoid warnings about unused variables.
2538
2539 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2540
2541         [BZ #13760]
2542         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
2543         in the right place. Discard and retry query if response is
2544         larger than input buffer size.
2545
2546 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
2547
2548         [BZ #369]
2549         [BZ #2678]
2550         [BZ #3866]
2551         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
2552         x for large integer exponent.
2553         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
2554         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
2555         sign of result as needed afterwards.
2556         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2557         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
2558         result for underflowing pow the same as for overflow.
2559         (__kernel_standard_l): Handle powl overflow and underflow here
2560         rather than calling __kernel_standard.
2561         * math/libm-test.inc (pow_test): Add more tests.
2562
2563         [BZ #3868]
2564         [BZ #13879]
2565         [BZ #13910]
2566         [BZ #13911]
2567         [BZ #13912]
2568         [BZ #13913]
2569         [BZ #13915]
2570         [BZ #13916]
2571         [BZ #13917]
2572         [BZ #13918]
2573         [BZ #13919]
2574         [BZ #13920]
2575         [BZ #13921]
2576         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
2577         * sysdeps/ieee754/k_standard.c: Include <float.h>.
2578         (__kernel_standard_l): New function.
2579         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
2580         __kernel_standard.
2581         * math/w_acosl.c (__acosl): Likewise.
2582         * math/w_asinl.c (__asinl): Likewise.
2583         * math/w_atan2l.c (__atan2l): Likewise.
2584         * math/w_atanhl.c (__atanhl): Likewise.
2585         * math/w_coshl.c (__coshl): Likewise.
2586         * math/w_exp10l.c (__exp10l): Likewise.
2587         * math/w_exp2l.c (__exp2l): Likewise.
2588         * math/w_fmodl.c (__fmodl): Likewise.
2589         * math/w_hypotl.c (__hypotl): Likewise.
2590         * math/w_j0l.c (__j0l, __y0l): Likewise.
2591         * math/w_j1l.c (__j1l, __y1l): Likewise.
2592         * math/w_jnl.c (__jnl, __ynl): Likewise.
2593         * math/w_lgammal.c (__lgammal): Likewise.
2594         * math/w_log10l.c (__log10l): Likewise.
2595         * math/w_log2l.c (__log2l): Likewise.
2596         * math/w_logl.c (__logl): Likewise.
2597         * math/w_powl.c (__powl): Likewise.
2598         * math/w_remainderl.c (__remainderl): Likewise.
2599         * math/w_scalbl.c (sysv_scalbl): Likewise.
2600         * math/w_sinhl.c (__sinhl): Likewise.
2601         * math/w_sqrtl.c (__sqrtl): Likewise.
2602         * math/w_tgammal.c (__tgammal): Likewise.
2603         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
2604         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
2605         * math/libm-test.inc (acos_test): Add more tests.
2606         (acosh_test): Likewise.
2607         (asin_test): Likewise.
2608         (atanh_test): Likewise.
2609         (exp_test): Likewise.
2610         (exp10_test): Likewise.
2611         (exp2_test): Likewise.
2612         (expm1_test): Likewise.
2613         (lgamma_test): Likewise.
2614         (log_test): Likewise.
2615         (log10_test): Likewise.
2616         (log1p_test): Likewise.
2617         (log2_test): Likewise.
2618         (pow_test): Do not allow some spurious overflow exceptions.
2619         (sqrt_test): Add more tests.
2620         (tgamma_test): Likewise.
2621         (y0_test): Likewise.
2622         (y1_test): Likewise.
2623         (yn_test): Likewise.
2624
2625 2012-03-27  Anton Blanchard  <anton@samba.org>
2626
2627         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
2628         MAP_HUGETLB.
2629         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2630         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2631         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2632
2633 2012-03-27  David S. Miller  <davem@davemloft.net>
2634
2635         * conform/Makefile: Run run-conformtest.sh using $(BASH).
2636
2637         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
2638         have-as-vis3 check.
2639
2640 2012-03-27  Andreas Jaeger  <aj@suse.de>
2641
2642         * sysdeps/x86_64/elf/configure.in: Moved to ...
2643         * sysdeps/x86_64/configure.in: ... here.
2644         * sysdeps/x86_64/elf/start.S: Moved to ...
2645         * sysdeps/x86_64/start.S: ... here.
2646         * sysdeps/x86_64/elf/configure: Delete.
2647
2648         * sysdeps/x86_64/configure.in: Merge contents from
2649         sysdeps/i386/configure.in (without i686 check).
2650
2651         * sysdeps/i386/elf/Versions: Merge into ...
2652         * sysdeps/i386/Versions: ... this.
2653         * sysdeps/i386/elf/Versions: Delete file.
2654         * sysdeps/i386/elf/start.S: Moved to ...
2655         * sysdeps/i386/start.S: ...here.
2656         * sysdeps/i386/elf/configure.in: Merge into...
2657         * sysdeps/i386/configure.in: ...here.
2658         * sysdeps/i386/elf/configure.in: Delete file.
2659         * sysdeps/i386/elf/configure: Delete file.
2660
2661         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
2662         * debug/backtracesyms.c: ... here.
2663         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
2664         * debug/backtracesymsfd.c: ... here.
2665         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
2666         * sysdeps/generic/ifunc-sel.h: ... here.
2667
2668         * sysdeps/unix/i386/start.c: Delete file.
2669         * sysdeps/unix/sparc/start.c: Delete file.
2670         * sysdeps/unix/start.c: Delete file.
2671
2672         * sysdeps/sh/elf/configure.in: Moved to ...
2673         * sysdeps/sh/configure.in: ... here.
2674         * sysdeps/sh/elf/start.S: Moved to ...
2675         * sysdeps/sh/start.S: ... here.
2676         * sysdeps/sh/elf/configure: Delete file.
2677
2678         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
2679         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
2680         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
2681         * sysdeps/powerpc/powerpc64/entry.h: ... here.
2682         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
2683         * sysdeps/powerpc/powerpc64/start.S: here.
2684         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
2685         * sysdeps/powerpc/powerpc64/Makefile: ... this.
2686         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
2687         * sysdeps/powerpc/powerpc64/configure.in: ... this.
2688         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
2689
2690         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
2691         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
2692         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
2693         * sysdeps/powerpc/powerpc32/start.S: ... here.
2694         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
2695         * sysdeps/powerpc/powerpc32/configure.in: ... this.
2696         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
2697
2698         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
2699         * sysdeps/powerpc/ifunc-sel.h: ... here.
2700         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
2701         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
2702
2703         * sysdeps/sparc/elf/configure.in: Moved to ...
2704         * sysdeps/sparc/configure.in: ... here.
2705         * sysdeps/sparc/elf/configure: Delete file.
2706         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
2707         * sysdeps/sparc/sparc32/start.S: ... here.
2708         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
2709         * sysdeps/sparc/sparc64/start.S: ... here.
2710         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
2711         * sysdeps/sparc/sparc32/Makefile: ... this.
2712         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
2713         * sysdeps/sparc/sparc64/Makefile: ... this.
2714
2715         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
2716         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
2717         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
2718         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
2719         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
2720         * sysdeps/s390/s390-32/setjmp.S: ... here.
2721         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
2722         * sysdeps/s390/s390-32/configure.in: ... here.
2723         * sysdeps/s390/s390-32/elf/configure: Delete file.
2724         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
2725         * sysdeps/s390/s390-32/start.S: ... here.
2726
2727         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
2728         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
2729         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
2730         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
2731         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
2732         * sysdeps/s390/s390-64/setjmp.S: ... here.
2733         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
2734         * sysdeps/s390/s390-64/configure.in: ... here
2735         * sysdeps/s390/s390-64/elf/configure: Delete file.
2736         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
2737         * sysdeps/s390/s390-64/start.S: ... here.
2738         * sysdeps/s390/s390-64/elf/configure: Delete.
2739
2740         * configure.in: Remove support for elf directories in sysdeps.
2741
2742         * configure: Regenerated.
2743         * sysdeps/i386/configure: Regenerated.
2744         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2745         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2746         * sysdeps/s390/s390-32/configure: Regenerated.
2747         * sysdeps/s390/s390-64/configure: Regenerated.
2748         * sysdeps/sh/configure: Regenerated.
2749         * sysdeps/sparc/configure: Regenerated.
2750         * sysdeps/x86_64/configure: Regenerated.
2751
2752 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
2753
2754         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2755
2756         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
2757         denormal result into account.
2758
2759 2012-03-25  Roland McGrath  <roland@hack.frob.com>
2760
2761         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
2762         Reported by Allan McRae <allan@archlinux.org>.
2763
2764 2012-03-23  Jeff Law  <law@redhat.com>
2765
2766         * nss/getnssent.c (__nss_getent): Fix typo.
2767
2768 2012-03-23  David S. Miller  <davem@davemloft.net>
2769
2770         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2771
2772 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
2773
2774         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
2775         to pad to uint64_t for each field.
2776         (dl_tls_index): Replace unsigned long with uint64_t.
2777
2778 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
2779         Paul Pluzhnikov  <ppluzhnikov@google.com>
2780
2781         [BZ #6528]
2782         * grp/Makefile (otherlibs): Don't set it.
2783         * inet/Makefile (otherlibs): Likewise.
2784         * login/Makefile (otherlibs): Likewise.
2785         * nscd/Makefile (otherlibs): Likewise.
2786         * posix/Makefile (otherlibs): Likewise.
2787         * pwd/Makefile (otherlibs): Likewise.
2788         * rt/Makefile (otherlibs): Likewise.
2789         * sunrpc/Makefile (otherlibs): Likewise.
2790         * nss/Makefile (otherlibs): Likewise.
2791         Add libnss_files to routines and static-only-routines.
2792         ($(objpfx)getent): Remove rule.
2793         * resolv/Makefile: Add libnss_dns and libresolv to routines and
2794         static-only-routines.
2795
2796 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
2797
2798         [BZ #13892]
2799         * math/s_cexp.c: Include <float.h>.
2800         (__cexp): Handle exp result overflowing not necessarily
2801         overflowing both real and imaginary parts of result.
2802         * math/s_cexpf.c: Likewise.
2803         * math/s_cexpl.c: Likewise.
2804         * math/libm-test.inc (cexp_test): Add more tests.
2805         * sysdeps/i386/fpu/libm-test-ulps: Update.
2806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2807
2808 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2809
2810         * include/link.h (ELFW): New macro.
2811         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
2812         Replace ELF64_R_TYPE with ELFW(R_TYPE).
2813
2814 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2815
2816         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
2817         with uint64_t.
2818
2819 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2820
2821         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
2822         declaration.
2823         (struct La_x32_retval): Likewise.
2824
2825 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2826
2827         * sysdeps/x86_64/preconfigure.in: New file.
2828         * sysdeps/x86_64/preconfigure: New generated file.
2829
2830 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
2831
2832         [BZ #13824]
2833         * math/e_exp2l.c: Include <float.h>.
2834         (__ieee754_exp2l): Handle overflow and underflow cases
2835         separately.  Only pass fractional part of argument to
2836         __ieee754_expl.
2837         * math/libm-test.inc (exp2_test): Add more tests.
2838
2839         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
2840         negating x to take absolute value.
2841         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
2842         Likewise.
2843         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
2844         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
2845         Likewise.
2846         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
2847         computing low part if x was negated.
2848         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
2849
2850 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2851
2852         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
2853         la_x32_gnu_pltexit.
2854         (pltexit): Cast int_retval to ptrdiff_t.
2855         * elf/tst-auditmod3b.c: Likewise.
2856         * elf/tst-auditmod4b.c: Likewise.
2857         * elf/tst-auditmod5b.c: Likewise.
2858         * elf/tst-auditmod6b.c: Likewise.
2859         * elf/tst-auditmod6c.c: Likewise.
2860         * elf/tst-auditmod7b.c: Likewise.
2861
2862         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
2863         and x32_gnu_pltexit.
2864
2865         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
2866         __ELF_NATIVE_CLASS.
2867         (La_x32_regs): New macro.
2868         (La_x32_retval): Likewise.
2869         (la_x32_gnu_pltenter): New function prototype.
2870         (la_x32_gnu_pltexit): Likewise.
2871
2872 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
2873
2874         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
2875         exponent.
2876
2877         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2878
2879         * configure.in (libc_cv_cc_nofma): Check for option to disable
2880         generation of FMA instructions.
2881         * configure: Regenerate.
2882         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
2883         * sysdeps/ieee754/dbl-64/Makefile: New file.
2884         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2885         Remove brandred-fma4.
2886         (CFLAGS-brandred-fma4.c): Remove.
2887         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
2888         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
2889         define.
2890         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
2891         define.
2892
2893 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2894
2895         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
2896         LLONG_MAX != LONG_MAX.
2897         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2898         (_fitoa_word): Likewise.
2899         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
2900         LLONG_MAX != LONG_MAX.
2901         * stdio-common/_itowa.h: Include <_itoa.h>.
2902         (_itowa_word): Use _ITOA_WORD_TYPE on value.
2903         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
2904         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
2905         only if not defined.
2906         (_ITOA_WORD_TYPE): Likewise.
2907         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2908         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
2909
2910 2012-03-21  David S. Miller  <davem@davemloft.net>
2911
2912         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2913
2914 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2915
2916         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
2917         of x86_64 when setting libc_cv_slibdir, libdir and
2918         libc_cv_localedir.
2919         * sysdeps/unix/sysv/linux/configure: Regenerated.
2920
2921 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2922
2923         * manual/lang.texi (Old Varargs): Remove section.
2924         (How Variadic): Update menu.
2925         (va_start): Do not mention varargs.h.
2926
2927 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2928             Joseph Myers  <joseph@codesourcery.com>
2929
2930         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
2931         link test.
2932         * configure: Regenerated.
2933
2934 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2935
2936         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
2937         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
2938         conformtest.pl
2939
2940 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2941
2942         * NOTES: Remove.
2943         * Makefile (files-for-dist): Remove NOTES.
2944         (NOTES): Remove rule.
2945         * README: Don't refer to NOTES.
2946         * manual/creature.texi: Don't include macros.texi.
2947         * manual/intro.texi (creature.texi): Remove comment referring to
2948         NOTES.
2949
2950         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
2951         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
2952         * configure: Regenerated.
2953         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
2954         LIBC_TRY_CC_OPTION.
2955         (libc_cv_as_i686): Likewise.
2956         (libc_cv_cc_avx): Likewise.
2957         (libc_cv_cc_sse2avx): Likewise.
2958         (libc_cv_cc_fma4): Likewise.
2959         (libc_cv_cc_novzeroupper): Likewise.
2960         * sysdeps/i386/configure: Regenerated.
2961
2962         [BZ #13883]
2963         * sysdeps/i386/fpu/s_cexp.S: Remove.
2964         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
2965         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
2966         * math/libm-test.inc (cexp_test): Add more tests.
2967         * sysdeps/i386/fpu/libm-test-ulps: Update.
2968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2969
2970 2012-03-21  Allan McRae  <allan@archlinux.org>
2971
2972         * timezone/Makefile: Do not install iso3166.tab and zone.tab
2973
2974 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2975
2976         [BZ #13871]
2977         * math/w_exp2.c: Do not include <float.h>.
2978         (o_threshold, u_threshold): Remove.
2979         (__exp2): Calculate result before checking finiteness and calling
2980         __kernel_standard.
2981         * math/w_exp2f.c: Likewise.
2982         * math/w_exp2l.c: Likewise.
2983         * math/libm-test.inc (exp2_test): Require overflow exception for
2984         1e6 input.
2985
2986         [BZ #3866]
2987         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
2988         range of signed 64-bit integers before using fistpll.  Remove
2989         checks for whether integers fit in mantissa bits.
2990         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
2991         the range of signed 32-bit integers before using fistpl.  Remove
2992         checks for whether integers fit in mantissa bits.
2993         * sysdeps/i386/fpu/e_powl.S (p64): New object.
2994         (__ieee754_powl): Test for y outside the range of signed 64-bit
2995         integers before using fistpll.  Reduce 64-bit values to 63-bit
2996         ones as needed.
2997         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
2998         divide-by-zero is raised for zero to large negative powers.
2999         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
3000         (__ieee754_powl): Test for y outside the range of signed 64-bit
3001         integers before using fistpll.  Reduce 64-bit values to 63-bit
3002         ones as needed.
3003         * math/libm-test.inc (pow_test): Add more tests.
3004
3005 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
3006
3007         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
3008         <stdio-common/_itoa.h>.
3009         * debug/segfault.c: Likewise.
3010         * elf/dl-cache.c: Likewise.
3011         * elf/dl-minimal.c: Likewise.
3012         * elf/dl-misc.c: Likewise.
3013         * elf/dl-sysdep.c: Likewise.
3014         * elf/dl-version.c: Likewise.
3015         * elf/rtld.c: Likewise.
3016         * hurd/hurdsock.c: Likewise.
3017         * hurd/lookup-retry.c: Likewise.
3018         * malloc/malloc.c: Likewise.
3019         * malloc/mtrace.c: Likewise.
3020         * nscd/nscd_getgr_r.c: Likewise.
3021         * nscd/nscd_getpw_r.c: Likewise.
3022         * nscd/nscd_getserv_r.c: Likewise.
3023         * posix/getopt_init.c: Likewise.
3024         * posix/wordexp.c: Likewise.
3025         * stdio-common/_itoa.c: Likewise.
3026         * stdio-common/printf_fphex.c: Likewise.
3027         * stdio-common/vfprintf.c: Likewise.
3028         * string/_strerror.c: Likewise.
3029         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
3030         * sysdeps/i386/i686/hp-timing.h: Likewise.
3031         * sysdeps/mach/_strerror.c: Likewise.
3032         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
3033         * sysdeps/mach/hurd/sethostid.c: Likewise.
3034         * sysdeps/mach/hurd/xmknodat.c: Likewise.
3035         * sysdeps/mach/xpg-strerror.c: Likewise.
3036         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
3037         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
3038         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
3039         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
3040         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
3041         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
3042         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
3043         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
3044         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
3045         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
3046         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
3047         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
3048         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
3049         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
3050         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
3051         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3052         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
3053         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
3054         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
3055         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
3056         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
3057
3058         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
3059
3060         * stdio-common/_itoa.h: Moved to ...
3061         * sysdeps/generic/_itoa.h: Here.
3062
3063         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
3064
3065         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
3066         instead of "_itoa.h" and "_itowa.h".
3067         * stdio-common/vfprintf.: Likewise.
3068
3069 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
3070
3071         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
3072         <bits/wordsize.h>.
3073         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
3074         (__signbit): Likwise.
3075         (llrintf): Likwise.
3076         (llrint): Likwise.
3077
3078 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
3079
3080         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
3081         __WORDSIZE != 64.
3082
3083 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
3084
3085         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
3086         OVERFLOW_EXCEPTION_OK.
3087         * math/libm-test.inc ("Philosophy"): Update comment about
3088         exception testing.
3089         (OVERFLOW_EXCEPTION): Define.
3090         (OVERFLOW_EXCEPTION_OK): Likewise.
3091         (INVALID_EXCEPTION_OK): Renumber.
3092         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3093         (IGNORE_ZERO_INF_SIGN): Likewise.
3094         (test_exceptions): Handle FE_OVERFLOW.
3095         (exp10_test): Expect overflow exceptions.
3096         (exp2_test): Likewise.
3097         (expm1_test): Likewise.
3098         (nextafter_test): Likewise.
3099         (pow_test): Likewise.
3100         (scalbn_test): Likewise.
3101         (scalbln_test): Likewise.
3102
3103 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
3104
3105         * sysdeps/x86_64/bits/atomic.h
3106         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
3107         64bit integer.
3108         (atomic_exchange_acq): Likewise.
3109         (__arch_exchange_and_add_body): Likewise.
3110         (__arch_add_body): Likewise.
3111         (atomic_add_negative): Likewise.
3112         (atomic_add_zero): Likewise.
3113
3114 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
3115
3116         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
3117         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
3118
3119 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
3120
3121         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
3122         Check __x86_64__ instead of __WORDSIZE.
3123
3124 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
3125
3126         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
3127
3128 2012-03-19  David S. Miller  <davem@davemloft.net>
3129
3130         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3131
3132         * sysdeps/sparc/fpu/fenv_private.h: New file.
3133         * sysdeps/sparc/fpu/math_private.h: Use it.
3134         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
3135         Remove.
3136         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
3137         (libc_feholdexcept_setroundl): Remove.
3138         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
3139         Remove.
3140         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
3141         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
3142
3143 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
3144
3145         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
3146         int64_t instead of long int.
3147         (INSERT_WORDS64): Likwise.
3148
3149 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
3150
3151         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
3152         _Unwind_GetCFA return to _Unwind_Ptr first.
3153
3154 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
3155
3156         [BZ #13629]
3157         * math/s_clog.c: Include <float.h>.
3158         (__clog): Scale large or subnormal inputs.
3159         * math/s_clogf.c: Likewise.
3160         * math/s_clogl.c: Likewise.
3161         * math/s_clog10.c: Include <float.h>.
3162         (M_LOG10_2): Define.
3163         (__clog10): Scale large or subnormal inputs.
3164         * math/s_clog10f.c: Likewise.
3165         * math/s_clog10l.c: Likewise.
3166         * math/libm-test.inc (clog_test): Add more tests.
3167         (clog10_test): Likewise.
3168         * sysdeps/i386/fpu/libm-test-ulps: Update.
3169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3170
3171         [BZ #11451]
3172         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
3173         x and y.
3174         * math/libm-test.inc (atan2_test): Add another test.
3175
3176         * Makerules (common-objdir-compile): Remove.
3177         * sysdeps/unix/Makefile (config-generated): Do not add
3178         $(unix-generated) to variable.
3179         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
3180         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
3181         Remove rule.
3182         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
3183         Likewise.
3184         [generic bits/local_lim.h] (before-compile): Do not append to
3185         variable.
3186         [generic bits/local_lim.h] (common-generated): Likewise.
3187         [generic sys/param.h] (before-compile): Do not append to variable.
3188         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
3189         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
3190         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
3191         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
3192         include.
3193         [generic sys/param.h] (sys/param.h-includes): Remove variable.
3194         [generic sys/param.h] (sys/param.h-includes): Remove rule.
3195         [generic sys/param.h] ($(addprefix
3196         $(common-objpfx),$(sys/param.h-includes))): Likewise.
3197         [generic sys/param.h] (common-generated): Do not append to
3198         variable.
3199         [generic sys/param.h] (sysdep_headers): Likewise.
3200         [generic bits/errno.h] (before-compile): Do not append to
3201         variable.
3202         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
3203         rule.
3204         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
3205         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
3206         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
3207         [generic bits/errno.h] (common-generated): Do not append to
3208         variable.
3209         [generic bits/ioctls.h] (before-compile): Do not append to
3210         variable.
3211         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
3212         rule.
3213         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
3214         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
3215         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
3216         rule.
3217         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
3218         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
3219         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
3220         [generic bits/ioctls.h] (common-generated): Do not append to
3221         variable.
3222         [generic sys/syscall.h] (syscall.h): Remove variable.
3223         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
3224         rule.
3225         [generic sys/syscall.h] (before-compile): Do not append to
3226         variable.
3227         [generic sys/syscall.h] (common-generated): Likewise.
3228         * sysdeps/unix/errnos-tmpl.c: Remove file.
3229         * sysdeps/unix/errnos.awk: Likewise.
3230         * sysdeps/unix/ioctls-tmpl.c: Likewise.
3231         * sysdeps/unix/ioctls.awk: Likewise.
3232         * sysdeps/unix/mk-local_lim.c: Likewise.
3233         * sysdeps/unix/snarf-ioctls: Likewise.
3234
3235 2012-03-19  Richard Henderson  <rth@twiddle.net>
3236
3237         * sysdeps/i386/fpu/fenv_private.h: New file.
3238         * sysdeps/i386/fpu/math_private.h: Use it.
3239         (math_opt_barrier, math_force_eval): Remove.
3240         (libc_feholdexcept_setround_53bit): Remove.
3241         (libc_feupdateenv_53bit): Remove.
3242         * sysdeps/x86_64/fpu/math_private.h: Likewise.
3243         (math_opt_barrier, math_force_eval): Remove.
3244         (libc_feholdexcept): Remove.
3245         (libc_feholdexcept_setround): Remove.
3246         (libc_fetestexcept, libc_fesetenv): Remove.
3247         (libc_feupdateenv_test): Remove.
3248         (libc_feupdateenv, libc_feholdsetround): Remove.
3249         (libc_feresetround): Remove.
3250
3251         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
3252         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
3253
3254         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
3255         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
3256         (libc_feupdateenv_testl): New.
3257         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
3258         (libc_feupdateenv_testf): New.
3259         (libc_feupdateenv): Use libc_feupdateenv_test.
3260         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
3261         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
3262
3263         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
3264         (libc_feholdsetroundf, libc_feholdsetroundl): New.
3265         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
3266         (libc_feresetround_noex): New.
3267         (libc_feresetround_noexf): New.
3268         (libc_feresetround_noexl): New.
3269         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
3270         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
3271         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
3272         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
3273         SET_RESTORE_ROUND.
3274         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
3275         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
3276         (__cos): Likewise.
3277         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
3278         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
3279         SET_RESTORE_ROUND_NOEX.
3280         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
3281         SET_RESTORE_ROUND_NOEXF.
3282         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
3283         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
3284         (libc_feholdsetroundf): New.
3285         (libc_feresetround, libc_feresetroundf): New.
3286
3287         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
3288         (libc_feholdexcept_setround_53bit): Convert from macro to function.
3289         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
3290
3291         * sysdeps/generic/math_private.h: Include <fenv.h>.
3292         (default_libc_feholdexcept): New.
3293         (default_libc_feholdexcept_setround): New.
3294         (default_libc_fesetenv, default_libc_feupdateenv): New.
3295         (libc_feholdexcept): Only define if undefined.
3296         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
3297         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
3298         (libc_feholdexcept_setroundl): Likewise.
3299         (libc_feholdexcept_setround_53bit): Likewise.
3300         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
3301         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
3302         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
3303         (libc_feupdateenv_53bit): Likewise.
3304         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
3305         (libc_feholdexcept): Convert from macro to inline function.
3306         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
3307         (libc_fesetenv, libc_feupdateenv): Likewise.
3308
3309         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
3310         not previously defined.
3311         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
3312         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
3313         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
3314         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
3315         * sysdeps/ieee754/flt-32/math_private.h: New file.
3316         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
3317         math_private.h below SET_FLOAT_WORD.
3318         (__isnan, __isinf_ns, __finite): Remove.
3319         (__isnanf, __isinf_nsf, __finitef): Remove.
3320
3321 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
3322
3323         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3324
3325 2012-03-17  David S. Miller  <davem@davemloft.net>
3326
3327         [BZ #6471]
3328         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
3329         for 2.16.
3330
3331 2012-03-16  David S. Miller  <davem@davemloft.net>
3332
3333         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
3334         warnings.
3335
3336         [BZ #6471]
3337         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
3338         properly.
3339         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
3340         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
3341         sysdep_routines when subdir is sysvipc.
3342         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
3343         __getshmlba helper.
3344
3345         * sysdeps/sparc/fpu/libm-test/ulps: Update.
3346
3347 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3348
3349         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
3350         [__LP64__].
3351
3352 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3353
3354         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
3355         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
3356         (__lround): Renamed to ...
3357         (__llround): This.  Replace long int with long long int.
3358         Define lround functions as aliases of llround functions.
3359         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
3360
3361 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3362
3363         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3364         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
3365         adresses to uintptr_t.  Replace "long int" and "unsigned long
3366         int" with "greg_t" on va_arg.
3367
3368 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3369
3370         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
3371         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
3372
3373         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
3374         Move e_machine check before EI_CLASS check.  Handle x32
3375         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
3376         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
3377         SKIP_EM_IA_64 and include
3378         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
3379
3380         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
3381         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
3382         (add_system_dir): New macro.
3383
3384         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
3385         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
3386
3387 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
3388
3389         [BZ #2551]
3390         [BZ #2552]
3391         [BZ #2553]
3392         [BZ #2554]
3393         [BZ #2562]
3394         [BZ #2563]
3395         [BZ #2565]
3396         [BZ #2566]
3397         [BZ #2576]
3398         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
3399         (y0): Likewise.
3400         * math/w_j0f.c (j0f): Likewise.
3401         (y0f): Likewise.
3402         * math/w_j0l.c (__j0l): Likewise.
3403         (__y0l): Likewise.
3404         * math/w_j1.c (j1): Likewise.
3405         (y1): Likewise.
3406         * math/w_j1f.c (j1f): Likewise.
3407         (y1f): Likewise.
3408         * math/w_j1l.c (__j1l): Likewise.
3409         (__y1l): Likewise.
3410         * math/w_jn.c (jn): Likewise.
3411         (yn): Likewise.
3412         * math/w_jnf.c (jnf): Likewise.
3413         (ynf): Likewise.
3414         * math/w_jnl.c (__jnl): Likewise.
3415         (__ynl): Likewise.
3416         * math/libm-test.inc (j0_test): Add more tests.
3417         (j1_test): Likewise.
3418         (jn_test): Likewise.  Add trailing semicolon to existing test.
3419         (y0_test): Likewise.
3420         (y1_test): Likewise.
3421         * sysdeps/i386/fpu/libm-test-ulps: Update.
3422         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3423
3424         [BZ #13851]
3425         [BZ #13854]
3426         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
3427         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
3428         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
3429         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
3430         (__tanl): Set errno for infinite argument.
3431         * sysdeps/i386/fpu/mptan.c: Remove.
3432         * sysdeps/i386/fpu/s_tan.S: Likewise.
3433         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3434         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
3435         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3436         * math/libm-test.inc (tan_test): Add more tests and enable more
3437         tests for double and long double.
3438         * sysdeps/i386/fpu/libm-test-ulps: Update.
3439         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3440
3441 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3442
3443         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
3444         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
3445
3446 2012-03-16  Roland McGrath  <roland@hack.frob.com>
3447
3448         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
3449         * configure.in: Use it for both main tree and add-ons.
3450         * configure: Regenerated.
3451
3452 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3453
3454         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
3455
3456 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
3457
3458         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
3459         in comment.
3460
3461         [BZ #13851]
3462         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
3463         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
3464         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
3465         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
3466         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
3467         infinite argument.
3468         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
3469         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
3470         != 0 for prec == 2.
3471         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
3472         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
3473         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3474         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
3475         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3476         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
3477         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
3478         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
3479         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3480         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
3481         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3482         * math/libm-test.inc (cos_test): Add more tests and enable more
3483         tests for long double.
3484         (sin_test): Likewise.
3485         (sincos_test): Likewise.
3486         * sysdeps/i386/fpu/libm-test-ulps: Update.
3487         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3488
3489 2012-03-16  David S. Miller  <davem@davemloft.net>
3490
3491         * sysdeps/sparc/fpu/math_private.h: New file.
3492
3493 2012-03-15  David S. Miller  <davem@davemloft.net>
3494
3495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
3496         file.
3497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
3498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
3499         file.
3500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
3501         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
3502         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
3503         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
3504         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
3505         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
3506         sysdep routines.
3507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
3508
3509         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
3510         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
3511
3512         * sysdeps/sparc/sparc-ifunc.h: New file.
3513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
3514         sparc-ifunc.h
3515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
3516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3517         Likewise.
3518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
3519         Likewise.
3520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
3521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
3522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
3524         Likewise.
3525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
3527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
3529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
3530         Likewise.
3531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
3532         Likewise.
3533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
3534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
3535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
3536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
3537         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
3538         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
3539         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
3540         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
3541         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
3542         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
3543         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
3544         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
3545         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
3546         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
3547         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
3548         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
3549         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
3550         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
3551         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
3552         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
3553         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
3554         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
3555         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
3556         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
3557
3558 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
3559
3560         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
3561         scaling.
3562         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3563
3564 2012-03-15  Andreas Jaeger  <aj@suse.de>
3565
3566         [BZ #13852]
3567         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
3568         ieee754/flt-32 implementation for sin, cos and sincos.
3569         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
3570         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3571         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
3572         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3573         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
3574         ieee754/flt-32 implementation for tan.
3575
3576         * math/libm-test.inc (cos_test): Enable some large input tests for
3577         float as well
3578         (sin_test): Likewise.
3579         (sincos_test): Likewise.
3580         (tan_test): Add tests for large input.
3581
3582         * sysdeps/i386/fpu/libm-test-ulps: Update.
3583
3584 2012-03-15  Andreas Jaeger  <aj@suse.de>
3585
3586         [BZ #13658]
3587         * math/libm-test.inc (cos_test): Add more test cases.
3588         (sin_test): Likewise.
3589         (sincos_test): Likewise.
3590
3591 2012-03-15  Andreas Jaeger  <aj@suse.de>
3592
3593         [BZ #13837]
3594         * math/libm-test.inc (cos_test): Add a test case for large input
3595         value.
3596         (sin_test): Likewise.
3597         (sincos_test): Likewise.
3598
3599 2012-03-15  Andreas Jaeger  <aj@suse.de>,
3600         Joseph Myers  <joseph@codesourcery.com>
3601
3602         [BZ #13658]
3603         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
3604         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
3605         * sysdeps/i386/fpu/branred.c: Likewise.
3606         * sysdeps/i386/fpu/dosincos.c: Likewise.
3607         * sysdeps/i386/fpu/mpa.c: Likewise.
3608         * sysdeps/i386/fpu/s_cos.S: Likewise.
3609         * sysdeps/i386/fpu/s_sin.S: Likewise.
3610         * sysdeps/i386/fpu/s_sincos.S: Likewise.
3611         * sysdeps/i386/fpu/sincos32.c: Likewise.
3612
3613         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
3614         Define.
3615         (libc_feupdateenv_53bit): Define.
3616         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
3617         Define.
3618         (libc_feupdateenv_53bit): Define.
3619
3620         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
3621         53 bit (without extend i386 double precision).
3622
3623         * math/libm-test.inc (sincos_test): Add tests for large input.
3624         (sin): Likewise.
3625         (cos): Likewise.
3626
3627         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
3628
3629 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
3630
3631         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3632
3633 2012-03-15  David S. Miller  <davem@davemloft.net>
3634
3635         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
3636         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
3637         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
3638         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
3639         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
3640         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
3641         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
3642         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
3643         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
3644         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
3645         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
3646         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
3647         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
3648         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
3649         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
3650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
3651         file.
3652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
3653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
3654         file.
3655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
3656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
3657         file.
3658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
3659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
3660         file.
3661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
3662         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
3663         fmin/fmax sysdep routines.
3664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
3665
3666 2012-03-14  David S. Miller  <davem@davemloft.net>
3667
3668         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
3669         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
3670         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
3671         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
3672         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
3673         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
3674         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
3675         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
3676         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
3677         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
3678         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
3679         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
3680         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
3681         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
3682         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
3683         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
3684         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
3685         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
3686         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
3687         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
3688         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
3689         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
3690         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
3691         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
3692         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
3693         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
3694         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
3695         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
3696         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
3697         routines.
3698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
3699         file.
3700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
3701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
3702         file.
3703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
3704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
3705         file.
3706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
3707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
3708         file.
3709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
3710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
3711         file.
3712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
3713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
3714         file.
3715         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
3716         file.
3717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
3718         file.
3719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
3720         file.
3721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
3722         New file.
3723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
3724         file.
3725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
3726         file.
3727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
3728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
3729         file.
3730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
3731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
3732         file.
3733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
3734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
3735         file.
3736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
3737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
3738         VIS3 routines.
3739
3740         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
3741         New file.
3742
3743         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3744
3745         * sysdeps/sparc/configure.in: New file.
3746         * sysdeps/sparc/configure: Generate.
3747         * configure.in (libc_cv_sparc_as_vis3): Substitute.
3748         * configure: Regenerate.
3749         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
3750         * config.make.in (have-as-vis3): New.
3751         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
3752         available use -Av9d instead of -Av9a.
3753         * sysdeps/sparc/sparc64/Makefile: Likewise.
3754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
3755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
3756         New file.
3757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
3758         file.
3759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
3760         New file.
3761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
3762         file.
3763         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
3764         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
3765         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
3766         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
3767         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
3768
3769         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
3770         fzeros/fnegs to load 0x80000000 into a float register instead of
3771         using the stack.
3772         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
3773
3774 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
3775
3776         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3777         bits/syscall.h.
3778         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
3779         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
3780         ($(inst_includedir)/bits/syscall.h): Remove rule.
3781         ($(objpfx)bits/syscall.d): Include instead of
3782         $(objpfx)syscall-list.d.
3783         (generated): Change syscall-list.h and syscall-list.d to
3784         bits/syscall.h and bits/syscall.d.
3785
3786 2012-03-14  Roland McGrath  <roland@hack.frob.com>
3787
3788         [BZ #13846]
3789         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
3790
3791 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
3792
3793         [BZ #13841]
3794         * math/s_csqrt.c: Include <float.h>.
3795         (__csqrt): Scale large or subnormal inputs.
3796         * math/s_csqrtf.c: Likewise.
3797         * math/s_csqrtl.c: Likewise.
3798         * math/libm-test.inc (csqrt_test): Add more tests.
3799         * sysdeps/i386/fpu/libm-test-ulps: Update.
3800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3801
3802         [BZ #13840]
3803         * math/libm-test.inc (hypot_test): Add more tests.
3804
3805 2012-03-13  David S. Miller  <davem@davemloft.net>
3806
3807         [BZ #13840]
3808         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
3809         double-precision for the calculation instead of scaling.
3810
3811 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
3812
3813         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
3814         manipulate bits before adding and subtracting TWO52[sx].
3815         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
3816         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
3817         Likewise.
3818         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
3819
3820 2012-03-13  David S. Miller  <davem@davemloft.net>
3821
3822         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
3823         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
3824         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
3825         rtld-global-offsets.h
3826         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3827
3828         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
3829         large parameters.
3830
3831         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
3832
3833         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
3834         'err' in the ifdef scope in which it is actually used.
3835
3836         * nss/nss_db/db-init.c: Include string.h
3837
3838 2012-03-12  David S. Miller  <davem@davemloft.net>
3839
3840         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
3841         masking out of the most significant byte of random value used.
3842         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
3843         Fix coding style in previous change.
3844
3845         * sysdeps/unix/sysv/linux/kernel-features.h
3846         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
3847         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
3848         expression.
3849         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
3850         later.
3851
3852 2012-03-11  David S. Miller  <davem@davemloft.net>
3853
3854         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
3855         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
3856         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
3857         for 'resultvar' otherwise things get truncated on 64-bit.
3858
3859         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
3860         Fix masking out of the most significant byte of random value used.
3861
3862         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3863
3864 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
3865
3866         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3867
3868 2012-03-09  David S. Miller  <davem@davemloft.net>
3869
3870         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
3871         variables with appropriate CPP guards.
3872         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
3873         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
3874         on resulting framesize and the management of the outregs buffer for pltexit.
3875         Preserve floating point return values across _dl_call_pltexit call.
3876         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
3877         framesize and the management of the outregs buffer for pltexit.
3878         Preserve floating point return values across _dl_call_pltexit
3879         call.
3880         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
3881         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
3882         (print_exit): Fix format string for return register value.
3883
3884 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
3885
3886         * sunrpc/Makefile (others): Add rpcgen.
3887         ($(objpfx)rpcgen): Remove special build rule and dependency on
3888         libc.
3889         * sunrpc/rpcgen.c: New file.
3890
3891 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
3892
3893         [BZ #13673]
3894         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
3895         * stdio-common/bug-vfprintf-nargs.c: Likewise.
3896         * sysdeps/i386/crti.S: Likewise.
3897         * sysdeps/i386/crtn.S: Likewise.
3898         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
3899         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
3900         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
3901         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
3902         * sysdeps/sh/crti.S: Likewise.
3903         * sysdeps/sh/crtn.S: Likewise.
3904         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3905
3906         [BZ #13673]
3907         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
3908         with URL.
3909         * locale/programs/locfile-kw.gperf: Likewise.
3910         * locale/programs/charmap-kw.h: Regenerated.
3911         * locale/programs/locfile-kw.h: Likewise.
3912
3913         [BZ #13673]
3914         * intl/plural.y: Replace FSF snail mail address with URL.
3915         * intl/plural.c: Regenerated.
3916
3917 2012-03-09  Richard Henderson  <rth@twiddle.net>
3918
3919         * include/math_private.h: Remove file.
3920         * math/math_private.h: Move file ...
3921         * sysdeps/generic/math_private.h: ... here.
3922
3923         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
3924         * sysdeps/powerpc/fpu/math_private.h: Likewise.
3925         * sysdeps/x86_64/fpu/math_private.h: Likewise.
3926
3927         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
3928         and <math_private.h>.
3929         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
3930         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
3931         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
3932         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
3933         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
3934         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
3935         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3936         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3937         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
3938         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3939         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3940         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3941         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
3942         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3943         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
3944         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
3945         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
3946         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
3947         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3948         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
3949         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3950         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
3951         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
3952         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3953         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
3954         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3955         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
3956         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3957         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3958         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3959         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
3960         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3961         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
3962         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3963         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
3964         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
3965         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
3966         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
3967         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3968         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3969         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
3970         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
3971         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
3972         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3973         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
3974         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3975         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
3976         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3977         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
3978         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
3979         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3980         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
3981         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
3982         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3983         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
3984         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3985         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
3986         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
3987         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
3988         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
3989         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3990         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
3991         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3992         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
3993         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
3994         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3995         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3996         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3997         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
3998         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
3999         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
4000         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
4001         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
4002         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
4003         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
4004         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
4005         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
4006         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4007         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
4008         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
4009         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
4010         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
4011         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
4012         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
4013         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
4014         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
4015         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
4016         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
4017         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
4018         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4019         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4020         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
4021         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
4022         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
4023         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
4024         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
4025         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
4026         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
4027         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
4028         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4029         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
4030         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
4031         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
4032         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
4033         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4034         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
4035         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
4036         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
4037         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4038         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4039         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4040         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4041         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
4042         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4043         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
4044         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
4045         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4046         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4047         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4048         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
4049         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4050         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4051         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
4052         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
4053         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4054         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4055         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
4056         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
4057         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4058         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
4059         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
4060         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
4061         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4062         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
4063         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
4064         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
4065         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
4066         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4067         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
4068         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
4069         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
4070         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
4071         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
4072         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
4073         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
4074         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4075         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4076         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4077         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
4078         * sysdeps/ieee754/k_standard.c: Likewise.
4079         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
4080         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4081         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4082         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4083         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4084         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4085         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
4086         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4087         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4088         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4089         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4090         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4091         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4092         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4093         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4094         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4095         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4096         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4097         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4098         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4099         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4100         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4101         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4102         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4103         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4104         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4105         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4106         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4107         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4108         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4109         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4110         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4111         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4112         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4113         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
4114         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4115         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
4116         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
4117         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4118         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4119         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4120         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4121         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4122         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4123         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4124         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4125         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4126         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4127         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4128         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4129         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4130         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4131         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4132         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
4133         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4134         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4135         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
4136         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4137         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4138         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4139         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4140         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
4141         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
4142         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
4143         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
4144         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4145         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
4146         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
4147         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
4148         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
4149         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
4150         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4151         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
4152         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
4153         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
4154         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
4155         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
4156         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
4157         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
4158         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
4159         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
4160         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
4161         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4162         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4163         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
4164         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4165         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4166         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
4167         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4168         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4169         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
4170         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4171         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
4172         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
4173         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4174         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4175         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
4176         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
4177         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
4178         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
4179         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4180         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4181         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4182         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4183         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
4184         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4185         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4186         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
4187         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
4188         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4189         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4190         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4191         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
4192         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4193         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
4194         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
4195         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
4196         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4197         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
4198         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
4199         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
4200         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4201         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
4202         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
4203         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4204         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
4205         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4206         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4207         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4208         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4209         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
4210         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4211         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
4212         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
4213         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
4214         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
4215         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
4216         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
4217         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
4218         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
4219         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
4220         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
4221         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
4222         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
4223         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
4224         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
4225         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
4226         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4227         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4228         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
4229         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
4230         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
4231         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
4232         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
4233         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
4234         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
4235         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4236         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4237         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
4238         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
4239         * sysdeps/ieee754/s_lib_version.c: Likewise.
4240         * sysdeps/ieee754/s_matherr.c: Likewise.
4241         * sysdeps/ieee754/s_signgam.c: Likewise.
4242         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
4243         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
4244         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
4245         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
4246         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
4247         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4248         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
4249         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
4250         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
4251         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
4252         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
4253         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
4254         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
4255         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
4256         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
4257         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
4258         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4259         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
4260         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4261         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4262         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4263
4264 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
4265
4266         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
4267         * sunrpc/rpc_main.c: Likewise.
4268         * sunrpc/rpc_svcout.c: Likewise.
4269
4270 2012-03-09  David S. Miller  <davem@davemloft.net>
4271
4272         * include/math_private.h: New file.
4273
4274 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
4275
4276         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
4277         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
4278         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
4279         from <bits/socket_type.h>.
4280         (enum __socket_type): Don't define here.
4281         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
4282         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4283         bits/socket_type.h.
4284
4285         [BZ #13566]
4286         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
4287         checking __USE_GNU.
4288
4289         * Makerules ($(inst_includedir)/%.h): New rule.
4290         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
4291         (install-others): Remove variable setting.
4292         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
4293
4294 2012-03-08  Richard Henderson  <rth@twiddle.net>
4295
4296         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
4297         from macro to inline function; merge with the
4298         !__LIBC_INTERNAL_MATH_INLINES version.
4299         (__ieee754_sqrtf): Likewise.
4300
4301         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
4302         to inline function.
4303         (__rintf, __floor, __floorf): Likewise.
4304
4305         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
4306         macro to inline function.
4307         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
4308
4309         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
4310         not <math/math_private.h>.
4311
4312 2012-03-08  David S. Miller  <davem@davemloft.net>
4313
4314         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
4315         copyright year.
4316         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
4317
4318 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
4319
4320         * resolv/gai_misc.c (handle_requests): Fix struct timespec
4321         normalization.
4322         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
4323         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
4324
4325 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
4326
4327         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
4328         be defined individually, they must be defined as a block.  Define
4329         S for printing a string instead of hidint the different by using a
4330         macro for adding the 'l'.
4331         * stdio-common/tst-fphex-wide.c: Adjust.
4332
4333 2012-03-07  Marek Polacek  <polacek@redhat.com>
4334
4335         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
4336
4337 2012-03-08  Marek Polacek  <polacek@redhat.com>
4338
4339         [BZ #13806]
4340         * stdio-common/Makefile (tests): Add tst-fphex-wide.
4341         * stdio-common/tst-fphex.c: Define a few macros to make the
4342         test reusable.  Use them.
4343         * stdio-common/tst-fphex-wide.c: New file.
4344
4345 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
4346
4347         [BZ #6911]
4348         * manual/macros.texi (gnusystems): New macro.
4349         (nongnusystems): Likewise.
4350         (gnulinuxhurdsystems): Likewise.
4351         (gnuhurdsystems): Likewise..
4352         (gnulinuxsystems): Likewise.
4353         * manual/charset.texi: Use new macros or @theglibc{} to refer to
4354         variants of the GNU system, not "GNU system".
4355         * manual/conf.texi: Likewise.
4356         * manual/errno.texi: Likewise.  Update example of errno macro
4357         expansion.
4358         * manual/filesys.texi: Likewise.
4359         (getumask): Document as specific to GNU/Hurd.
4360         * manual/install.texi: Likewise.  Reword some references to
4361         GNU/Linux.
4362         * manual/intro.texi: Likewise.
4363         * manual/io.texi: Likewise.
4364         (File Name Portability): Detail which constraints are inapplicable
4365         to all GNU systems and which are only inapplicable to GNU/Hurd.
4366         * manual/job.texi: Likewise.
4367         * manual/llio.texi: Likewise.
4368         (O_NOCTTY): Document as present on GNU/Linux.
4369         * manual/maint.texi: Likewise.
4370         * manual/memory.texi: Likewise.
4371         * manual/pattern.texi: Likewise.
4372         * manual/pipe.texi: Likewise.
4373         * manual/process.texi: Likewise.
4374         * manual/resource.texi: Likewise.
4375         (RUSAGE_CHILDREN): Remove statement about specifying a particular
4376         child on GNU/Hurd.
4377         * manual/setjmp.texi: Likewise.
4378         * manual/signal.texi: Likewise.
4379         * manual/startup.texi: Likewise.
4380         * manual/stdio.texi: Likewise.
4381         * manual/terminal.texi: Likewise.
4382         (ONLCR): Document as POSIX.
4383         (OXTABS): Document availability on GNU/Linux as XTABS.
4384         (ONOEOT): Document availability separately from other bits.
4385         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
4386         * manual/time.texi: Likewise.
4387         * manual/users.texi: Likewise.
4388         * INSTALL: Regenerated.
4389         * sysdeps/gnu/errlist.c: Regenerated.
4390
4391         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
4392         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
4393         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
4394         puts.
4395         * configure: Regenerated.
4396
4397 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
4398
4399         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
4400         default includes instead of AC_HEADER_CHECK.
4401         * sysdeps/i386/configure: Regenerated.
4402
4403         [BZ #10716]
4404         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
4405         * math/s_cacoshf.c (__cacoshf): Likewise.
4406         * math/s_cacoshl.c (__cacoshl): Likewise.
4407         * math/s_casinh.c (__casinh): Set signs of result from argument.
4408         * math/s_casinhf.c (__casinhf): Likewise.
4409         * math/s_casinhl.c (__casinhl): Likewise.
4410         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
4411         (casinh_test): Add more tests.
4412         * sysdeps/i386/fpu/libm-test-ulps: Update.
4413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4414
4415 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
4416
4417         * po/zh_TW.po: Update from translation team.
4418
4419         * login/Makefile (distribute): Remove variable.
4420         * catgets/Makefile: Likewise.
4421         * mach/Makefile: Likewise.
4422         * malloc/Makefile: Likewise.
4423         * misc/Makefile: Likewise.
4424         * iconv/Makefile: Likewise.
4425         * nscd/Makefile: Likewise.
4426         * hurd/Makefile: Likewise.
4427         * manual/Makefile: Likewise.
4428         * locale/Makefile: Likewise.
4429         * intl/Makefile: Likewise.
4430         * conform/Makefile: Likewise.
4431         * nss/Makefile: Likewise.
4432         * time/Makefile: Likewise.
4433         * soft-fp/Makefile: Likewise.
4434         * dirent/Makefile: Likewise.
4435         * gmon/Makefile: Likewise.
4436         * po/Makefile: Likewise.
4437         * rt/Makefile: Likewise.
4438         * socket/Makefile: Likewise.
4439         * math/Makefile: Likewise.
4440         * signal/Makefile: Likewise.
4441         * debug/Makefile: Likewise.
4442         * elf/Makefile: Likewise.
4443         * timezone/Makefile: Likewise.
4444         * stdlib/Makefile: Likewise.
4445         * iconvdata/Makefile: Likewise.
4446         * sunrpc/Makefile: Likewise.
4447         * io/Makefile: Likewise.
4448         * argp/Makefile: Likewise.
4449         * inet/Makefile: Likewise.
4450         * hesiod/Makefile: Likewise.
4451         * grp/Makefile: Likewise.
4452         * csu/Makefile: Likewise.
4453         * wctype/Makefile: Likewise.
4454         * crypt/Makefile: Likewise.
4455         * libio/Makefile: Likewise.
4456         * string/Makefile: Likewise.
4457         * nis/Makefile: Likewise.
4458         * resolv/Makefile: Likewise.
4459         * stdio-common/Makefile: Likewise.
4460         * wcsmbs/Makefile: Likewise.
4461         * dlfcn/Makefile: Likewise.
4462         * posix/Makefile: Likewise.
4463
4464         [BZ #6959]
4465         * timezone/Makefile: Don't install timezone files, just the programs
4466         and scripts.
4467
4468 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
4469
4470         * nss/databases.def: Add missing gshadow entry.
4471
4472         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
4473
4474 2012-03-06  Marek Polacek  <polacek@redhat.com>
4475
4476         [BZ #13726]
4477         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
4478         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
4479         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
4480         * stdio-common/tst-long-dbl-fphex.c: New file.
4481
4482 2012-03-06  David S. Miller  <davem@davemloft.net>
4483
4484         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4485         (set_obp_int): New function.
4486         (get_obp_int): New function.
4487         (__get_clockfreq_via_dev_openprom): Likewise.
4488         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4489         Avoid unused variable warnings on 'val' and use builtin_expect.
4490         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
4491         __builtin_expect.
4492         (INLINE_CLONE_SYSCALL): Likewise.
4493
4494 2012-03-05  David S. Miller  <davem@davemloft.net>
4495
4496         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4497
4498 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
4499
4500         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4501
4502         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
4503         only for |x| >= 40.
4504         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
4505
4506 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
4507
4508         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
4509         Replace gettimeofday with __vdso_gettimeofday.
4510
4511         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4512         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
4513         __vdso_clock_gettime and __vdso_getcpu.
4514
4515         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
4516         time with __vdso_time.
4517
4518 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
4519
4520         * manual/lang.texi (size_t): Note types to which size_t may be
4521         equivalent with the GNU C Library, but do not describe when
4522         differences between them are significant.
4523
4524 2012-03-05  Andreas Jaeger  <aj@suse.de>
4525
4526         * sysdeps/i386/fpu/libm-test-ulps: Update.
4527
4528 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
4529
4530         [BZ #3976]
4531         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
4532         (__ieee754_pow): Save and restore rounding mode and use
4533         round-to-nearest for main computations.
4534         * math/libm-test.inc (pow_test_tonearest): New function.
4535         (pow_test_towardzero): Likewise.
4536         (pow_test_downward): Likewise.
4537         (pow_test_upward): Likewise.
4538         (main): Call the new functions.
4539         * sysdeps/i386/fpu/libm-test-ulps: Update.
4540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4541
4542         [BZ #3976]
4543         * math/libm-test.inc (cosh_test_tonearest): New function.
4544         (cosh_test_towardzero): Likewise.
4545         (cosh_test_downward): Likewise.
4546         (cosh_test_upward): Likewise.
4547         (sinh_test_tonearest): Likewise.
4548         (sinh_test_towardzero): Likewise.
4549         (sinh_test_downward): Likewise.
4550         (sinh_test_upward): Likewise.
4551         (main): Call the new functions.
4552         * sysdeps/i386/fpu/libm-test-ulps: Update.
4553         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4554
4555 2012-03-05  Tom de Vries  <tom@codesourcery.com>
4556
4557         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
4558         default stack guard is set in last bytes.
4559         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
4560
4561 2012-03-05  Kees Cook  <keescook@chromium.org>
4562
4563         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
4564
4565         [BZ #13656]
4566         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
4567         possibly allocate from heap instead of stack.
4568         * stdio-common/bug-vfprintf-nargs.c: New file.
4569         * stdio-common/Makefile (tests): Add nargs overflow test.
4570
4571 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
4572
4573         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4574
4575 2012-03-03  Marek Polacek  <polacek@redhat.com>
4576
4577         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
4578         * math/math_private.h: Likewise.
4579         * stdlib/tst-strtod.c: Likewise.
4580         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4581         * sysdeps/x86_64/bits/atomic.h: Likewise.
4582
4583 2012-03-02  David S. Miller  <davem@davemloft.net>
4584
4585         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
4586         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
4587         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
4588         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
4589         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
4590         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
4591         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
4592         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
4593
4594 2012-03-02  Roland McGrath  <roland@hack.frob.com>
4595
4596         [BZ #13792]
4597         * manual/examples/README: New file, says the example source files
4598         can be used under GPL>=2.
4599         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
4600         line containing just "*/".
4601         * manual/examples/add.c: Add copyright header (GPL>=2).
4602         * manual/examples/argp-ex1.c: Likewise.
4603         * manual/examples/argp-ex2.c: Likewise.
4604         * manual/examples/argp-ex3.c: Likewise.
4605         * manual/examples/argp-ex4.c: Likewise.
4606         * manual/examples/atexit.c: Likewise.
4607         * manual/examples/db.c: Likewise.
4608         * manual/examples/dir.c: Likewise.
4609         * manual/examples/dir2.c: Likewise.
4610         * manual/examples/execinfo.c: Likewise.
4611         * manual/examples/filecli.c: Likewise.
4612         * manual/examples/filesrv.c: Likewise.
4613         * manual/examples/fmtmsgexpl.c: Likewise.
4614         * manual/examples/genpass.c: Likewise.
4615         * manual/examples/inetcli.c: Likewise.
4616         * manual/examples/inetsrv.c: Likewise.
4617         * manual/examples/isockad.c: Likewise.
4618         * manual/examples/longopt.c: Likewise.
4619         * manual/examples/memopen.c: Likewise.
4620         * manual/examples/memstrm.c: Likewise.
4621         * manual/examples/mkfsock.c: Likewise.
4622         * manual/examples/mkisock.c: Likewise.
4623         * manual/examples/mygetpass.c: Likewise.
4624         * manual/examples/pipe.c: Likewise.
4625         * manual/examples/popen.c: Likewise.
4626         * manual/examples/rprintf.c: Likewise.
4627         * manual/examples/search.c: Likewise.
4628         * manual/examples/select.c: Likewise.
4629         * manual/examples/setjmp.c: Likewise.
4630         * manual/examples/sigh1.c: Likewise.
4631         * manual/examples/sigusr.c: Likewise.
4632         * manual/examples/stpcpy.c: Likewise.
4633         * manual/examples/strdupa.c: Likewise.
4634         * manual/examples/strftim.c: Likewise.
4635         * manual/examples/strncat.c: Likewise.
4636         * manual/examples/subopt.c: Likewise.
4637         * manual/examples/swapcontext.c: Likewise.
4638         * manual/examples/termios.c: Likewise.
4639         * manual/examples/testopt.c: Likewise.
4640         * manual/examples/testpass.c: Likewise.
4641         * manual/examples/timeval_subtract.c: Likewise.
4642
4643         [BZ #13792]
4644         * manual/time.texi (Elapsed Time): Move timeval_subtract example
4645         function to ...
4646         * manual/timeval_subtract.c.texi: ... here, new file.
4647
4648 2012-03-02  David S. Miller  <davem@davemloft.net>
4649
4650         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
4651
4652 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
4653
4654         [BZ #3976]
4655         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
4656         (__sin): Save and restore rounding mode and use round-to-nearest
4657         for all computations.
4658         (__cos): Save and restore rounding mode and use round-to-nearest
4659         for all computations.
4660         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
4661         <fenv.h>.
4662         (tan): Save and restore rounding mode and use round-to-nearest for
4663         all computations.
4664         * math/libm-test.inc (cos_test_tonearest): New function.
4665         (cos_test_towardzero): Likewise.
4666         (cos_test_downward): Likewise.
4667         (cos_test_upward): Likewise.
4668         (sin_test_tonearest): Likewise.
4669         (sin_test_towardzero): Likewise.
4670         (sin_test_downward): Likewise.
4671         (sin_test_upward): Likewise.
4672         (tan_test_tonearest): Likewise.
4673         (tan_test_towardzero): Likewise.
4674         (tan_test_downward): Likewise.
4675         (tan_test_upward): Likewise.
4676         (main): Call the new functions.
4677         * sysdeps/i386/fpu/libm-test-ulps: Update.
4678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4679
4680         [BZ #10135]
4681         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
4682         small n, then large n, before computing and testing k+n.
4683         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
4684         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
4685         Likewise.
4686         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
4687         Likewise.
4688         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
4689         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
4690         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
4691         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
4692         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
4693         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
4694         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
4695         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
4696         * math/libm-test.inc (scalbn_test): Add more tests.
4697         (scalbln_test): Likewise.
4698
4699         * manual/filesys.texi (mode_t): Describe constraints on size and
4700         signedness, not exact equivalence to a particular type.
4701         (ino_t): Likewise.
4702         (ino64_t): Likewise.
4703         (dev_t): Likewise.
4704         (nlink_t): Likewise.
4705         (blkcnt_t): Likewise.
4706         (blkcnt64_t): Likewise.
4707         * manual/llio.texi (off_t): Likewise.
4708
4709         [BZ #3976]
4710         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
4711         (__ieee754_exp): Save and restore rounding mode and use
4712         round-to-nearest for all computations.
4713         * math/libm-test.inc (exp_test_tonearest): New function.
4714         (exp_test_towardzero): Likewise.
4715         (exp_test_downward): Likewise.
4716         (exp_test_upward): Likewise.
4717         (main): Call the new functions.
4718         * sysdeps/i386/fpu/libm-test-ulps: Update.
4719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4720
4721 2012-03-01  Chris Demetriou  <cgd@google.com>
4722
4723         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
4724         have predictable order.
4725
4726 2012-03-01  David S. Miller  <davem@davemloft.net>
4727
4728         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
4729
4730         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
4731         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
4732         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
4733         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
4734
4735         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
4736         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
4737         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
4738         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
4739         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
4740         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
4741         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
4742         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
4743         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
4744
4745         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4746
4747         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
4748         * sysdeps/sparc/fpu/libm-test-ulps: to here.
4749         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
4750
4751         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
4752         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4753         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4754         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
4755         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
4756         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
4757         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
4758         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4759         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4760         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
4761         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
4762         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4763         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4764         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
4765         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4766         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4767         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
4768         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
4769         * sysdeps/sparc/elf/configure: Regenerated.
4770
4771 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
4772
4773         * configure.in (AS, LD): Require binutils 2.20 or later.
4774         * configure: Regenerated.
4775         * manual/install.texi (Tools for Compilation): Give binutils 2.20
4776         as required minimum version.
4777         * INSTALL: Regenerated.
4778
4779         [BZ #2541]
4780         [BZ #4108]
4781         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
4782         before squaring exponent.
4783         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
4784         bottom long double and 27 bits of top long double before squaring
4785         exponent.
4786         * math/libm-test.inc (erfc_test): Add more tests.
4787         * sysdeps/i386/fpu/libm-test-ulps: Update.
4788         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4790
4791 2012-03-01  Kai Tietz  <ktietz@redhat.com>
4792
4793         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
4794         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
4795         containing bit-fields.
4796         * soft-fp/extended.h (_FP_UNION_E): Likewise.
4797         * soft-fp/single.h (_FP_UNION_S): Likewise.
4798         * soft-fp/double.h (_FP_UNION_D): Likewise.
4799
4800 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
4801
4802         [BZ #13786]
4803         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
4804         not include ../strcmp.S.
4805         [USE_AS_STRNCASECMP_L]: Likewise.
4806         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
4807         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
4808         * sysdeps/i386/i686/multiarch/strncase_l-c.c
4809         (__strncasecmp_l_ia32): Define as alias to
4810         __strncasecmp_l_nonascii.
4811
4812         [BZ #5794]
4813         * math/libm-test.inc (expm1_test): Add test for bug 5794.
4814         * sysdeps/i386/fpu/libm-test-ulps: Update.
4815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4816
4817         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
4818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4819
4820 2012-02-29  Jeff Law  <law@redhat.com>
4821
4822         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
4823         out of bounds read.
4824
4825 2012-02-29  Marek Polacek  <polacek@redhat.com>
4826
4827         [BZ #13706]
4828         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
4829         * elf/Makefile: Add rules to run tst-unused-dep.out.
4830
4831 2012-02-28  David S. Miller  <davem@davemloft.net>
4832
4833         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
4834         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
4835         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
4836         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
4837         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
4838         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
4839
4840 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
4841
4842         * math/libm-test.inc (llround_test): Move one test from
4843         lround_test.  Use TEST_f_L in moved test.
4844         (lround_test): Move misplaced test to llround_test.  Add testcase
4845         from bug 2561.
4846
4847 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
4848
4849         * sysdeps/x86_64/fpu/e_expf.S: New file.
4850         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
4851
4852 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
4853
4854         [BZ #13637]
4855         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
4856         of remain_len that may cause incomplete multi-byte character and
4857         false match.
4858         * posix/bug-regex33.c: New file.
4859         * posix/Makefile (tests): Add bug-regex33.
4860
4861 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
4862
4863         * manual/macros.texi: New file.
4864         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
4865         * manual/libc.texinfo: Include macros.texi.
4866         * manual/creatute.texi: Likewise.
4867         * manual/install.texi: Likewise.
4868         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
4869         @glibcadj{} in references to the GNU C Library.
4870         * manual/charset.texi: Likewise.
4871         * manual/conf.texi: Likewise.
4872         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
4873         when not using those macros.
4874         * manual/creature.texi: Likewise.
4875         * manual/crypt.texi: Likewise.
4876         * manual/errno.texi: Likewise.
4877         * manual/filesys.texi: Likewise.
4878         * manual/header.texi: Likewise.
4879         * manual/install.texi: Likewise.
4880         * manual/intro.texi: Likewise.
4881         * manual/io.texi: Likewise.
4882         * manual/job.texi: Likewise.
4883         * manual/lang.texi: Likewise.
4884         * manual/libc.texiinfo: Likewise.
4885         * manual/llio.texi: Likewise.
4886         * manual/locale.texi: Likewise.
4887         * manual/maint.texi: Likewise.
4888         * manual/math.texi: Likewise.
4889         * manual/memory.texi: Likewise.
4890         * manual/message.texi: Likewise.
4891         * manual/nss.texi: Likewise.
4892         * manual/pattern.texi: Likewise.
4893         * manual/process.texi: Likewise.
4894         * manual/resource.texi: Likewise.
4895         * manual/search.texi: Likewise.
4896         * manual/setjmp.texi: Likewise.
4897         * manual/signal.texi: Likewise.
4898         * manual/socket.texi: Likewise.
4899         * manual/startup.texi: Likewise.
4900         * manual/stdio.texi: Likewise.
4901         * manual/string.texi: Likewise.
4902         * manual/sysinfo.texi: Likewise.
4903         * manual/syslog.texi: Likewise.
4904         * manual/terminal.texi: Likewise.
4905         * manual/time.texi: Likewise.
4906         * manual/users.texi: Likewise.
4907         * INSTALL: Regenerated.
4908         * NOTES: Regenerated.
4909         * sysdeps/gnu/errlist.c: Regenerated.
4910
4911 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
4912
4913         * include/dirent.h: Include <dirstream.h> before
4914         <dirent/dirent.h>.
4915
4916 2012-02-28  David S. Miller  <davem@davemloft.net>
4917
4918         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
4919         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
4920         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
4921         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
4922
4923 2012-02-27  David S. Miller  <davem@davemloft.net>
4924
4925         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
4926         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
4927         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
4928         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
4929
4930         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
4931         frame pointer instead of stack pointer relative arg slot.
4932         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
4933         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
4934         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
4935
4936 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
4937
4938         [BZ #3992]
4939         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
4940
4941 2012-02-27  David S. Miller  <davem@davemloft.net>
4942
4943         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
4944         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
4945         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
4946         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
4947         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
4948         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
4949         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
4950         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
4951
4952 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
4953
4954         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
4955         later.  Allow versions 5-9.
4956         * configure: Regenerated.
4957         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
4958         required minimum version and 4.6 as recommended version.  Do not
4959         mention bugs in GCC 2.7 and 2.8.
4960         * INSTALL: Regenerated.
4961
4962 2012-02-27  David S. Miller  <davem@davemloft.net>
4963
4964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
4965         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
4966         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
4967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
4968         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
4969         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
4970         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
4971         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
4972
4973         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
4974         manipulate bits before adding and subtracting TWO112[sx].
4975         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
4976
4977 2012-02-27  Roland McGrath  <roland@hack.frob.com>
4978
4979         [BZ #13775]
4980         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
4981         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
4982         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
4983         being in POSIX, because they are in 1003.1-2008.
4984
4985         * rt/tst-aio.c: Include <fcntl.h>.
4986         * rt/tst-aio7.c: Likewise.
4987         * rt/tst-aio64.c: Likewise.
4988
4989         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
4990
4991 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
4992
4993         * manual/install.texi (--with-headers): Describe headers as
4994         interface headers, not private headers.
4995         (Specific advice for GNU/Linux systems): Describe use of headers
4996         from "make headers_install", not private headers from older
4997         kernels.
4998         * INSTALL: Regenerated.
4999         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
5000         Change to 2.6.19.
5001         * sysdeps/unix/sysv/linux/configure: Regenerated.
5002
5003         * manual/llio.texi (fclean): Remove documentation.
5004
5005         * manual/Makefile (libc-texi-generated): New variable.  Include
5006         version.texi.
5007         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
5008         $(libc-texi-generated), not duplicated list of files.
5009         (version.texi, stamp-version): New rules.
5010         (realclean): Remove $(libc-texi-generated), not individual files
5011         from that list.  Do not remove dir-add.texinfo.
5012         * manual/libc.texinfo: Comment out uses of edition numbers and
5013         references to printed manual.  Remove last-updated dates.
5014         (EDITION): Comment out.
5015         (ISBN): Likewise.
5016         (VERSION, UPDATED): Remove.
5017         (version.texi): Include.
5018
5019 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
5020
5021         * sysdeps/posix/spawni.c: Include <signal.h>.
5022         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
5023         * sysdeps/pthread/aio_fsync.c: Likewise.
5024
5025 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
5026
5027         * conform/Makefile (tests): Run only when not cross-compiling and
5028         when fast-check is not defined.
5029
5030         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
5031         * conform/data/limits.h-data: Fixes for POSIX2008.
5032         * conform/run-conformtest.sh: Run all tests.
5033         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
5034         headers.
5035         * include/bits/dlfcn.h: Likewise.
5036         * include/langinfo.h: Likewise.
5037         * include/monetary.h: Likewise.
5038         * include/sys/poll.h: Likewise.
5039
5040         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
5041         for __USE_GNU.
5042         * posix/spawn.h: Define __need_sigset_t.
5043         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
5044         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
5045         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
5046         to get sigevent_t only.
5047         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
5048         only for __USE_GNU.
5049         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5050         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
5051         process_vm_writev only for __USE_GNU.
5052         * termios/termios.h: Declare tcgetsid also for POSIX2008.
5053
5054         * conform/Makefile: For now ignore errors from run-conformtest.
5055         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
5056         POSIX to avoid namespace pollution.  Don't prepend headers.
5057         * conform/data/aio.h-data: Fixes for POSIX testing.
5058         * conform/data/fcntl.h-data: Likewise.
5059         * conform/data/glob.h-data: Likewise.
5060         * conform/data/grp.h-data: Likewise.
5061         * conform/data/pthread.h-data: Likewise.
5062         * conform/data/pwd.h-data: Likewise.
5063         * conform/data/signal.h-data: Likewise.
5064         * conform/data/spawn.h-data: Likewise.
5065         * conform/data/stdio.h-data: Likewise.
5066         * conform/data/stdlib.h-data: Likewise.
5067         * conform/data/stropts.h-data: Likewise.
5068         * conform/data/sys/mman.h-data: Likewise.
5069         * conform/data/sys/stat.h-data: Likewise.
5070         * conform/data/sys/types.h-data: Likewise.
5071         * conform/data/sys/wait.h-data: Likewise.
5072         * conform/data/time.h-data: Likewise.
5073         * conform/data/unistd.h-data: Likewise.
5074         * conform/data/utime.h-data: Likewise.
5075
5076         * io/sys/stat.h: fchmod was always in POSIX.
5077         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
5078         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
5079         * rt/aio.h: Define __need_timespec before including <time.h>.
5080         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
5081         struct.  Add forward declaration of pthread_attr_t and use it in
5082         sigevent.
5083         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
5084         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
5085         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
5086         always remove CLK_TCK definition.
5087
5088 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
5089
5090         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
5091
5092 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
5093
5094         * conform/run-conformtest.sh: New file.
5095         * conform/Makefile: Run run-conformtest for tests.
5096         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
5097         support.
5098
5099         * conform/data/uchar.h-data: New file.
5100         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
5101         * conform/data/arpa/inet.h-data: Likewise.
5102         * conform/data/assert.h-data: Likewise.
5103         * conform/data/complex.h-data: Likewise.
5104         * conform/data/cpio.h-data: Likewise.
5105         * conform/data/ctype.h-data: Likewise.
5106         * conform/data/dirent.h-data: Likewise.
5107         * conform/data/dlfcn.h-data: Likewise.
5108         * conform/data/errno.h-data: Likewise.
5109         * conform/data/fcntl.h-data: Likewise.
5110         * conform/data/float.h-data: Likewise.
5111         * conform/data/fmtmsg.h-data: Likewise.
5112         * conform/data/fnmatch.h-data: Likewise.
5113         * conform/data/ftw.h-data: Likewise.
5114         * conform/data/glob.h-data: Likewise.
5115         * conform/data/grp.h-data: Likewise.
5116         * conform/data/iconv.h-data: Likewise.
5117         * conform/data/inttypes.h-data: Likewise.
5118         * conform/data/langinfo.h-data: Likewise.
5119         * conform/data/libgen.h-data: Likewise.
5120         * conform/data/limits.h-data: Likewise.
5121         * conform/data/locale.h-data: Likewise.
5122         * conform/data/math.h-data: Likewise.
5123         * conform/data/monetary.h-data: Likewise.
5124         * conform/data/mqueue.h-data: Likewise.
5125         * conform/data/ndbm.h-data: Likewise.
5126         * conform/data/net/if.h-data: Likewise.
5127         * conform/data/netdb.h-data: Likewise.
5128         * conform/data/netinet/in.h-data: Likewise.
5129         * conform/data/nl_types.h-data: Likewise.
5130         * conform/data/poll.h-data: Likewise.
5131         * conform/data/pthread.h-data: Likewise.
5132         * conform/data/pwd.h-data: Likewise.
5133         * conform/data/regex.h-data: Likewise.
5134         * conform/data/sched.h-data: Likewise.
5135         * conform/data/search.h-data: Likewise.
5136         * conform/data/semaphore.h-data: Likewise.
5137         * conform/data/setjmp.h-data: Likewise.
5138         * conform/data/signal.h-data: Likewise.
5139         * conform/data/spawn.h-data: Likewise.
5140         * conform/data/stdarg.h-data: Likewise.
5141         * conform/data/stdio.h-data: Likewise.
5142         * conform/data/stdlib.h-data: Likewise.
5143         * conform/data/string.h-data: Likewise.
5144         * conform/data/strings.h-data: Likewise.
5145         * conform/data/stropts.h-data: Likewise.
5146         * conform/data/sys/ipc.h-data: Likewise.
5147         * conform/data/sys/mman.h-data: Likewise.
5148         * conform/data/sys/msg.h-data: Likewise.
5149         * conform/data/sys/resource.h-data: Likewise.
5150         * conform/data/sys/select.h-data: Likewise.
5151         * conform/data/sys/sem.h-data: Likewise.
5152         * conform/data/sys/shm.h-data: Likewise.
5153         * conform/data/sys/socket.h-data: Likewise.
5154         * conform/data/sys/stat.h-data: Likewise.
5155         * conform/data/sys/statvfs.h-data: Likewise.
5156         * conform/data/sys/time.h-data: Likewise.
5157         * conform/data/sys/timeb.h-data: Likewise.
5158         * conform/data/sys/times.h-data: Likewise.
5159         * conform/data/sys/types.h-data: Likewise.
5160         * conform/data/sys/uio.h-data: Likewise.
5161         * conform/data/sys/un.h-data: Likewise.
5162         * conform/data/sys/utsname.h-data: Likewise.
5163         * conform/data/sys/wait.h-data: Likewise.
5164         * conform/data/syslog.h-data: Likewise.
5165         * conform/data/tar.h-data: Likewise.
5166         * conform/data/termios.h-data: Likewise.
5167         * conform/data/utime.h-data: Likewise.
5168         * conform/data/utmpx.h-data: Likewise.
5169         * conform/data/varargs.h-data: Likewise.
5170         * conform/data/wchar.h-data: Likewise.
5171         * conform/data/wctype.h-data: Likewise.
5172         * conform/data/wordexp.h-data: Likewise.
5173
5174         * include/stropts.h: New file.
5175         * include/uchar.h: New file.
5176         * include/aio.h: Changes to allow conformtest.pl to use the headers.
5177         * include/assert.h: Likewise.
5178         * include/ctype.h: Likewise.
5179         * include/dirent.h: Likewise.
5180         * include/dlfcn.h: Likewise.
5181         * include/fcntl.h: Likewise.
5182         * include/fnmatch.h: Likewise.
5183         * include/glob.h: Likewise.
5184         * include/grp.h: Likewise.
5185         * include/libio.h: Likewise.
5186         * include/locale.h: Likewise.
5187         * include/math.h: Likewise.
5188         * include/net/if.h: Likewise.
5189         * include/netdb.h: Likewise.
5190         * include/netinet/in.h: Likewise.
5191         * include/pthread.h: Likewise.
5192         * include/pwd.h: Likewise.
5193         * include/regex.h: Likewise.
5194         * include/sched.h: Likewise.
5195         * include/search.h: Likewise.
5196         * include/setjmp.h: Likewise.
5197         * include/signal.h: Likewise.
5198         * include/stdio.h: Likewise.
5199         * include/stdlib.h: Likewise.
5200         * include/string.h: Likewise.
5201         * include/sys/cdefs.h: Likewise.
5202         * include/sys/mman.h: Likewise.
5203         * include/sys/msg.h: Likewise.
5204         * include/sys/resource.h: Likewise.
5205         * include/sys/select.h: Likewise.
5206         * include/sys/socket.h: Likewise.
5207         * include/sys/stat.h: Likewise.
5208         * include/sys/statvfs.h: Likewise.
5209         * include/sys/time.h: Likewise.
5210         * include/sys/times.h: Likewise.
5211         * include/sys/uio.h: Likewise.
5212         * include/sys/utsname.h: Likewise.
5213         * include/sys/wait.h: Likewise.
5214         * include/termios.h: Likewise.
5215         * include/time.h: Likewise.
5216         * include/ulimit.h: Likewise.
5217         * include/unistd.h: Likewise.
5218         * include/utime.h: Likewise.
5219         * include/wchar.h: Likewise.
5220         * include/wctype.h: Likewise.
5221         * include/wordexp.h: Likewise.
5222
5223         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
5224
5225         * time/time.h: TIME_UTC must be a macro.
5226         Make timespec_get available for ISO C11 only as well.
5227
5228 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
5229
5230         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
5231         Reported by Peng Haitao <penght@cn.fujitsu.com>.
5232
5233 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
5234
5235         * configure.in: Use -o not -a in test for unsupported multi-arch.
5236
5237 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
5238
5239         * manual/texinfo.tex: Update to version 2012-01-19.16.
5240
5241 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
5242
5243         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
5244
5245 2012-02-24  Roland McGrath  <roland@hack.frob.com>
5246
5247         [BZ #13738]
5248         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
5249         * manual/fdl-1.3.texi: New file.
5250         * manual/fdl-1.1.texi: File removed.
5251
5252         [BZ #13738]
5253         * manual/libc.texinfo (FDL_VERSION): New @set.
5254         Use it for mention of FDL in cover text.
5255         (Documentation License): Use it in @include file name.
5256
5257 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5258             Roland McGrath  <roland@hack.frob.com>
5259
5260         [BZ #5461]
5261         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
5262         not LONG_LONG_MAX and LONG_LONG_MIN.
5263         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
5264         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
5265         name.
5266         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
5267
5268 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5269
5270         [BZ #2547]
5271         [BZ #11365]
5272         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
5273         manipulate bits before adding and subtracting TWO23[sx].
5274         * math/libm-test.inc (nearbyint_test): Add more tests.
5275
5276 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5277
5278         [BZ #2548]
5279         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
5280         bits before adding and subtracting TWO23[sx].
5281         * math/libm-test.inc (rint_test): Add more tests.
5282         (rint_test_tonearest): Likewise.
5283         (rint_test_towardzero): Likewise.
5284         (rint_test_downward): Likewise.
5285         (rint_test_upward: Likewise.
5286
5287 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5288
5289         [BZ #10110]
5290         * include/stdc-predef.h: New file.  Extracted from features.h.
5291         * include/features.h: Include stdc-predef.h.
5292         * Makefile (headers): Add stdc-predef.h.
5293         * CONFORMANCE (Compiler limitations): Update.
5294
5295 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5296
5297         * manual/libc.texinfo (VERSION, UPDATED): Revert.
5298
5299 2012-02-21  David S. Miller  <davem@davemloft.net>
5300
5301         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
5302         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
5303
5304 2012-02-20  David S. Miller  <davem@davemloft.net>
5305
5306         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
5307         using a normal save/restore sequence, rather than allocating a
5308         dummy stack frame just to store a frame pointer and restore.
5309         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
5310
5311 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
5312
5313         * manual/install.texi: Fix stray word in line-wrapped comment.
5314
5315 2012-02-20  David S. Miller  <davem@davemloft.net>
5316
5317         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
5318         both binutils and gcc support GOTDATA.
5319
5320         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
5321         "rd %pc" in the PIC register setup sequences.
5322
5323         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
5324         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
5325         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
5326         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
5327         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5328         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
5329         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5330         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
5331         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5332         (SYSCALL_ERROR_HANDLER): Likewise.
5333         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
5334         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
5335         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5336         (SYSCALL_ERROR_HANDLER): Likewise.
5337
5338         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
5339         (HAVE_GCC_GOTDATA): New.
5340         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
5341         relocation support in both binutils and gcc.
5342         * sysdeps/sparc/elf/configure: Regenerate.
5343
5344         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
5345         * sysdeps/sparc/sparc32/elf/configure: Delete.
5346         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
5347         * sysdeps/sparc/sparc64/elf/configure: Delete.
5348         * sysdeps/sparc/elf/configure.in: New file.
5349         * sysdeps/sparc/elf/configure: Generate.
5350
5351         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
5352         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
5353         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
5354         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
5355         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
5356
5357 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
5358
5359         * manual/install.texi: Do not mention specific glibc version
5360         numbers.
5361         * manual/libc.texinfo (VERSION, UPDATED): Update.
5362         (@copying): Use @copyright{} and range of years.
5363
5364 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
5365
5366         [BZ #13695]
5367         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
5368         [crti.S not in sysdirs] (generated): Do not append.
5369         [crti.S not in sysdirs] (omit-deps): Likewise.
5370         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
5371         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
5372         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
5373         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
5374         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
5375         Likewise.
5376         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
5377         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
5378         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
5379         * csu/defs.awk: Remove file.
5380         * sysdeps/generic/initfini.c: Likewise.
5381         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
5382         variable.
5383         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
5384         Likewise.
5385
5386 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
5387
5388         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
5389         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
5390         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
5391         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
5392         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5393         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
5394         <bits/epoll.h>.
5395         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
5396         (__EPOLL_PACKED): Define to empty if not defined by
5397         <bits/epoll.h>.
5398         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
5399         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5400         bits/epoll.h.
5401
5402 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
5403
5404         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
5405         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
5406         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
5407         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
5408         <bits/timerfd.h>.
5409         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
5410         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5411         bits/timerfd.h.
5412
5413 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
5414
5415         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
5416         in C locale.
5417         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5418         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
5419         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
5420         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5421
5422 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
5423
5424         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
5425         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
5426
5427 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
5428
5429         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
5430         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
5431         defined.
5432         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
5433         Likewise.
5434         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
5435         entry for 2.16.
5436
5437 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
5438
5439         * math/w_acos.c: Use non-signaling floating-point comparisons.
5440         * math/w_acosf.c: Likewise.
5441         * math/w_acosh.c: Likewise.
5442         * math/w_acoshf.c: Likewise.
5443         * math/w_acoshl.c: Likewise.
5444         * math/w_acosl.c: Likewise.
5445         * math/w_asin.c: Likewise.
5446         * math/w_asinf.c: Likewise.
5447         * math/w_asinl.c: Likewise.
5448         * math/w_atanh.c: Likewise.
5449         * math/w_atanhf.c: Likewise.
5450         * math/w_atanhl.c: Likewise.
5451         * math/w_exp2.c: Likewise.
5452         * math/w_exp2f.c: Likewise.
5453         * math/w_exp2l.c: Likewise.
5454         * math/w_j0.c: Likewise.
5455         * math/w_j0f.c: Likewise.
5456         * math/w_j0l.c: Likewise.
5457         * math/w_j1.c: Likewise.
5458         * math/w_j1f.c: Likewise.
5459         * math/w_j1l.c: Likewise.
5460         * math/w_jn.c: Likewise.
5461         * math/w_jnf.c: Likewise.
5462         * math/w_log.c: Likewise.
5463         * math/w_log10.c: Likewise.
5464         * math/w_log10f.c: Likewise.
5465         * math/w_log10l.c: Likewise.
5466         * math/w_log2.c: Likewise.
5467         * math/w_log2f.c: Likewise.
5468         * math/w_log2l.c: Likewise.
5469         * math/w_logf.c: Likewise.
5470         * math/w_logl.c: Likewise.
5471         * math/w_sqrt.c: Likewise.
5472         * math/w_sqrtf.c: Likewise.
5473         * math/w_sqrtl.c: Likewise.
5474         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5475         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
5476         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5477         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
5478         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
5479
5480 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5481
5482         [BZ #9739]
5483         * manual/string.texi (strnlen): Use correct parameter name in
5484         equivalent expression.
5485
5486 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5487
5488         [BZ #11174]
5489         * manual/users.texi (seteuid): Consistently use neweuid for
5490         argument name.
5491
5492 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5493
5494         [BZ #13704]
5495         * manual/nss.texi (Services in the NSS configuration): Correct
5496         list of services in example configuration file.
5497
5498 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
5499
5500         [BZ #11322]
5501         * manual/arith.texi: Remove statements about negative zero
5502         behaving identically to zero.
5503
5504 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
5505
5506         [BZ #5993]
5507         * manual/install.texi: Do not document upgrading from libc5.
5508
5509 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
5510
5511         [BZ #4596]
5512         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
5513
5514 2012-02-18  David S. Miller  <davem@davemloft.net>
5515
5516         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
5517         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
5518         %o7 across the call.
5519         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
5520         instead.
5521         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
5522         SETUP_PIC_REG_LEAF.
5523         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5524         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
5525         * sysdeps/sparc/crtn.S: Likewise.
5526
5527 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
5528
5529         * aout/Makefile: Remove.
5530
5531 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
5532
5533         [BZ #13058]
5534         * manual/examples/argp-ex1.c (main): Format definition in GNU
5535         style.
5536         * manual/examples/argp-ex2.c (main): Likewise.
5537         * manual/examples/argp-ex3.c (main): Likewise.
5538         * manual/examples/argp-ex4.c (main): Likewise.
5539         * manual/examples/longopt.c (main): Use new-style prototype
5540         definition.
5541         * manual/examples/strncat.c (main): Specify return type and use
5542         (void) for arguments.
5543         * manual/examples/subopt.c (main): Use char **argv argument.
5544
5545 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5546
5547         [BZ #5077]
5548         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
5549         rounding modes.
5550
5551 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
5552
5553         [BZ #6907]
5554         * manual/string.texi (strchr): Change when strchrnul is
5555         recommended.
5556
5557 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
5558
5559         [BZ #174]
5560         * manual/locale.texi (setlocale): Document LOCPATH.
5561
5562 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5563
5564         [BZ #10210]
5565         * manual/process.texi (execle): Move @dots{} before last argument.
5566
5567 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
5568
5569         [BZ #12047]
5570         * manual/charset.texi (Generic Charset Conversion): Fix typo
5571         (LC_TYPE -> LC_CTYPE).
5572
5573 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
5574
5575         [BZ #5805]
5576         * manual/arith.texi (scalbn): Use @var{} on parameter names.
5577         (scalbnf): Likewise.
5578         (scalbnl): Likewise.
5579         (scalbln): Likewise.
5580         (scalblnf): Likewise.
5581         (scalblnl): Likewise.
5582         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
5583         (vwarnx): Likewise.
5584         (verr): Likewise.
5585         (verrx): Likewise.
5586         * manual/filesys.texi (telldir): Use braces around return type.
5587         * manual/llio.texi (mmap): Add space after comma.
5588         (mmap64): Likewise.
5589         * manual/math.texi (jn): Use @var{} on parameter names.
5590         (jnf): Likewise.
5591         (jnl): Likewise.
5592         (yn): Likewise.
5593         (ynf): Likewise.
5594         (ynl): Likewise.
5595         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
5596         line.
5597         * manual/resource.texi (ulimit): Use @dots{} instead of literal
5598         "...".
5599         (sched_get_priority_min): Remove semicolon on @deftypefun line.
5600         (sched_get_priority_max): Likewise.
5601         * manual/signal.texi (sigvec): Add space after comma.
5602         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
5603         names.
5604         (if_indextoname): Likewise.
5605         (if_freenameindex): Likewise.
5606         (sendto): Use ',' instead of '.' in prototype.
5607         * manual/startup.texi (syscall): Use @dots{} instead of literal
5608         "...".
5609         * manual/stdio.texi (__fpending): Separate initial words of
5610         paragraph from @deftypefun line.
5611         * manual/syslog.texi (syslog): Use @dots{} instead of literal
5612         "...".
5613         (vsyslog): Use @var{} on parameter names.
5614         * manual/terminal.texi (stty): Use @var{} on parameter names.
5615         * manual/users.texi (getutmp): Use @var{} on parameter names.
5616         (getutmpx): Likewise.
5617
5618 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5619
5620         [BZ #6884]
5621         * manual/stdio.texi (fopen): Fix typos in description of
5622         ",ccs=STRING".
5623
5624 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
5625
5626         [BZ #4026]
5627         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
5628         get clock_id definition.
5629
5630 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
5631
5632         [BZ #4822]
5633         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
5634         (madvise): Cast every argument to void on its own.
5635
5636 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5637
5638         [BZ #9902]
5639         * manual/startup.texi (Exit Status): Fix typo.
5640
5641 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5642
5643         [BZ #10140]
5644         * manual/examples/argp-ex1.c: Include <stdlib.h>.
5645         * manual/examples/argp-ex2.c: Likewise.
5646         * manual/examples/argp-ex3.c: Likewise.
5647
5648 2012-02-16  Richard Henderson  <rth@redhat.com>
5649
5650         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
5651         * sysdeps/s390/s390-32/initfini.c: Remove.
5652         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
5653         * sysdeps/s390/s390-64/initfini.c: Remove.
5654
5655 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5656
5657         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
5658         compiler output for sysdeps/generic/initfini.c.
5659         * sysdeps/sh/elf/initfini.c: Remove file.
5660
5661 2012-02-16  David S. Miller  <davem@davemloft.net>
5662
5663         [BZ #11494]
5664         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
5665
5666         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
5667         * sysdeps/sparc/crti.S: New file.
5668         * sysdeps/sparc/crtn.S: New file.
5669         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
5670         * sysdeps/sparc/sparc64/Makefile: Likewise.
5671
5672 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
5673
5674         [BZ #3335]
5675         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
5676
5677 2012-02-15  Roland McGrath  <roland@hack.frob.com>
5678
5679         [BZ #4822]
5680         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
5681
5682         * mach/devstream.c (cookie_io_functions_t): Macro removed.
5683         (write, read, close): Likewise.
5684         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5685
5686 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
5687
5688         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
5689         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
5690         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
5691         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
5692         <bits/signalfd.h>.
5693         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
5694         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5695         bits/signalfd.h.
5696
5697 2012-02-14  Marek Polacek  <polacek@redhat.com>
5698
5699         * sysdeps/x86_64/crti.S: New file.
5700         * sysdeps/x86_64/crtn.S: New file.
5701         * sysdeps/x86_64/elf/initfini.c: Remove file.
5702
5703 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
5704
5705         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
5706         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
5707         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
5708         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
5709         <bits/inotify.h>.
5710         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
5711         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5712         bits/inotify.h.
5713
5714 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
5715
5716         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
5717         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
5718         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
5719         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
5720         <bits/eventfd.h>.
5721         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
5722         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5723         bits/eventfd.h.
5724
5725 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
5726
5727         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
5728         __feraiseexcept instead of feraiseexcept.
5729
5730         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
5731         nanosleep invocations.
5732         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
5733         strings, and add error checking for a nanosleep invocations.
5734
5735 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5736
5737         Replace FSF snail mail address with URLs, as per GNU coding standards.
5738         Most of the snail mail addresses were wrong anyway, and omitting
5739         them makes the source code easier to maintain.  Almost all of the
5740         changes are to license notices and to locale LC_IDENTIFICATION
5741         addresses, except for this one:
5742         * manual/libc.texinfo: In "Published by", give the FSF's URL,
5743         not its snail mail address.
5744
5745 2012-02-09  Richard Henderson  <rth@twiddle.net>
5746
5747         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
5748         of kernel-features.h.
5749
5750         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
5751
5752 2012-02-08  Marek Polacek  <polacek@redhat.com>
5753
5754         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
5755         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
5756         * sysdeps/gnu/_G_config.h: Likewise.
5757         * sysdeps/generic/_G_config.h: Likewise.
5758
5759 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
5760
5761         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
5762         tests.
5763         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5764
5765         * sysdeps/powerpc/powerpc32/crti.S: New file.
5766         * sysdeps/powerpc/powerpc32/crtn.S: New file.
5767         * sysdeps/powerpc/powerpc64/crti.S: New file.
5768         * sysdeps/powerpc/powerpc64/crtn.S: New file.
5769
5770         * Makeconfig (have-initfini): Don't set.
5771         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
5772         * configure.in (nopic_initfini): Don't substitute.
5773         * config.h.in (HAVE_INITFINI): Don't #undef.
5774         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
5775         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
5776
5777 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
5778
5779         Support crti.S and crtn.S provided directly by architectures.
5780         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
5781         [crti.S in sysdirs] (omit-deps): Likewise.
5782         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
5783         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
5784         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
5785         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
5786         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
5787         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
5788         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
5789         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
5790         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
5791         compiler output for sysdeps/generic/initfini.c.
5792         * sysdeps/i386/elf/Makefile: Remove file.
5793         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
5794
5795 2012-02-07  Marek Polacek  <polacek@redhat.com>
5796
5797         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
5798         * sysdeps/gnu/_G_config.h: Likewise.
5799         * sysdeps/mach/hurd/_G_config.h: Likewise.
5800
5801 2012-02-07  Marek Polacek  <polacek@redhat.com>
5802
5803         * math/Makefile (tests): Add tst-CMPLX2.
5804         * math/tst-CMPLX2.c: New file.
5805
5806 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
5807
5808         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
5809
5810         * math/libm-test.inc (jn_test): Add missing L suffix.
5811
5812 2012-02-06  Marek Polacek  <polacek@redhat.com>
5813
5814         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
5815         * sysdeps/i386/fpu/e_powf.S: Likewise.
5816         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
5817         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
5818         * sysdeps/i386/fpu/e_acosh.S: Likewise.
5819         * sysdeps/i386/fpu/e_pow.S: Likewise.
5820         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
5821         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
5822         * sysdeps/i386/fpu/s_expm1.S: Likewise.
5823         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
5824         * sysdeps/i386/fpu/e_log2.S: Likewise.
5825         * sysdeps/i386/fpu/e_log2l.S: Likewise.
5826         * sysdeps/i386/fpu/e_scalb.S: Likewise.
5827         * sysdeps/i386/fpu/e_powl.S: Likewise.
5828         * sysdeps/i386/fpu/s_log1p.S: Likewise.
5829         * sysdeps/i386/fpu/e_log10f.S: Likewise.
5830         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
5831         * sysdeps/i386/fpu/e_logl.S: Likewise.
5832         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
5833         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
5834         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
5835         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
5836         * sysdeps/i386/fpu/e_log2f.S: Likewise.
5837         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
5838         * sysdeps/i386/fpu/e_log.S: Likewise.
5839         * sysdeps/i386/fpu/s_cexp.S: Likewise.
5840         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
5841         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
5842         * sysdeps/i386/fpu/e_logf.S: Likewise.
5843         * sysdeps/i386/fpu/e_log10l.S: Likewise.
5844         * sysdeps/i386/fpu/e_atanh.S: Likewise.
5845         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
5846         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
5847         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
5848         * sysdeps/i386/fpu/e_log10.S: Likewise.
5849         * sysdeps/i386/fpu/s_frexp.S: Likewise.
5850         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
5851         * sysdeps/i386/fpu/s_asinh.S: Likewise.
5852         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
5853         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
5854         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
5855         * sysdeps/i386/asm-syntax.h: Likewise.
5856         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
5857         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5858         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
5859         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5860         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
5861         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
5862         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5863         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
5864         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
5865         * sysdeps/powerpc/sysdep.h: Likewise.
5866         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
5867         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5868
5869 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
5870
5871         [BZ #411]
5872         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
5873
5874 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
5875
5876         * sysdeps/i386/sysdep.h: Include <features.h>.
5877         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
5878         version.
5879
5880 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
5881
5882         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
5883         Define.
5884         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
5885         LOAD_PIC_REG_STR.
5886
5887 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5888
5889         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
5890         (SETUP_PIC_REG): Use GET_PC_THUNK.
5891         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
5892         macro.
5893
5894 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5895
5896         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
5897         for non-PIC compilation.
5898         (SETUP_PIC_REG): Add .p2align directive.
5899         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
5900         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
5901         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
5902         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
5903         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
5904         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
5905         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
5906         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
5907         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
5908         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
5909         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
5910         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
5911         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
5912         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
5913         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
5914         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
5915         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
5916         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
5917         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
5918         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
5919         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
5920         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
5921         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
5922         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
5923         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
5924         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
5925         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5926         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
5927         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
5928         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
5929         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
5930         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5931         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
5932         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
5933         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
5934         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
5935         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
5936         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
5937         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
5938         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
5939         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
5940
5941 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5942
5943         * math/tst-CMPLX.c: Include <stdio.h>.
5944
5945 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
5946
5947         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
5948         float.
5949         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
5950         * sysdeps/sparc/bits/mathdef.h: Likewise.
5951
5952 2012-01-31  Marek Polacek  <polacek@redhat.com>
5953
5954         * libio/libio.h: Don't define _PARAMS.
5955         * locale/programs/config.h: Don't define PARAMS.
5956         * stdlib/strtol_l.c: Likewise.
5957         (__strtol_l): Remove PARAMS from the prototype.
5958
5959 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
5960
5961         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
5962         names.  Just use the correct names.  Remove unnecessary wrapper
5963         functions.
5964         * malloc/arena.c: Likewise.
5965         * malloc/hooks.c: Likewise.
5966
5967         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
5968         ARENA_TEST says not to.  Simplify test for creation of a new arena.
5969         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
5970
5971 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
5972
5973         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
5974         into tail calls.
5975         (update_get_addr): New function.
5976         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
5977         GET_ADDR_MODULE parameter.
5978
5979 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
5980
5981         * crypt/cert.c: Remove __STDC__ conditionals.
5982         * crypt/crypt-entry.c: Likewise.
5983         * crypt/crypt_util.c: Likewise.
5984         * libio/filedoalloc.c: Likewise.
5985         * libio/fileops.c: Likewise.
5986         * libio/genops.c: Likewise.
5987         * libio/iofclose.c: Likewise.
5988         * libio/iofdopen.c: Likewise.
5989         * libio/iofopen.c: Likewise.
5990         * libio/iofopen64.c: Likewise.
5991         * libio/iogetdelim.c: Likewise.
5992         * libio/iopopen.c: Likewise.
5993         * libio/obprintf.c: Likewise.
5994         * libio/oldfileops.c: Likewise.
5995         * libio/oldiofclose.c: Likewise.
5996         * libio/oldiofdopen.c: Likewise.
5997         * libio/oldiofopen.c: Likewise.
5998         * libio/oldiopopen.c: Likewise.
5999         * libio/wfiledoalloc.c: Likewise.
6000         * libio/wgenops.c: Likewise.
6001         * locale/programs/xmalloc.c: Likewise.
6002         * misc/syslog.c: Likewise.
6003         * stdio-common/xbug.c: Likewise.
6004         * string/memchr.c: Likewise.
6005         * string/memcmp.c: Likewise.
6006         * string/memrchr.c: Likewise.
6007         * string/rawmemchr.c: Likewise.
6008         * sysdeps/posix/getcwd.c: Likewise.
6009         * time/strftime_l.c: Likewise.
6010
6011 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
6012
6013         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
6014         * config.make.in (config-cflags-sse2avx): Define.
6015         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
6016         Fix typo.
6017
6018 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
6019
6020         * scripts/config.guess: Update from upstream config git repository.
6021         * scripts/config.sub: Likewise.
6022
6023 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
6024
6025         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
6026         (EM_NUM): Update.
6027         (R_TILEPRO_*, R_TILEGX_*): New macros.
6028
6029         * scripts/firstversions.awk: Fix bug in version range handling.
6030
6031         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
6032
6033         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
6034
6035         * include/sys/epoll.h: New file.
6036         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
6037         libc_hidden_def.
6038
6039 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
6040
6041         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
6042         Avoid unnecessary __WORDSIZE == 64 test.
6043         (fmaxf): Use VEX format if possible.
6044         (fmax): Likewise.
6045         (fminf): Likewise.
6046         (fmin): Likewise.
6047
6048         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
6049         * math/math_private.h: Remove libc_fegetround* and
6050         libc_fesetround*.
6051         * sysdeps/i386/configure.in: Check for -msse2avx.
6052         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
6053         also if SSE2AVX is defined.
6054         Remove libc_fegetround* and libc_fesetround*.
6055         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
6056         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
6057         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
6058         of HAS_YMM_USABLE.
6059         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6060         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6061         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6062         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6063         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6064
6065         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
6066
6067 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6068
6069         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
6070         size is not set.
6071         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
6072
6073 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
6074
6075         [BZ #13618]
6076         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
6077         relocation.
6078         * Makeconfig (libm): Define.
6079         * elf/Makefile: Add rules to build and run tst-relsort1.
6080         * elf/tst-relsort1.c: New file.
6081         * elf/tst-relsort1mod1.c: New file.
6082         * elf/tst-relsort1mod2.c: New file.
6083
6084 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
6085
6086         * math/s_ldexp.c: Remove __STDC__ conditionals.
6087         * math/s_ldexpf.c: Likewise.
6088         * math/s_ldexpl.c: Likewise.
6089         * math/s_nextafter.c: Likewise.
6090         * math/s_nexttowardf.c: Likewise.
6091         * math/s_significand.c: Likewise.
6092         * math/s_significandf.c: Likewise.
6093         * math/s_significandl.c: Likewise.
6094         * math/w_jnl.c: Likewise.
6095         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
6096         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6097         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
6098         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
6099         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
6100         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6101         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
6102         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6103         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
6104         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
6105         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6106         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6107         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
6108         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
6109         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6110         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
6111         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6112         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
6113         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6114         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6115         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6116         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
6117         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
6118         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6119         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
6120         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
6121         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
6122         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6123         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
6124         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
6125         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
6126         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6127         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
6128         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
6129         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6130         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
6131         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
6132         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
6133         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
6134         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
6135         * sysdeps/ieee754/k_standard.c: Likewise.
6136         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6137         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
6138         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
6139         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6140         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6141         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
6142         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
6143         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
6144         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6145         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6146         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
6147         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
6148         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6149         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
6150         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
6151         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6152         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
6153         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
6154         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
6155         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6156         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
6157         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
6158         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
6159         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
6160         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
6161         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
6162         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6163         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6164         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6165         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
6166         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
6167         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6168         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6169         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
6170         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
6171         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
6172         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6173         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
6174         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
6175         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6176         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6177         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
6178         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6179         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6180         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
6181         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
6182         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
6183         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
6184         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
6185         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6186         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6187         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
6188         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
6189         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
6190         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
6191         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
6192         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6193         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6194         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6195         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6196         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
6197         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6198         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
6199         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
6200         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
6201         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6202         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
6203         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
6204         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
6205         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
6206         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
6207         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
6208         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
6209         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
6210         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
6211         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
6212         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
6213         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
6214         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
6215         * sysdeps/ieee754/s_matherr.c: Likewise.
6216         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
6217         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
6218         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
6219         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
6220
6221 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
6222
6223         * crypt/md5.h: Remove __STDC__ conditionals.
6224         * libio/libioP.h: Likewise.
6225         * locale/programs/config.h: Likewise.
6226         * sysdeps/generic/sysdep.h: Likewise.
6227         * sysdeps/i386/asm-syntax.h: Likewise.
6228         * sysdeps/s390/asm-syntax.h: Likewise.
6229         * sysdeps/unix/sysdep.h: Likewise.
6230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
6231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
6232
6233 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
6234
6235         * libio/libio.h: Remove __STDC__ conditionals.
6236         * malloc/obstack.h: Likewise.
6237         * math/complex.h: Likewise.
6238         * math/math.h: Likewise.
6239         * sysdeps/generic/_G_config.h: Likewise.
6240         * sysdeps/gnu/_G_config.h: Likewise.
6241         * sysdeps/mach/hurd/_G_config.h: Likewise.
6242         * sysdeps/powerpc/bits/mathdef.h: Likewise.
6243         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
6244         * sysdeps/sparc/bits/mathdef.h: Likewise.
6245
6246 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
6247
6248         [BZ #13583]
6249         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
6250         Clean up HAS_* macros.
6251         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
6252         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
6253         possible.
6254         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
6255         HAS_AVX.
6256         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6257         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6258         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6259         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6260         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6261
6262 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
6263
6264         * elf/tst-unique3.cc (gets): Remove declaration.
6265         * elf/tst-unique3lib.cc (gets): Likewise.
6266         * elf/tst-unique3lib2.cc (gets): Likewise.
6267         * elf/tst-unique4.cc (gets): Likewise.
6268
6269 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
6270
6271         * include/stdio.h: Add C++ protection.  Add gets declarations and
6272         definitions.
6273         * debug/tst-chk1.c: Don't declare gets here.
6274         * stdio-common/tst-gets.c: Likewise.
6275
6276 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
6277
6278         * posix/glob: Remove directory.
6279
6280 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
6281
6282         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
6283
6284 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
6285
6286         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
6287         of the non-standard EPFNOSUPPORT.
6288
6289 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6290
6291         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
6292         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
6293         ANYWHERE set to 1 only on KERN_NO_SPACE error.
6294
6295 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
6296
6297         * wcsmbs/uchar.h: Test __STDC_VERSION__.
6298
6299 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
6300
6301         * nscd/aicache.c (addhstaiX): Do not cache negative results of
6302         transient errors.
6303         * nscd/grpcache.c (cache_addgr): Likewise.
6304         * nscd/hstcache.c (cache_addhst): Likewise.
6305         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6306         * nscd/pwdcache.c (cache_addpw): Likewise.
6307         * nscd/servicescache.c (cache_addserv): Likewise.
6308
6309 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
6310
6311         * malloc/malloc.c: Various cleanups.
6312         * malloc/hooks.c: Likewise.
6313
6314         * stdlib/Makefile (tests): Add bug-fmtmsg1.
6315         * stdlib/bug-fmtmsg1.c: New file.
6316
6317         * stdlib/fmtmsg.c (init): Add missing unlock.
6318         Patch by Peng Haitao <penght@cn.fujitsu.com>.
6319
6320 2012-01-12  Marek Polacek  <polacek@redhat.com>
6321
6322         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
6323         and _GNU_SOURCE.
6324
6325 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
6326
6327         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
6328         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
6329         macro to ensure uniqueness of label name.
6330         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
6331         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
6332
6333 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
6334
6335         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
6336
6337         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
6338         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
6339         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
6340         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
6341
6342 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
6343
6344         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
6345
6346         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
6347         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
6348         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
6349
6350         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
6351
6352         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
6353         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
6354         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
6355         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
6356
6357         * math/bits/math-finite.h: Add ldexp support.
6358
6359 2012-01-10  Marek Polacek  <polacek@redhat.com>
6360
6361         * locale/programs/localedef.h (show_archive_content): Add noreturn
6362         attribute.
6363
6364 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
6365
6366         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
6367
6368 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
6369
6370         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
6371
6372         * io/Makefile (headers): Add bits/poll2.h.
6373
6374 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
6375
6376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
6377         typo #include statement.
6378
6379 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
6380
6381         * include/sys/cdefs.h: Define __attribute_alloc_size.
6382         * catgets/gencat.c: Add alloc_size attribute and apply consistently
6383         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
6384         * elf/pldd.c: Likewise.
6385         * iconv/iconv_charmap.c: Likewise.
6386         * iconv/iconvconfig.c: Likewise.
6387         * iconv/strtab.c: Likewise.
6388         * locale/programs/locale.c: Likewise.
6389         * locale/programs/localedef.h: Likewise.
6390         * locale/programs/simple-hash.c: Likewise.
6391         * nscd/nscd.h: Likewise.
6392         * nss/makedb.c: Likewise.
6393         * sysdeps/generic/ldconfig.h: Likewise.
6394         * locale/programs/localedef.c: Remove xmalloc prototype.
6395         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
6396
6397 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
6398
6399         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
6400         appropriate.
6401
6402 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
6403
6404         * math/Makefile (tests): Add tst-CMPLX.
6405         * math/tst-CMPLX.c: New file.
6406
6407         * math/complex.h (CMPLXL): Fix typo.
6408
6409         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
6410         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
6411         GLIBC_2.16.
6412         * debug/tst-chk1.c: Add poll and ppoll tests.
6413         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
6414         * include/sys/poll.h: Add hidden proto for ppoll.
6415         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
6416         * sysdeps/mach/hurd/ppoll.c: Likewise.
6417         * io/ppoll.c: Likewise.
6418         * debug/poll_chk.c: New file.
6419         * debug/ppoll_chk.c: New file.
6420         * include/bits/poll2.h: New file.
6421         * io/bits/poll2.h: New file.
6422
6423         [BZ #1350]
6424         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
6425
6426         * configure.in: static is always set to yes.  Remove.
6427         * config.make.in: Don't set build-static.
6428         * Makeconfig: Remove use of build-static.
6429         * dlfcn/Makefile: Likewise.
6430         * elf/Makefile: Likewise.
6431         * math/Makefile: Likewise.
6432         * misc/Makefile: Likewise.
6433         * nptl/Makefile: Likewise.
6434         * sysdeps/mach/hurd/Makefile: Likewise.
6435
6436         * configure.in: PWD_P is not used anymore.
6437         * config.make.in: Remove PWD_P entry.
6438
6439         * configure.in: Remove last remnants of RANLIB.
6440         No need to check for signed size_t anymore.
6441         Don't set libc_commonpagesize and libc_relro_required here for Alpha
6442         and IA-64.
6443         Remove __builtin_expect test because we require at least gcc 3.4.
6444         * aclocal.m4: Likewise.
6445
6446         * wcsmbs/mbrtoc16.c: Implement using towc function.
6447         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
6448         * wcsmbs/wcsmbsload.c: Likewise.
6449         * iconv/gconv_simple.c: Likewise.
6450         * iconv/gconv_int.h: Likewise.
6451         * iconv/gconv_builtin.h: Likewise.
6452         * iconv/iconv_prog.c: Remove CHAR16 handling.
6453
6454         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
6455
6456         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
6457
6458         * configure.in: Remove --with-elf and --enable-bounded options.
6459         Dont set base_machine for ia64.  More non-ELF conditions removed.
6460         Remove testing and setting of leading underscore information.
6461         * config.make.in (build-bounded): Set to no.
6462         * config.h.in: Remove NO_UNDERSCORES entry.
6463         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
6464         them.
6465         * csu/start.c: Remove !NO_UNDERSCORE code.
6466         * locale/localeinfo.h: Likewise.
6467         * sysdeps/generic/machine-gmon.h: Likewise.
6468         * sysdeps/generic/sysdep.h: Likewise.
6469         * sysdeps/i386/sysdep.h: Likewise.
6470         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
6471         * sysdeps/mach/sysdep.h: Likewise.
6472         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6473         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6474         * sysdeps/sh/sysdep.h: Likewise.
6475         * sysdeps/sparc/sparc32/alloca.S: Likewise.
6476         * sysdeps/unix/i386/sysdep.S: Likewise.
6477         * sysdeps/unix/sparc/start.c: Likewise.
6478         * sysdeps/unix/sparc/sysdep.S: Likewise.
6479         * sysdeps/unix/sparc/sysdep.h: Likewise.
6480         * sysdeps/unix/start.c: Likewise.
6481         * sysdeps/unix/x86_64/sysdep.S: Likewise.
6482         * sysdeps/x86_64/sysdep.h: Likewise.
6483
6484 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
6485
6486         [BZ #13553]
6487         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
6488         for non-gcc.
6489         * argp/argp-fmtstream.h: Use const instead __const.
6490         * argp/argp.h: Likewise.
6491         * assert/assert.h: Likewise.
6492         * bits/fenv.h: Likewise.
6493         * bits/sched.h: Likewise.
6494         * bits/sigset.h: Likewise.
6495         * bits/sigthread.h: Likewise.
6496         * catgets/nl_types.h: Likewise.
6497         * conform/data/pthread.h-data: Likewise.
6498         * crypt/crypt-private.h: Likewise.
6499         * crypt/crypt.h: Likewise.
6500         * crypt/crypt_util.c: Likewise.
6501         * ctype/ctype.h: Likewise.
6502         * debug/execinfo.h: Likewise.
6503         * debug/mbsnrtowcs_chk.c: Likewise.
6504         * debug/mbsrtowcs_chk.c: Likewise.
6505         * debug/wcsnrtombs_chk.c: Likewise.
6506         * debug/wcsrtombs_chk.c: Likewise.
6507         * debug/wcstombs_chk.c: Likewise.
6508         * dirent/dirent.h: Likewise.
6509         * dlfcn/dlfcn.h: Likewise.
6510         * elf/neededtest4.c: Likewise.
6511         * grp/grp.h: Likewise.
6512         * gshadow/gshadow.h: Likewise.
6513         * iconv/gconv.h: Likewise.
6514         * iconv/gconv_int.h: Likewise.
6515         * iconv/gconv_simple.c: Likewise.
6516         * iconv/iconv.h: Likewise.
6517         * iconv/loop.c: Likewise.
6518         * iconv/skeleton.c: Likewise.
6519         * include/aio.h: Likewise.
6520         * include/aliases.h: Likewise.
6521         * include/argz.h: Likewise.
6522         * include/arpa/inet.h: Likewise.
6523         * include/assert.h: Likewise.
6524         * include/dirent.h: Likewise.
6525         * include/dlfcn.h: Likewise.
6526         * include/execinfo.h: Likewise.
6527         * include/fcntl.h: Likewise.
6528         * include/fenv.h: Likewise.
6529         * include/glob.h: Likewise.
6530         * include/grp.h: Likewise.
6531         * include/libintl.h: Likewise.
6532         * include/mntent.h: Likewise.
6533         * include/netdb.h: Likewise.
6534         * include/pwd.h: Likewise.
6535         * include/rpc/netdb.h: Likewise.
6536         * include/sched.h: Likewise.
6537         * include/search.h: Likewise.
6538         * include/shadow.h: Likewise.
6539         * include/signal.h: Likewise.
6540         * include/stdio.h: Likewise.
6541         * include/stdlib.h: Likewise.
6542         * include/string.h: Likewise.
6543         * include/sys/socket.h: Likewise.
6544         * include/sys/stat.h: Likewise.
6545         * include/sys/statfs.h: Likewise.
6546         * include/sys/statvfs.h: Likewise.
6547         * include/sys/syslog.h: Likewise.
6548         * include/sys/time.h: Likewise.
6549         * include/sys/uio.h: Likewise.
6550         * include/time.h: Likewise.
6551         * include/unistd.h: Likewise.
6552         * include/utmp.h: Likewise.
6553         * include/wchar.h: Likewise.
6554         * include/wctype.h: Likewise.
6555         * inet/aliases.h: Likewise.
6556         * inet/arpa/inet.h: Likewise.
6557         * inet/netinet/ether.h: Likewise.
6558         * inet/netinet/in.h: Likewise.
6559         * intl/libintl.h: Likewise.
6560         * io/bits/fcntl2.h: Likewise.
6561         * io/fcntl.h: Likewise.
6562         * io/ftw.h: Likewise.
6563         * io/sys/poll.h: Likewise.
6564         * io/sys/stat.h: Likewise.
6565         * io/sys/statfs.h: Likewise.
6566         * io/sys/statvfs.h: Likewise.
6567         * io/utime.h: Likewise.
6568         * libio/bits/stdio.h: Likewise.
6569         * libio/bits/stdio2.h: Likewise.
6570         * libio/libio.h: Likewise.
6571         * libio/libioP.h: Likewise.
6572         * libio/stdio.h: Likewise.
6573         * locale/lc-ctype.c: Likewise.
6574         * locale/locale.h: Likewise.
6575         * login/utmp.h: Likewise.
6576         * malloc/arena.c: Likewise.
6577         * malloc/malloc.c: Likewise.
6578         * malloc/malloc.h: Likewise.
6579         * malloc/mcheck.c: Likewise.
6580         * malloc/mtrace.c: Likewise.
6581         * math/bits/mathcalls.h: Likewise.
6582         * math/fenv.h: Likewise.
6583         * math/math_private.h: Likewise.
6584         * misc/bits/error.h: Likewise.
6585         * misc/bits/syslog.h: Likewise.
6586         * misc/err.h: Likewise.
6587         * misc/error.h: Likewise.
6588         * misc/fstab.h: Likewise.
6589         * misc/mntent.h: Likewise.
6590         * misc/regexp.h: Likewise.
6591         * misc/search.h: Likewise.
6592         * misc/sgtty.h: Likewise.
6593         * misc/sys/mman.h: Likewise.
6594         * misc/sys/syslog.h: Likewise.
6595         * misc/sys/uio.h: Likewise.
6596         * misc/sys/xattr.h: Likewise.
6597         * misc/ttyent.h: Likewise.
6598         * nis/rpcsvc/ypclnt.h: Likewise.
6599         * nss/nss.h: Likewise.
6600         * posix/bits/unistd.h: Likewise.
6601         * posix/fnmatch.h: Likewise.
6602         * posix/glob.h: Likewise.
6603         * posix/sched.h: Likewise.
6604         * posix/spawn.h: Likewise.
6605         * posix/sys/wait.h: Likewise.
6606         * posix/unistd.h: Likewise.
6607         * posix/wordexp.h: Likewise.
6608         * pwd/pwd.h: Likewise.
6609         * resolv/netdb.h: Likewise.
6610         * resource/sys/resource.h: Likewise.
6611         * rt/aio.h: Likewise.
6612         * rt/bits/mqueue2.h: Likewise.
6613         * rt/mqueue.h: Likewise.
6614         * shadow/shadow.h: Likewise.
6615         * signal/signal.h: Likewise.
6616         * socket/send.c: Likewise.
6617         * socket/sendto.c: Likewise.
6618         * socket/sys/socket.h: Likewise.
6619         * stdio-common/printf.h: Likewise.
6620         * stdlib/bits/stdlib.h: Likewise.
6621         * stdlib/fmtmsg.h: Likewise.
6622         * stdlib/monetary.h: Likewise.
6623         * stdlib/stdlib.h: Likewise.
6624         * stdlib/ucontext.h: Likewise.
6625         * streams/stropts.h: Likewise.
6626         * string/argz.h: Likewise.
6627         * string/bits/string2.h: Likewise.
6628         * string/string.h: Likewise.
6629         * string/strings.h: Likewise.
6630         * sunrpc/rpc/auth.h: Likewise.
6631         * sunrpc/rpc/auth_des.h: Likewise.
6632         * sunrpc/rpc/clnt.h: Likewise.
6633         * sunrpc/rpc/netdb.h: Likewise.
6634         * sunrpc/rpc/pmap_clnt.h: Likewise.
6635         * sunrpc/rpc/xdr.h: Likewise.
6636         * sysdeps/generic/inttypes.h: Likewise.
6637         * sysdeps/generic/net/if.h: Likewise.
6638         * sysdeps/generic/sys/swap.h: Likewise.
6639         * sysdeps/gnu/net/if.h: Likewise.
6640         * sysdeps/gnu/utmpx.h: Likewise.
6641         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
6642         * sysdeps/i386/i486/bits/string.h: Likewise.
6643         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
6644         * sysdeps/s390/bits/string.h: Likewise.
6645         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
6646         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
6647         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6648         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
6649         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6650         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6651         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6652         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
6653         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
6654         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6655         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
6656         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
6657         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
6658         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
6659         * sysdeps/unix/sysv/linux/readv.c: Likewise.
6660         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
6661         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
6662         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6663         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
6664         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
6665         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
6666         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
6667         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
6668         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
6669         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
6670         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
6671         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
6672         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6673         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
6674         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
6675         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
6676         * sysvipc/sys/ipc.h: Likewise.
6677         * sysvipc/sys/msg.h: Likewise.
6678         * sysvipc/sys/sem.h: Likewise.
6679         * sysvipc/sys/shm.h: Likewise.
6680         * termios/termios.h: Likewise.
6681         * time/sys/time.h: Likewise.
6682         * time/time.h: Likewise.
6683         * wcsmbs/bits/wchar2.h: Likewise.
6684         * wcsmbs/uchar.h: Likewise.
6685         * wcsmbs/wchar.h: Likewise.
6686         * wctype/wctype.h: Likewise.
6687
6688         [BZ #13551]
6689         * Makeconfig: Remove all but ELF support including AIX support.
6690         * Makerules: Likewise.
6691         * config.h.in: Likewise.
6692         * config.make.in: Likewise.
6693         * configure: Likewise.
6694         * configure.in: Likewise.
6695         * csu/Makefile: Likewise.
6696         * csu/version.c: Likewise.
6697         * debug/Makefile: Likewise.
6698         * dlfcn/Makefile: Likewise.
6699         * elf/Makefile: Likewise.
6700         * extra-lib.mk: Likewise.
6701         * iconv/Makefile: Likewise.
6702         * include/libc-symbols.h: Likewise.
6703         * include/shlib-compat.h: Likewise.
6704         * resolv/Makefile: Likewise.
6705         * resolv/res_libc.c: Likewise.
6706         * rt/Makefile: Likewise.
6707         * sysdeps/i386/asm-syntax.h: Likewise.
6708         * sysdeps/i386/sysdep.h: Likewise.
6709         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
6710         * sysdeps/mach/sysdep.h: Likewise.
6711         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
6712         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
6713         * sysdeps/s390/asm-syntax.h: Likewise.
6714         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6715         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6716         * sysdeps/sh/sysdep.h: Likewise.
6717         * sysdeps/unix/sparc/sysdep.h: Likewise.
6718         * sysdeps/wordsize-32/divdi3.c: Likewise.
6719         * sysdeps/x86_64/sysdep.h: Likewise.
6720
6721         * argp/Versions: Remove _argp_unlock_xxx.
6722
6723         [BZ #13559]
6724         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
6725         * abilist/libBrokenLocale.abilist: Likewise.
6726         * abilist/libanl.abilist: Likewise.
6727         * abilist/libc.abilist: Likewise.
6728         * abilist/libcrypt.abilist: Likewise.
6729         * abilist/libdl.abilist: Likewise.
6730         * abilist/libm.abilist: Likewise.
6731         * abilist/libnsl.abilist: Likewise.
6732         * abilist/libpthread.abilist: Likewise.
6733         * abilist/libresolv.abilist: Likewise.
6734         * abilist/librt.abilist: Likewise.
6735         * abilist/libthread_db.abilist: Likewise.
6736         * abilist/libutil.abilist: Likewise.
6737         * abilist/libnss_db.abilist: New file.
6738
6739         * scripts/abilist.awk: Add support for indirect functions.
6740
6741         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
6742
6743         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
6744
6745         * shlib-versions: Remove entries for ports architectures.
6746
6747         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
6748         files in ports.
6749         * elf/stackguard-macros.h: Remove support for IA-64.
6750         * elf/tst-auditmod1.c: Likewise.
6751         * sysdeps/generic/ldsodefs.h: Likewise.
6752
6753         * sysdeps/unix/sysv/linux/configure.in: Ports should define
6754         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
6755         configure files.
6756
6757         [BZ #13552]
6758         * configure.in: Remove --enable-omitfp support.
6759         * FAQ.in: Adjust.
6760         * config.make.in: Likewise.
6761         * Makeconfig: Likewise.
6762         * manual/install.texi: Likewise.
6763
6764         In case anyone cares, the IA-64 architecture could move to ports.
6765         * sysdeps/ia64/*: Removed.
6766         * sysdeps/unix/sysv/linux/ia64/*: Removed.
6767         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
6768
6769         [BZ #13555]
6770         * configure.in: Remove entries for unsupported architectures.
6771
6772         [BZ #13533]
6773         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
6774         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
6775         routines.
6776         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
6777         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
6778         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
6779         fall back to using wcrtomb.
6780         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
6781         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
6782         renaming.
6783         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
6784         * wcsmbs/tst-c16c32-1.c: New file.
6785
6786         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
6787         local variable.
6788
6789         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
6790
6791         * elf/tst-unique3.cc: Add explicit declaration of gets.
6792         * elf/tst-unique3lib.cc: Likewise.
6793         * elf/tst-unique3lib2.cc: Likewise.
6794         * elf/tst-unique4.cc: Likewise.
6795
6796         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
6797
6798 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
6799
6800         [BZ #13566]
6801         * assert/assert.h (static_assert): Don't define for C++.
6802         * libio/stdio.h (gets): Do declare for C++ <= C++11.
6803         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
6804
6805 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
6806
6807         * iconv/loop.c (single loop): Fix assertion in storing of
6808         remaining bytes.
6809
6810         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
6811
6812 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
6813
6814         * posix/getconf.c: Update copyright year.
6815         * nss/getent.c: Likewise.
6816         * nss/makedb.c: Likewise.
6817         * iconv/iconvconfig.c: Likewise.
6818         * iconv/iconv_prog.c: Likewise.
6819         * elf/ldconfig.c: Likewise.
6820         * elf/pldd.c: Likewise.
6821         * elf/sotruss.ksh: Likewise.
6822         * catgets/gencat.c: Likewise.
6823         * csu/version.c: Likewise.
6824         * elf/ldd.bash.in: Likewise.
6825         * elf/sprof.c (print_version): Likewise.
6826         * locale/programs/locale.c: Likewise.
6827         * locale/programs/localedef.c: Likewise.
6828         * login/programs/pt_chown.c: Likewise.
6829         * nscd/nscd.c (print_version): Likewise.
6830         * debug/xtrace.sh: Likewise.
6831         * malloc/memusage.sh: Likewise.
6832         * malloc/mtrace.pl: Likewise.
6833         * debug/catchsegv.sh: Likewise.
6834
6835 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
6836
6837         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
6838         pure attribute.
6839
6840 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
6841
6842         [BZ #13533]
6843         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
6844         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
6845         transformations.
6846         * iconv/gconv_int.h: Likewise.
6847         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
6848         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
6849         from libc for GLIBC_2.16.
6850         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
6851         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
6852         * wcsmbs/uchar.h: Really define mbstate_t.
6853         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
6854         * wcsmbs/c16rtomb.c: New file.
6855         * wcsmbs/mbrtoc16.c: New file.
6856         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
6857         for C/POSIX locale.
6858         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
6859         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
6860
6861         * wcsmbs/wchar.h: Add missing __restrict.
6862
6863 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
6864
6865         [BZ #13532]
6866         * time/Makefile (routines): Add timespec_get.
6867         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
6868         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
6869         timespec for ISO C11.
6870         * time/timespec_get.c: New file.
6871         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
6872         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
6873
6874         [BZ #13531]
6875         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
6876         * stdlib/stdlib.h: Declare aligned_alloc.
6877         * Versions.def: Add GLIBC_2.16 for libc.
6878         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
6879
6880         [BZ 13527]
6881         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
6882         ISO C11.
6883
6884         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
6885         code.
6886
6887         [BZ #13528]
6888         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
6889
6890         [BZ #13529]
6891         * assert/assert.h (static_assert): Define.
6892
6893         * version.h: Update for 2.16 development version.
6894
6895         [BZ #13526]
6896         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
6897         _ISOC11_SOURCE.
6898
6899         * version.h (RELEASE): Bump for 2.15 release.
6900         * include/features.h (__GLIBC_MINOR__): Bump to 15.
6901
6902         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
6903         Patch by Marek Polacek <mpolacek@redhat.com>.
6904
6905         * bits/byteswap.h: Protect long long constants with __extension__.
6906         * sysdeps/i386/bits/byteswap.h: Likewise.
6907         * sysdeps/ia64/bits/byteswap.h: Likewise.
6908         * sysdeps/s390/bits/byteswap.h: Likewise.
6909         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6910
6911 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6912
6913         [BZ #13540]
6914         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
6915         destination buffer.
6916         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
6917
6918 2011-12-23  Marek Polacek  <polacek@redhat.com>
6919
6920         * elf/dl-addr.c (determine_info): Add inline keyword.
6921         * elf/tst-auditmod4b.c (check_avx): Likewise.
6922         * elf/tst-auditmod6b.c (check_avx): Likewise.
6923         * elf/tst-auditmod6c.c (check_avx): Likewise.
6924         * elf/tst-auditmod7b.c (check_avx): Likewise.
6925
6926 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
6927
6928         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
6929         !__SSE_MATH__.
6930
6931 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6932
6933         [BZ #13540]
6934         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
6935         processing for last bytes.
6936
6937 2011-08-06  Bruno Haible  <bruno@clisp.org>
6938
6939         [BZ #13061]
6940         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
6941         U+0385, not to U+1FEE.
6942
6943         [BZ #13062]
6944         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
6945         entry for U+00A5 U+0301.
6946
6947 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
6948
6949         [BZ #13166]
6950         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
6951         buffer for the output is too small.
6952
6953         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
6954         optimization.
6955
6956         [BZ #13185]
6957         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
6958         SSE flags if possible.
6959
6960 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6961
6962         [BZ #13540]
6963         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
6964         processing for last bytes.
6965
6966 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
6967
6968         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
6969         (syscall-list-default-options, syscall-list-default-condition)
6970         (syscall-list-includes): Define.
6971         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
6972         list of ABIs and options and #if conditions for each ABI.  Do not
6973         handle common syscalls between ABIs specially.
6974         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
6975         Remove.
6976         (syscall-list-variants, syscall-list-32bit-options)
6977         (syscall-list-32bit-condition, syscall-list-64bit-options)
6978         (syscall-list-64bit-condition): Define.
6979         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
6980         (syscall-list-variants, syscall-list-32bit-options)
6981         (syscall-list-32bit-condition, syscall-list-64bit-options)
6982         (syscall-list-64bit-condition): Define.
6983         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
6984         Remove.
6985         (syscall-list-variants, syscall-list-32bit-options)
6986         (syscall-list-32bit-condition, syscall-list-64bit-options)
6987         (syscall-list-64bit-condition): Define.
6988         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
6989         Remove.
6990         (syscall-list-variants, syscall-list-32bit-options)
6991         (syscall-list-32bit-condition, syscall-list-64bit-options)
6992         (syscall-list-64bit-condition): Define.
6993
6994 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
6995
6996         * locale/iso-639.def: Add brx entry.
6997
6998         [BZ #13328]
6999         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
7000         Proposed by Mariusz_Cukr <marcukr@op.pl>.
7001
7002         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
7003         __feraiseexcept_renamed.
7004
7005 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
7006
7007         [BZ #13538]
7008         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
7009         EPOLLET with unsigned values.
7010         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
7011         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
7012
7013         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
7014         to large cancellation.
7015         * math/s_cacoshf.c: Likewise.
7016         * math/s_cacoshl.c: Likewise.
7017
7018 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
7019
7020         [BZ #13305]
7021         [BZ #12786]
7022         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
7023         * math/s_cacoshf.c: Likewise.
7024         * math/s_cacoshl.c: Likewise.
7025
7026 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
7027
7028         [BZ #13439]
7029         * iconv/gconv.h: Define __GCONV_SWAP.
7030         * iconvdata/unicode.c: The swap bit must be stored in __flags.
7031         * iconvdata/utf-16.c: Likewise.
7032         * iconvdata/utf-32.c: Likewise.
7033
7034 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
7035
7036         [BZ #13524]
7037         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
7038         numerator after shifting it by one limb.
7039
7040 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
7041
7042         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
7043         under [__USE_EXTERN_INLINES].
7044
7045 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
7046
7047         [BZ #13446]
7048         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
7049
7050 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7051
7052         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
7053         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
7054         optimized code.
7055         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
7056         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
7057         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
7058         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
7059         for strncasecmp/strncasecmp_l compilation.
7060         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
7061         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
7062
7063 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
7064
7065         [BZ #13484]
7066         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
7067         of __asm__.
7068
7069 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
7070
7071         [BZ #13506]
7072         * time/tzfile.c (__tzfile_read): Check values from file header.
7073
7074 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
7075
7076         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
7077         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
7078         * powerpc/powerpc32/dl-start.S: Likewise.
7079         * powerpc/powerpc32/elf/start.S: Likewise.
7080         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
7081         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
7082         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
7083         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
7084         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
7085         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
7086         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
7087         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
7088         * powerpc/powerpc32/fpu/s_round.S: Likewise.
7089         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
7090         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
7091         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
7092         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
7093         * powerpc/powerpc32/memset.S: Likewise.
7094         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
7095         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
7096         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
7097         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
7098         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
7099         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
7100         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
7101         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
7102         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
7103         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
7104         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
7105         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
7106         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
7107
7108 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7109
7110         * math/libm-test.inc: Added more nearbyint tests.
7111         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
7112         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
7113         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
7114         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
7115
7116 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
7117
7118         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
7119         FD_CLOEXEC.
7120
7121 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7122
7123         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
7124         Add wcscpy-ssse3 wcscpy-c.
7125         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
7126         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
7127         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
7128         * sysdeps/x86_64/wcschr.S: New file.
7129         * sysdeps/x86_64/wcsrchr.S: New file.
7130         * string/test-strcmp.c: Remove checking of wcscmp function for
7131         wrong alignments.
7132         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
7133         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
7134         wcsrchr-sse2 wcsrchr-c.
7135         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
7136         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
7137         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
7138         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
7139         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
7140         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
7141         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
7142         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
7143         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
7144         * wcsmbc/wcschr.c (WCSCHR): New macro.
7145
7146 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7147
7148         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
7149         * wcsmbs/test-wcsrchr.c: New file.
7150         * string/test-strrchr.c: Add wcsrchr support.
7151         (WIDE): New macro.
7152         * wcsmbs/test-wcscpy.c: New file.
7153         * string/test-strcpy.c: Add wcscpy support.
7154         (WIDE): New macro.
7155
7156 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
7157
7158         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
7159         the inner loop.
7160
7161 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
7162
7163         [BZ #13472]
7164         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
7165
7166 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
7167
7168         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
7169         Minor optimizations.
7170
7171         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
7172         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
7173         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7174
7175 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
7176
7177         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
7178         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
7179         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
7180         for gcc to avoid warnings.
7181         * inet/Makefile (tests): Add tst-checks.
7182         * inet/tst-checks.c: New file.
7183
7184         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
7185         warning.
7186
7187         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
7188         __wmemcmp_sse2.
7189
7190         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
7191         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
7192
7193         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
7194
7195 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
7196
7197         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
7198         problem.
7199
7200         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
7201
7202 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
7203
7204         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
7205         conditional on GCC version.
7206         (__arch_compare_and_exchange_val_8_acq)
7207         (__arch_compare_and_exchange_val_16_acq)
7208         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
7209         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
7210         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
7211
7212 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
7213
7214         * sysdeps/sh/backtrace.c: New file.
7215
7216 2011-12-02  Andreas Schwab  <schwab@redhat.com>
7217
7218         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
7219         parenthesis.
7220
7221 2011-12-01  Andreas Schwab  <schwab@redhat.com>
7222
7223         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
7224         falling back to utime.
7225
7226 2011-11-30  Andreas Schwab  <schwab@redhat.com>
7227
7228         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
7229         expectations for float.
7230
7231 2011-11-29  Andreas Schwab  <schwab@redhat.com>
7232
7233         * locale/weight.h (findidx): Add parameter len.
7234         * locale/weightwc.h (findidx): Likewise.
7235         * posix/fnmatch_loop.c (FCT): Adjust caller.
7236         * posix/regcomp.c (build_equiv_class): Likewise.
7237         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
7238         * posix/regexec.c (check_node_accept_bytes): Likewise.
7239         * string/strcoll_l.c (STRCOLL): Likewise.
7240         * string/strxfrm_l.c (STRXFRM): Likewise.
7241
7242 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
7243
7244         * Makefile.in: Remove CVSOPT handling.
7245         * configure.in: Remove use of AC_REVISION.
7246         * iconvdata/Makefile (distribute): No need to filter out CVS.
7247         * scripts/list-sources.sh: Remove CVS, subversion and monotone
7248         handling.
7249
7250 2011-11-16  Andreas Schwab  <schwab@redhat.com>
7251
7252         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
7253         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
7254         [USE_AS_STRNCASECMP_L]: Likewise.
7255         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
7256         NO_TLS_DIRECT_SEG_REFS.
7257         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
7258         Fix argument offsets for non-PIC.
7259         [USE_AS_STRNCASECMP_L]: Likewise.
7260         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
7261         NO_TLS_DIRECT_SEG_REFS.
7262
7263 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
7264
7265         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
7266         O_CLOEXEC.
7267         * locale/loadlocale.c (_nl_load_locale): Likewise.
7268
7269 2011-11-15  Andreas Schwab  <schwab@redhat.com>
7270
7271         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
7272         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
7273         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
7274         (SYSCALL_GETTIME): Set errno on error.
7275
7276         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
7277         count references to noai6ai_cached.
7278
7279 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
7280
7281         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
7282
7283         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
7284         FD_CLOEXEC for /proc/self/maps.
7285
7286         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
7287         FD_CLOEXEC for /proc/meminfo.
7288
7289         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
7290         gai.conf.
7291
7292         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
7293         FD_CLOEXEC for given file.
7294
7295         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
7296
7297         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
7298         FD_CLOEXEC for /etc/hosts.
7299         (_gethtent): Likewise.
7300
7301         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
7302
7303         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
7304         cancellation and set FD_CLOEXEC for /etc/netgroup.
7305
7306         * nss/nss_files/files-key.c (search): Don't allow cancellation when
7307         reading /etc/publickey.
7308
7309         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
7310         allow cancellation when reading /etc/group.
7311
7312         * nss/nss_files/files-alias.c (internal_setent): Don't allow
7313         cancellation.
7314         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
7315
7316         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
7317         when using data file.
7318
7319         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
7320
7321         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
7322         (write_nis_obj): Use "c" and "e" in fopen.
7323
7324         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
7325
7326         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
7327
7328         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
7329
7330         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
7331
7332         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
7333         locale.alias.
7334
7335         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
7336
7337         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
7338
7339         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
7340
7341         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
7342         file parsing and set FD_CLOEXEC.
7343
7344 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
7345
7346         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
7347
7348 2011-11-14  Andreas Schwab  <schwab@redhat.com>
7349
7350         * malloc/arena.c (arena_get2): Don't call reused_arena when
7351         _int_new_arena failed.
7352
7353 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
7354
7355         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
7356         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
7357         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
7358         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7359         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7360         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
7361         to compile strcasecmp and strncasecmp.
7362         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
7363         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
7364
7365         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
7366
7367 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
7368
7369         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
7370         locale-defines.sym to gen-as-const-headers.
7371         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
7372         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
7373         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
7374         to compile strcasecmp and strncasecmp.
7375         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
7376         strcasecmp_l and strncasecmp_l.
7377         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
7378         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
7379         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
7380         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
7381         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
7382         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
7383         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
7384         * sysdeps/i386/i686/multiarch/strncase.S: New file.
7385         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
7386         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
7387         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
7388
7389 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
7390
7391         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
7392         result of SYSDEP_GETTIME_CPU to retval.
7393         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
7394         parameter list to macro.  Remove trailing semicolon.  Adjust users.
7395
7396         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
7397         variable.
7398
7399         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
7400         mantissa words.
7401         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7402
7403         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
7404         from unused variable.
7405
7406         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
7407         DWARF definitions.
7408         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
7409         for assembling.
7410
7411         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
7412         over namespaces.
7413
7414         * sunrpc/rpc_prot.c (rejected): Fix case value.
7415
7416         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
7417         unsigned long long int to avoid warnings in shift.
7418
7419         * posix/regex_internal.c (re_string_reconstruct): Actually use result
7420         of use of trans.
7421         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
7422         variable tmp.
7423
7424         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
7425         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
7426         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
7427
7428         * nis/nis_table.c (nis_list): Use variable of correct type for
7429         result of __follow_path call.
7430
7431 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7432
7433         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
7434         of math functions ceil, trunc, floor, round, and sqrt, when
7435         avaliable on the platform.
7436         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
7437         name clash.
7438         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7439         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
7440         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
7441
7442 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
7443
7444         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
7445         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
7446
7447 2011-11-11  Roland McGrath  <roland@hack.frob.com>
7448
7449         * include/unistd.h: Fix __readlink return type.
7450         Reported by Chris Metcalf <cmetcalf@tilera.com>.
7451
7452 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
7453
7454         * stdlib/ucontext.h: Undo last change for makecontext.
7455
7456 2011-11-11  Andreas Schwab  <schwab@redhat.com>
7457
7458         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
7459
7460         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
7461         * setjmp/setjmp.h: Mark functions as non-leaf.
7462         * setjmp/bits/setjmp2.h: Likewise.
7463         * stdlib/ucontext.h: Likewise.
7464
7465 2011-11-10  Andreas Schwab  <schwab@redhat.com>
7466
7467         * malloc/arena.c (_int_new_arena): Don't increment narenas.
7468         (reused_arena): Don't check arena limit.
7469         (arena_get2): Atomically check arena limit.
7470
7471 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
7472
7473         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
7474         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
7475
7476         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
7477         instructions.
7478
7479 2011-11-07  Andreas Schwab  <schwab@redhat.com>
7480
7481         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
7482         handler when locking.
7483
7484         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7485         Fix size of allocated buffer.
7486
7487 2011-11-04  Andreas Schwab  <schwab@redhat.com>
7488
7489         [BZ #10103]
7490         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
7491         declarations for long double functions.
7492         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
7493
7494         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
7495
7496 2011-11-03  Andreas Schwab  <schwab@redhat.com>
7497
7498         * nscd/nscd.c (main): Don't start AVC thread until credentials are
7499         installed.
7500
7501         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
7502         is disabled.
7503
7504 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7505
7506         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
7507
7508 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7509
7510         * include/alloca.h (stackinfo_alloca_round): Define.
7511         (extend_alloca): Use it.
7512         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
7513         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
7514         here.
7515
7516         * scripts/check-local-headers.sh: Ignore libaudit.h.
7517
7518         * nscd/Makefile (extra-objs): Make recursively expanded.
7519
7520 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
7521
7522         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
7523         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7524
7525         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
7526         * posix/tst-rfc3484-2.c: Likewise.
7527         * posix/tst-rfc3484-3.c: Likewise.
7528
7529         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
7530         process_vm_writev.
7531         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
7532         process_vm_writev.
7533         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
7534         process_vm_writev from libc using GLIBC_2.15 version.
7535
7536         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
7537
7538 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
7539
7540         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
7541         stack usage.
7542
7543 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
7544
7545         [BZ #13367]
7546         * nss/getent.c (initgroups_keys): Show error message in case no group
7547         names are given.
7548
7549         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
7550         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
7551         __bump_nl_timestamp.
7552         * nscd/connections (nscd_init): When host database is served open
7553         netlink socket and request notification about configuration changes.
7554         (main_loop_poll): Track netlink file descriptor and bump timestamp
7555         in case data becomes available.
7556         (main_loop_epoll): Likewise.
7557         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
7558         (database_pers_head): Add extra_data fileds.
7559         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
7560         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
7561         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
7562         Adjust caller.
7563         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
7564         in6ai data, call __free_in6ai.
7565         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
7566         Add -DHAVE_NETLINK.
7567         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
7568         interface information.  Reuse previous data if netlink timestamp
7569         is not changed.
7570         (__bump_nl_timestamp): New function.
7571         (__free_in6ai): New function.
7572
7573 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
7574
7575         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
7576         close_not_cancel_no_status here.
7577         (__check_pf): Reorganize code a bit to not call close twice if OOM.
7578
7579 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
7580
7581         [BZ #13276]
7582         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
7583         return value.
7584
7585         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
7586         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
7587         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
7588
7589 2011-07-03  Andreas Jaeger  <aj@suse.de>
7590
7591         [BZ #10709]
7592         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
7593         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
7594         * math/libm-test.inc (sin_test): Add test case.
7595
7596 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
7597
7598         [BZ #13337]
7599         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
7600         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
7601
7602         * elf/chroot_canon.c (chroot_canon): Cleanups.
7603
7604         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
7605
7606         [BZ #13335]
7607         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
7608         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
7609
7610         * string/test-strchr.c: Make usable for strchrnul testing.
7611         * string/test-strchrnul.c: New file.
7612         * string/Makefile (strop-tests): Add strchrnul.
7613
7614         * po/it.po: Update from translation team.
7615         * po/es.po: Likewise.
7616
7617 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
7618
7619         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
7620         the three constants needed as parameters.  Drop the others.
7621         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
7622         __m128i_strloadu_tolower.
7623         Create and initialize variable zero and use it in all the places
7624         where _mm_setzero_si128 was used.
7625
7626         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
7627         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
7628         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
7629         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
7630         anymore.
7631         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
7632         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
7633         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
7634         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
7635         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
7636         __mpranred, __mptan.
7637         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
7638         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
7639         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
7640         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
7641         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
7642         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
7643         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
7644         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
7645         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
7646
7647 2011-10-28  Andreas Schwab  <schwab@redhat.com>
7648
7649         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
7650         redefine if SHARED.
7651         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
7652
7653         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
7654         wide char related routines to wcsmbs subdir.
7655
7656 2011-10-27  Andreas Schwab  <schwab@redhat.com>
7657
7658         [BZ #13344]
7659         * misc/sys/cdefs.h (__THROWNL): Define.
7660         * posix/unistd.h: Use __THREADNL instead of __THREAD
7661         for memory synchronization functions.
7662
7663 2011-10-26  Roland McGrath  <roland@hack.frob.com>
7664
7665         [BZ #13349]
7666         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
7667         doesn't exist.
7668         * manual/stdio.texi (Obstack Streams): Node removed.
7669
7670 2011-10-26  Andreas Schwab  <schwab@redhat.com>
7671
7672         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
7673         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7674         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7675
7676         * math/math_private.h (math_force_eval): Allow non-addressable
7677         arguments.
7678         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
7679
7680 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7681
7682         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
7683         file is not needed.
7684
7685         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
7686         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
7687         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7688         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7689         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7690         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7691         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7692         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
7693         Add AVX variants.
7694         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
7695         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
7696         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
7697         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
7698         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
7699         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
7700         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
7701         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
7702         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
7703         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
7704         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
7705         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
7706         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
7707         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
7708         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
7709         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
7710         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
7711         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
7712         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
7713
7714         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
7715         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
7716
7717         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
7718         place.  Use VEX encoding when compiling for AVX.
7719
7720 2011-10-25  Andreas Schwab  <schwab@redhat.com>
7721
7722         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
7723         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7724
7725         * string/test-strchr.c (do_test): Don't generate NUL bytes.
7726
7727 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7728
7729         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
7730         useless if() expression.
7731         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7732         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7733         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
7734         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7735         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
7736         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7737         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7738         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7739         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7740         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7741         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7742         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7743         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
7744         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7745         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
7746         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7747         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7748         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7749         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7750
7751         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
7752
7753 2011-10-25  Andreas Schwab  <schwab@redhat.com>
7754
7755         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
7756         condition.
7757         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7758
7759 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7760
7761         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
7762         .text section.  Avoid duplicate constants.
7763         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
7764         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7765         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7766         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7767         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7768         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7769         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7770         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7771         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
7772         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
7773         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
7774         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
7775         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
7776         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
7777         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
7778         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
7779         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
7780         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
7781         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7782         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7783         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
7784         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
7785         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
7786         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
7787         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
7788         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
7789         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
7790         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
7791         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
7792         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
7793         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
7794         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
7795         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
7796         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
7797         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
7798         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
7799         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
7800         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
7801         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
7802         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
7803         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
7804         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
7805         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
7806         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
7807         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
7808
7809 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
7810
7811         * sysdeps/x86_64/dla.h: Move to ...
7812         * sysdeps/x86_64/fpu/dla.h: ...here.
7813         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
7814         situations.  Use __builtin_fma only for gcc 4.6 and up.
7815
7816         * config.make.in: Add have-mfma4 entry.
7817         * configure.in: Substitute libc_cv_cc_fma4.
7818         * math/Makefile (dbl-only-routines): Add sincostab.
7819         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
7820         Use __sincostab not sincos.
7821         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
7822         name is a macro.
7823         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7824         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7825         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7826         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
7827         using __copysign.
7828         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
7829         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
7830         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
7831         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
7832         and __inv.
7833         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
7834         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
7835         __copysign.
7836         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
7837         define aliases when function name is a macro.
7838         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
7839         sysdeps/ieee754/dbl-64/sincos.tbl.
7840         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
7841         fma4-enabled routines.
7842         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
7843         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
7844         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
7845         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
7846         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
7847         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
7848         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
7849         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
7850         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
7851         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
7852         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
7853         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
7854         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
7855         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
7856         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
7857         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
7858         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
7859         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
7860         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
7861         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
7862         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
7863         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
7864         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
7865         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
7866         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
7867         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
7868         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
7869         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
7870         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
7871         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
7872
7873         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
7874         rename.
7875         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7876         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7877         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7878         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7879         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7880         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7881         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7882         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7883
7884 2011-10-24  Andreas Schwab  <schwab@redhat.com>
7885
7886         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
7887
7888 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7889
7890         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
7891
7892         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
7893         prediction.
7894         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
7895
7896         * string/strnlen.c: Don't define STRNLEN, reverse logic.
7897         Remove unused variable magic_bits.
7898         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
7899
7900         * string/strnlen.c: Define and use STRNLEN macro.
7901         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
7902         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
7903         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
7904         * wcsmbs/wcslen.c: Define and use WCSLEN.
7905         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
7906         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
7907         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
7908         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
7909         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
7910         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
7911         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
7912
7913 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7914
7915         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7916         strnlen-sse2-no-bsf.
7917         Rename strlen-no-bsf to strlen-sse2-no-bsf.
7918         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
7919         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
7920         Add strnlen support.
7921         (USE_AS_STRNLEN): New macro.
7922         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
7923         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
7924         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
7925         * sysdeps/x86_64/wcslen.S: New file.
7926
7927 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
7928
7929         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
7930         XMM-moves are used for copying on small sizes.
7931
7932 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7933
7934         * wcsmbs/Makefile (strop-tests): Add wcschr.
7935         * wcsmbs/test-wcschr.c: New file.
7936         * string/test-strchr.c: Update.
7937         Add wcschr support.
7938         (WIDE): New macro.
7939
7940 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7941
7942         * wcsmbs/Makefile (strop-tests): Add wcslen.
7943         * wcsmbs/test-wcslen.c: New file.
7944         * string/test-strlen.c: Update.
7945         Add wcslen support.
7946         (WIDE): New macro.
7947
7948 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7949
7950         * po/it.po: Update from translation team.
7951
7952 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7953
7954         * sysdeps/x86_64/wcscmp.S: Update.
7955         Fix wrong comparison semantics.
7956         wcscmp shall use signed comparison not unsigned.
7957         Don't use substraction to avoid overflow bug.
7958         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
7959         * wcsmbc/wcscmp.c: Likewise.
7960         * string/test-strcmp.c: Likewise.
7961         Add new tests to check cases with negative values.
7962
7963 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7964
7965         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
7966         * sysdeps/x86_64/dla.h: ...here.  New file.
7967         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
7968         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7969         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7970         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7971         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7972         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7973         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7974         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7975         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7976
7977 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
7978
7979         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
7980         __ynl_finite aliases.
7981
7982 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
7983
7984         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7985
7986         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
7987         define DLA_FMA.
7988         [DLA_FMA] (EMULV): Use DLA_FMA.
7989         [DLA_FMA] (MUL12): Use EMULV.
7990         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
7991         that are not needed.
7992         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7993         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7994         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7995         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7996         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7997         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7998         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7999
8000 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
8001
8002         * math/s_nan.c: Undef __nan.
8003         * math/s_nanf.c: Undef __nanf.
8004         * math/s_nanl.c: Undef __nanl.
8005         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
8006         "math_private.h".
8007
8008 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
8009
8010         * math/s_catan.c: Add branch predictions.
8011         * math/s_catanf.c: Likewise.
8012         * math/s_catanh.c: Likewise.
8013         * math/s_catanhf.c: Likewise.
8014         * math/s_catanhl.c: Likewise.
8015         * math/s_catanl.c: Likewise.
8016         * math/s_cexp.c: Likewise.
8017         * math/s_cexpf.c: Likewise.
8018         * math/s_cexpl.c: Likewise.
8019         * math/s_clog.c: Likewise.
8020         * math/s_clog10.c: Likewise.
8021         * math/s_clog10f.c: Likewise.
8022         * math/s_clog10l.c: Likewise.
8023         * math/s_clogf.c: Likewise.
8024         * math/s_clogl.c: Likewise.
8025         * math/s_csqrt.c: Likewise.
8026         * math/s_csqrtf.c: Likewise.
8027         * math/s_csqrtl.c: Likewise.
8028         * math/s_ctanf.c: Likewise.
8029         * math/s_ctanh.c: Likewise.
8030         * math/s_ctanhf.c: Likewise.
8031         * math/s_ctanhl.c: Likewise.
8032         * math/s_ctanl.c: Likewise.
8033
8034         * math/math_private.h: Define __nan, __nanf, __nanl.
8035         * math/s_cacosh.c: Include <math_private.h>.
8036         * math/s_cacoshl.c: Likewise.
8037         * math/s_casinh.c: Likewise.
8038         * math/s_casinhf.c: Likewise.
8039         * math/s_casinhl.c: Likewise.
8040         * math/s_ccos.c: Rely entire on ccosh.
8041         * math/s_ccosf.c: Rely entire on ccoshf.
8042         * math/s_ccosl.c: Rely entirely on ccoshl.
8043         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
8044         Remove tests for FE_INVALID.
8045         * math/s_ccoshf.c: Likewise.
8046         * math/s_ccoshl.c: Likewise.
8047         * math/s_csin.c: Likewise.
8048         * math/s_csinf.c: Likewise.
8049         * math/s_csinh.c Likewise.
8050         * math/s_csinhf.c: Likewise.
8051         * math/s_csinhl.c: Likewise.
8052         * math/s_csinl.c: Likewise.
8053         * math/s_ctan.c: Likewise.
8054         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
8055         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
8056         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
8057
8058 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
8059
8060         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
8061         compilation problems.
8062
8063         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
8064         __builtin_expect.
8065
8066 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
8067
8068         * sysdeps/i386/configure.in: Test for -mfma4 option.
8069         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
8070         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
8071         COMMON_CPUID_INDEX_80000001.
8072         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
8073         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
8074         use it if FMA3 is not supported.
8075         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
8076
8077         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
8078         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
8079
8080 2011-10-20  Andreas Schwab  <schwab@redhat.com>
8081
8082         [BZ #12892]
8083         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
8084         it would create a cycle with a link time dependency.
8085
8086 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
8087
8088         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
8089         instruction.
8090         * string/Makefile (strop-tests): Add rawmemchr.
8091         * string/test-rawmemchr.c: New file.
8092
8093         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
8094         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
8095         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
8096         when compiling str{,n}casecmp and when AVX is available.  Hook up
8097         new optimized code in initializers.
8098
8099 2011-10-19  Andreas Schwab  <schwab@redhat.com>
8100
8101         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
8102         __feraiseexcept instead of feraiseexcept.
8103
8104 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
8105
8106         * math/math_private.h: Define defaults for libc_fetestexcept and
8107         libc_feupdateenv.
8108         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
8109         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8110         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
8111         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
8112         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8113         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
8114         libc_fetestexcept and libc_feupdateenv.
8115
8116         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
8117         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
8118         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
8119         * sysdeps/x86_64/fpu/math_private.h: Define special version of
8120         libc_feholdexcept_setround.
8121
8122         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
8123         Add s_nearbyint-c and s_nearbyintf-c.
8124         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
8125         nearbyintf inlines.
8126         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
8127         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
8128         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
8129         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
8130
8131         * math/math_private.h: Define defaults for libc_fegetround,
8132         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
8133         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
8134         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
8135         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
8136         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
8137         standard functions.
8138         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8139         Remove comments and hacks for old compiler versions.
8140         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
8141         libc_fegetround, libc_fesetround, libc_feholdexcept, and
8142         libc_feholdexceptl.
8143
8144 2011-10-18  Andreas Schwab  <schwab@redhat.com>
8145
8146         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
8147         (__feraiseexcept_renamed): Add __NTH.
8148         (feraiseexcept): Add __NTH.  Rename local variables to fix
8149         namespace violations.
8150
8151 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
8152
8153         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
8154
8155         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
8156
8157         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
8158         recently added interfaces.
8159         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8160
8161         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
8162         about macro parameter expansion.
8163
8164         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
8165         __NO_MATH_INLINES is defined.  Cleanups.
8166
8167         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
8168         and __floorf is target has SSE4.1.
8169         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
8170         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
8171         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
8172         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
8173
8174         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
8175         name.
8176         (floorf): Likewise.
8177
8178         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
8179
8180 2011-10-17  Andreas Schwab  <schwab@redhat.com>
8181
8182         * misc/sys/cdefs.h: Fix last change.
8183
8184         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
8185         database lookup.
8186
8187 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
8188
8189         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
8190
8191         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
8192         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8193         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8194         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8195         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8196         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8197         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8198         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8199         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8200         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
8201         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
8202         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
8203         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
8204         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
8205         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
8206         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
8207         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
8208         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
8209         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
8210         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
8211         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
8212         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
8213
8214         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
8215         ceil, ceilf, floor, floorf.
8216
8217         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
8218         Perform IRELATIVE relocations last.
8219
8220         * elf/do-rel.h: Add another parameter nrelative, replacing the
8221         local variable with the same name.  Change name of the function
8222         to end in Rel or Rela (uppercase).
8223         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
8224         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
8225         elf_dynamic_do_##reloc function.
8226
8227 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
8228
8229         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
8230         is sufficient, at least on modern CPUs.
8231
8232         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
8233
8234         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
8235         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
8236
8237         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
8238         __expl_finite.
8239         * math/bits/math-finite.h: Add entries for exp.
8240         * math/e_expl.c: Add __*_finite alias.
8241         * sysdeps/i386/fpu/e_exp.S: Likewise.
8242         * sysdeps/i386/fpu/e_expf.S: Likewise.
8243         * sysdeps/i386/fpu/e_expl.c: Likewise.
8244         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8245         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
8246         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8247         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
8248         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
8249         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
8250         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
8251
8252         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
8253         is sufficient, at least on modern CPUs.
8254
8255         * ctype/ctype-info.c (__ctype_init): Define.
8256         * include/ctype.h (__ctype_init): Declare.
8257         (__ctype_b_loc): The variable is always initialized.
8258         (__ctype_toupper_loc): Likewise.
8259         (__ctype_tolower_loc): Likewise.
8260         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
8261         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
8262
8263 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
8264
8265         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
8266
8267         * configure.in: Also look in $cxxmachine/include for C++ system
8268         headers.
8269
8270 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8271
8272         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
8273         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
8274         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
8275         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
8276         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
8277         (USE_AS_WMEMCMP): New macro.
8278         Fixing indents.
8279         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
8280         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
8281         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
8282         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
8283         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8284         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
8285         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
8286         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
8287         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
8288         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
8289         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
8290         (USE_AS_WMEMCMP): New macro.
8291         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
8292         * sysdeps/string/test-memcmp.c: Update.
8293         Fix simple_wmemcmp.
8294         Add new tests.
8295         * wcsmbs/wmemcmp.c: Update.
8296         (WMEMCMP): New macro.
8297         Fix overflow bug.
8298
8299 2011-10-12  Andreas Jaeger  <aj@suse.de>
8300
8301         [BZ #13268]
8302         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
8303
8304 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
8305
8306         * libio/iofwide.c (do_length): Avoid warning.
8307
8308         * ctype/ctype.h (__isctype_f): Add missing __THROW.
8309
8310 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
8311
8312         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
8313
8314         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
8315         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
8316         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
8317         * sysdeps/i386/i686/fpu/e_log.S: New file.
8318         * sysdeps/i386/i686/fpu/e_logf.S: New file.
8319         * sysdeps/i386/i686/fpu/e_logl.S: New file.
8320
8321         * ctype/ctype.h: Add support for inlined isXXX functions when
8322         compiling C++ code.
8323
8324 2011-10-14  Andreas Schwab  <schwab@redhat.com>
8325
8326         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8327
8328         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
8329
8330 2011-10-13  Roland McGrath  <roland@hack.frob.com>
8331
8332         [BZ #13291]
8333         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
8334
8335 2011-10-13  Andreas Schwab  <schwab@redhat.com>
8336
8337         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
8338         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
8339         feraiseexcept.
8340
8341         * sysdeps/x86_64/memrchr.S: Check for zero size.
8342
8343         * string/stratcliff.c: Add memrchr tests.
8344
8345 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8346
8347         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8348         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
8349         rawmemchr-sse2 rawmemchr-sse2-bsf.
8350         * sysdeps/i386/i686/multiarch/memchr.S: New file.
8351         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
8352         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
8353         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
8354         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
8355         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
8356         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
8357         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
8358         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
8359         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
8360         * string/memrchr.c (MEMRCHR): New macro.
8361
8362 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
8363
8364         Add integration with gcc's -ffinite-math-only and optimize wrapper
8365         functions in libm.
8366         * Versions.def: Define GLIBC_2.15 version for libm.
8367         * math/Makefile (headers): Add bits/math-finite.h.
8368         * math/bits/math-finite.h: New file.
8369         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
8370         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
8371         * math/e_acoshl.c: Add __*_finite alias.
8372         * math/e_acosl.c: Likewise.
8373         * math/e_asinl.c: Likewise.
8374         * math/e_atan2l.c: Likewise.
8375         * math/e_atanhl.c: Likewise.
8376         * math/e_coshl.c: Likewise.
8377         * math/e_exp10.c: Likewise.
8378         * math/e_exp10f.c: Likewise.
8379         * math/e_exp10l.c: Likewise.
8380         * math/e_exp2l.c: Likewise.
8381         * math/e_fmodl.c: Likewise.
8382         * math/e_gammal_r.c: Likewise.
8383         * math/e_hypotl.c: Likewise.
8384         * math/e_j0l.c: Likewise.
8385         * math/e_j1l.c: Likewise.
8386         * math/e_jnl.c: Likewise.
8387         * math/e_lgammal_r.c: Likewise.
8388         * math/e_log10l.c: Likewise.
8389         * math/e_log2l.c: Likewise.
8390         * math/e_logl.c: Likewise.
8391         * math/e_powl.c: Likewise.
8392         * math/e_sinhl.c: Likewise.
8393         * math/e_sqrtl.c: Likewise.
8394         * math/e_scalb.c: Completely rewritten and optimized.
8395         * math/e_scalbf.c: Likewise.
8396         * math/e_scalbl.c: Likewise.
8397         * math/w_acos.c: Likewise.
8398         * math/w_acosf.c: Likewise.
8399         * math/w_acosl.c: Likewise.
8400         * math/w_acosh.c: Likewise.
8401         * math/w_acoshf.c: Likewise.
8402         * math/w_acoshl.c: Likewise.
8403         * math/w_asin.c: Likewise.
8404         * math/w_asinf.c: Likewise.
8405         * math/w_asinl.c: Likewise.
8406         * math/w_atan2.c: Likewise.
8407         * math/w_atan2f.c: Likewise.
8408         * math/w_atan2l.c: Likewise.
8409         * math/w_atanh.c: Likewise.
8410         * math/w_atanhf.c: Likewise.
8411         * math/w_atanhl.c: Likewise.
8412         * math/w_exp10.c: Likewise.
8413         * math/w_exp10f.c: Likewise.
8414         * math/w_exp10l.c: Likewise.
8415         * math/w_fmod.c: Likewise.
8416         * math/w_fmodf.c: Likewise.
8417         * math/w_fmodl.c: Likewise.
8418         * math/w_j0.c: Likewise.
8419         * math/w_j0f.c: Likewise.
8420         * math/w_j0l.c: Likewise.
8421         * math/w_j1.c: Likewise.
8422         * math/w_j1f.c: Likewise.
8423         * math/w_j1l.c: Likewise.
8424         * math/w_jn.c: Likewise.
8425         * math/w_jnf.c: Likewise.
8426         * math/w_log.c: Likewise.
8427         * math/w_logf.c: Likewise.
8428         * math/w_logl.c: Likewise.
8429         * math/w_log10.c: Likewise.
8430         * math/w_log10f.c: Likewise.
8431         * math/w_log10l.c: Likewise.
8432         * math/w_log2.c: Likewise.
8433         * math/w_log2f.c: Likewise.
8434         * math/w_log2l.c: Likewise.
8435         * math/w_pow.c: Likewise.
8436         * math/w_powf.c: Likewise.
8437         * math/w_powl.c: Likewise.
8438         * math/w_remainder.c: Likewise.
8439         * math/w_remainderf.c: Likewise.
8440         * math/w_remainderl.c: Likewise.
8441         * math/w_scalb.c: Likewise.
8442         * math/w_scalbf.c: Likewise.
8443         * math/w_scalbl.c: Likewise.
8444         * math/w_sqrt.c: Likewise.
8445         * math/w_sqrtf.c: Likewise.
8446         * math/w_sqrtl.c: Likewise.
8447         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
8448         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
8449         used.
8450         * math/math_private.h: Declare __kernel_standard_f.
8451         * math/w_cosh.c: Remove cruft and optimize a bit.
8452         * math/w_coshf.c: Likewise.
8453         * math/w_coshl.c: Likewise.
8454         * math/w_exp2.c: Likewise.
8455         * math/w_exp2f.c: Likewise.
8456         * math/w_exp2l.c: Likewise.
8457         * math/w_hypot.c: Likewise.
8458         * math/w_hypotf.c: Likewise.
8459         * math/w_hypotl.c: Likewise.
8460         * math/w_lgamma.c: Likewise.
8461         * math/w_lgamma_r.c: Likewise.
8462         * math/w_lgammaf.c: Likewise.
8463         * math/w_lgammaf_r.c: Likewise.
8464         * math/w_lgammal.c: Likewise.
8465         * math/w_lgammal_r.c: Likewise.
8466         * math/w_sinh.c: Likewise.
8467         * math/w_sinhf.c: Likewise.
8468         * math/w_sinhl.c: Likewise.
8469         * math/w_tgamma.c: Likewise.
8470         * math/w_tgammaf.c: Likewise.
8471         * math/w_tgammal.c: Likewise.
8472         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8473         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8474         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
8475         Minor optimizations.  Pretty printing.  Remove cruft.
8476         * sysdeps/i386/fpu/e_acosf.S: Likewise.
8477         * sysdeps/i386/fpu/e_acosh.S: Likewise.
8478         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
8479         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
8480         * sysdeps/i386/fpu/e_acosl.c: Likewise.
8481         * sysdeps/i386/fpu/e_asin.S: Likewise.
8482         * sysdeps/i386/fpu/e_asinf.S: Likewise.
8483         * sysdeps/i386/fpu/e_atan2.S: Likewise.
8484         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
8485         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
8486         * sysdeps/i386/fpu/e_atanh.S: Likewise.
8487         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
8488         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
8489         * sysdeps/i386/fpu/e_exp10.S: Likewise.
8490         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
8491         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
8492         * sysdeps/i386/fpu/e_exp2.S: Likewise.
8493         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
8494         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
8495         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8496         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
8497         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8498         * sysdeps/i386/fpu/e_hypot.S: Likewise.
8499         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
8500         * sysdeps/i386/fpu/e_log.S: Likewise.
8501         * sysdeps/i386/fpu/e_log10.S: Likewise.
8502         * sysdeps/i386/fpu/e_log10f.S: Likewise.
8503         * sysdeps/i386/fpu/e_log10l.S: Likewise.
8504         * sysdeps/i386/fpu/e_log2.S: Likewise.
8505         * sysdeps/i386/fpu/e_log2f.S: Likewise.
8506         * sysdeps/i386/fpu/e_log2l.S: Likewise.
8507         * sysdeps/i386/fpu/e_logf.S: Likewise.
8508         * sysdeps/i386/fpu/e_logl.S: Likewise.
8509         * sysdeps/i386/fpu/e_pow.S: Likewise.
8510         * sysdeps/i386/fpu/e_powf.S: Likewise.
8511         * sysdeps/i386/fpu/e_powl.S: Likewise.
8512         * sysdeps/i386/fpu/e_remainder.S: Likewise.
8513         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
8514         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
8515         * sysdeps/i386/fpu/e_scalb.S: Likewise.
8516         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
8517         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
8518         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
8519         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
8520         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
8521         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
8522         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8523         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8524         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8525         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8526         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
8527         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8528         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8529         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8530         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8531         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8532         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8533         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8534         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
8535         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
8536         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8537         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8538         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8539         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8540         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8541         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8542         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
8543         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8544         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8545         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
8546         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8547         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
8548         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
8549         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8550         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
8551         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8552         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8553         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8554         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8555         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
8556         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
8557         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
8558         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
8559         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
8560         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8561         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
8562         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8563         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
8564         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
8565         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8566         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
8567         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8568         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
8569         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
8570         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8571         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8572         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
8573         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8574         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8575         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
8576         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8577         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
8578         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
8579         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8580         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
8581         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8582         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
8583         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8584         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8585         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
8586         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8587         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
8588         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
8589         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8590         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8591         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
8592         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
8593         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
8594         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8595         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
8596         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8597         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
8598         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
8599         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8600         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
8601         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8602         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
8603         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8604         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8605         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8606         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8607         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8608         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8609         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
8610         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8611         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8612         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8613         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8614         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8615         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8616         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8617         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8618         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
8619         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
8620         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
8621         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
8622         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
8623         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
8624         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
8625         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8626         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8627         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8628         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8629         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
8630         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8631         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
8632         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
8633         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
8634         (__isnanf): Likewise.
8635         (__isinf_ns): Likewise.
8636         (__isinf_nsf): Likewise.
8637         (__finite): Likewise.
8638         (__finitef): Likewise.
8639         (__ieee754_sqrt): Define as macro.
8640         (__ieee754_sqrtf): Define as macro.
8641         (__ieee754_sqrtl): Define as macro.
8642         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
8643         inlined copy.
8644         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
8645         __FINITE_MATH_ONLY__ consistent.
8646         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
8647
8648 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
8649
8650         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
8651         of rawmemchr.
8652
8653         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
8654
8655 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
8656
8657         * po/ja.po: Update from translation team.
8658
8659 2011-10-08  Roland McGrath  <roland@hack.frob.com>
8660
8661         * locale/programs/locarchive.c (prepare_address_space): New function.
8662         (create_archive, enlarge_archive, open_archive): Use it.
8663
8664         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
8665         inside [SHARED], where it is used.
8666
8667         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
8668
8669         * nss/getent.c (netgroup_keys): Remove unused variable.
8670         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
8671
8672 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
8673
8674         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
8675         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
8676         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
8677         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
8678         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
8679         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
8680         * math/Makefile (libm-calls): Add s_isinf_ns.
8681         * math/divtc3.c: Use __isinf_nsl instead of isinf.
8682         * math/multc3.c: Likewise.
8683         * math/s_casin.c: Likewise.
8684         * math/s_casinf.c: Likewise.
8685         * math/s_casinl.c: Likewise.
8686         * math/s_ccos.c: Likewise.
8687         * math/s_ccosf.c: Likewise.
8688         * math/s_ccosl.c: Likewise.
8689         * math/s_ctan.c: Likewise.
8690         * math/s_ctanf.c: Likewise.
8691         * math/s_ctanh.c: Likewise.
8692         * math/s_ctanhf.c: Likewise.
8693         * math/s_ctanhl.c: Likewise.
8694         * math/s_ctanl.c: Likewise.
8695         * math/w_fmod.c: Likewise.
8696         * math/w_fmodf.c: Likewise.
8697         * math/w_fmodl.c: Likewise.
8698         * math/w_remainder.c: Likewise.
8699         * math/w_remainderf.c: Likewise.
8700         * math/w_remainderl.c: Likewise.
8701         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
8702         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
8703         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
8704         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
8705         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
8706         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
8707         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
8708         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
8709
8710         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
8711         of the number.
8712         * stdio-common/printf_fphex.c: Likewise.
8713         * stdio-common/printf_size.c: Likewise.
8714
8715         * math/e_exp10.c: Include math_private.h using <...> not "...".
8716         * math/e_exp10f.c: Likewise.
8717         * math/e_exp10l.c: Likewise.
8718         * math/e_exp2l.c: Likewise.
8719         * math/e_j0l.c: Likewise.
8720         * math/e_j1l.c: Likewise.
8721         * math/e_jnl.c: Likewise.
8722         * math/e_lgammal_r.c: Likewise.
8723         * math/e_rem_pio2l.c: Likewise.
8724         * math/e_scalb.c: Likewise.
8725         * math/e_scalbf.c: Likewise.
8726         * math/e_scalbl.c: Likewise.
8727         * math/k_cosl.c: Likewise.
8728         * math/k_sinl.c: Likewise.
8729         * math/k_tanl.c: Likewise.
8730         * math/s_cacoshf.c: Likewise.
8731         * math/s_catan.c: Likewise.
8732         * math/s_catanf.c: Likewise.
8733         * math/s_catanh.c: Likewise.
8734         * math/s_catanhf.c: Likewise.
8735         * math/s_catanhl.c: Likewise.
8736         * math/s_catanl.c: Likewise.
8737         * math/s_ccosh.c: Likewise.
8738         * math/s_ccoshf.c: Likewise.
8739         * math/s_ccoshl.c: Likewise.
8740         * math/s_cexp.c: Likewise.
8741         * math/s_cexpf.c: Likewise.
8742         * math/s_cexpl.c: Likewise.
8743         * math/s_clog.c: Likewise.
8744         * math/s_clog10.c: Likewise.
8745         * math/s_clog10f.c: Likewise.
8746         * math/s_clog10l.c: Likewise.
8747         * math/s_clogf.c: Likewise.
8748         * math/s_clogl.c: Likewise.
8749         * math/s_csin.c: Likewise.
8750         * math/s_csinf.c: Likewise.
8751         * math/s_csinh.c: Likewise.
8752         * math/s_csinhf.c: Likewise.
8753         * math/s_csinhl.c: Likewise.
8754         * math/s_csinl.c: Likewise.
8755         * math/s_csqrt.c: Likewise.
8756         * math/s_csqrtf.c: Likewise.
8757         * math/s_csqrtl.c: Likewise.
8758         * math/s_ctan.c: Likewise.
8759         * math/s_ctanf.c: Likewise.
8760         * math/s_ctanh.c: Likewise.
8761         * math/s_ctanhf.c: Likewise.
8762         * math/s_ctanhl.c: Likewise.
8763         * math/s_ctanl.c: Likewise.
8764         * math/s_ldexp.c: Likewise.
8765         * math/s_ldexpf.c: Likewise.
8766         * math/s_ldexpl.c: Likewise.
8767         * math/s_significand.c: Likewise.
8768         * math/s_significandf.c: Likewise.
8769         * math/s_significandl.c: Likewise.
8770         * math/w_acos.c: Likewise.
8771         * math/w_acosf.c: Likewise.
8772         * math/w_acosh.c: Likewise.
8773         * math/w_acoshf.c: Likewise.
8774         * math/w_acoshl.c: Likewise.
8775         * math/w_acosl.c: Likewise.
8776         * math/w_asin.c: Likewise.
8777         * math/w_asinf.c: Likewise.
8778         * math/w_asinl.c: Likewise.
8779         * math/w_atan2.c: Likewise.
8780         * math/w_atan2f.c: Likewise.
8781         * math/w_atan2l.c: Likewise.
8782         * math/w_atanh.c: Likewise.
8783         * math/w_atanhf.c: Likewise.
8784         * math/w_atanhl.c: Likewise.
8785         * math/w_cosh.c: Likewise.
8786         * math/w_coshf.c: Likewise.
8787         * math/w_coshl.c: Likewise.
8788         * math/w_dremf.c: Likewise.
8789         * math/w_exp10.c: Likewise.
8790         * math/w_exp10f.c: Likewise.
8791         * math/w_exp10l.c: Likewise.
8792         * math/w_exp2.c: Likewise.
8793         * math/w_exp2f.c: Likewise.
8794         * math/w_fmod.c: Likewise.
8795         * math/w_fmodf.c: Likewise.
8796         * math/w_fmodl.c: Likewise.
8797         * math/w_hypot.c: Likewise.
8798         * math/w_hypotf.c: Likewise.
8799         * math/w_hypotl.c: Likewise.
8800         * math/w_j0.c: Likewise.
8801         * math/w_j0f.c: Likewise.
8802         * math/w_j0l.c: Likewise.
8803         * math/w_j1.c: Likewise.
8804         * math/w_j1f.c: Likewise.
8805         * math/w_j1l.c: Likewise.
8806         * math/w_jn.c: Likewise.
8807         * math/w_jnf.c: Likewise.
8808         * math/w_jnl.c: Likewise.
8809         * math/w_lgamma.c: Likewise.
8810         * math/w_lgamma_r.c: Likewise.
8811         * math/w_lgammaf.c: Likewise.
8812         * math/w_lgammaf_r.c: Likewise.
8813         * math/w_lgammal.c: Likewise.
8814         * math/w_lgammal_r.c: Likewise.
8815         * math/w_log.c: Likewise.
8816         * math/w_log10.c: Likewise.
8817         * math/w_log10f.c: Likewise.
8818         * math/w_log10l.c: Likewise.
8819         * math/w_log2.c: Likewise.
8820         * math/w_log2f.c: Likewise.
8821         * math/w_log2l.c: Likewise.
8822         * math/w_logf.c: Likewise.
8823         * math/w_logl.c: Likewise.
8824         * math/w_pow.c: Likewise.
8825         * math/w_powf.c: Likewise.
8826         * math/w_powl.c: Likewise.
8827         * math/w_remainder.c: Likewise.
8828         * math/w_remainderf.c: Likewise.
8829         * math/w_remainderl.c: Likewise.
8830         * math/w_scalb.c: Likewise.
8831         * math/w_scalbf.c: Likewise.
8832         * math/w_scalbl.c: Likewise.
8833         * math/w_sinh.c: Likewise.
8834         * math/w_sinhf.c: Likewise.
8835         * math/w_sinhl.c: Likewise.
8836         * math/w_sqrt.c: Likewise.
8837         * math/w_sqrtf.c: Likewise.
8838         * math/w_sqrtl.c: Likewise.
8839         * math/w_tgamma.c: Likewise.
8840         * math/w_tgammaf.c: Likewise.
8841         * math/w_tgammal.c: Likewise.
8842
8843         * po/ja.po: Update from translation team.
8844
8845 2011-09-29  Andreas Jaeger  <aj@suse.de>
8846
8847         [BZ #13179]
8848         * sunrpc/netname.c (netname2host): Fix logic.
8849
8850         [BZ #6779]
8851         [BZ #6783]
8852         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
8853         correctly.
8854         * math/w_remainder.c (__remainder): Likewise.
8855         * math/w_remainderf.c (__remainderf): Likewise.
8856         * math/libm-test.inc (remainder_test): Add test cases.
8857
8858 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8859
8860         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
8861         sdiv_qrnnd.
8862
8863 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
8864
8865         * string/test-memcmp.c: Avoid unncessary #defines.
8866         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
8867
8868 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8869
8870         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
8871         Use new sse2 version for core i3 - i7 as it's faster
8872         than sse42 version.
8873         (bit_Prefer_PMINUB_for_stringop): New.
8874         * sysdeps/x86_64/rawmemchr.S: Update.
8875         Replace with faster SSE2 version.
8876         * sysdeps/x86_64/memrchr.S: New file.
8877         * sysdeps/x86_64/memchr.S: Update.
8878         Replace with faster SSE2 version.
8879
8880 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
8881
8882         * elf/dl-load.c (lose): Add cast to avoid warning.
8883
8884 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
8885
8886         * po/ca.po: Update from translation team.
8887
8888         * inet/getnetgrent_r.c: Hook up nscd.
8889         * nscd/Makefile (routines): Add nscd_netgroup.
8890         (nscd-modules): Add netgroupcache.
8891         (CFLAGS-netgroupcache.c): Define.
8892         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
8893         (cache_search): Add const to second parameter.
8894         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
8895         INNETGR.
8896         (dbs): Add netgrdb entry.
8897         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
8898         (verify_persistent_db): Handle netgrdb.
8899         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
8900         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
8901         GETFDNETGR.
8902         (netgroup_response_header): Define.
8903         (innetgroup_response_header): Define.
8904         (datahead): Add netgroup_response_header and innetgroup_response_header
8905         elements.
8906         * nscd/nscd.conf: Add entries for netgroup cache.
8907         * nscd/nscd.h (dbtype): Add netgrdb.
8908         (_PATH_NSCD_NETGROUP_DB): Define.
8909         (netgroup_iov_disabled): Declare.
8910         (xmalloc, xcalloc, xrealloc): Move declarations here.
8911         (cache_search): Adjust prototype.
8912         Add netgroup-related prototypes.
8913         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
8914         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
8915         (__nscd_innetgr): Declare.
8916         * nscd/selinux.c (perms): Use access_vector_t as element type and
8917         add netgroup-related initializers.
8918         * nscd/netgroupcache.c: New file.
8919         * nscd/nscd_netgroup.c: New file.
8920         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
8921         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
8922         For four parameters use innetgr.
8923         * nss/nss_files/files-init.c: Add definition and callback for netgr.
8924         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
8925         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
8926         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
8927
8928         * nscd/connections.c (register_traced_file): Don't register file
8929         for disabled databases.
8930
8931 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
8932
8933         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
8934
8935         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
8936         from tree and freeing node.
8937
8938 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
8939
8940         * nss/nsswitch.c (__nss_database_lookup): Handle
8941         nss_parse_service_list out of memory case.
8942
8943 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
8944
8945         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
8946         out of memory case.
8947
8948 2011-10-04  Andreas Schwab  <schwab@redhat.com>
8949
8950         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
8951         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
8952         pass it down.
8953         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
8954         elf_machine_rela, elf_machine_lazy_rel.
8955         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
8956         (ELF_DYNAMIC_DO_REL): Likewise.
8957         (ELF_DYNAMIC_DO_RELA): Likewise.
8958         (ELF_DYNAMIC_RELOCATE): Likewise.
8959         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
8960         to ELF_DYNAMIC_DO_REL.
8961         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
8962         (dl_main): In trace mode always set __RTLD_NOIFUNC.
8963         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
8964         elf_machine_rela.
8965         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
8966         skip_ifunc, don't call ifunc function if non-zero.
8967         (elf_machine_rela): Likewise.
8968         (elf_machine_lazy_rel): Likewise.
8969         (elf_machine_lazy_rela): Likewise.
8970         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
8971         (elf_machine_lazy_rel): Likewise.
8972         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
8973         Likewise.
8974         (elf_machine_lazy_rel): Likewise.
8975         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8976         Likewise.
8977         (elf_machine_lazy_rel): Likewise.
8978         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
8979         (elf_machine_lazy_rel): Likewise.
8980         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
8981         (elf_machine_lazy_rel): Likewise.
8982         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8983         (elf_machine_lazy_rel): Likewise.
8984         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
8985         (elf_machine_lazy_rel): Likewise.
8986         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
8987         (elf_machine_lazy_rel): Likewise.
8988         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8989         (elf_machine_lazy_rel): Likewise.
8990
8991 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
8992
8993         * nss/nss_files/files-init.c (_nss_files_init): Use static
8994         initialization for all the *_traced_file variables.
8995
8996 2011-09-28  Andreas Schwab  <schwab@redhat.com>
8997
8998         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8999
9000 2011-09-27  Roland McGrath  <roland@hack.frob.com>
9001
9002         [BZ #13226]
9003         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
9004
9005 2011-09-27  Andreas Schwab  <schwab@redhat.com>
9006
9007         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9008         Reread the line before reparsing it.
9009
9010 2011-09-26  Andreas Schwab  <schwab@redhat.com>
9011
9012         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
9013
9014 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
9015             Maxim Kuvyrkov  <maxim@codesourcery.com>
9016             Joseph Myers  <joseph@codesourcery.com>
9017
9018         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
9019         if needed for __stack_chk_guard.
9020
9021 2011-09-19  Roland McGrath  <roland@hack.frob.com>
9022
9023         * sysdeps/posix/spawni.c (script_execute): Always define it.
9024         It will be optimized away if unused.
9025         (maybe_script_execute): New function.
9026         (__spawni): Call it.
9027
9028         * Makerules: Don't include tls.make.
9029         (config-tls): Always set to thread.
9030         * tls.make.c: File removed.
9031
9032 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
9033
9034         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
9035         * config.make.in (CPPFLAGS-config): New substituted variable.
9036
9037 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
9038
9039         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
9040
9041         [BZ #13192]
9042         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
9043         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
9044
9045 2011-09-15  Roland McGrath  <roland@hack.frob.com>
9046
9047         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
9048         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
9049         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
9050         (CALL_FAIL): Likewise.
9051         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
9052         (CALL_FAIL): Macro removed.
9053         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
9054
9055 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
9056
9057         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
9058         for __FINITE_MATH_ONLY__ == 1.
9059
9060 2011-09-15  Andreas Schwab  <schwab@redhat.com>
9061
9062         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
9063         __ieee754_sqrt instead of sqrt.
9064         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
9065         __ieee754_sqrtf instead of sqrtf.
9066         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
9067         __floorf instead of floorf.
9068         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
9069         __floorf, __truncf instead of floorf, truncf.
9070
9071 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
9072
9073         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
9074
9075         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
9076         __extern_always_inline.
9077         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
9078         32-bit.
9079
9080 2011-09-14  Andreas Schwab  <schwab@redhat.com>
9081
9082         * elf/rtld.c (dl_main): Also relocate in dependency order when
9083         doing symbol dependency testing.
9084
9085 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
9086
9087         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
9088         Always define `refsym'.
9089
9090 2011-09-13  Andreas Schwab  <schwab@redhat.com>
9091
9092         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
9093         (__FD_ELT): Renamed from __FDELT.
9094         * misc/bits/select2.h (__FD_ELT): Likewise.
9095         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
9096         __FD_MASK instead of __FDELT, __FDMASK.
9097         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
9098         Likewise.
9099         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
9100         Likewise.
9101
9102         * elf/Makefile (gen-ldd): Fix pattern.
9103
9104         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
9105         (init_tls): Likewise.
9106
9107 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
9108
9109         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
9110
9111 2011-09-12  Andreas Schwab  <schwab@redhat.com>
9112
9113         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
9114         `struct cmsghdr *' instead of `void *'.
9115         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
9116         Likewise.
9117
9118 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
9119
9120         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
9121         if non-absolute.
9122         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
9123         ldd_rewrite_script.
9124
9125 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
9126
9127         * configure.in: Remove --with-tls option.
9128         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
9129         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
9130         out in case it is missing.
9131         * sysdeps/ia64/elf/configure.in: Likewise.
9132         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
9133         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
9134         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
9135         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
9136         * sysdeps/sh/elf/configure.in: Likewise.
9137         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
9138         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
9139         * sysdeps/x86_64/elf/configure.in: Likewise.
9140         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
9141         * sysdeps/mach/hurd/tls.h: Likewise.
9142
9143         [BZ #13067]
9144         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
9145
9146         [BZ #13090]
9147         * configure.in: Fix use of AC_INIT.
9148
9149         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
9150
9151 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
9152
9153         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
9154         __set_errno.
9155         * malloc/hooks.c: Likewise.
9156
9157         [BZ #11929]
9158         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
9159         variables statically.
9160         (narenas): Initialize.
9161         (list_lock): Initialize.
9162         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
9163         initializtion of main_arena and list_lock.  Small cleanups.
9164         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
9165         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
9166         Add initializers to main_arena and mp_.
9167         (malloc_state): Remove pagesize member.  Change all users to use
9168         GLRO(dl_pagesize).
9169
9170         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
9171         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
9172         is always initialized.
9173
9174         * malloc/malloc.c: Removed unused configurations and dead code.
9175         * malloc/arena.c: Likewise.
9176         * malloc/hooks.c: Likewise.
9177         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
9178
9179         * include/tls.h: Removed.  USE___THREAD must always be defined.
9180         * bits/libc-tsd.h: Don't handle !USE___THREAD.
9181         * elf/dl-libc.c: Likewise.
9182         * elf/dl-tsd.c: Likewise.
9183         * include/errno.h: Likewise.
9184         * include/netdb.h: Likewise.
9185         * include/resolv.h: Likewise.
9186         * inet/herrno-loc.c: Likewise.
9187         * inet/herrno.c: Likewise.
9188         * malloc/arena.c: Likewise.
9189         * malloc/hooks.c: Likewise.
9190         * malloc/malloc.c: Likewise.
9191         * resolv/res-state.c: Likewise.
9192         * resolv/res_libc.c: Likewise.
9193         * sysdeps/i386/dl-machine.h: Likewise.
9194         * sysdeps/ia64/dl-machine.h: Likewise.
9195         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9196         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9197         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9198         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9199         * sysdeps/sh/dl-machine.h: Likewise.
9200         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9201         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9202         * sysdeps/unix/i386/sysdep.S: Likewise.
9203         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9204         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
9205         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
9206         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9207         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
9208         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9209         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9210         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9211         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9212         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9213         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9214         * sysdeps/x86_64/dl-machine.h: Likewise.
9215         * tls.make.c: Likewise.
9216
9217         * configure.in: Remove --with-__thread option.  Make tests for
9218         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
9219         tls_model attribute fail if no support is available.  Remove
9220         USE_IN_LIBIO.
9221         * Makeconfig: Adjust for dropped configure option.  All features are
9222         now mandatory.
9223         * Makerules: Likewise.
9224         * Versions.def: Likewise.
9225         * argp/argp-fmtstream.c: Likewise.
9226         * argp/argp-fmtstream.h: Likewise.
9227         * argp/argp-help.c: Likewise.
9228         * assert/assert.c: Likewise.
9229         * config.h.in: Likewise.
9230         * config.make.in: Likewise.
9231         * configure: Likewise.
9232         * configure.in: Likewise.
9233         * csu/Versions: Likewise.
9234         * csu/init.c: Likewise.
9235         * elf/tst-audit2.c: Likewise.
9236         * elf/tst-tls10.c: Likewise.
9237         * elf/tst-tls10.h: Likewise.
9238         * elf/tst-tls11.c: Likewise.
9239         * elf/tst-tls12.c: Likewise.
9240         * elf/tst-tls14.c: Likewise.
9241         * elf/tst-tlsmod11.c: Likewise.
9242         * elf/tst-tlsmod12.c: Likewise.
9243         * elf/tst-tlsmod13.c: Likewise.
9244         * elf/tst-tlsmod13a.c: Likewise.
9245         * elf/tst-tlsmod14a.c: Likewise.
9246         * elf/tst-tlsmod15b.c: Likewise.
9247         * elf/tst-tlsmod16a.c: Likewise.
9248         * elf/tst-tlsmod16b.c: Likewise.
9249         * elf/tst-tlsmod7.c: Likewise.
9250         * elf/tst-tlsmod8.c: Likewise.
9251         * elf/tst-tlsmod9.c: Likewise.
9252         * gmon/gmon.c: Likewise.
9253         * grp/fgetgrent_r.c: Likewise.
9254         * grp/putgrent.c: Likewise.
9255         * hurd/fopenport.c: Likewise.
9256         * include/libc-symbols.h: Likewise.
9257         * include/tls.h: Likewise.
9258         * intl/gettextP.h: Likewise.
9259         * intl/loadinfo.h: Likewise.
9260         * locale/global-locale.c: Likewise.
9261         * locale/localeinfo.h: Likewise.
9262         * mach/devstream.c: Likewise.
9263         * malloc/arena.c: Likewise.
9264         * malloc/set-freeres.c: Likewise.
9265         * misc/err.c: Likewise.
9266         * misc/getttyent.c: Likewise.
9267         * misc/mntent_r.c: Likewise.
9268         * posix/getopt.c: Likewise.
9269         * posix/wordexp.c: Likewise.
9270         * pwd/fgetpwent_r.c: Likewise.
9271         * resolv/Versions: Likewise.
9272         * resolv/res_hconf.c: Likewise.
9273         * shadow/fgetspent_r.c: Likewise.
9274         * shadow/putspent.c: Likewise.
9275         * stdio-common/printf_fphex.c: Likewise.
9276         * stdio-common/tmpfile.c: Likewise.
9277         * stdlib/abort.c: Likewise.
9278         * stdlib/fmtmsg.c: Likewise.
9279         * sunrpc/auth_unix.c: Likewise.
9280         * sunrpc/clnt_perr.c: Likewise.
9281         * sunrpc/clnt_tcp.c: Likewise.
9282         * sunrpc/clnt_udp.c: Likewise.
9283         * sunrpc/clnt_unix.c: Likewise.
9284         * sunrpc/openchild.c: Likewise.
9285         * sunrpc/svc_simple.c: Likewise.
9286         * sunrpc/svc_tcp.c: Likewise.
9287         * sunrpc/svc_udp.c: Likewise.
9288         * sunrpc/svc_unix.c: Likewise.
9289         * sunrpc/xdr.c: Likewise.
9290         * sunrpc/xdr_array.c: Likewise.
9291         * sunrpc/xdr_rec.c: Likewise.
9292         * sunrpc/xdr_ref.c: Likewise.
9293         * sunrpc/xdr_stdio.c: Likewise.
9294
9295 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
9296
9297         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9298
9299 2011-07-03  Andreas Jaeger  <aj@suse.de>
9300
9301         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
9302         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
9303         regenerate with gen-libm-tests.pl.
9304
9305 2010-05-12  Petr Baudis  <pasky@suse.cz>
9306
9307         [BZ #11589]
9308         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
9309         around j0() zero points by switching to j1().
9310         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9311         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9312         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9313         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9314
9315 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
9316
9317         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
9318         instead of 0.
9319         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
9320         instead of 0.                              .
9321         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9322         Patch in part by Pavel Roskin <proski@gnu.org>.
9323
9324         [BZ #13138]
9325         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
9326         realloc.
9327         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
9328         Free memory block if necessary.
9329
9330         [BZ #12847]
9331         * libio/genops.c (INTDEF): For string streams the _lock pointer can
9332         be NULL.  Don't lock in this case.
9333
9334 2011-09-09  Roland McGrath  <roland@hack.frob.com>
9335
9336         * elf/elf.h (ELFOSABI_GNU): New macro.
9337         (ELFOSABI_LINUX): Define to that.
9338
9339 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
9340
9341         * string/strncat.c (strncat): Undef the symbol in case it has been
9342         defined in bits/string.h.
9343
9344 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
9345
9346         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
9347
9348         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
9349         link map.
9350
9351 2011-08-17  Andreas Jaeger  <aj@suse.de>
9352
9353         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
9354
9355 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
9356             Ian Lance Taylor  <iant@google.com>
9357
9358         * math/libm-test.inc (lround_test): New testcase.
9359         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
9360
9361 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
9362
9363         * Makefile: Remove support for automatic cvs check-ins.
9364         * Makerules: Likewise.
9365         * config.make.in: Likewise.
9366         * configure.in: Likewise.
9367         * intl/Makefile: Likewise.
9368         * locale/Makefile: Likewise.
9369         * po/Makefile: Likewise.
9370         * posix/Makefile: Likewise.
9371         * sysdeps/gnu/Makefile: Likewise.
9372         * sysdeps/mach/hurd/Makefile: Likewise.
9373         * sysdeps/sparc/sparc32/Makefile: Likewise.
9374
9375         [BZ #13118]
9376         * posix/Makefile (bug-regex32-ENV): Define.
9377         Patch by John Stanley <jpsinthemix@verizon.net>.
9378
9379         * misc/Makefile (headers): Add bits/select2.h.
9380         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
9381         * misc/bits/select2.h: New file.
9382         * include/bits/select2.h: New file.
9383         * debug/Makefile (routines): Add fdelt_chk.
9384         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
9385         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
9386         FD_ISSET.
9387         * debug/fdelt_chk.c: New file.
9388
9389         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
9390         * wcsmbs/test-wmemcmp.c: Likewise.
9391         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
9392         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
9393
9394 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9395
9396         * string/Makefile (strop-tests): Add memcmp.
9397         * string/test-wmemcmp.c: New file.
9398         * string/test-memcmp.c: Add wmemcmp support.
9399
9400 2011-09-08  Roland McGrath  <roland@hack.frob.com>
9401
9402         [BZ #13153]
9403         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
9404         2011-07-19 change.
9405
9406         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
9407         garbage value in a __mach_port_mod_refs call in the cases of the
9408         task-self and thread-self ports.
9409
9410 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9411
9412         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
9413
9414 2011-09-08  Andreas Schwab  <schwab@redhat.com>
9415
9416         * elf/dl-load.c (lose): Check for non-null L.
9417
9418 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
9419
9420         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
9421
9422         * elf/dl-libc.c (dlerror_run): Pass back error code from
9423         dl_catch_error.
9424
9425         [BZ #13123]
9426         * elf/dl-load.c (lose): Free l_origin if it is valid.
9427
9428         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
9429         names.
9430         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
9431         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
9432         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
9433         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
9434         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
9435         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
9436
9437 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9438
9439         * sysdeps/powerpc/fpu/e_hypot.c: New file.
9440         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
9441         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
9442         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
9443         * sysdeps/powerpc/fpu/k_cosf.c: New file.
9444         * sysdeps/powerpc/fpu/k_sinf.c: New file.
9445         * sysdeps/powerpc/fpu/s_cosf.c: New file.
9446         * sysdeps/powerpc/fpu/s_sinf.c: New file.
9447         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
9448         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
9449
9450 2011-08-15  Alan Modra  <amodra@gmail.com>
9451
9452         [BZ #13092]
9453         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
9454         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
9455         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
9456         ppc_mcount to static-only-routines.
9457         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
9458         __mcount_internal.
9459         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
9460         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
9461
9462 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
9463
9464         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
9465         for finite and infinity parameters.
9466
9467 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
9468
9469         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
9470         and add nop instructions for throughput optimization.
9471         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9472
9473 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
9474
9475         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
9476         aligned copy for power7 with vector-scalar instructions.
9477         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
9478
9479 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9480
9481         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
9482         AVX check.
9483
9484 2011-09-07  Andreas Schwab  <schwab@redhat.com>
9485
9486         [BZ #13144]
9487         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
9488         last change.
9489
9490 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
9491
9492         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9493         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
9494         syscall wrapper around clock_gettime in __vdso_clock_gettime.
9495         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
9496         clock_gettime.
9497
9498 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
9499
9500         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
9501         Forgot to demangle the pointer.
9502
9503         * sysdeps/i386/sysdep.h: Define atom_text_section.
9504         * sysdeps/x86_64/sysdep.h: Likewise.
9505         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
9506         section with atom_text_section.
9507         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
9508         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
9509         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
9510         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
9511         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
9512
9513         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
9514         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
9515         already be defined.  Change to take two parameters and don't assign
9516         result to variable.  Adjust all users.
9517         Define INTERNAL_GETTIME if not already defined.
9518         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
9519         call.
9520         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
9521         HAVE_CLOCK_GETTIME_VSYSCALL.
9522         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
9523
9524         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
9525         gettimeofday vsyscall, just use time.
9526
9527 2011-09-06  Andreas Schwab  <schwab@redhat.com>
9528
9529         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
9530         <errno.h>.
9531
9532 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
9533
9534         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
9535         syscall on x86-64.
9536         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
9537         syscall.
9538         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
9539         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
9540         syscall if possible.
9541
9542 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9543
9544         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
9545         e_ident.  Don't pass to find_mapsXX.
9546         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
9547
9548 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9549
9550         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9551         strchr-sse2-no-bsf strrchr-sse2-no-bsf
9552         * sysdeps/x86_64/multiarch/strchr.S: Update.
9553         Check bit_slow_BSF bit.
9554         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
9555         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
9556         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
9557
9558 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9559
9560         [BZ #13134]
9561         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
9562         before glibc 2.15.
9563         (tryshell): Define.
9564         (__spawni): Change last parameter to be flag.  Test
9565         SPAWN_XFLAGS_USE_PATH flag to use path or not.
9566         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
9567         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
9568         * posix/spawni.c: Likewise.
9569         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
9570         * posix/spawnp.c: Likewise.  Change normal version to use
9571         SPAWN_XFLAGS_USE_PATH.
9572         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
9573         SPAWN_XFLAGS_TRY_SHELL.
9574
9575         [BZ #13150]
9576         * posix/glob.h: Remove gcc 1.x support.
9577
9578         [BZ #13068]
9579         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
9580
9581 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9582
9583         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9584         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
9585         strrchr-sse2-bsf
9586         * sysdeps/i386/i686/multiarch/strchr.S: New file.
9587         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
9588         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
9589         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
9590         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
9591         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
9592
9593 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9594
9595         * sysdeps/x86_64/wcscmp.S: New file.
9596
9597         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
9598         wcscmp-c wcscmp-sse2
9599         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
9600         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
9601         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
9602         * wcsmbs/wcscmp.c: Allow renaming.
9603
9604 2011-09-05  David S. Miller  <davem@davemloft.net>
9605
9606         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
9607         stack slot, rather than the struct return pointer slot.
9608         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
9609         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
9610         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
9611         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
9612
9613 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9614
9615         * po/ja.po: Update from translation team.
9616
9617         [BZ #13144]
9618         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
9619         kernel in 64-bit binaries.
9620
9621 2011-09-01  David S. Miller  <davem@davemloft.net>
9622
9623         * elf/elf.h (HWCAP_SPARC_*): Move to..
9624         * sysdeps/sparc/sysdep.h: this new file and add new values.
9625         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
9626         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
9627         _DL_HWCAP_COUNT to 24.
9628         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9629         entries.
9630         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
9631         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
9632         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
9633         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
9634         instead of magic constants.
9635         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9636
9637 2011-08-31  David S. Miller  <davem@davemloft.net>
9638
9639         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
9640         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
9641         Reimplement to do errno handling inline.
9642         (SYSCALL_ERROR_HANDLER): New macro.
9643         (__SYSCALL_STRING): Do not do errno handling in asm.
9644         (__CLONE_SYSCALL_STRING): Delete.
9645         (__INTERNAL_SYSCALL_STRING): Delete.
9646         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
9647         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
9648         (PSEUDO): Reimplement to do errno handling inline.
9649         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
9650         (SYSCALL_ERROR_HANDLER): New macro.
9651         (__SYSCALL_STRING): Do not do errno handling in asm.
9652         (__CLONE_SYSCALL_STRING): Delete.
9653         (__INTERNAL_SYSCALL_STRING): Delete.
9654         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
9655         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
9656         i386.
9657         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
9658         (inline_syscall*): Add 'err' argument.
9659         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
9660         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
9661         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
9662         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
9663
9664         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
9665         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9666
9667 2011-08-30  Andreas Schwab  <schwab@redhat.com>
9668
9669         * elf/rtld.c (dl_main): Relocate objects in dependency order.
9670
9671 2011-08-29  Jiri Olsa <jolsa@redhat.com>
9672
9673         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
9674         directive.
9675
9676 2011-08-24  David S. Miller  <davem@davemloft.net>
9677
9678         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
9679
9680 2011-08-24  Andreas Schwab  <schwab@redhat.com>
9681
9682         * elf/Makefile: Add rules to build and run unload8 test.
9683         * elf/unload8.c: New file.
9684         * elf/unload8mod1.c: New file.
9685         * elf/unload8mod1x.c: New file.
9686         * elf/unload8mod2.c: New file.
9687         * elf/unload8mod3.c: New file.
9688
9689         * elf/dl-close.c (_dl_close_worker): Reset private search list if
9690         it wasn't used.
9691
9692 2011-08-23  David S. Miller  <davem@davemloft.net>
9693
9694         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
9695         subtract stack bias.
9696         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
9697         %sp not %fp in calculations.
9698         (_JMPBUF_UNWINDS_ADJ): Likewise.
9699
9700         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
9701         (aio_suspend): Call it to force an exception region around the
9702         AIO_MISC_WAIT() invocation.
9703
9704 2011-08-23  Andreas Schwab  <schwab@redhat.com>
9705
9706         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
9707         backslash.
9708
9709 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
9710
9711         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
9712         protection macro.
9713         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
9714         and <dl-machine.h>.
9715         (Elf64_FuncDesc): Remove.
9716
9717 2011-08-22  David S. Miller  <davem@davemloft.net>
9718
9719         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
9720         sigaltstack check, add missing cfi directives.
9721         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
9722         missing cfi directives, and sigaltstack handling.
9723
9724 2011-08-16  Andreas Schwab  <schwab@redhat.com>
9725
9726         [BZ #11724]
9727         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
9728         object is seen twice.
9729         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9730
9731         * elf/Makefile (distribute): Add tst-initorder2.c.
9732         (tests): Add tst-initorder2.
9733         (modules-names): Add tst-initorder2a tst-initorder2b
9734         tst-initorder2c tst-initorder2d.  Add rules to build them.
9735         ($(objpfx)tst-initorder2.out): New rule.
9736         * elf/tst-initorder2.c: New file.
9737         * elf/tst-initorder2.exp: New file.
9738
9739 2011-08-22  Andreas Schwab  <schwab@redhat.com>
9740
9741         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
9742
9743         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
9744         dependencies back to end of function.
9745
9746         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
9747         $(elfobjdir)/ld.so.
9748
9749 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
9750
9751         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
9752         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
9753         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9754         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9755         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
9756         of __vdso_gettimeofday.
9757         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
9758         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
9759         attribute_hidden.
9760         (_libc_vdso_platform_setup): Remove initialization of
9761         __vdso_gettimeofday and __vdso_time.
9762
9763 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
9764
9765         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
9766         and fgetc_unlocked.
9767         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
9768         getc_unlocked.
9769
9770         * elf/dl-open.c (add_to_global): Report additions to the global scope
9771         for LD_DEBUG=scopes.
9772         (dl_open_worker): Also print scope of newly loaded dependencies.
9773         (_dl_show_scope): Indicate if there is no scope.
9774
9775         [BZ #13114]
9776         * stdio-common/Makefile (tests): Add bug24.
9777         * stdio-common/bug24.c: New file.
9778
9779 2011-08-19  Andreas Jaeger  <aj@suse.de>
9780
9781         [BZ #13114]
9782         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
9783         non-existant file when using close-on-exec mode.
9784
9785 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
9786
9787         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
9788         the very first instruction.
9789
9790         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
9791         the CFI state in the end.
9792         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
9793         inclusion of dl-trampoline.h.
9794         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
9795
9796 2011-08-19  Andreas Schwab  <schwab@redhat.com>
9797
9798         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
9799         expectations for long double.
9800
9801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
9802         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
9803
9804 2011-08-14  David S. Miller  <davem@davemloft.net>
9805
9806         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
9807         artificual limit depends upon the system page size.
9808
9809 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
9810
9811         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
9812         * resolv/Makefile: Define CFLAGS-libresolv.
9813
9814 2011-08-17  Andreas Schwab  <schwab@redhat.com>
9815
9816         * nss/makedb.c (compute_tables): Make variables used in nested
9817         function static.
9818
9819 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
9820
9821         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
9822         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
9823         if buffer was too small.
9824
9825         * elf/pldd.c (main): Attach to all threads in the process.
9826         Rewrite /proc handling to use *at functions.
9827
9828 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
9829
9830         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
9831         specifies first scope to show.
9832         (dl_open_worker): Update callers.  Move printing scope of new
9833         object to before the relocation.
9834         * elf/rtld.c (dl_main): Update _dl_show_scope call.
9835         * sysdeps/generic/ldsodefs.h: Update declaration.
9836
9837         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
9838         string for the scope number.
9839
9840 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
9841
9842         * nscd/servicescache.c (cache_addserv): Make sure written is always
9843         initialized.
9844
9845 2011-08-14  Roland McGrath  <roland@hack.frob.com>
9846
9847         * sysdeps/i386/i486/bits/atomic.h
9848         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
9849         statement expression, so as to suppress "set but not used" warning.
9850         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
9851
9852         * string/strncat.c (STRNCAT): Use prototype definition.
9853
9854         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
9855         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
9856         -Iprograms here.
9857         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
9858         (localedef-modules): Add localedef.
9859         (locale-modules): Add locale.
9860
9861         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
9862         * elf/rtld.c (dl_main): Invert order of assignment in last change,
9863         to avoid a warning.
9864
9865 2011-08-14  David S. Miller  <davem@davemloft.net>
9866
9867         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
9868         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
9869
9870 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
9871
9872         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
9873         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
9874         * elf/rtld.c (dl_main): Set l_name of vDSO.
9875         Call _dl_show_scope when DL_DEBUG_SCOPES.
9876         (process_dl_debug): Recognize scopes flag and also set it for all.
9877         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
9878         Declare _dl_show_scope.
9879
9880         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
9881         (do_dlopen): Pass caller_dlopen to dl_open.
9882         (__libc_dlopen_mode): Initialize caller_dlopen.
9883
9884         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
9885         of libc.  Make tolower call locale-independent.  Optimize a bit by
9886         using isdigit instead of isalnum.
9887         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
9888
9889 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
9890
9891         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
9892         was a dependency or dynamically loaded.
9893
9894 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
9895
9896         * intl/l10nflist.c: Allow architecture-specific pop function.
9897         * sysdeps/x86_64/l10nflist.c: New file.
9898
9899         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
9900         classification.
9901
9902 2011-08-10  Andreas Schwab  <schwab@redhat.com>
9903
9904         * include/dirent.h: Add libc_hidden_proto for scandirat and
9905         scandirat64.  Don't declare __scandirat64.
9906         * dirent/scandirat.c: Add libc_hidden_def.
9907         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
9908         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
9909
9910 2011-08-10  David S. Miller  <davem@davemloft.net>
9911
9912         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
9913         enum.
9914         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9915         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9916         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9917
9918 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
9919
9920         * Versions.def [libc]: Add GLIBC_2.15.
9921         * dirent/Makefile (routines): Add scandirat and scandirat64.
9922         * dirent/Versions [libc]: Export scandirat and scandirat64 for
9923         GLIBC_2.15.
9924         * dirent/dirent.h: Declare scandirat and scandirat64.
9925         * dirent/scandirat.c: New file.
9926         * dirent/scandirat64.c: New file.
9927         * sysdeps/wordsize-64/scandirat.c: New file.
9928         * sysdeps/wordsize-64/scandirat64.c: New file.
9929         * dirent/opendir.c: Define opendirat.
9930         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
9931         using scandirat.
9932         * dirent/scandir64.c: Adjust for scandir.c change.
9933         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
9934         __scandirat64, and __scandir_cancel_handler.
9935         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
9936         additional parameter and use openat instead of open (outside of ld.so).
9937         Add new __opendir as wrapper around __opendirat.
9938         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
9939         here without requiring old scandirat implementation.
9940
9941 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
9942
9943         * dirent/scandir.c (cancel_handler): Renamed to
9944         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
9945         defined.  Adjust users.
9946         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
9947         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
9948
9949 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
9950
9951         * string/test-string.h (IMPL): Use __STRING to expand name and then
9952         stringify it.
9953
9954         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
9955         of cleanups.
9956
9957 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9958
9959         * string/Makefile: Update.
9960         (strop-tests): Append strncat.
9961         * string/test-wcscmp.c: New file.
9962         New comprehensive test for wcscmp.
9963         * string/test-strcmp.c: Update.
9964         (WIDE): New define.
9965
9966 2011-07-22  Andreas Schwab  <schwab@redhat.com>
9967
9968         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
9969         line.
9970
9971 2011-07-26  Andreas Schwab  <schwab@redhat.com>
9972
9973         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
9974         encoding to ACE if AI_IDN.
9975
9976 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
9977
9978         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
9979         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
9980
9981 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9982
9983         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
9984         Fix overflow bug in strncat.
9985         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
9986
9987         * string/test-strncat.c: Update.
9988         Add new tests for checking overflow bugs.
9989
9990 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9991
9992         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9993         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
9994         * sysdeps/i386/i686/multiarch/strcat.S: New file.
9995         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
9996         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
9997         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
9998         * sysdeps/i386/i686/multiarch/strncat.S: New file.
9999         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
10000         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
10001
10002         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
10003         (USE_AS_STRCAT): Define.
10004         Add strcat and strncat support.
10005         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
10006
10007 2011-07-25  Andreas Schwab  <schwab@redhat.com>
10008
10009         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
10010         __n bigger than INT_MAX+1.
10011         (__strncmp_g): Likewise.
10012
10013 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
10014
10015         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
10016         * libio/stido.h: Likewise.
10017
10018         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
10019         (AF_NFC): Define.
10020         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
10021         (AF_NFC): Define.
10022
10023         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
10024         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10025         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10026         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10027         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10028
10029         [BZ #13021]
10030         * scripts/test-installation.pl: Don't expect libnss_test1 to be
10031         installed.
10032
10033         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
10034         typo.
10035         (_dl_x86_64_save_sse): Likewise.
10036
10037 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
10038
10039         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
10040         OSXSAVE.
10041         (_dl_x86_64_save_sse): Likewise.
10042
10043         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
10044
10045         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
10046
10047 2011-07-21  Andreas Schwab  <schwab@redhat.com>
10048
10049         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
10050         change.
10051         (_dl_x86_64_save_sse): Use correct AVX check.
10052
10053 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10054
10055         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
10056         bug in strncpy/strncat.
10057         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
10058
10059 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
10060
10061         * string/tester.c (test_strcat): Add tests for different alignments
10062         of source and destination.
10063         (test_strncat): Likewise.
10064
10065 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
10066
10067         [BZ #12852]
10068         * posix/glob.c (glob): Check passed in values before using them in
10069         expressions to avoid some overflows.
10070         (glob_in_dir): Likewise.
10071
10072         [BZ #13007]
10073         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
10074         check for AVX enablement so that we don't crash with old kernels and
10075         new hardware.
10076         * elf/tst-audit4.c: Add same checks here.
10077         * elf/tst-audit6.c: Likewise.
10078
10079         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
10080
10081 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
10082
10083         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
10084
10085 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
10086
10087         * po/cs.po: Update from translation team.
10088         * po/bg.po: Likewise.
10089
10090 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
10091
10092         * misc/sys/cdefs.h: Add support for const attribute.
10093         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
10094         to gnu_dev_{major,minor,makedev} functions.
10095
10096 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
10097
10098         * intl/dcigettext.c (get_output_charset): Add missing bracket.
10099
10100 2011-07-20  Andreas Schwab  <schwab@redhat.com>
10101
10102         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
10103         strlen results.
10104
10105 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10106
10107         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
10108         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
10109         register in order to avoid conflicts with the soft frame pointer
10110         being held in r11 when necessary.
10111         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
10112         (INTERNAL_VSYSCALL_NCS): Likewise.
10113
10114 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
10115
10116         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
10117         * elf/dl-fini.c (_dl_fini): Adjust caller.
10118         * elf/dl-close.c (_dl_close_worker): Likewise.
10119         * sysdeps/generic/ldsodefs.h: Adjust declaration.
10120
10121 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
10122
10123         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
10124         "aux_cache->nlibs < 0".
10125
10126         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
10127         in the reload-count case.
10128
10129 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10130
10131         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10132         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
10133         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
10134         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
10135         * sysdeps/x86_64/multiarch/strcat.S: New file.
10136         * sysdeps/x86_64/multiarch/strncat.S: New file.
10137         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
10138         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
10139         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
10140         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
10141         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
10142         (USE_AS_STRCAT): Define.
10143         Add strcat and strncat support.
10144         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
10145         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
10146         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
10147         * string/strncat.c: Update.
10148         (USE_AS_STRNCAT): Define.
10149         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10150         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
10151         and i7.
10152         * sysdeps/x86_64/multiarch/init-arch.h
10153         (bit_Prefer_PMINUB_for_stringop): New.
10154         (index_Prefer_PMINUB_for_stringop): Likewise.
10155         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
10156         bit_Prefer_PMINUB_for_stringop.
10157
10158 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
10159
10160         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
10161         buffer64.
10162         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
10163         of casting of buffer.
10164         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
10165         buffer32 and buffer64.
10166         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
10167         writes instead of casting of buffer.
10168         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
10169         buffer32.
10170         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
10171         casting of buffer.
10172
10173 2011-07-19  Andreas Schwab  <schwab@redhat.com>
10174
10175         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
10176
10177 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
10178
10179         * nscd/nscd.c (termination_handler): Don't do anything for a database
10180         if it has not yet been initialized.
10181
10182 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
10183
10184         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
10185
10186 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
10187
10188         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
10189
10190 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
10191
10192         * po/nl.po: Update from translation team.
10193         * po/sv.po: Likewise.
10194
10195 2011-07-16  Roland McGrath  <roland@hack.frob.com>
10196
10197         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
10198         now disallowed by GCC.
10199
10200         * configure.in (use-default-link): Default to yes if a test -shared
10201         link meets our qualifications.
10202         * configure: Regenerated.
10203
10204         * config.make.in (output-format): New variable.
10205         * configure.in: Check for ld --print-output-format support.
10206         * configure: Regenerated.
10207         * Makerules ($(common-objpfx)format.lds)
10208         [$(output-format) != unknown]: Just use $(output-format),
10209         instead of the linker-script munging.
10210
10211 2011-07-14  Roland McGrath  <roland@hack.frob.com>
10212
10213         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
10214         of $(common-objpfx)shlib.lds.
10215         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
10216
10217         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
10218         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
10219
10220         * configure.in (-z relro check): Adjust test code to add a large
10221         writable data section after it.
10222         * configure: Regenerated.
10223
10224 2011-07-11  Roland McGrath  <roland@hack.frob.com>
10225
10226         * configure.in (-z relro check): Fix test code to make the variable
10227         truly const.
10228         * configure: Regenerated.
10229
10230 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
10231
10232         * nscd/nscd.h (struct traced_file): Define.
10233         (struct database_dyn): Remove inotify_descr, reset_res, and filename
10234         elements.  Add traced_files.
10235         (inotify_fd): Declare.
10236         (register_traced_file): Declare.
10237         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
10238         (inotify_fd): Export.
10239         (resolv_conf_descr): Remove.
10240         (nscd_init): Move inotify descriptor creation to main.
10241         Don't register files for notification here.
10242         (register_traced_file): New function.
10243         (invalidate_cache): Don't use reset_res to determine whether to call
10244         res_init, go through the list of registered files.
10245         (main_loop_poll): The inotify descriptors are now stored in the
10246         structures for the traced files.
10247         (main_loop_epoll): Likewise
10248         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
10249         to __nss_disable_nscd.
10250         * nscd/cache.c (prune_cache): There is no single inotify descriptor
10251         for a database anymore.  Check the records for all the registered
10252         files instead.
10253         * nss/Makefile (libnss_files-routines): Add files-init.
10254         (libnss_db-routines): Add db-init.
10255         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
10256         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
10257         * nss/nss_db/db-init.c: New file.
10258         * nss/nss_files/files-init.c: New file.
10259         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
10260         __nss_lookup_function.
10261         (__nss_lookup_function): Call nss_load_library.
10262         (nss_load_all_libraries): New function.
10263         (__nss_disable_nscd): Take parameter with callback function for files
10264         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
10265         used for the cached services.
10266         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
10267         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
10268         options for features to all the files in nscd.
10269
10270         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
10271
10272 2011-07-10  Roland McGrath  <roland@hack.frob.com>
10273
10274         * csu/elf-init.c (__libc_csu_init): Comment typo.
10275
10276 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
10277
10278         * po/pl.po: Update from translation team.
10279         * po/ja.po: Likewise.
10280         * po/ru.po: Likewise.
10281         * po/ko.po: Likewise.
10282         * po/fr.po: Likewise.
10283
10284 2011-07-09  Roland McGrath  <roland@hack.frob.com>
10285
10286         * configure.in (.ctors/.dtors header and trailer check):
10287         Use an empirical test on a built program.
10288         * configure: Regenerated.
10289
10290         * configure.in (-z relro check): Use an empirical test on a built DSO.
10291         Detect, but do not require, on ia64.
10292         * configure: Regenerated.
10293
10294         * configure.in (READELF): Find it with AC_CHECK_TOOL.
10295         Update tests that use readelf to use $READELF instead.
10296         * configure: Regenerated.
10297
10298 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
10299
10300         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
10301         if the result is not used.
10302
10303 2011-07-05  Andreas Jaeger  <aj@suse.de>
10304
10305         [BZ#9696]
10306         * stdlib/tst-strtod.c: Add testcase.
10307
10308 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
10309
10310         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
10311         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
10312         The latter has a higher limit.  Take additional parameter to pass to
10313         the new function.
10314         (__pathconf): Pass file to __statfs_link_max.
10315         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
10316         __statfs_link_max.
10317         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
10318         __statfs_link_max.
10319
10320         [BZ #12868]
10321         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
10322         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10323         Handle Lustre.
10324         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
10325         (__statfs_filesize_max): Likewise.
10326         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
10327
10328 2011-07-05  Andreas Jaeger  <aj@suse.de>
10329
10330         * resolv/res_comp.c (dn_skipname): Remove unused variable.
10331
10332 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
10333
10334         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
10335         `status' variable.
10336         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
10337         Likewise.
10338
10339 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
10340
10341         * Makefile (strop-tests): Add strncat.
10342         * string/test-strncat.c: New file.
10343
10344 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
10345
10346         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
10347
10348 2011-06-21  Andreas Jaeger  <aj@suse.de>
10349
10350         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
10351         Copy rule from iconvdata/Makefile.
10352
10353 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
10354
10355         [BZ #12922]
10356         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
10357         but no long options are defined, just return 'W'.
10358
10359 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
10360
10361         [BZ #9696]
10362         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
10363
10364 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
10365
10366         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
10367         netgroups to read.
10368         (innetgr): Likewise.
10369
10370 2011-07-05  Roland McGrath  <roland@hack.frob.com>
10371
10372         * config.make.in (install_root): Default to $(DESTDIR).
10373
10374 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
10375
10376         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
10377
10378 2011-07-02  Roland McGrath  <roland@hack.frob.com>
10379
10380         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
10381
10382         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
10383         containing directory rather than embedding absolute directory names.
10384
10385         * scripts/check-local-headers.sh: Rewritten using awk.
10386         Match by word, not by line.  Print error messages for matches.
10387         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
10388
10389         * Makerules [shlib-lds-flags empty]:
10390         ($(common-objpfx)libc_pic.opts): New target.
10391         ($(common-objpfx)libc_pic.os.clean): New target.
10392         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
10393
10394         * config.make.in (OBJCOPY): New variable.
10395         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
10396         * configure: Regenerated.
10397
10398         * config.make.in (use-default-link): New variable.
10399         * configure.in (use_default_link): Grok --with-default-link to set it.
10400         * configure: Regenerated.
10401         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
10402         (shlib-lds, shlib-lds-flags): Define to empty.
10403
10404         * Makerules (shlib-lds): New variable.
10405         (shlib-lds-flags): New variable.
10406         (build-shlib, build-moduile, build-module-asneeded): Use it.
10407         ($(common-objpfx)libc.so): Use $(shlib-lds).
10408         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
10409         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
10410
10411         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
10412         DT_FLAGS/DT_FLAGS_1 with zero flags.
10413
10414         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
10415         linker script munging.
10416
10417 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
10418
10419         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
10420         as 128-bit value.
10421         * crypt/sha512.c (sha512_process_block): Perform total addition using
10422         128-bit if possible.
10423         (__sha512_finish_ctx): Likewise.
10424         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
10425         as 64-bit value.
10426         * crypt/sha256.c (SWAP64): Define.
10427         (sha256_process_block): Perform total addition using 64-bit if
10428         possible.
10429         (__sha256_finish_ctx): Likewise.
10430
10431 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
10432
10433         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
10434         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10435         * nscd/hstcache.c (cache_addhst): Likewise.
10436         * nscd/grpcache.c (cache_addgr): Likewise.
10437         * nscd/aicache.c (addhstaiX): Likewise
10438         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
10439
10440 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
10441
10442         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
10443         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10444         * nscd/hstcache.c (cache_addhst): Likewise.
10445         * nscd/grpcache.c (cache_addgr): Likewise.
10446         * nscd/aicache.c (addhstaiX): Likewise
10447
10448 2011-07-01  Andreas Schwab  <schwab@redhat.com>
10449
10450         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
10451         domain only when needed.
10452
10453 2011-06-30  Andreas Schwab  <schwab@redhat.com>
10454
10455         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
10456         is always restored.
10457
10458 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
10459
10460         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
10461         are re-adding the entry.
10462         * nscd/servicescache.c (cache_addserv): Likewise.
10463
10464 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
10465
10466         * sysdeps/generic/dl-irel.h: fix protection against multiple
10467         inclusions.
10468         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
10469
10470 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
10471
10472         [BZ #12935]
10473         * malloc/memusage.sh: Fix quoting in message.
10474         * debug/xtrace.sh: Likewise.
10475
10476         * configure.in: Remove support for --experimental-malloc option, make
10477         it the default.
10478         * config.make.in: Likewise.
10479         * malloc/Makefile: Likewise.
10480
10481 2011-06-27  Andreas Schwab  <schwab@redhat.com>
10482
10483         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
10484         two-byte characters.
10485
10486 2011-06-27  Roland McGrath  <roland@hack.frob.com>
10487
10488         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
10489         AC_CACHE_CHECK invocation.
10490         * configure: Regenerated.
10491
10492         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
10493
10494 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
10495
10496         [BZ #12350]
10497         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
10498         bit from old_res_options.
10499
10500         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
10501
10502         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
10503         value type for setfct.
10504
10505 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
10506
10507         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
10508         __gettimeofday instead of gettimeofday.
10509
10510 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
10511
10512         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
10513
10514 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10515
10516         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
10517
10518         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
10519         info.
10520
10521 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10522
10523         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10524         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
10525         strcpy-sse2-unaligned strncpy-sse2-unaligned
10526         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
10527         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
10528         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
10529         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
10530         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
10531         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
10532         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
10533         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
10534         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
10535         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
10536         (STRCPY): Support SSE2 and SSSE3 versions.
10537
10538 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
10539
10540         [BZ #12874]
10541         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
10542         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
10543         kernels which artificially limit size of requests.
10544
10545 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10546
10547         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10548         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
10549         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
10550         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
10551         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
10552         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
10553         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
10554         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
10555         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
10556         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
10557         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
10558         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
10559         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
10560         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
10561         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
10562         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10563         Enable unaligned load optimization for Intel Core i3, i5 and i7
10564         processors.
10565         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
10566         Define.
10567         (index_Fast_Unaligned_Load): Define.
10568         (HAS_FAST_UNALIGNED_LOAD): Define.
10569
10570 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
10571
10572         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
10573
10574 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
10575
10576         [BZ #12907]
10577         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
10578         until it is clear that the information is realy needed.
10579         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
10580
10581 2011-06-22  Andreas Schwab  <schwab@redhat.com>
10582
10583         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
10584
10585 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
10586
10587         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
10588         /sys/devices/system/cpu/online if it is usable.
10589
10590         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
10591         reading the information from the /proc filesystem to once a second.
10592
10593 2011-06-21  Andreas Jaeger  <aj@suse.de>
10594
10595         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
10596         NULL after inclusion of kernel headers.
10597
10598 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
10599
10600         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
10601         calls to internal_setent.
10602
10603         [BZ #12885]
10604         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
10605         addresses using gethostbyname4_r ignore IPv4 addresses.
10606
10607         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
10608         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
10609
10610         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
10611
10612 2011-06-20  David S. Miller  <davem@davemloft.net>
10613
10614         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
10615         inclusions.
10616         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
10617
10618         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
10619         (elf_irel): Use it.
10620         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
10621         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
10622         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
10623         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
10624         * sysdeps/x86_64/dl-irel.h: Likewise.
10625
10626         * elf/dl-runtime.c: Use elf_ifunc_invoke.
10627         * elf/dl-sym.c: Likewise.
10628
10629 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
10630
10631         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
10632         need to dereference resplen2.
10633
10634 2011-06-14  Andreas Schwab  <schwab@redhat.com>
10635
10636         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
10637
10638 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
10639
10640         * Makeconfig: Define vardbdir and inst_vardbdir.
10641         * nss/Makefile: Add rules to install db-Makefile.
10642
10643         * nss/nss_db/db-XXX.c: Cleanup.
10644
10645         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
10646         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
10647         GLIBC_PRIVATE.
10648         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
10649         * nss/makedb.c: Implement -g option to specify that value strings
10650         are generated and should not be added to table iterated over for
10651         get*ent calls.
10652         * nss/nss_db/db-initgroups.c: New file.
10653
10654         * nss/getent.c: Add support for initgroups lookups through getgrouplist
10655         interface.
10656
10657         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
10658         (internal_getgrouplist): Adjust to name change.
10659         Update use_initgroups_entry if this is not the first call.
10660         * nss/databases.def: Add initgroups entry.
10661
10662         * nss/makedb.c (compute_tables): Check result of multiple hash table
10663         sizes to minimize maximum chain length.
10664
10665 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
10666
10667         * Versions.def: Add entry for libnss_db.
10668         * shlib-versions: Likewise.
10669         * nss/Makefile: Add rules to build libnss_db.
10670         * nss/Versions: Add libnss_db information.  Organize libnss_files
10671         entries better.
10672         * nss/db-Makefile: Add gshadow support.  Change rules for the new
10673         makedb progra.  Some minor improvements to generate smaller files.
10674         * nss/nss_db/nss_db.h: Move NSS database header data structures to
10675         here from...
10676         * nss/makedb.c: ...here.
10677         Improve database format to be smaller and require less memory at
10678         runtime.
10679         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
10680         db anymore.
10681         * nss/nss_db/db-netgrp.c: Likewise.
10682         * nss/nss_db/db-open.c: Likewise.
10683         * nss/nss_files/flies-XXX.x: Adjust comments.
10684         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
10685         * nss/nss_files/files-grp.c: Likewise.
10686         * nss/nss_files/files-hosts.c: Likewise.
10687         * nss/nss_files/files-network.c: Likewise.
10688         * nss/nss_files/files-proto.c: Likewise.
10689         * nss/nss_files/files-pwd.c: Likewise.
10690         * nss/nss_files/files-rpc.c: Likewise.
10691         * nss/nss_files/files-service.c: Likewise.
10692         * nss/nss_files/files-sgrp.c: Likewise.
10693         * nss/nss_files/files-spwd.c: Likewise.
10694         * nss/nss_db/db-alias.c: Removed.
10695         * nss/nss_db/dummy-db.h: Removed.
10696
10697 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
10698
10699         * nss/makedb.c: Rewritten to not use database library.
10700         * nss/Makefile: Update to build new makedb program.
10701
10702 2011-06-14  Andreas Jaeger  <aj@suse.de>
10703
10704         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
10705         memset declaration.
10706
10707 2011-06-10  Andreas Schwab  <schwab@redhat.com>
10708
10709         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
10710         tmpbuf.
10711
10712 2011-06-10  Roland McGrath  <roland@hack.frob.com>
10713
10714         * Makerules (shlib.lds): Fail if the linker script comes out empty.
10715         * elf/Makefile ($(objpfx)ld.so): Likewise.
10716
10717         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
10718         Don't list ld.so twice in dependencies.
10719
10720         * posix/bug-regex31.c: Include <stdlib.h>.
10721
10722         * nscd/hstcache.c (cache_addhst): Remove unused variable.
10723
10724         * nis/nss_compat/compat-spwd.c
10725         (getspent_next_nss_netgr): Remove unused variable.
10726         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
10727
10728         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
10729         nonmembers" output to use the right array.
10730
10731         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
10732
10733         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
10734
10735         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
10736         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
10737         * catgets/gencat.c (read_input_file): Likewise.
10738         * locale/programs/locarchive.c (enlarge_archive): Likewise.
10739
10740         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
10741         variable definition inside #if's controlling its use.
10742
10743         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
10744
10745         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
10746
10747         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
10748
10749         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
10750         unreachable code.
10751
10752         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
10753
10754         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
10755         * configure: Regenerated.
10756
10757         * Makerules: Revert last change.
10758         * elf/Makefile: Likewise.
10759
10760 2011-06-09  Roland McGrath  <roland@hack.frob.com>
10761
10762         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
10763         * elf/Makefile ($(objpfx)librtld.os): Likewise.
10764         (reloc-link): Likewise.
10765
10766 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
10767
10768         * elf/Makefile: Add rules to build pldd.
10769         * elf/pldd.c: New file.
10770         * elf/pldd-xx.c: New file.
10771
10772 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
10773
10774         * version.h: Update for 2.15 development version.
10775
10776 2011-06-07  David S. Miller  <davem@davemloft.net>
10777
10778         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
10779         ifuncs.
10780         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
10781         elf_machine_lazy_rel): Likewise.
10782         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
10783         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
10784         elf_machine_lazy_rel): Likewise.
10785         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
10786         dl_hwcap via passed in argument.
10787         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
10788         Likewise.
10789
10790 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10791
10792         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
10793
10794 2011-06-06  Roland McGrath  <roland@hack.frob.com>
10795
10796         [BZ #12849]
10797         * manual/fdl-1.1.texi: New file, verbatim from:
10798         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
10799         * manual/lgpl-2.1.texi: New file, verbatim from:
10800         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
10801         * manual/Makefile (licenses): New variable, list those new file names.
10802         (texis): Use it.
10803         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
10804
10805         * manual/fdl.texi: File removed.
10806         * manual/lesser.texi: File removed.
10807         * manual/libc.texinfo (Copying, Documentation License):
10808         Use new @include file names, put @appendix directive before @include.
10809
10810 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
10811
10812         [BZ #12841]
10813         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
10814         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
10815         (mq_open): Add __NTH.
10816
10817 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
10818
10819         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10820         Assume Intel Core i3/i5/i7 processor if AVX is available.
10821
10822 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
10823
10824         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10825         typo.
10826
10827 2011-05-31  Andreas Schwab  <schwab@redhat.com>
10828
10829         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
10830         memory.  Use alloca_account.  Fix memory leak when retrying.
10831
10832 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
10833
10834         * version.h (RELEASE): Bump for 2.14 release.
10835         * include/features.h (__GLIBC_MINOR__): Bump to 14.
10836
10837         * config.make.in (RANLIB): Remove entry.
10838
10839 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
10840
10841         * po/Makefile (po-sed-cmd): Add ksh to extensions.
10842         (libc.pot): Work around missing support for .ksh extension in xgettext.
10843
10844         [BZ #12684]
10845         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
10846         if both request failed.
10847         (send_dg): In case of server errors clear resplen or *resplen2.
10848
10849         [BZ #12454]
10850         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
10851         when there are multiple maps.
10852         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
10853         (_dl_fini): Remove test here.
10854
10855         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
10856
10857 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
10858
10859         [BZ #12350]
10860         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
10861         bit from old_res_options.
10862         (gaih_inet): Likewise.
10863
10864         [BZ #11099]
10865         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
10866         as signed.
10867
10868         * resolv/res_init.c (res_setoptions): Make the code more compact.
10869
10870         [BZ #11558]
10871         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
10872         set RES_USEVC.
10873
10874         [BZ #11634]
10875         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
10876
10877         * malloc/malloc.h: Mark malloc hook variables as deprecated.
10878
10879         [BZ #11781]
10880         * malloc/malloc.h: Declare malloc hook variables as volatile.
10881
10882         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
10883         in last patch.
10884
10885         [BZ #11799]
10886         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
10887         raise in the comment.
10888         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10889         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10890         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
10891
10892 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
10893
10894         [BZ #12811]
10895         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
10896         grow the buffers more if it already has to be sufficient.
10897         (build_wcs_upper_buffer): Likewise.
10898         * posix/regexec.c (check_matching): Likewise.
10899         (clean_state_log_if_needed): Likewise.
10900         (extend_buffers): Don't enlarge buffers beyond size of the input
10901         buffer.
10902         Patches mostly by Emil Wojak <emil@wojak.eu>.
10903         * posix/bug-regex32.c: New file.
10904         * posix/Makefile (tests): Add bug-regex32.
10905
10906         * locale/findlocale.c (_nl_find_locale): Return right away if
10907         _nl_explode_name failed.
10908         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10909
10910         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
10911
10912         * debug/xtrace.sh: Unify messages.
10913         * malloc/memusage.sh: Likewise.
10914
10915         [BZ #12813]
10916         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
10917         time symbol from vDSO.  Substitute with vsyscall if not available.
10918         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
10919         __vdso_time.
10920
10921         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
10922         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
10923         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
10924         Add sendmmsg and internal_sendmmsg.
10925         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
10926         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
10927         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
10928
10929         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
10930         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
10931         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
10932
10933 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
10934
10935         [BZ #12813]
10936         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
10937         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
10938         available.
10939         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
10940         __vdso_getcpu.
10941
10942         [BZ #12814]
10943         * iconvdata/Makefile (tests): Add bug-iconv9.
10944         * iconvdata/bug-iconv9.c: New file.
10945
10946 2011-05-27  Andreas Schwab  <schwab@redhat.com>
10947
10948         [BZ #12814]
10949         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
10950
10951 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
10952
10953         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
10954         (struct user_regs_struct): Change intcs field back to cs.
10955
10956 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
10957
10958         * po/ja.po: Update from translation team.
10959
10960 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
10961
10962         [BZ #12795]
10963         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
10964         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
10965
10966 2011-05-20  Andreas Schwab  <schwab@redhat.com>
10967
10968         * stdlib/longlong.h: Update from GCC.
10969
10970 2011-05-23  Andreas Schwab  <schwab@redhat.com>
10971
10972         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
10973         parameter name.
10974         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
10975         Add parameter name.
10976         (__sysconf): Pass it down.
10977
10978 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
10979
10980         [BZ #12671]
10981         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
10982         some situations.
10983         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10984         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
10985         add in in __libc_use_alloca calls.  Adjust callers.
10986         (glob): Use malloc in some situations.
10987
10988         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
10989         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
10990         pltexit.
10991
10992 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
10993
10994         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
10995         and CLOCK_BOOTTIME_ALARM.
10996
10997         [BZ #12782]
10998         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
10999         is returned.
11000
11001         * string/_strerror.c (__strerror_r): Print negative errors as signed
11002         numbers.
11003
11004         [BZ #12777]
11005         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
11006         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
11007         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
11008
11009         * configure.in: Fix typo in redirection and correct removal of test
11010         files in two cases.
11011
11012         [BZ #12788]
11013         * locale/setlocale.c (new_composite_name): Fix test to check for
11014         identical name of all categories.
11015
11016         [BZ #12792]
11017         * libio/filedoalloc.c (local_isatty): New function.
11018         (_IO_file_doallocate): Use local_isatty.
11019         * stdio-common/perror.c (perror): In case a new stream is used
11020         forward the stream error.
11021         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
11022         error flag.
11023
11024 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
11025
11026         [BZ #11869]
11027         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
11028         alloca.
11029         * include/alloca.h (extend_alloca_account): Define.
11030
11031         [BZ #11857]
11032         * posix/regex.h: Fix comments with documentation of user-accessible
11033         fields after compilation and describe correct free'ing of pattern
11034         after re_compile_pattern.
11035         Patch by Reuben Thomas <rrt@sc3d.org>.
11036
11037 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
11038
11039         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
11040         and -mno-altivec to prevent the compiler from using Altivec and/or
11041         VSX instructions when the corresponding registers are not available.
11042
11043 2011-05-19  Andreas Schwab  <schwab@redhat.com>
11044
11045         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
11046
11047 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
11048
11049         * libio/freopen.c (freopen): Use __dup2, not dup2.
11050         * libio/freopen64.c (freopen64): Likewise.
11051
11052 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11053
11054         [BZ #12775]
11055         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
11056         * math/Makefile (tests): Add test-powl.
11057         (CFLAGS-test-powl.c): Define.
11058         * math/test-powl.c: New file.
11059
11060 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11061
11062         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
11063
11064 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
11065
11066         [BZ #11837]
11067         * iconvdata/gb18030.c: Update to GB18020-2005.
11068
11069 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
11070
11071         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
11072         RE_SYNTAX_POSIX_AWK): Update to match recent development.
11073         Patch by Aharon Robbins <arnold@skeeve.com>.
11074
11075         [BZ #11892]
11076         * stdlib/putenv.c (putenv): Don't always create copy of the variable
11077         on the stack.
11078
11079         [BZ #11895]
11080         * misc/pselect.c (__pselect): Handle timeout value errors hidden
11081         through underflows.
11082
11083         [BZ #12766]
11084         * misc/error.c (error_at_line): Ensure file_name and old_file_name
11085         point to strings before performing equality test for error_one_per_line
11086         mode.
11087
11088         [BZ #11697]
11089         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
11090
11091         [BZ #11820]
11092         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
11093         (struct user_fpregs_struct): Avoid __uint*_t types.
11094
11095         [BZ #6420]
11096         * malloc/mtrace.c (tr_where): Add additional parameter to point to
11097         symbol info.  Use it instead of calling _dl_addr locally.
11098         (lock_and_info): New function.
11099         (tr_freehook): Call lock_and_info and pass symbol info as additional
11100         parameter to tr_where.
11101         (tr_mallochook): Likewise.
11102         (tr_reallochook): Likewise.
11103         (tr_memalignhook): Likewise.
11104
11105         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
11106         used and couldn't be at all thread-safe.
11107
11108 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
11109
11110         * libio/freopen.c (freopen): Don't close old file descriptor
11111         before the new one is opened.  Instead dup the new file descriptor
11112         to the old one after the new stream is created.
11113         * libio/freopen64.c (freopen64): Likewise.
11114         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
11115         * libio/fileops.c (_IO_new_file_close_it): Handle new
11116         _IO_FLAGS2_NOCLOSE flag.
11117         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
11118         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
11119         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
11120         _IO_FLAGS2_NOCLOSE flag.
11121         * include/unistd.h: Add hidden_proto for dup3.
11122         Define __have_dup3.
11123         * io/dup3.c: Define hidden symbol.
11124         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
11125
11126         [BZ #7101]
11127         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
11128         when an incomplete long option is used.
11129         * posix/tst-getopt_long1.c: New file.
11130         * posix/Makefile (tests): Add tst-getopt_long1.
11131
11132         [BZ #10138]
11133         * scripts/config.guess: Update from autoconf-2.68.
11134         * scripts/config.sub: Likewise.
11135
11136         [BZ #10157]
11137         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
11138         tests into ...
11139         (has_cpuclock): ...this.  New function.
11140         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
11141         macro here based on has_cpuclock code.
11142
11143         [BZ #10149]
11144         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11145         First byte (not low byte) is now always NUL.
11146         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
11147
11148         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11149         Use non-cancelable interfaces.
11150
11151         [BZ #9809]
11152         * locale/iso-639.def: Add entry for Sorani.
11153
11154         [BZ #11901]
11155         * include/stdlib.h: Move include protection to the right place.
11156         Define abort_msg_s.  Declare __abort_msg with it.
11157         * stdlib/abort.c (__abort_msg): Adjust type.
11158         * assert/assert.c (__assert_fail_base): New function.  Majority
11159         of code from __assert_fail.  Allocate memory for __abort_msg with
11160         mmap.
11161         (__assert_fail): Now call __assert_fail_base.
11162         * assert/assert-perr.c: Remove bulk of implementation.  Use
11163         __assert_fail_base.
11164         * include/assert.hL Declare __assert_fail_base.
11165         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
11166         mmap.
11167         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
11168
11169 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
11170
11171         [BZ #11952]
11172         [BZ #12453]
11173         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
11174         until all modules are registered in the DTV.
11175         * elf/Makefile: Add rules to build and run tst-tls19.
11176         * elf/tst-tls19.c: New file.
11177         * elf/tst-tls19mod1.c: New file.
11178         * elf/tst-tls19mod2.c: New file.
11179         * elf/tst-tls19mod3.c: New file.
11180         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
11181
11182         [BZ #12083]
11183         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
11184         correctly.
11185
11186         [BZ #12601]
11187         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
11188         two-byte sequence errors.
11189         * iconvdata/Makefile (tests): Add bug-iconv8.
11190         * iconvdata/bug-iconv8.c: New file.
11191
11192         [BZ #12626]
11193         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
11194         buf2 definition.
11195
11196         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
11197
11198         [BZ #12432]
11199         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
11200         (dummy_getcfa): New function.
11201         (init): Get _Unwind_GetCFA address, use dummy if not found.
11202         (backtrace_helper): In recursion check, also check whether CFA changes.
11203         (__backtrace): Completely initialize arg.
11204
11205         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
11206         storing incomplete byte sequence in state object.  Avoid testing for
11207         guaranteed too small input if we know there is enough data available.
11208
11209 2011-05-11  Andreas Schwab  <schwab@redhat.com>
11210
11211         * Makeconfig (+link-pie): Indent.
11212         * Rules (binaries-pie): Define if $(have-fpie) and
11213         $(build-shared).
11214         (binaries-shared): Also filter out $(binaries-pie).
11215         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
11216         * nscd/Makefile (others-pie): Add nscd.
11217         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
11218         ($(objpfx)nscd): Remove command override.
11219         * login/Makefile (others-pie): Add pt_chown.
11220         ($(objpfx)pt_chown): Remove command override.
11221         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
11222         remove command overrides.
11223
11224 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
11225
11226         * libio/tst_putwc.c: Fix error messages.
11227
11228         [BZ #12724]
11229         * libio/fileops.c (_IO_new_file_close_it): Always flush when
11230         currently writing and seek to current position when not.
11231         * libio/Makefile (tests): Add bug-fclose1.
11232         * libio/bug-fclose1.c: New file.
11233
11234 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
11235
11236         [BZ #12511]
11237         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
11238         don't set DF_1_NODELETE here.
11239         (do_lookup_x): When entering new entry test for copy relocation
11240         and if necessary set DF_1_NODELETE flag.
11241         * elf/tst-unique4.cc: New file.
11242         * elf/tst-unique4.h: New file.
11243         * elf/tst-unique4lib.cc: New file.
11244         * elf/Makefile: Add rules to build and run tst-unique4.
11245         Patch by Piotr Bury <pbury@goahead.com>.
11246
11247 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11248
11249         [BZ #12052]
11250         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
11251
11252         [BZ #12625]
11253         * misc/mntent_r.c (addmntent): Flush the stream after the output
11254
11255         [BZ #12393]
11256         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
11257         (is_trusted_path_normalize): Skip initial colon.  Append slash
11258         to empty buffer.  Duplicate is_trusted_path code but allow
11259         constructed patch to be prefix.
11260         (is_dst): Allow $ORIGIN followed by /.
11261         (_dl_dst_substitute): Correct clearing of check_for_trusted.
11262         Correct testing of result of is_trusted_path_normalize
11263         (decompose_rpath): Fix warning.
11264
11265 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
11266
11267         [BZ #11257]
11268         * grp/initgroups.c (internal_getgrouplist): When we found the service
11269         list through the initgroups entry in nsswitch.conf do not always
11270         continue on a successful lookup.  Don't always use the
11271         __nss_group_database value if it is set.
11272         * nss/nsswitch.conf (initgroups): Change action for successful db
11273         lookup to continue for compatibility.
11274
11275 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
11276
11277         [BZ #11532]
11278         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
11279         and CP774 modules.
11280         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
11281         and CP774 modules.
11282         * iconvdata/tst-tables.sh: Likewise.
11283         * iconvdata/cp770.c: New file.
11284         * iconvdata/cp771.c: New file.
11285         * iconvdata/cp772.c: New file.
11286         * iconvdata/cp773.c: New file.
11287         * iconvdata/cp774.c: New file.
11288         * iconvdata/testdata/CP770: New file.
11289         * iconvdata/testdata/CP770..UTF8: New file.
11290         * iconvdata/testdata/CP771: New file.
11291         * iconvdata/testdata/CP771..UTF8: New file.
11292         * iconvdata/testdata/CP772: New file.
11293         * iconvdata/testdata/CP772..UTF8: New file.
11294         * iconvdata/testdata/CP773: New file.
11295         * iconvdata/testdata/CP773..UTF8: New file.
11296         * iconvdata/testdata/CP774: New file.
11297         * iconvdata/testdata/CP774..UTF8: New file.
11298
11299         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
11300         END CHARMAP line.
11301         * iconvdata/gen-8bit-gap.sh: Likewise.
11302         * iconvdata/gen-8bit.sh: Likewise.
11303
11304         * locale/iso-639.def: Add ary entry.
11305
11306         [BZ #11258]
11307         * locale/C-translit.h.in: Add U20A1 transliteration.
11308
11309         [BZ #12178]
11310         * locale/iso-639.def: Add wae entry.
11311         Patch by Kevin Bortis <bortis@translate-wae.ch>.
11312
11313         [BZ #12545]
11314         * locale/programs/localedef.c (construct_output_path): Use ssize_t
11315         for n.
11316
11317         [BZ #12711]
11318         * locale/C-translit.h.in: Add entry for U20B9.
11319         Patch by pravin.d.s@gmail.com.
11320
11321 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
11322
11323         [BZ #12713]
11324         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
11325         ENAMETOOLONG use generic getcwd.
11326         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
11327         in rtld.  Use *stat64.
11328         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
11329         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
11330         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
11331         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
11332         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
11333         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
11334         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
11335         __fstatat64 macros.
11336         * include/dirent.h: Add libc_hidden_proto for rewinddir.
11337         * dirent/rewinddir.c: Add libc_hidden_def.
11338         * sysdeps/mach/hurd/rewinddir.c: Likewise.
11339         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
11340
11341         * include/dirent.h (__alloc_dir): Add flags parameter.
11342         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
11343         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
11344         __alloc_dir.
11345         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
11346         from fdopendir if O_CLOEXEC is already set.
11347
11348 2011-03-15  Alan Modra  <amodra@gmail.com>
11349
11350         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
11351         l_tls_firstbyte_offset non-zero.  Save padding offset in
11352         l_tls_firstbyte_offset for later use.
11353         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
11354         freeing static tls block.
11355
11356 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
11357
11358         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
11359         where #ifdef was intended.  The intent is to prevent ARG_MAX from
11360         being defined by the kernel headers.
11361
11362 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
11363
11364         [BZ #12734]
11365         * resolv/resolv.h: Define RES_NOTLDQUERY.
11366         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
11367         no-tld-query and set RES_NOTLDQUERY.
11368         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
11369         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
11370         modern BIND to search name as TLD unless forbidden.
11371
11372 2011-05-07  Petr Baudis  <pasky@suse.cz>
11373             Ulrich Drepper  <drepper@gmail.com>
11374
11375         [BZ #12393]
11376         * elf/dl-load.c (fillin_rpath): Move trusted path check...
11377         (is_trusted_path): ...to here.
11378         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
11379         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
11380         using is_trusted_path_normalize() in setuid scripts.
11381
11382 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11383
11384         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
11385         __BEGIN/__END_DECLS.
11386
11387 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
11388
11389         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
11390         NSS_STATUS_NOTFOUND if no record was found.
11391
11392 2011-05-05  Andreas Schwab  <schwab@redhat.com>
11393
11394         * sunrpc/Makefile (headers): Add rpc/netdb.h.
11395         (headers-not-in-tirpc): Remove rpc/netdb.h
11396         * resolv/netdb.h: Revert last change.
11397
11398 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11399
11400         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
11401         circular dependency between libgcc.a and libc.a.
11402
11403 2011-05-05  Andreas Schwab  <schwab@redhat.com>
11404
11405         * resolv/netdb.h: Don't include <rpc/netdb.h>.
11406         * nis/Makefile: Don't install rpcsvc/*.
11407         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
11408         instead of <rpc/types.h>.
11409         (MAXHOSTNAMELEN): Define.
11410
11411 2011-05-03  Andreas Schwab  <schwab@redhat.com>
11412
11413         * elf/ldconfig.c (add_dir): Don't crash on empty path.
11414
11415 2011-04-28  Maciej Babinski  <mbabinski@google.com>
11416
11417         [BZ #12714]
11418         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
11419         gethostbyname4_r when IPv6 results are possible.
11420
11421 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
11422
11423         [BZ #12723]
11424         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
11425         _PC_PIPE_BUF handling.
11426
11427 2011-04-30  Bruno Haible  <bruno@clisp.org>
11428
11429         [BZ #12717]
11430         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
11431         * resolv/netdb.h (getnameinfo): Change type of flags parameter
11432         to 'int'.
11433         * inet/getnameinfo.c (getnameinfo): Likewise.
11434
11435 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
11436
11437         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
11438         to groups setting in database lookup.
11439         * nss/nsswitch.conf: Add initgroups entry.
11440
11441 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
11442
11443         [BZ #12685]
11444         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
11445         mode string.
11446         Patch by Eric Blake <eblake@redhat.com>.
11447
11448 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11449
11450         * sunrpc/Makefile (need-export-routines): Add svc_run.
11451         (routines): Remove svc_run.
11452         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
11453         * sunrpc/clnt_perr.c (clnt_perrno): Export.
11454         * sunrpc/svc_run.c (svc_run): Likewise.
11455         * sunrpc/svc_udp.c (svcudp_create): Likewise.
11456
11457 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
11458
11459         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
11460         problem in reallocation in last patch.
11461
11462 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
11463
11464         * sunrpc/Makefile: Move inclusion of Rules.
11465
11466 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
11467
11468         * nss/nss_files/files-initgroups.c: New file.
11469         * nss/Makefile (libnss_files-routines): Add files-initgroups.
11470         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
11471         _nss_files_initgroups_dyn.
11472
11473 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
11474
11475         * elf/elf.h (R_ARM_IRELATIVE): Define.
11476
11477 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
11478
11479         * po/ru.po: Update from translation team.
11480
11481 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
11482
11483         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
11484         dependencies.
11485
11486 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
11487
11488         [BZ #12653]
11489         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
11490         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
11491         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11492         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
11493         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
11494
11495 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
11496
11497         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
11498         differing bytes.
11499         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
11500         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
11501         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11502
11503 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
11504
11505         [BZ #12420]
11506         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
11507         storing it.
11508         * stdlib/bug-getcontext.c: New file.
11509         * stdlib/Makefile: Add rules to build and run bug-getcontext.
11510
11511 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11512
11513         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
11514         instructions into .machine "z9-109".
11515         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
11516         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
11517
11518 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11519
11520         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
11521         between environment variables and auxiliary vector.
11522
11523 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
11524
11525         * Makefile: Add rules to build linkobj/libc.so.
11526         * include/libc-symbols.h: Define libc_hidden_nolink.
11527         * include/rpc/auth.h: Mark functions which are to be hidden.
11528         * include/rpc/auth_des.h: Likewise.
11529         * include/rpc/auth_unix.h: Likewise.
11530         * include/rpc/clnt.h: Likewise.
11531         * include/rpc/des_crypt.h: Likewise.
11532         * include/rpc/key_prot.h: Likewise.
11533         * include/rpc/pmap_clnt.h: Likewise.
11534         * include/rpc/pmap_prot.h: Likewise.
11535         * include/rpc/pmap_rmt.h: Likewise.
11536         * include/rpc/rpc_msg.h: Likewise.
11537         * include/rpc/svc.h: Likewise.
11538         * include/rpc/svc_auth.h: Likewise.
11539         * include/rpc/xdr.h: Likewise.
11540         * nis/Makefile: Link all DSOs against linkobj/libc.so.
11541         * nss/Makefile: Likewise.
11542         * sunrpc/Makefile: Don't install headers.  Build library with normal
11543         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
11544         * sunrpc/auth_des.c: Hide exported symbols by default, export some
11545         for the compat linking library.  Remove use of INTDEF/INTUSE.
11546         * sunrpc/auth_none.c: Likewise.
11547         * sunrpc/auth_unix.c: Likewise.
11548         * sunrpc/authdes_prot.c: Likewise.
11549         * sunrpc/authuxprot.c: Likewise.
11550         * sunrpc/clnt_gen.c: Likewise.
11551         * sunrpc/clnt_perr.c: Likewise.
11552         * sunrpc/clnt_raw.c: Likewise.
11553         * sunrpc/clnt_simp.c: Likewise.
11554         * sunrpc/clnt_tcp.c: Likewise.
11555         * sunrpc/clnt_udp.c: Likewise.
11556         * sunrpc/clnt_unix.c: Likewise.
11557         * sunrpc/des_crypt.c: Likewise.
11558         * sunrpc/des_soft.c: Likewise.
11559         * sunrpc/get_myaddr.c: Likewise.
11560         * sunrpc/key_call.c: Likewise.
11561         * sunrpc/key_prot.c: Likewise.
11562         * sunrpc/netname.c: Likewise.
11563         * sunrpc/pm_getmaps.c: Likewise.
11564         * sunrpc/pm_getport.c: Likewise.
11565         * sunrpc/pmap_clnt.c: Likewise.
11566         * sunrpc/pmap_prot.c: Likewise.
11567         * sunrpc/pmap_prot2.c: Likewise.
11568         * sunrpc/pmap_rmt.c: Likewise.
11569         * sunrpc/publickey.c: Likewise.
11570         * sunrpc/rpc_cmsg.c: Likewise.
11571         * sunrpc/rpc_common.c: Likewise.
11572         * sunrpc/rpc_dtable.c: Likewise.
11573         * sunrpc/rpc_prot.c: Likewise.
11574         * sunrpc/rpc_thread.c: Likewise.
11575         * sunrpc/rtime.c: Likewise.
11576         * sunrpc/svc.c: Likewise.
11577         * sunrpc/svc_auth.c: Likewise.
11578         * sunrpc/svc_authux.c: Likewise.
11579         * sunrpc/svc_raw.c: Likewise.
11580         * sunrpc/svc_run.c: Likewise.
11581         * sunrpc/svc_simple.c: Likewise.
11582         * sunrpc/svc_tcp.c: Likewise.
11583         * sunrpc/svc_udp.c: Likewise.
11584         * sunrpc/svc_unix.c: Likewise.
11585         * sunrpc/svcauth_des.c: Likewise.
11586         * sunrpc/xcrypt.c: Likewise.
11587         * sunrpc/xdr.c: Likewise.
11588         * sunrpc/xdr_array.c: Likewise.
11589         * sunrpc/xdr_float.c: Likewise.
11590         * sunrpc/xdr_intXX_t.c: Likewise.
11591         * sunrpc/xdr_mem.c: Likewise.
11592         * sunrpc/xdr_rec.c: Likewise.
11593         * sunrpc/xdr_ref.c: Likewise.
11594         * sunrpc/xdr_sizeof.c: Likewise.
11595         * sunrpc/xdr_stdio.c: Likewise.
11596
11597 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
11598
11599         [BZ #12650]
11600         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
11601         * sysdeps/ia64/dl-tls.h: Likewise.
11602         * sysdeps/powerpc/dl-tls.h: Likewise.
11603         * sysdeps/s390/dl-tls.h: Likewise.
11604         * sysdeps/sh/dl-tls.h: Likewise.
11605         * sysdeps/sparc/dl-tls.h: Likewise.
11606         * sysdeps/x86_64/dl-tls.h: Likewise.
11607         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
11608
11609 2011-03-14  Andreas Schwab  <schwab@redhat.com>
11610
11611         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
11612         rpath element also skip the following colon.
11613         (expand_dynamic_string_token): Add is_path parameter and pass
11614         down to DL_DST_REQUIRED and _dl_dst_substitute.
11615         (decompose_rpath): Call expand_dynamic_string_token with
11616         non-zero is_path.  Ignore empty rpaths.
11617         (_dl_map_object_from_fd): Call expand_dynamic_string_token
11618         with zero is_path.
11619
11620 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
11621
11622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
11623         Make cancelable.
11624
11625 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
11626
11627         [BZ #12655]
11628         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
11629         Patch by Filipe David Manana <fdmanana@apache.org>.
11630
11631 2011-04-07  Andreas Schwab  <schwab@redhat.com>
11632
11633         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
11634         Maintain aligned stack.
11635         (CHECK_RSP): Remove unused macro.
11636
11637 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
11638
11639         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
11640         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
11641
11642 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
11643
11644         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
11645
11646         * include/features.h: Mention __USE_XOPEN2K8 in comment.
11647
11648 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11649
11650         [BZ #12518]
11651         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
11652         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
11653         * sysdeps/x86_64/memmove.c: New file.
11654         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
11655         (memcpy): Renamed to ...
11656         (__new_memcpy): This.
11657         (memcpy): Provide GLIBC_2_14 memcpy.
11658         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
11659         (memcpy): Provide GLIBC_2_2_5 memcpy.
11660
11661 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11662
11663         [BZ #12631]
11664         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
11665
11666 2011-03-30  Andreas Schwab  <schwab@redhat.com>
11667
11668         * misc/syncfs.c: New file.
11669         * misc/Makefile (routines): Add syncfs.
11670         * posix/unistd.h: Declare syncfs.
11671         * sysdeps/unix/syscalls.list: Add syncfs.
11672
11673 2011-04-01  Andreas Schwab  <schwab@redhat.com>
11674
11675         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
11676         open_by_handle_at.
11677         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11678         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11679         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11680         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11681         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11682         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
11683         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11684
11685 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11686
11687         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
11688         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11689         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11690         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11691         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11692         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11693         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11694
11695         * io/Makefile: Compile fallocate.c, fallocate64.c, and
11696         sync_file_range.c with -fexceptions.
11697         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
11698         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
11699         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
11700         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
11701         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
11702         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
11703         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
11704         sync_file_range as cancellation point
11705         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
11706         now a wrapper around __call_sync_file_range with cancellation handling.
11707         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
11708         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
11709         function name to __call_sync_file_range.
11710         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
11711         Add call_sync_file_range.
11712
11713 2011-04-01  Andreas Schwab  <schwab@redhat.com>
11714
11715         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11716         bits/timex.h.
11717
11718 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11719
11720         * iconv/iconv.h: Fix typo in comment.
11721         * io/fcntl.h: Likewise.
11722         * libio/stdio.h: Likewise.
11723         * posix/spawn.h: Likewise.
11724         * posix/unistd.h: Likewise.
11725         * stdlib/stdlib.h: Likewise.
11726         * time/time.h: Likewise.
11727         * wcsmbs/wchar.h: Likewise.
11728
11729         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
11730         open_by_handle): Add.
11731         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
11732         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
11733         Augment a few comments.
11734         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11735         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11736         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11737         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11738         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11739         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
11740         open_by_handle.
11741
11742         * io/fcntl.h (AT_EMPTY_PATH): Define.
11743
11744 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
11745
11746         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
11747         * sysdeps/unix/sysv/linux/bits/time.h: New file.
11748         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
11749         to...
11750         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
11751         * Versions.def: Add GLIBC_2.14.
11752         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
11753         Export.
11754
11755 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
11756
11757         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
11758         round counter.
11759         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
11760
11761 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11762
11763         [BZ #12597]
11764         * string/test-strncmp.c (do_page_test): New function.
11765         (check2): Likewise.
11766         (test_main): Call check2.
11767         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
11768
11769 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
11770
11771         [BZ #12587]
11772         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11773         Handle cache information in CPU leaf 4.
11774         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
11775
11776 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
11777
11778         [BZ #12583]
11779         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
11780         character representation.
11781         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
11782
11783 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
11784
11785         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
11786         END(__isnan) to END(__isnanf) to match function entry point/label
11787         EALIGN(__isnanf,...).
11788
11789 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11790
11791         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
11792
11793 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
11794
11795         [BZ #12510]
11796         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
11797         copy from the symbol referenced in the relocation to initialize the
11798         used variable.
11799         Patch by Piotr Bury <pbury@goahead.com>.
11800         * elf/Makefile: Add rules to build and tst-unique3.
11801         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
11802         * elf/tst-unique3.cc: New file.
11803         * elf/tst-unique3.h: New file.
11804         * elf/tst-unique3lib.cc: New file.
11805         * elf/tst-unique3lib2.cc: New file.
11806
11807         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
11808
11809 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
11810
11811         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
11812         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
11813         to _start.
11814
11815 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
11816
11817         * elf/dl-load.c (_dl_map_object): If we are looking for the first
11818         to-be-loaded object along a path to loader is ld.so.
11819
11820 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
11821             Ulrich Drepper  <drepper@gmail.com>
11822
11823         * sysdeps/x86_64/memset.S: After aligning destination, code
11824         branches to different locations depending on the value of
11825         misalignment, when multiarch is enabled. Fix this.
11826
11827 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
11828
11829         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
11830         Set _x86_64_preferred_memory_instruction for AMD processsors.
11831         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11832         Set bit_Prefer_SSE_for_memop for AMD processors.
11833
11834 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
11835
11836         * libio/fmemopen.c (fmemopen): Optimize a bit.
11837
11838 2011-03-03  Andreas Schwab  <schwab@redhat.com>
11839
11840         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
11841
11842 2011-03-03  Roland McGrath  <roland@redhat.com>
11843
11844         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
11845
11846 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
11847
11848         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
11849         __bzero_ultra1 instead of __memset_ultra1.
11850
11851 2011-02-23  Andreas Schwab  <schwab@redhat.com>
11852             Ulrich Drepper  <drepper@gmail.com>
11853
11854         [BZ #12509]
11855         * include/link.h (struct link_map): Add l_orig_initfini.
11856         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
11857         returning unsuccessfully.
11858         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
11859         close of a file loaded at startup, restore the original l_initfini
11860         list.
11861         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
11862         list, store the pointer.
11863         * elf/Makefile ($(objpfx)noload-mem): New rule.
11864         (noload-ENV): Define.
11865         (tests): Add $(objpfx)noload-mem.
11866         * elf/noload.c: Include <memcheck.h>.
11867         (main): Call mtrace.  Close all opened handles.
11868
11869 2011-02-17  Andreas Schwab  <schwab@redhat.com>
11870
11871         [BZ #12454]
11872         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
11873         dependencies are missing.
11874
11875 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11876
11877         Fix __if_freereq crash: Unlike the generic version which uses free,
11878         Hurd needs munmap.
11879         * sysdeps/mach/hurd/ifreq.h: New file.
11880
11881 2011-01-27  Petr Baudis  <pasky@suse.cz>
11882             Ulrich Drepper  <drepper@gmail.com>
11883
11884         [BZ 12445]#
11885         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
11886         to extend_alloca().
11887         * stdio-common/bug23.c: New file.
11888         * stdio-common/Makefile (tests): Add bug23.
11889
11890 2010-09-28  Andreas Schwab  <schwab@redhat.com>
11891             Ulrich Drepper  <drepper@gmail.com>
11892
11893         [BZ #12489]
11894         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
11895         before performing relro protection.  At old place add assertion
11896         to make sure nothing changed.
11897
11898 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
11899             Glauber de Oliveira Costa  <glommer@gmail.com>
11900
11901         * elf/elf.h: Add new ARM TLS relocs.
11902
11903 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
11904
11905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11906         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
11907         cast from r3.
11908         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
11909         'tests' variable.
11910         * sysdeps/wordsize-64/tst-writev.c: New file.
11911
11912 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
11913
11914         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
11915         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
11916         insns in _dl_start to prevent a TOC reference before relocs are
11917         resolved.
11918
11919 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
11920
11921         [BZ #12469]
11922         * Makeconfig: Remove RANLIB definition.
11923         * Makerules: Don't use RANLIB.
11924         * aclocal.m4: Remove ranlib test.
11925         * configure.in: No need to check for ranlib.
11926         * elf/rtld-Rules: Don't use RANLIB.
11927
11928 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11929
11930         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
11931         protection macro.
11932         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
11933         inclusion protection macro.
11934
11935         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
11936         SIGRTMIN and SIGRTMAX and print information in that case only when
11937         SIGRTMIN is defined.
11938
11939 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11940
11941         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
11942         arginfo fn returning -1.
11943
11944         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
11945         and thousands string is zero terminated.
11946
11947 2011-02-03  Andreas Schwab  <schwab@redhat.com>
11948
11949         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
11950         sysdeps/unix/sysv/linux/bits/socket.h.
11951
11952 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11953
11954         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
11955         (__CPU_COUNT): Remove old macros.
11956         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
11957         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
11958         (__CPU_ALLOC, __CPU_FREE): Add macros.
11959         (__sched_cpualloc, __sched_cpufree): Add declarations.
11960
11961 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
11962
11963         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
11964         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
11965         * nscd/aicache.c (addhstaiX): Return timeout of added value.
11966         (readdhstai): Return value of addhstaiX call.
11967         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
11968         (addgrbyX): Return value returned by cache_addgr.
11969         (readdgrbyname): Return value returned by addgrbyX.
11970         (readdgrbygid): Likewise.
11971         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
11972         (addpwbyX): Return value returned by cache_addpw.
11973         (readdpwbyname): Return value returned by addhstbyX.
11974         (readdpwbyuid): Likewise.
11975         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
11976         (addservbyX): Return value returned by cache_addserv.
11977         (readdservbyname): Return value returned by addservbyX:
11978         (readdservbyport): Likewise.
11979         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
11980         (addhstbyX): Return value returned by cache_addhst.
11981         (readdhstbyname): Return value returned by addhstbyX.
11982         (readdhstbyaddr): Likewise.
11983         (readdhstbynamev6): Likewise.
11984         (readdhstbyaddrv6): Likewise.
11985         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
11986         (readdinitgroups): Return value returned by addinitgroupsX.
11987         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
11988         (prune_cache): Keep track of timeout value of re-added entries.
11989         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
11990         * nscd/nscd.h: Adjust prototypes of readd* functions.
11991
11992 2011-02-04  Roland McGrath  <roland@redhat.com>
11993
11994         * nis/nis_server.c (nis_servstate): Use the right name for 0.
11995         (nis_stats): Likewise.
11996         * nis/nis_modify.c (nis_modify): Likewise.
11997         * nis/nis_remove.c (nis_remove): Likewise.
11998         * nis/nis_add.c (nis_add): Likewise.
11999
12000         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
12001
12002         * posix/fnmatch_loop.c: Add some consts.
12003
12004         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
12005
12006 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
12007
12008         [BZ #12460]
12009         * config.make.in (config-cflags-novzeroupper): Define.
12010         * configure.in: Substitute libc_cv_cc_novzeroupper.
12011         * elf/Makefile (AVX-CFLAGS): Define.
12012         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
12013         (CFLAGS-tst-auditmod4a.c): Likewise.
12014         (CFLAGS-tst-auditmod4b.c): Likewise.
12015         (CFLAGS-tst-auditmod6b.c): Likewise.
12016         (CFLAGS-tst-auditmod6c.c): Likewise.
12017         (CFLAGS-tst-auditmod7b.c): Likewise.
12018         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
12019
12020 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
12021
12022         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
12023         function to the callback.
12024         Patch partly by Jiri Olsa <jolsa@redhat.com>.
12025
12026 2011-02-02  Andreas Schwab  <schwab@redhat.com>
12027
12028         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
12029         of errno.
12030
12031 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
12032
12033         [BZ #11724]
12034         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
12035         of constructors.
12036         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
12037         of destructors.
12038         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
12039
12040         [BZ #11724]
12041         * elf/Makefile: Add rules to build and run new test.
12042         * elf/tst-initorder.c: New file.
12043         * elf/tst-initorder.exp: New file.
12044         * elf/tst-initordera1.c: New file.
12045         * elf/tst-initordera2.c: New file.
12046         * elf/tst-initordera3.c: New file.
12047         * elf/tst-initordera4.c: New file.
12048         * elf/tst-initorderb1.c: New file.
12049         * elf/tst-initorderb2.c: New file.
12050         * elf/tst-order-a1.c: New file.
12051         * elf/tst-order-a2.c: New file.
12052         * elf/tst-order-a3.c: New file.
12053         * elf/tst-order-a4.c: New file.
12054         * elf/tst-order-b1.c: New file.
12055         * elf/tst-order-b2.c: New file.
12056         * elf/tst-order-main.c: New file.
12057         New test case by George Gensure <werkt0@gmail.com>.
12058
12059 2010-10-01  Andreas Schwab  <schwab@redhat.com>
12060
12061         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
12062         decoding ACE if AI_CANONIDN.
12063
12064 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
12065
12066         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
12067
12068 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
12069
12070         * version.h (RELEASE): Bump for 2.13 release.
12071         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
12072
12073         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
12074
12075         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
12076         MADV_NOHUGEPAGE.
12077         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
12078         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
12079         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12080         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12081         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
12082         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
12083
12084         * posix/getconf.c: Update copyright year.
12085         * catgets/gencat.c: Likewise.
12086         * csu/version.c: Likewise.
12087         * debug/catchsegv.sh: Likewise.
12088         * debug/xtrace.sh: Likewise.
12089         * elf/ldconfig.c: Likewise.
12090         * elf/ldd.bash.in: Likewise.
12091         * elf/sprof.c (print_version): Likewise.
12092         * iconv/iconv_prog.c: Likewise.
12093         * iconv/iconvconfig.c: Likewise.
12094         * locale/programs/locale.c: Likewise.
12095         * locale/programs/localedef.c: Likewise.
12096         * malloc/memusage.sh: Likewise.
12097         * malloc/mtrace.pl: Likewise.
12098         * nscd/nscd.c (print_version): Likewise.
12099         * nss/getent.c: Likewise.
12100
12101         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
12102         PF_CAIF, and PF_ALG.
12103         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12104
12105 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
12106
12107         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
12108         (modules-names): Use them.
12109         (ifunc-test-modules, ifunc-pie-tests): Define.
12110         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
12111         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
12112         (test-extras): Likewise.
12113         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
12114         $(compile-command.c).
12115         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
12116         (all-built-dso): Define.
12117         (check-textrel.out, check-execstack.out): Depend on it.
12118
12119         * configure.in: Don't override --enable-multi-arch.
12120
12121 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
12122
12123         [BZ #6812]
12124         * nscd/hstcache.c (tryagain): Define.
12125         (cache_addhst): Return tryagain not notfound for temporary errors.
12126         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
12127         failed.
12128
12129 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
12130
12131         [BZ #10563]
12132         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
12133         to make the syscall.
12134         * sysdeps/unix/sysv/linux/setgroups.c: New file.
12135
12136         [BZ #12378]
12137         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
12138         and fall back to matching as normal character if the string ends before
12139         the matching ']' is found.  This is what POSIX requires.
12140         * posix/testfnm.c: Adjust test result.
12141         * posix/globtest.sh: Adjust test result.  Add new test.
12142         * posix/tst-fnmatch.input: Likewise.
12143         * posix/tst-fnmatch2.c: Add new test.
12144
12145 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
12146
12147         * elf/Makefile (check-execstack): Revert last change.  Depend on
12148         check-execstack.h.
12149         (check-execstack.h): New target.
12150         (generated): Add check-execstack.h.
12151         * elf/check-execstack.c: Include "check-execstack.h".
12152         (main): Revert last change.
12153         (handle_file): Return zero if GNU_STACK is absent and
12154         DEFAULT_STACK_PERMS doesn't include PF_X.
12155
12156 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
12157
12158         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
12159         in child fails because the descriptor is already closed.
12160         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
12161         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
12162         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
12163
12164         [BZ #12397]
12165         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
12166         syscall.
12167
12168         [BZ #10484]
12169         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
12170         temporary buffer used to handle multi lookups locally.
12171         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
12172
12173 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
12174
12175         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
12176         loader is ld.so.
12177
12178 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
12179
12180         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
12181         alignment for SSE2.
12182
12183 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
12184
12185         [BZ #12394]
12186         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
12187         characters.  When rounding increased number of integer digits recompute
12188         number of groups.
12189         * stdio-common/tst-grouping.c: New file.
12190         * stdio-common/Makefile: Add rules to build and run tst-grouping.
12191
12192 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
12193
12194         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
12195         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
12196
12197         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
12198         void.
12199         * bits/select.h: Likewise.
12200
12201 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
12202
12203         * po/ja.po: Update from translation team.
12204
12205 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
12206
12207         [BZ #11155]
12208         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
12209         implementation just like for lxstat, fxstatat, et al.
12210
12211 2010-12-27  Jim Meyering  <meyering@redhat.com>
12212
12213         [BZ #12348]
12214         * posix/regexec.c (build_trtable): Return failure indication upon
12215         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12216
12217 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
12218
12219         [BZ #12201]
12220         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
12221         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
12222         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
12223         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
12224
12225         [BZ #12207]
12226         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
12227
12228         [BZ #12204]
12229         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
12230         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
12231
12232 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12233
12234         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
12235         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
12236         script has SORT_BY_INIT_PRIORITY.
12237         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
12238         NO_CTORS_DTORS_SECTIONS is defined.
12239         * elf/soinit.c: Likewise.
12240         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
12241         NO_CTORS_DTORS_SECTIONS is defined.
12242         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
12243         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
12244         * sysdeps/sh/init-first.c: Likewise.
12245         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
12246
12247 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
12248
12249         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
12250         always use the slow path.
12251
12252 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
12253
12254         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
12255         similar rule which adds the sysdep directories to the header search in
12256         order to pick up the correct platform stackinfo.h.
12257         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
12258         perform test if it is, otherwise return successfully without testing.
12259         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
12260         DEFAULT_STACK_PERMS define in stackinfo.h.
12261         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
12262         defined in stackinfo.h.
12263         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
12264         DEFAULT_STACK_PERMS defined in stackinfo.h.
12265         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
12266         * sysdeps/ia64/stackinfo.h: Likewise.
12267         * sysdeps/s390/stackinfo.h: Likewise.
12268         * sysdeps/sh/stackinfo.h: Likewise.
12269         * sysdeps/sparc/stackinfo.h: Likewise.
12270         * sysdeps/x86_64/stackinfo.h: Likewise.
12271         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
12272         PF_X for powerpc64.  Retain PF_X for powerpc32.
12273
12274 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
12275
12276         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
12277         accurately.
12278         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
12279         GETDENTS_64BIT_ALIGNED.
12280
12281 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
12282
12283         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
12284
12285 2010-12-10  Andreas Schwab  <schwab@redhat.com>
12286
12287         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
12288         _GNU_SOURCE.
12289
12290         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
12291         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
12292         Remove __restrict.
12293         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
12294         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
12295
12296 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
12297
12298         [BZ #11655]
12299         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
12300         are initialized.
12301
12302 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
12303
12304         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
12305
12306 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
12307
12308         * po/it.po: Update from translation team.
12309
12310 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
12311
12312         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
12313         unused codes.
12314
12315 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
12316
12317         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
12318
12319 2010-11-24  Andreas Schwab  <schwab@redhat.com>
12320
12321         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
12322         specially.
12323         (gaih_getanswer_slice): Likewise.
12324
12325 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
12326
12327         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
12328
12329 2010-05-31  Petr Baudis  <pasky@suse.cz>
12330
12331         [BZ #11149]
12332         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
12333         silently even in the chroot mode.
12334
12335 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
12336
12337         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
12338         last patch a bit.  Pretty printing
12339
12340 2010-05-31  Petr Baudis <pasky@suse.cz>
12341
12342         [BZ #10085]
12343         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
12344         initialization of skip_initgroups_dyn.
12345
12346 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
12347
12348         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
12349         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
12350
12351 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
12352
12353         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
12354
12355 2010-11-11  Andreas Schwab  <schwab@redhat.com>
12356
12357         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
12358         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
12359         (tst-fnmatch-ENV): Set MALLOC_TRACE.
12360         ($(objpfx)tst-fnmatch-mem): New rule.
12361         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
12362         * posix/tst-fnmatch.c (main): Call mtrace.
12363
12364 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
12365
12366         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12367         Support Intel processor model 6 and model 0x2c.
12368
12369 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
12370
12371         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
12372           signed comparison.
12373
12374 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
12375
12376         [BZ #12205]
12377         * string/test-strncasecmp.c (check_result): New function.
12378         (do_one_test): Use it.
12379         (check1): New function.
12380         (test_main): Use it.
12381         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
12382         Support strcasecmp and strncasecmp.
12383
12384 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
12385
12386         [BZ #12194]
12387         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
12388         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12389
12390 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
12391
12392         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
12393         IFUNC support.
12394         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12395         memset-x86-64.
12396         * sysdeps/x86_64/multiarch/bzero.S: New file.
12397         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
12398         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
12399         * sysdeps/x86_64/multiarch/memset.S: New file.
12400         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
12401         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12402         Set bit_Prefer_SSE_for_memop for Intel processors.
12403         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
12404         Define.
12405         (index_Prefer_SSE_for_memop): Define.
12406         (HAS_PREFER_SSE_FOR_MEMOP): Define.
12407
12408 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
12409
12410         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
12411         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
12412
12413 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
12414
12415         [BZ #12191]
12416         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
12417         (__x86_64_raw_data_cache_size_half): Likewise.
12418         (__x86_64_raw_shared_cache_size): Likewise.
12419         (__x86_64_raw_shared_cache_size_half): Likewise.
12420
12421         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
12422         (__x86_64_raw_data_cache_size_half): Likewise.
12423         (__x86_64_raw_shared_cache_size): Likewise.
12424         (__x86_64_raw_shared_cache_size_half): Likewise.
12425         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
12426         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
12427         and __x86_64_raw_shared_cache_size_half.  Round
12428         __x86_64_data_cache_size_half, __x86_64_data_cache_size
12429         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
12430         to multiple of 256 bytes.
12431
12432 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
12433
12434         [BZ #12167]
12435         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
12436         of inacessible symlinks.  Verify result of symlink before returning it.
12437         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
12438         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
12439
12440 2010-10-28  Erich Ritz  <erichritz@gmail.com>
12441
12442         * math/math.h (isinf): Fix typo in comment.
12443
12444 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
12445
12446         * po/da.po: Update from translation team.
12447
12448 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
12449
12450         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
12451         is added to the list.
12452
12453 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12454             Ulrich Drepper  <drepper@gmail.com>
12455
12456         * elf/dl-object.c (_dl_new_object): Don't append the new object to
12457         the global list here.  Move code to...
12458         (_dl_add_to_namespace_list): ...here.  New function.
12459         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
12460         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
12461         * elf/dl-load.c (lose): Don't remove the element from the list.
12462         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
12463         (_dl_map_object): Likewise.
12464
12465 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
12466
12467         [BZ #12159]
12468         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
12469         into all bytes of SSE register.
12470         Patch by Richard Li <richardpku@gmail.com>.
12471
12472 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
12473
12474         [BZ #12140]
12475         * malloc/malloc.c (_int_free): Fill correct number of bytes when
12476         perturbing.
12477
12478 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
12479
12480         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
12481         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
12482         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
12483         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
12485         submachine.
12486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12487
12488 2010-10-22  Andreas Schwab  <schwab@redhat.com>
12489
12490         * include/dlfcn.h (__RTLD_SECURE): Define.
12491         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
12492         mode & __RTLD_SECURE instead.
12493         (open_path): Rename preloaded parameter to secure.
12494         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
12495         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
12496         * elf/dl-deps.c (openaux): Likewise.
12497         * elf/rtld.c (struct map_args): Remove is_preloaded.
12498         (map_doit): Don't use it.
12499         (dl_main): Likewise.
12500         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
12501         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
12502
12503 2010-09-09  Andreas Schwab  <schwab@redhat.com>
12504
12505         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
12506         (sysd-rules-targets): Remove duplicates.
12507         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
12508         rtld-%.$o dependency.
12509
12510 2010-10-18  Andreas Schwab  <schwab@redhat.com>
12511
12512         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
12513         _dl_map_object do it.
12514
12515 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
12516
12517         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
12518         fast fma builtins, define the macros in the C99 standard.
12519         (FP_FAST_FMAF): Likewise.
12520         (FP_FAST_FMAL): Likewise.
12521         * sysdeps/x86_64/bits/mathdef.h: Likewise.
12522
12523         * bits/mathdef.h: Update copyright year.
12524         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12525
12526 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
12527
12528         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
12529         builtins, define the macros in the C99 standard.
12530         (FP_FAST_FMAF): Likewise.
12531         (FP_FAST_FMAL): Likewise.
12532         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
12533         multiply/add.
12534         (FP_FAST_FMAF): Likewise.
12535
12536 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
12537
12538         [BZ #3268]
12539         * math/libm-test.inc (fma_test): Some new testcases.
12540         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
12541         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
12542         y and infinite z.  Do multiplication by C already in long double.
12543         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
12544         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
12545         y and infinite z.  Do bitwise or of inexact bit into u.d.
12546         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
12547         * sysdeps/i386/fpu/s_fmaf.S: Removed.
12548         * sysdeps/i386/fpu/s_fma.S: Removed.
12549         * sysdeps/i386/fpu/s_fmal.S: Removed.
12550
12551 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
12552
12553         [BZ #3268]
12554         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
12555         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
12556         computation is not scheduled after fetestexcept.  Fix value
12557         of minimum denormal long double.
12558
12559 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
12560
12561         [BZ #3268]
12562         * math/libm-test.inc (fma_test): Add some more tests.
12563         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
12564         correctly.
12565
12566 2010-10-15  Andreas Schwab  <schwab@redhat.com>
12567
12568         * scripts/data/localplt-s390-linux-gnu.data: New file.
12569         * scripts/data/localplt-s390x-linux-gnu.data: New file.
12570
12571 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
12572
12573         [BZ #3268]
12574         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
12575         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
12576         instead of dbl-64.
12577         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
12578         inlines.
12579         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
12580         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
12581         if one of x and y is very large and the other is subnormal.
12582         * sysdeps/s390/fpu/s_fmaf.c: New file.
12583         * sysdeps/s390/fpu/s_fma.c: New file.
12584         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
12585         * sysdeps/powerpc/fpu/s_fma.S: New file.
12586         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
12587         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
12588         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
12589
12590 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
12591
12592         [BZ #3268]
12593         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
12594         fma tests.
12595         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
12596         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
12597         * sysdeps/i386/i686/multiarch/s_fma.c: Include
12598         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
12599         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
12600         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
12601         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
12602
12603 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
12604
12605         [BZ #12078]
12606         * posix/regcomp.c (parse_branch): One more memory leak plugged.
12607         * posix/bug-regex31.input: Add test case.
12608
12609 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
12610
12611         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
12612         * posix/bug-regex31.input: New file.
12613
12614         [BZ #12078]
12615         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
12616         (parse_sub_exp): Fix last change, use postorder.
12617
12618         * posix/bug-regex31.c: New file.
12619         * posix/Makefile: Add rules to build and run bug-regex31.
12620
12621         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
12622
12623         [BZ #12078]
12624         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
12625
12626         [BZ #12108]
12627         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
12628         to have entries in sys_siglist.
12629
12630         [BZ #12093]
12631         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
12632         be NULL.
12633
12634 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
12635
12636         [BZ #3268]
12637         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
12638         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
12639         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
12640         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
12641         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
12642         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
12643         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
12644         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
12645         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
12646         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
12647         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
12648         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
12649         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
12650         * math/ftestexcept.c (fetestexcept): Likewise.
12651         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
12652         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
12653         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12654         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
12655         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
12656         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
12657         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12658
12659 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
12660
12661         [BZ #12107]
12662         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
12663         newline.
12664
12665 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
12666
12667         * string/bug-strstr1.c: New file.
12668         * string/Makefile: Add rules to build and run bug-strstr1.
12669
12670 2010-10-05  Eric Blake  <eblake@redhat.com>
12671
12672         [BZ #12092]
12673         * string/str-two-way.h (two_way_long_needle): Always clear memory
12674         when skipping input due to the shift table.
12675
12676 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
12677
12678         [BZ #12005]
12679         * malloc/mcheck.c: Handle large requests.
12680
12681         [BZ #12077]
12682         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
12683         for strncmp and strncasecmp.
12684         * string/stratcliff.c: Add tests for strcmp and strncmp.
12685         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
12686
12687 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12688
12689         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
12690         __set_fpscr.
12691
12692 2010-09-30  Andreas Jaeger  <aj@suse.de>
12693
12694         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
12695         (CGROUP_SUPER_MAGIC): Define.
12696         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12697         Handle btrfs and cgroup file systems.
12698         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
12699         Likewise.
12700
12701 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
12702
12703         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
12704         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
12705
12706 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12707
12708         [BZ #12067]
12709         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
12710         trying to locate the ELF header.
12711
12712 2010-09-27  Andreas Schwab  <schwab@redhat.com>
12713
12714         [BZ #11611]
12715         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
12716         Mask out sign-bit copies when constructing f_fsid.
12717
12718 2010-09-24  Petr Baudis <pasky@suse.cz>
12719
12720         * debug/stack_chk_fail_local.c: Add missing licence exception.
12721         * debug/warning-nop.c: Likewise.
12722
12723 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
12724
12725         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
12726         implementing getdents64 using getdents syscall, set d_type if
12727         __ASSUME_GETDENTS32_D_TYPE.
12728
12729 2010-09-16  Andreas Schwab  <schwab@redhat.com>
12730
12731         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
12732         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
12733
12734 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
12735
12736         [BZ #12037]
12737         * posix/unistd.h: Undo change of feature selection for ftruncate from
12738         2010-01-11.
12739
12740 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
12741
12742         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
12743         detection.
12744
12745 2010-09-20  Andreas Schwab  <schwab@redhat.com>
12746
12747         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
12748         fanotify_mark.
12749         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
12750
12751 2010-09-14  Andreas Schwab  <schwab@redhat.com>
12752
12753         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
12754         variables after CHECK_SP call.
12755         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
12756
12757 2010-09-13  Andreas Schwab  <schwab@redhat.com>
12758             Ulrich Drepper  <drepper@redhat.com>
12759
12760         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
12761         re-relocationg ld.so.
12762         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
12763         _dl_init_paths call.
12764         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
12765         here anymore.
12766
12767 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
12768
12769         * resolv/res_init.c (__res_vinit): Count the default server we added.
12770
12771 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
12772             Ulrich Drepper  <drepper@redhat.com>
12773
12774         [BZ #11968]
12775         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
12776         (____longjmp_chk): Use %ebx for saving value across system call.
12777         Add unwind info.
12778
12779 2010-09-06  Andreas Schwab  <schwab@redhat.com>
12780
12781         * manual/Makefile: Don't mix pattern rules with normal rules.
12782
12783 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
12784
12785         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
12786         operation.
12787         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
12788         * libio/iofopncook.c (_IO_cookie_init): Likewise.
12789         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
12790         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
12791         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12792         Likewise.
12793
12794 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
12795
12796         [BZ #11979]
12797         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
12798         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
12799
12800 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
12801
12802         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
12803         * sysdeps/x86_64/addmul_1.S: Likewise.
12804         * sysdeps/x86_64/lshift.S: Likewise.
12805         * sysdeps/x86_64/mul_1.S: Likewise.
12806         * sysdeps/x86_64/rshift.S: Likewise.
12807         * sysdeps/x86_64/sub_n.S: Likewise.
12808         * sysdeps/x86_64/submul_1.S: Likewise.
12809
12810 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12811
12812         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
12813         Define __sched_param instead of SCHED_* and sched_param when
12814         <bits/sched.h> is included with __need_schedparam defined.
12815         * bits/sched.h [__need_schedparam]
12816         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
12817         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
12818         (__defined_schedparam): Define to 1.
12819         (__sched_param): New structure, identical to sched_param.
12820         (__need_schedparam): Undefine.
12821
12822 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
12823
12824         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
12825         (epoll_create1): Declare.
12826
12827         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
12828
12829 2010-08-31  Andreas Schwab  <schwab@redhat.com>
12830
12831         [BZ #7066]
12832         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
12833         shifting retval into place.
12834
12835 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
12836
12837         * nis/rpcsvc/nis.h: Update copyright notice.
12838         * nis/rpcsvc/nis.x: Likewise.
12839         * nis/rpcsvc/nis_callback.h: Likewise.
12840         * nis/rpcsvc/nis_callback.x: Likewise.
12841         * nis/rpcsvc/nis_object.x: Likewise.
12842         * nis/rpcsvc/nis_tags.h: Likewise.
12843         * nis/rpcsvc/yp.h: Likewise.
12844         * nis/rpcsvc/yp.x: Likewise.
12845         * nis/rpcsvc/ypupd.h: Likewise.
12846         * nis/yp_xdr.c: Likewise.
12847         * nis/ypupdate_xdr.c: Likewise.
12848
12849         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
12850         mainly the body of pmap_getport.  Add parameters to specify timeouts.
12851         (pmap_getport): Use __libc_rpc_getport.
12852         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
12853         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
12854         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
12855
12856 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
12857
12858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
12859         fanotify_mark.
12860
12861 2010-08-27  Roland McGrath  <roland@redhat.com>
12862
12863         * sysdeps/i386/i686/multiarch/Makefile
12864         (CFLAGS-varshift.c): New variable.
12865
12866 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
12867
12868         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
12869         * sysdeps/i386/i686/multiarch/varshift.c: New file.
12870
12871         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
12872
12873         * sysdeps/x86_64/strlen.S: Minimal code improvement.
12874
12875 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12876
12877         * sysdeps/x86_64/strlen.S: Unroll the loop.
12878         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12879         strlen-sse2 strlen-sse2-bsf.
12880         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
12881         __strlen_no_bsf if bit_Slow_BSF is set.
12882         (__strlen_sse42): Removed.
12883         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
12884         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
12885
12886 2010-08-25  Roland McGrath  <roland@redhat.com>
12887
12888         * sysdeps/x86_64/multiarch/varshift.S: File removed.
12889         * sysdeps/x86_64/multiarch/varshift.c: New file.
12890         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
12891         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
12892         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
12893         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
12894
12895 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12896
12897         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12898         strlen-sse2 strlen-sse2-bsf.
12899         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
12900         __strlen_sse2_bsf if bit_Slow_BSF is unset.
12901         (__strlen_sse2): Removed.
12902         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
12903         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
12904         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
12905         bit_Slow_BSF for Atom.
12906         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
12907         (index_Slow_BSF): Define.
12908         (HAS_SLOW_BSF): Define.
12909
12910 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
12911
12912         [BZ #10851]
12913         * resolv/res_init.c (__res_vinit): When no server address at all
12914         is given default to loopback.
12915
12916 2010-08-24  Roland McGrath  <roland@redhat.com>
12917
12918         * configure.in: Remove config-name.h generation.
12919         * configure: Regenerated.
12920         * config-name.in: File removed.
12921         * scripts/config-uname.sh: New file.
12922         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
12923         ($(objdir)config-name.h): New target.
12924
12925         * sunrpc/rpc_parse.h: Avoid nested comment.
12926
12927 2010-08-24  Richard Henderson  <rth@redhat.com>
12928             Ulrich Drepper  <drepper@redhat.com>
12929             H.J. Lu  <hongjiu.lu@intel.com>
12930
12931         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
12932         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
12933         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
12934         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
12935         _mm_alignr_epi8 with _mm_loadu_si128.
12936         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
12937         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
12938         (__m128i_shift_right): Removed.
12939         * sysdeps/i386/i686/multiarch/varshift.h: New file.
12940         * sysdeps/i386/i686/multiarch/varshift.S: New file.
12941         * sysdeps/x86_64/multiarch/varshift.h: New file.
12942         * sysdeps/x86_64/multiarch/varshift.S: New file.
12943
12944 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
12945
12946         * configure.in: Move assembler checks to before sysdep dir checking.
12947
12948 2010-08-20  Petr Baudis  <pasky@suse.cz>
12949
12950         * LICENSES: Sync the sunrpc license.
12951
12952 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
12953
12954         * sunrpc/auth_des.c: Update copyright notice once again.
12955         * sunrpc/auth_none.c: Likewise.
12956         * sunrpc/auth_unix.c: Likewise.
12957         * sunrpc/authdes_prot.c: Likewise.
12958         * sunrpc/authuxprot.c: Likewise.
12959         * sunrpc/bindrsvprt.c: Likewise.
12960         * sunrpc/clnt_gen.c: Likewise.
12961         * sunrpc/clnt_perr.c: Likewise.
12962         * sunrpc/clnt_raw.c: Likewise.
12963         * sunrpc/clnt_simp.c: Likewise.
12964         * sunrpc/clnt_tcp.c: Likewise.
12965         * sunrpc/clnt_udp.c: Likewise.
12966         * sunrpc/clnt_unix.c: Likewise.
12967         * sunrpc/des_crypt.c: Likewise.
12968         * sunrpc/des_soft.c: Likewise.
12969         * sunrpc/get_myaddr.c: Likewise.
12970         * sunrpc/getrpcport.c: Likewise.
12971         * sunrpc/key_call.c: Likewise.
12972         * sunrpc/key_prot.c: Likewise.
12973         * sunrpc/openchild.c: Likewise.
12974         * sunrpc/pm_getmaps.c: Likewise.
12975         * sunrpc/pm_getport.c: Likewise.
12976         * sunrpc/pmap_clnt.c: Likewise.
12977         * sunrpc/pmap_prot.c: Likewise.
12978         * sunrpc/pmap_prot2.c: Likewise.
12979         * sunrpc/pmap_rmt.c: Likewise.
12980         * sunrpc/rpc/auth.h: Likewise.
12981         * sunrpc/rpc/auth_unix.h: Likewise.
12982         * sunrpc/rpc/clnt.h: Likewise.
12983         * sunrpc/rpc/des_crypt.h: Likewise.
12984         * sunrpc/rpc/key_prot.h: Likewise.
12985         * sunrpc/rpc/netdb.h: Likewise.
12986         * sunrpc/rpc/pmap_clnt.h: Likewise.
12987         * sunrpc/rpc/pmap_prot.h: Likewise.
12988         * sunrpc/rpc/pmap_rmt.h: Likewise.
12989         * sunrpc/rpc/rpc.h: Likewise.
12990         * sunrpc/rpc/rpc_des.h: Likewise.
12991         * sunrpc/rpc/rpc_msg.h: Likewise.
12992         * sunrpc/rpc/svc.h: Likewise.
12993         * sunrpc/rpc/svc_auth.h: Likewise.
12994         * sunrpc/rpc/types.h: Likewise.
12995         * sunrpc/rpc/xdr.h: Likewise.
12996         * sunrpc/rpc_clntout.c: Likewise.
12997         * sunrpc/rpc_cmsg.c: Likewise.
12998         * sunrpc/rpc_common.c: Likewise.
12999         * sunrpc/rpc_cout.c: Likewise.
13000         * sunrpc/rpc_dtable.c: Likewise.
13001         * sunrpc/rpc_hout.c: Likewise.
13002         * sunrpc/rpc_main.c: Likewise.
13003         * sunrpc/rpc_parse.c: Likewise.
13004         * sunrpc/rpc_parse.h: Likewise.
13005         * sunrpc/rpc_prot.c: Likewise.
13006         * sunrpc/rpc_sample.c: Likewise.
13007         * sunrpc/rpc_scan.c: Likewise.
13008         * sunrpc/rpc_scan.h: Likewise.
13009         * sunrpc/rpc_svcout.c: Likewise.
13010         * sunrpc/rpc_tblout.c: Likewise.
13011         * sunrpc/rpc_util.c: Likewise.
13012         * sunrpc/rpc_util.h: Likewise.
13013         * sunrpc/rpcinfo.c: Likewise.
13014         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
13015         * sunrpc/rpcsvc/key_prot.x: Likewise.
13016         * sunrpc/rpcsvc/klm_prot.x: Likewise.
13017         * sunrpc/rpcsvc/mount.x: Likewise.
13018         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
13019         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
13020         * sunrpc/rpcsvc/rex.x: Likewise.
13021         * sunrpc/rpcsvc/rstat.x: Likewise.
13022         * sunrpc/rpcsvc/rusers.x: Likewise.
13023         * sunrpc/rpcsvc/sm_inter.x: Likewise.
13024         * sunrpc/rpcsvc/spray.x: Likewise.
13025         * sunrpc/rpcsvc/yppasswd.x: Likewise.
13026         * sunrpc/rtime.c: Likewise.
13027         * sunrpc/svc.c: Likewise.
13028         * sunrpc/svc_auth.c: Likewise.
13029         * sunrpc/svc_authux.c: Likewise.
13030         * sunrpc/svc_raw.c: Likewise.
13031         * sunrpc/svc_run.c: Likewise.
13032         * sunrpc/svc_simple.c: Likewise.
13033         * sunrpc/svc_tcp.c: Likewise.
13034         * sunrpc/svc_udp.c: Likewise.
13035         * sunrpc/svc_unix.c: Likewise.
13036         * sunrpc/svcauth_des.c: Likewise.
13037         * sunrpc/xcrypt.c: Likewise.
13038         * sunrpc/xdr.c: Likewise.
13039         * sunrpc/xdr_array.c: Likewise.
13040         * sunrpc/xdr_float.c: Likewise.
13041         * sunrpc/xdr_mem.c: Likewise.
13042         * sunrpc/xdr_rec.c: Likewise.
13043         * sunrpc/xdr_ref.c: Likewise.
13044         * sunrpc/xdr_sizeof.c: Likewise.
13045         * sunrpc/xdr_stdio.c: Likewise.
13046
13047         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
13048         handling.
13049
13050 2010-08-19  Andreas Schwab  <schwab@redhat.com>
13051
13052         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
13053
13054 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
13055
13056         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
13057         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
13058         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
13059         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
13060         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
13061         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
13062         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
13063         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
13064         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
13065         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
13066         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
13067         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
13068         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
13069         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
13070
13071 2010-07-26  Anton Blanchard  <anton@samba.org>
13072
13073         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
13074         * malloc/arena.c (heap_trim): Likewise.
13075
13076 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
13077
13078         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
13079         here.  Not...
13080         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
13081         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
13082
13083 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
13084
13085         * sysdeps/i386/elf/Makefile: New file.
13086
13087 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
13088
13089         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
13090         from fanotify_init.
13091         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
13092         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13093
13094 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
13095
13096         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
13097         of strncasecmp_l.
13098         * sysdeps/multiarch/strcmp.S: Likewise.
13099
13100 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
13101
13102         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
13103         strncase_l-nonascii.
13104         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
13105         Add strncase_l-ssse3.
13106         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
13107         * sysdeps/x86_64/strcmp.S: Likewise.
13108         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
13109         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
13110         * sysdeps/x86_64/strncase.S: New file.
13111         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
13112         * sysdeps/x86_64/strncase_l.S: New file.
13113         * string/Makefile (strop-tests): Add strncasecmp.
13114         * string/test-strncasecmp.c: New file.
13115
13116         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
13117         warning.
13118
13119         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
13120         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
13121
13122 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
13123
13124         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
13125
13126 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
13127
13128         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
13129         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
13130         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
13131
13132 2010-05-01  Alan Modra  <amodra@gmail.com>
13133
13134         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
13135         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
13136         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
13137         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
13138         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
13139         tidying.  Don't tail-call __sigjmp_save for static lib.
13140         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
13141         save location.
13142         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
13143         (CALL_MCOUNT): Add eh info, and nop after bl.
13144         (TAIL_CALL_SYSCALL_ERROR): New macro.
13145         (PSEUDO_RET): Use it.
13146         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
13147         Correct save location of integer regs and cr.
13148         (_dl_profile_resolve): Correct cr save location.  Delete nops
13149         after bl when SHARED.  Reduce cfi size a little by better
13150         placement of cfi directives.
13151         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
13152         make a stack frame.  Instead use parm save area as a temp.
13153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
13154         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
13155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
13156         Don't make a stack frame for parent, use parm save area.
13157         Increase child stack frame to 112 bytes.  Don't save unused reg,
13158         and adjust reg usage.  Set up cfi on error recovery and
13159         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
13160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
13161         (__makecontext): Add dummy nop after jump to exit.
13162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
13163         Use correct parm save area and cr save, reduce stack frame.
13164         Correct cfi for possible PSEUDO_RET frame setup.
13165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
13166         Branch to local label emitted by PSEUDO_RET rather than
13167         __syscall_error.
13168
13169 2010-08-12  Andreas Schwab  <schwab@redhat.com>
13170
13171         [BZ #11904]
13172         * locale/programs/locale.c (print_assignment): New function.
13173         (show_locale_vars): Use it.
13174
13175 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
13176
13177         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
13178         field.
13179         (struct statfs64): Likewise.
13180         (_STATFS_F_FLAGS): Define.
13181         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
13182         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13183         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
13184         (ST_VALID): Define locally.
13185         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
13186         __statvfs_getflags, use the provided value.
13187         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13188         __ASSUME_STATFS_F_FLAGS.
13189
13190         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
13191
13192         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
13193         Add sys/fanotify.h.
13194         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
13195         fanotify_mask for GLIBC_2.13.
13196         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
13197         fanotify_init and fanotify_mark.
13198         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13199         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
13200
13201         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
13202         Add prlimit.
13203         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
13204         prlimit64 for GLIBC_2.13.
13205         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
13206         prlimit64.
13207         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
13208         syscall.
13209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13210         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
13211         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
13212         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
13213         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
13214         add prlimit alias.
13215         * sysdeps/unix/sysv/linux/prlimit.c: New file.
13216
13217         [BZ #11903]
13218         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
13219         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
13220
13221         * nss/Makefile: Add rules to build and run tst-nss-test1.
13222         * shlib-versions: Add entry for libnss_test1.
13223         * nss/nss_test1.c: New file.
13224         * nss/tst-nss-test1.c: New file.
13225
13226         * nss/nsswitch.c (__nss_database_custom): Define new variable.
13227         (__nss_configure_lookup): Set appropriate entry in
13228         __nss_configure_lookup to true.
13229         * nss/nsswitch.h: Define enum with indeces of databases in
13230         databases and __nss_database_custom arrays.  Declare
13231         __nss_database_custom.
13232         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
13233         to avoid using nscd when custom rules are installed.
13234         * nss/getXXbyYY_r.c: Likewise.
13235         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13236
13237         * nss/nss_files/files-parse.c: Whitespace fixes.
13238
13239 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
13240
13241         [BZ #11883]
13242         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
13243         * posix/fnmatch_loop.c: Likewise.
13244
13245 2010-07-17  Andi Kleen  <ak@linux.intel.com>
13246
13247         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
13248         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
13249         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
13250         * Versions.def [GLIBC_2.13]: Add.
13251
13252 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
13253
13254         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
13255         Also fail if tpwd after pwuid call is NULL.
13256
13257 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13258
13259         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
13260         when converting to ms.
13261
13262 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13263
13264         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
13265         EOPNOTSUPP errors with ENOTTY.
13266         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
13267         EOPNOTSUPP errors with ENOTTY.
13268
13269 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
13270
13271         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
13272         Add strcasecmp_l-ssse3.
13273         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
13274         strcasecmp.
13275         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
13276         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
13277         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
13278
13279 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
13280
13281         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
13282
13283         * string/Makefile (strop-tests): Add strcasecmp.
13284         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
13285         strcasecmp_l-nonascii.
13286         (gen-as-const-headers): Add locale-defines.sym.
13287         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
13288         * sysdeps/x86_64/strcasecmp.S: New file.
13289         * sysdeps/x86_64/strcasecmp_l.S: New file.
13290         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
13291         * sysdeps/x86_64/locale-defines.sym: New file.
13292         * string/test-strcasecmp.c: New file.
13293
13294         * string/test-strcasestr.c: Test both ends of the range of characters.
13295         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
13296
13297 2010-07-29  Roland McGrath  <roland@redhat.com>
13298
13299         [BZ #11856]
13300         * manual/locale.texi (Yes-or-No Questions): Fix example code.
13301
13302 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
13303
13304         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
13305         for ld.so.
13306
13307 2010-07-27  Andreas Schwab  <schwab@redhat.com>
13308
13309         * manual/memory.texi (Malloc Tunable Parameters): Document
13310         M_PERTURB.
13311
13312 2010-07-26  Roland McGrath  <roland@redhat.com>
13313
13314         [BZ #11840]
13315         * configure.in (-fgnu89-inline check): Set and substitute
13316         gnu89_inline, not libc_cv_gnu89_inline.
13317         * configure: Regenerated.
13318         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
13319
13320 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
13321
13322         * string/test-strnlen.c: New file.
13323         * string/Makefile (strop-tests): Add strnlen.
13324         * string/tester.c (test_strnlen): Add a few more test cases.
13325         * string/tst-strlen.c: Better error reporting.
13326
13327         * sysdeps/x86_64/strnlen.S: New file.
13328
13329 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
13330
13331         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
13332         lower-latency instructions.
13333
13334 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
13335
13336         * string/test-strcasestr.c: New file.
13337         * string/test-strstr.c: New file.
13338         * string/Makefile (strop-tests): Add strstr and strcasestr.
13339         * string/str-two-way.h: Don't undefine MAX.
13340         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
13341
13342 2010-07-21  Andreas Schwab  <schwab@redhat.com>
13343
13344         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13345         strcasestr-nonascii.
13346         (CFLAGS-strcasestr-nonascii.c): Define.
13347         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
13348         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
13349         Remove unused attribute.
13350
13351 2010-07-20  Roland McGrath  <roland@redhat.com>
13352
13353         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
13354         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
13355         ld.so.cache was broken.  With it, there is no way to disable dsocaps
13356         like LD_HWCAP_MASK can disable hwcaps.
13357
13358 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
13359
13360         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
13361
13362 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
13363
13364         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
13365         call in strcasestr.
13366         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
13367         __strcasestr_sse42_nonascii.
13368         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
13369         strcasestr-nonascii.c.
13370         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
13371
13372 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
13373
13374         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
13375         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
13376         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
13377         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
13378
13379 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
13380
13381         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
13382         fcntl.
13383
13384 2010-07-06  Andreas Schwab  <schwab@redhat.com>
13385
13386         [BZ #11577]
13387         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
13388         dl_signal_cerror.
13389
13390 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
13391
13392         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
13393         _PC_PIPE_BUF using F_GETPIPE_SZ.
13394
13395 2010-07-05  Roland McGrath  <roland@redhat.com>
13396
13397         * manual/arith.texi (Rounding Functions): Fix rint description
13398         implicit in round description.
13399
13400 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
13401
13402         * elf/Makefile: Fix linking for a few tests to make recent linker
13403         happy.
13404
13405 2010-06-30  Andreas Schwab  <schwab@redhat.com>
13406
13407         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
13408         $(common-objpfx)libc_nonshared.a.
13409
13410 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
13411
13412         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
13413         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
13414         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
13415         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
13416         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
13417         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
13418         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
13419         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
13420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
13421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
13422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
13423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
13424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
13425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
13426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
13427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
13428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
13429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
13430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
13431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
13432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
13433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
13434         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
13435         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
13436         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
13437         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
13438         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
13439         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
13440         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
13441         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
13442         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
13443         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
13444         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
13445         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
13446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
13447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
13448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
13449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
13450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
13451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
13452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
13453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
13454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
13455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
13456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
13457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
13458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
13459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
13460
13461 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
13462
13463         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
13464         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
13465         * string/memmove.c (memmove): Renamed to ...
13466         (MEMMOVE): ...this.  Default to memmove.
13467         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
13468         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
13469         (END_CHK): Define.
13470         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13471         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
13472         mempcpy-ssse3-back memmove-ssse3-back.
13473         * sysdeps/x86_64/multiarch/bcopy.S: New file .
13474         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
13475         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
13476         * sysdeps/x86_64/multiarch/memcpy.S: New file.
13477         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
13478         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
13479         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
13480         * sysdeps/x86_64/multiarch/memmove.c: New file.
13481         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
13482         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
13483         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
13484         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
13485         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
13486         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
13487         Define.
13488         (index_Fast_Copy_Backward): Define.
13489         (HAS_ARCH_FEATURE): Define.
13490         (HAS_FAST_REP_STRING): Define.
13491         (HAS_FAST_COPY_BACKWARD): Define.
13492
13493 2010-06-21  Andreas Schwab  <schwab@redhat.com>
13494
13495         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
13496         Restore proper fallback handling.
13497
13498 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
13499
13500         [BZ #11701]
13501         * posix/group_member.c (__group_member): Correct checking loop.
13502
13503         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
13504         OOM in getpwuid_r correctly.  Return error number when the caller
13505         should return, otherwise -1.
13506         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
13507         call returning > 0 value.
13508         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
13509
13510 2010-06-07  Andreas Schwab  <schwab@redhat.com>
13511
13512         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
13513         libc_nonshared.a from targets in modules-names.
13514
13515 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
13516
13517         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
13518         requires it.
13519
13520 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
13521
13522         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
13523         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
13524         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
13525         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
13526
13527 2010-06-02  Andreas Schwab  <schwab@redhat.com>
13528
13529         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
13530
13531 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
13532
13533         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
13534         and F_GETPIPE_SZ.
13535         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13536         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13537         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13538         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13539         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13540         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
13541
13542 2010-06-14  Roland McGrath  <roland@redhat.com>
13543
13544         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
13545
13546 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
13547
13548         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
13549         __REDIRECT followed by __THROW.
13550         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
13551         * posix/getopt.h (getopt): Likewise.
13552
13553 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
13554
13555         * hurd/lookup-at.c (__file_name_lookup_at): Accept
13556         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
13557         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
13558         in AT_FLAGS.
13559         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
13560         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
13561
13562 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
13563
13564         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
13565
13566 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
13567
13568         [BZ #11640]
13569         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13570         Properly check family and model.
13571
13572 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
13573
13574         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
13575
13576 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
13577
13578         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
13579
13580 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
13581
13582         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
13583         symbol reference.
13584
13585 2010-05-19  Andreas Schwab  <schwab@redhat.com>
13586
13587         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
13588         symbol reference.
13589
13590 2010-05-21  Andreas Schwab  <schwab@redhat.com>
13591
13592         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
13593         and internal_recvmmsg.
13594         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
13595         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
13596         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
13597         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
13598
13599         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
13600         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
13601         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
13602
13603 2010-05-20  Andreas Schwab  <schwab@redhat.com>
13604
13605         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
13606
13607 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
13608
13609         POWER7 optimizations.
13610         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
13611         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
13612
13613 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
13614
13615         * version.h: Update for 2.13 development version.
13616
13617 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
13618
13619         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
13620         exceptions.  Return 0.
13621
13622 2010-05-07  Roland McGrath  <roland@redhat.com>
13623
13624         * elf/ldconfig.c (main): Add a const.
13625
13626 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
13627
13628         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
13629         (args_options): Add no-idn option.
13630         (ahosts_keys_int): Add idn_flags to ai_flags.
13631         (parse_option): Handle 'i' option to clear idn_flags.
13632
13633         * malloc/malloc.c (_int_free): Possible race in the most recently
13634         added check.  Only act on the data if no current modification
13635         happened.
13636
13637 See ChangeLog.17 for earlier changes.