Use x86_64 bits/mman.h for both i386 and x86_64
[jlayton/glibc.git] / ChangeLog
1 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2
3         [BZ #14117]
4         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
7
8         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
9         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
10         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
11         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
12         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
13         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
14
15         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
16         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
17
18         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
19         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
20
21         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
22         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
23         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
24
25         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
26         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
27         to ...
28         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
29
30         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
31         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
32         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
33
34         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
35         for x86-64.
36         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
37
38 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
39
40         * math/math.h (M_El): Use two more decimal places.
41         (M_LOG2El): Likewise.
42         (M_LOG10El): Likewise.
43         (M_LN2l): Likewise.
44         (M_LN10l): Likewise.
45         (M_PIl): Likewise.
46         (M_PI_2l): Likewise.
47         (M_PI_4l): Likewise.
48         (M_1_PIl): Likewise.
49         (M_2_PIl): Likewise.
50         (M_2_SQRTPIl): Likewise.
51         (M_SQRT2l): Likewise.
52         (M_SQRT1_2l): Likewise.
53
54 2012-05-31  David S. Miller  <davem@davemloft.net>
55
56         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
57         values between float registers.
58         * sysdeps/sparc/sparc64/memset.S: Likewise.
59         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
60
61 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
62
63         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
64         -D_FORTIFY_SOURCE=1.
65         (CPPFLAGS-tst-longjmp_chk.c): Define.
66         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
67         (CPPFLAGS-tst-longjmp_chk2.c): Define.
68         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
69         CFLAGS-tst-wchar-h.c.
70
71 2012-05-31  Marek Polacek  <polacek@redhat.com>
72
73         [BZ #14132]
74         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
75         __endmntent_internal): Remove declaration.
76         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
77         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
78         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
79
80 2012-05-30  David S. Miller  <davem@davemloft.net>
81
82         * sysdeps/sparc/sparc32/soft-fp/q_util.c
83         (___Q_simulate_exceptions): Use real FP ops rather than writing
84         into the %fsr.
85         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
86         Likewise.
87
88 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
89
90         [BZ #14117]
91         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
92         * sysdeps/x86/bits/xtitypes.h: This.
93
94         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
95         * sysdeps/x86/bits/wordsize.h: This.
96
97         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
98         * sysdeps/x86/bits/huge_vall.h: This.
99
100         * sysdeps/i386/bits/select.h: Removed.
101         * sysdeps/x86_64/bits/select.h: Renamed to ...
102         * sysdeps/x86/bits/select.h: This.
103
104         * sysdeps/i386/bits/setjmp.h: Removed.
105         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
106         * sysdeps/x86/bits/setjmp.h: This.
107
108         * sysdeps/i386/bits/mathdef.h: Removed.
109         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
110         * sysdeps/x86/bits/mathdef.h: This.
111
112 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
113
114         [BZ #14132]
115         * include/sys/socket.h (__connect_internal)
116         (__libc_sa_len_internal): Remove declaration.
117         (__connect, __libc_sa_len): Declare hidden_proto.
118         (SA_LEN): Remove use of INTUSE.
119         * socket/connect.c: Add libc_hidden_def.
120         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
121         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
122         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
123         alias.
124         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
125         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
126         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
127         of adding _internal alias.
128
129 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
130
131         [BZ #14117]
132         * sysdeps/i386/bits/link.h: Removed.
133         * sysdeps/i386/bits/linkmap.h: Likewise.
134         * sysdeps/x86_64/bits/link.h: Renamed to ...
135         * sysdeps/x86/bits/link.h: This.
136         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
137         * sysdeps/x86/bits/linkmap.h: This.
138
139         * sysdeps/i386/bits/endian.h: Removed.
140         * sysdeps/x86_64/bits/endian.h: Renamed to ...
141         * sysdeps/x86/bits/endian.h: This.
142
143         * sysdeps/i386/bits/byteswap.h: Removed.
144         * sysdeps/i386/bits/byteswap-16.h: Likewise.
145         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
146         * sysdeps/x86/bits/byteswap.h: This.
147         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
148         * sysdeps/x86/bits/byteswap-16.h: This.
149         * sysdeps/i386/Implies: Add x86.
150         * sysdeps/x86_64/Implies: Likewise.
151
152 2012-05-30  David S. Miller  <davem@davemloft.net>
153
154         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
155         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
156         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
157         (FP_TRAPPING_EXCEPTIONS): Define.
158         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
159         (FP_TRAPPING_EXCEPTIONS): Define.
160         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
161         subnormals only when inexact has been signalled or underflow
162         exceptions are enabled.
163         (_FP_PACK_CANONICAL): Likewise.
164
165 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
166
167         [BZ #14183]
168         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
169         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
170
171 2012-05-30  Richard Henderson  <rth@twiddle.net>
172
173         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
174         with #ifndef NOT_IN_libc.
175
176         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
177         marked to avoid plt entry.
178
179 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
180
181         [BZ #14112]
182         * Makeconfig (default-abi): New macro.
183         (abi-includes): Likewise.
184         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
185         $(abi-$(default-abi)-lib-soname) for soname if defined.
186         ($(common-objpfx)gnu/lib-names.stmp): Generate from
187         abi-variants.
188         * Makefile (installed-stubs): Likewise.
189         * include/stubs-biarch.h: Removed.
190         * scripts/lib-names.awk: Only handle one library at a time.
191         * scripts/soversions.awk: Remove WORDSIZE support.
192         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
193         entries.
194         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
195         Removed.
196         (syscall-list-default-condition): Likewise.
197         (syscall-list-default-condition): Likewise.
198         (syscall-list-includes): Likewise.
199         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
200         syscall-list-* with abi-*.  Handle undefined abi-variants.
201         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
202         * sysdeps/unix/sysv/linux/i386/Implies: New file.
203         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
204         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
205         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
206         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
207         Removed.
208         (syscall-list-32-options): Likewise.
209         (syscall-list-32-condition): Likewise.
210         (syscall-list-64-options): Likewise.
211         (syscall-list-64-condition): Likewise.
212         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
213         macro.
214         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
215         Renamed to ...
216         (abi-*): This.
217         (abi-64-ld-soname): New macro.
218         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
219         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
220         Renamed to ...
221         (abi-*): This.
222         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
223         * sysdeps/x86_64/x32/shlib-versions: Likewise.
224
225 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
226
227         * sysdeps/unix/sysv/linux/kernel-features.h
228         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
229         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
230         include <kernel-features.h>.
231         [!__NR_ftruncate64]: Remove conditional code.
232         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
233         [__NR_ftruncate64]: Make code unconditional.
234         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
235         * sysdeps/unix/sysv/linux/truncate64.c: Do not
236         include <kernel-features.h>.
237         [!__NR_ftruncate64]: Remove conditional code.
238         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
239         [__NR_ftruncate64]: Make code unconditional.
240         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
242         include <kernel-features.h>.
243         [!__NR_ftruncate64]: Remove conditional code.
244         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
245         [__NR_ftruncate64]: Make code unconditional.
246         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
248         include <kernel-features.h>.
249         [!__NR_ftruncate64]: Remove conditional code.
250         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
251         [__NR_ftruncate64]: Make code unconditional.
252         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
253
254         * configure.in (libc_cv_fpie): Weaken to a compile test using
255         LIBC_TRY_CC_OPTION.
256         * configure: Regenerated.
257
258 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
259
260         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
261         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
262         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
263         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
264         Refreshed.
265         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
266         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
267         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
268         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
269         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
270         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
271         Refreshed.
272
273 2012-05-27  David S. Miller  <davem@davemloft.net>
274
275         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
276         (___Q_zero): New.
277         (__Q_simulate_exceptions): Return void.  Change to simulate
278         exceptions by writing into the %fsr.
279         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
280         (__Qp_handle_exceptions): Likewise.
281         (numbers): Delete.
282         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
283         __Qp_handle_exceptions.
284         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
285         __Qp_handle_exceptions.
286         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
287         as unused and give dummy FP_RND_NEAREST initializer.
288         (FP_INHIBIT_RESULTS): Define.
289         (___Q_simulate_exceptions): Update declaration.
290         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
291         formatting.
292         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
293         as unused and give dummy FP_RND_NEAREST initializer.
294         (__Qp_handle_exceptions): Update declaration.
295         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
296         formatting.
297
298 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
299
300         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
301         the temporary FPU control word.
302         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
303         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
304         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
305         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
306         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
307         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
308         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
309         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
310         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
311         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
312         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
313
314 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
315
316         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
317         fields.
318
319 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
320
321         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
322         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
323         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
324         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
325         Likewise.
326         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
327         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
328         Likewise.
329
330 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
331
332         * po/h.po: Update from translation team.
333
334 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
335
336         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
337
338         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
339         handling of denormals.
340         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
341         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
342         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
343         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
344         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
345         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
346         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
347         Likewise.
348
349 2012-05-26  Marek Polacek  <polacek@redhat.com>
350
351         [BZ #14152]
352         * math/libm-test.inc (fma_test): Don't always expect underflow
353         exception.
354
355 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
356
357         [BZ #12416]
358         * elf/tst-execstack.c: Include stackinfo.h.
359         (do_test): Adjust test case to ensure that pthread_getattr_np
360         behaviour remains the same after marking stack executable.
361
362 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
363
364         * sysdeps/unix/sysv/linux/kernel-features.h
365         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
366         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
367         kernel-features.h.
368         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
369         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
370         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
371         kernel-features.h.
372         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
373         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
374
375 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
376
377         * configure.in: Define the default includes to being none.
378         * configure: Regenerated.
379
380 2012-05-25  Roland McGrath  <roland@hack.frob.com>
381
382         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
383         * sysdeps/x86_64/setjmp.S: Likewise.
384         * sysdeps/i386/bsd-setjmp.S: Likewise.
385         * sysdeps/i386/bsd-_setjmp.S: Likewise.
386         * sysdeps/i386/setjmp.S: Likewise.
387         * sysdeps/i386/__longjmp.S: Likewise.
388         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
389         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
390
391         * include/stap-probe.h: New file.
392         * configure.in: Handle --enable-systemtap.
393         * configure: Regenerated.
394         * config.h.in (USE_STAP_PROBE): New #undef.
395         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
396         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
397         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
398
399 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
400
401         [BZ #13717]
402         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
403         to 2.4.0 where earlier.
404         * sysdeps/unix/sysv/linux/configure: Regenerated.
405         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
406         <kernel-features.h>.
407         [__ASSUME_32BITUIDS]: Make code unconditional.
408         [!__ASSUME_32BITUIDS]: Remove conditional code.
409         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
410         <kernel-features.h>.
411         [__ASSUME_32BITUIDS]: Make code unconditional.
412         [!__ASSUME_32BITUIDS]: Remove conditional code.
413         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
414         [__ASSUME_32BITUIDS]: Make code unconditional.
415         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
416         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
417         <kernel-features.h>.
418         [__ASSUME_32BITUIDS]: Make code unconditional.
419         [!__ASSUME_32BITUIDS]: Remove conditional code.
420         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
421         <kernel-features.h>.
422         [__ASSUME_32BITUIDS]: Make code unconditional.
423         [!__ASSUME_32BITUIDS]: Remove conditional code.
424         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
425         <kernel-features.h>.
426         [__ASSUME_32BITUIDS]: Make code unconditional.
427         [!__ASSUME_32BITUIDS]: Remove conditional code.
428         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
429         <kernel-features.h>.
430         [__ASSUME_32BITUIDS]: Make code unconditional.
431         [!__ASSUME_32BITUIDS]: Remove conditional code.
432         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
433         <kernel-features.h>.
434         [__ASSUME_32BITUIDS]: Make code unconditional.
435         [!__ASSUME_32BITUIDS]: Remove conditional code.
436         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
437         <kernel-features.h>.
438         [__ASSUME_32BITUIDS]: Make code unconditional.
439         [!__ASSUME_32BITUIDS]: Remove conditional code.
440         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
441         <kernel-features.h>.
442         [__ASSUME_32BITUIDS]: Make code unconditional.
443         [!__ASSUME_32BITUIDS]: Remove conditional code.
444         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
445         <kernel-features.h>.
446         [__ASSUME_32BITUIDS]: Make code unconditional.
447         [!__ASSUME_32BITUIDS]: Remove conditional code.
448         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
449         <kernel-features.h>.
450         [__ASSUME_32BITUIDS]: Make code unconditional.
451         [!__ASSUME_32BITUIDS]: Remove conditional code.
452         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
453         <kernel-features.h>.
454         [__ASSUME_32BITUIDS]: Make code unconditional.
455         [!__ASSUME_32BITUIDS]: Remove conditional code.
456         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
457         <kernel-features.h>.
458         [__NR_setresgid] (__setresgid): Do not declare.
459         [__ASSUME_32BITUIDS]: Make code unconditional.
460         [!__ASSUME_32BITUIDS]: Remove conditional code.
461         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
462         <kernel-features.h>.
463         [__NR_setresuid] (__setresuid): Do not declare.
464         [__ASSUME_32BITUIDS]: Make code unconditional.
465         [!__ASSUME_32BITUIDS]: Remove conditional code.
466         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
467         <kernel-features.h>.
468         [__ASSUME_32BITUIDS]: Make code unconditional.
469         [!__ASSUME_32BITUIDS]: Remove conditional code.
470         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
471         <kernel-features.h>.
472         [__ASSUME_32BITUIDS]: Make code unconditional.
473         [!__ASSUME_32BITUIDS]: Remove conditional code.
474         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
475         <kernel-features.h>.
476         [__ASSUME_32BITUIDS]: Make code unconditional.
477         [!__ASSUME_32BITUIDS]: Remove conditional code.
478         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
479         <kernel-features.h>.
480         [__ASSUME_32BITUIDS]: Make code unconditional.
481         [!__ASSUME_32BITUIDS]: Remove conditional code.
482         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
483         <kernel-features.h>.
484         [__ASSUME_32BITUIDS]: Make code unconditional.
485         [!__ASSUME_32BITUIDS]: Remove conditional code.
486         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
487         <kernel-features.h>.
488         [__ASSUME_32BITUIDS]: Make code unconditional.
489         [!__ASSUME_32BITUIDS]: Remove conditional code.
490         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
491         <kernel-features.h>.
492         [__ASSUME_32BITUIDS]: Make code unconditional.
493         [!__ASSUME_32BITUIDS]: Remove conditional code.
494         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
495         <kernel-features.h>.
496         [__ASSUME_32BITUIDS]: Make code unconditional.
497         [!__ASSUME_32BITUIDS]: Remove conditional code.
498         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
499         <kernel-features.h>.
500         [__ASSUME_32BITUIDS]: Make code unconditional.
501         [!__ASSUME_32BITUIDS]: Remove conditional code.
502         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
503         <kernel-features.h>.
504         [__ASSUME_32BITUIDS]: Make code unconditional.
505         [!__ASSUME_32BITUIDS]: Remove conditional code.
506         * sysdeps/unix/sysv/linux/kernel-features.h
507         (__ASSUME_SETRESUID_SYSCALL): Remove.
508         (__ASSUME_SETRESGID_SYSCALL): Likewise.
509         (__ASSUME_32BITUIDS): Likewise.
510         (__ASSUME_LDT_WORKS): Likewise.
511         (__ASSUME_O_DIRECTORY): Likewise.
512         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
513         architecture but not kernel version.
514         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
515         (__ASSUME_MMAP2_SYSCALL): Likewise.
516         (__ASSUME_STAT64_SYSCALL): Likewise.
517         (__ASSUME_IPC64): Likewise.
518         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
519         <kernel-features.h>.
520         [__ASSUME_32BITUIDS]: Make code unconditional.
521         [!__ASSUME_32BITUIDS]: Remove conditional code.
522         * sysdeps/unix/sysv/linux/opendir.c: Do not include
523         <kernel-features.h>.
524         [__ASSUME_O_DIRECTORY]: Make code unconditional.
525         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
526         132096]: Remove conditional code.
527         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
528         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
529         <kernel-features.h>.
530         [__ASSUME_32BITUIDS]: Make code unconditional.
531         [!__ASSUME_32BITUIDS]: Remove conditional code.
532         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
533         <kernel-features.h>.
534         [__ASSUME_32BITUIDS]: Make code unconditional.
535         [!__ASSUME_32BITUIDS]: Remove conditional code.
536         * sysdeps/unix/sysv/linux/setegid.c: Do not include
537         <kernel-features.h>.
538         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
539         unconditional.
540         (__setresgid): Do not declare.
541         [__ASSUME_32BITUIDS]: Make code unconditional.
542         [!__ASSUME_32BITUIDS]: Remove conditional code.
543         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
544         <kernel-features.h>.
545         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
546         unconditional.
547         (__setresuid): Do not declare.
548         [__ASSUME_32BITUIDS]: Make code unconditional.
549         [!__ASSUME_32BITUIDS]: Remove conditional code.
550         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
551         <kernel-features.h>.
552         [__ASSUME_32BITUIDS]: Make code unconditional.
553         [!__ASSUME_32BITUIDS]: Remove conditional code.
554         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
555         <kernel-features.h>.
556         [__ASSUME_32BITUIDS]: Make code unconditional.
557         [!__ASSUME_32BITUIDS]: Remove conditional code.
558
559 2012-05-25  Richard Henderson  <rth@twiddle.net>
560
561         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
562         dl_hwcap to ifunc resolver.
563         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
564         elf_ifunc_invoke.
565         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
566         dl_hwcap to ifunc resolver.
567         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
568
569 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
570
571         [BZ #14153]
572         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
573         for |x| <= 2**-26, not 2**-57.
574         * math/libm-test.inc (acos_test): Do not allow spurious underflow
575         exception.
576
577 2012-05-24  Jeff Law  <law@redhat.com>
578
579         * stdio-common/Makefile (tests): Add bug25.
580         * stdio-common/bug25.c: New test.
581
582 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
583
584         [BZ #13576]
585         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
586         multiple of MALLOC_ALIGNMENT in size.
587         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
588
589 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
590
591         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
592         Require >= 256.
593         (FILENAME_MAX): Use macro-int-constant.
594         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
595         (_IOFBF): Use macro-int-constant.
596         (_IOLBF): Likewise.
597         (_IONBF): Likewise.
598         (SEEK_CUR): Likewise.
599         (SEEK_END): Likewise.
600         (SEEK_SET): Likewise.
601         (TMP_MAX): Likewise.
602         (EOF): Use macro-int-constant.  Require < 0.
603         (NULL): Use macro-constant.  Require == 0.
604         (stdin): Require type to be FILE *.
605         (stdout): Likewise.
606         (stderr): Likewise.
607         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
608         macro-int-constant.
609         (EXIT_SUCCESS): Likewise.
610         (NULL): Use macro-constant.  Require == 0.
611         (RAND_MAX): Use macro-int-constant.
612         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
613         [C99-based standards] (strtof): Require function.
614         [C99-based standards] (strtold): Likewise.
615         [C99-based standards] (strtoll): Likewise.
616         [C99-based standards] (strtoull): Likewise.
617         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
618         [ISO || ISO99 || ISO11] (limits.h): Likewise.
619         [ISO || ISO99 || ISO11] (math.h): Likewise.
620         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
621         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
622         [ISO || ISO99 || ISO11] (*_t): Do not allow.
623
624 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
625
626         [BZ #14132]
627         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
628         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
629         * intl/dgettext.c (DCGETTEXT): Likewise.
630         * intl/gettext.c (DCGETTEXT): Likewise.
631         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
632         * posix/regex_internal.h (gettext): Likewise.
633         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
634         Remove declaration.
635         * include/argz.h (__argz_count_internal)
636         (__argz_stringify_internal): Remove declaration.
637         (__argz_count, __argz_stringify): Declare hidden proto.
638         * intl/dcgettext.c: Remove use of INTDEF.
639         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
640         * string/argz-stringify.c: Likewise.
641         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
642         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
643         Declare hidden proto.
644         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
645         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
646         Declare hidden proto.
647         * include/stdio.h (__asprintf_internal): Don't declare.
648         (__asprintf): Don't define as macro.  Declare hidden proto.
649         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
650         (__fsetlocking): Declare hidden proto.
651         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
652         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
653         hidden proto.
654         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
655         (_IO_setlinebuf): Remove use of INTUSE.
656         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
657         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
658         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
659         Remove declaration.
660         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
661         (_IO_do_flush): Remove use of INTUSE.
662         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
663         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
664         (_IO_adjust_column, _IO_least_wmarker)
665         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
666         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
667         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
668         (_IO_default_doallocate, _IO_wdefault_doallocate)
669         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
670         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
671         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
672         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
673         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
674         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
675         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
676         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
677         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
678         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
679         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
680         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
681         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
682         proto.
683         (_IO_flush_all_internal, _IO_adjust_column_internal)
684         (_IO_default_uflow_internal, _IO_default_finish_internal)
685         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
686         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
687         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
688         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
689         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
690         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
691         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
692         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
693         (_IO_file_close_internal, _IO_file_close_it_internal)
694         (_IO_file_underflow_internal, _IO_file_overflow_internal)
695         (_IO_file_init_internal, _IO_file_attach_internal)
696         (_IO_file_fopen_internal, _IO_file_read_internal)
697         (_IO_file_sync_internal, _IO_file_seek_internal)
698         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
699         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
700         (_IO_str_underflow_internal, _IO_str_overflow_internal)
701         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
702         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
703         (_IO_list_all_internal, _IO_link_in_internal)
704         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
705         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
706         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
707         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
708         (_IO_do_write_internal, _IO_padn_internal)
709         (_IO_getline_info_internal, _IO_getline_internal)
710         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
711         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
712         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
713         (_IO_vfscanf_internal, _IO_vfprintf_internal)
714         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
715         (_IO_init_internal, _IO_un_link_internal): Don't declare.
716         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
717         with libc_hidden_ver, remove use of INTUSE.
718         * libio/genops.c: Likewise.
719         * libio/freopen.c: Likewise.
720         * libio/freopen64.c: Likewise.
721         * libio/iofclose.c: Likewise.
722         * libio/iofdopen.c: Likewise.
723         * libio/iofflush.c: Likewise.
724         * libio/iofflush_u.c: Likewise.
725         * libio/iofgets.c: Likewise.
726         * libio/iofgets_u.c: Likewise.
727         * libio/iofopen.c: Likewise.
728         * libio/iofopncook.c: Likewise.
729         * libio/iofread.c: Likewise.
730         * libio/iofread_u.c: Likewise.
731         * libio/ioftell.c: Likewise.
732         * libio/iofwrite.c: Likewise.
733         * libio/iogetline.c: Likewise.
734         * libio/iogets.c: Likewise.
735         * libio/iogetwline.c: Likewise.
736         * libio/iopadn.c: Likewise.
737         * libio/iopopen.c: Likewise.
738         * libio/ioseekoff.c: Likewise.
739         * libio/ioseekpos.c: Likewise.
740         * libio/iosetbuffer.c: Likewise.
741         * libio/iosetvbuf.c: Likewise.
742         * libio/ioungetc.c: Likewise.
743         * libio/ioungetwc.c: Likewise.
744         * libio/iovdprintf.c: Likewise.
745         * libio/iovsprintf.c: Likewise.
746         * libio/iovsscanf.c: Likewise.
747         * libio/memstream.c: Likewise.
748         * libio/obprintf.c: Likewise.
749         * libio/oldfileops.c: Likewise.
750         * libio/oldiofclose.c: Likewise.
751         * libio/oldiofdopen.c: Likewise.
752         * libio/oldiofopen.c: Likewise.
753         * libio/oldiopopen.c: Likewise.
754         * libio/oldstdfiles.c: Likewise.
755         * libio/putc.c: Likewise.
756         * libio/setbuf.c: Likewise.
757         * libio/setlinebuf.c: Likewise.
758         * libio/stdfiles.c: Likewise.
759         * libio/strops.c: Likewise.
760         * libio/vasprintf.c: Likewise.
761         * libio/vscanf.c: Likewise.
762         * libio/vsnprintf.c: Likewise.
763         * libio/vswprintf.c: Likewise.
764         * libio/wfiledoalloc.c: Likewise.
765         * libio/wfileops.c: Likewise.
766         * libio/wgenops.c: Likewise.
767         * libio/wmemstream.c: Likewise.
768         * libio/wstrops.c: Likewise.
769         * libio/__fpurge.c: Likewise.
770         * libio/__fsetlocking.c: Likewise.
771         * assert/assert.c: Likewise.
772         * debug/fgets_chk.c: Likewise.
773         * debug/fgets_u_chk.c: Likewise.
774         * debug/fread_chk.c: Likewise.
775         * debug/fread_u_chk.c: Likewise.
776         * debug/gets_chk.c: Likewise.
777         * debug/obprintf_chk.c: Likewise.
778         * debug/vasprintf_chk.c: Likewise.
779         * debug/vdprintf_chk.c: Likewise.
780         * debug/vsnprintf_chk.c: Likewise.
781         * debug/vsprintf_chk.c: Likewise.
782         * malloc/mtrace.c: Likewise.
783         * misc/error.c: Likewise.
784         * misc/syslog.c: Likewise.
785         * stdio-common/asprintf.c: Likewise.
786         * stdio-common/fxprintf.c: Likewise.
787         * stdio-common/getw.c: Likewise.
788         * stdio-common/isoc99_fscanf.c: Likewise.
789         * stdio-common/isoc99_scanf.c: Likewise.
790         * stdio-common/isoc99_vfscanf.c: Likewise.
791         * stdio-common/isoc99_vscanf.c: Likewise.
792         * stdio-common/isoc99_vsscanf.c: Likewise.
793         * stdio-common/printf-prs.c: Likewise.
794         * stdio-common/printf_fp.c: Likewise.
795         * stdio-common/printf_fphex.c: Likewise.
796         * stdio-common/printf_size.c: Likewise.
797         * stdio-common/putw.c: Likewise.
798         * stdio-common/scanf.c: Likewise.
799         * stdio-common/sprintf.c: Likewise.
800         * stdio-common/tmpfile.c: Likewise.
801         * stdio-common/vfprintf.c: Likewise.
802         * stdio-common/vfscanf.c: Likewise.
803         * stdlib/strfmon_l.c: Likewise.
804         * sunrpc/openchild.c: Likewise.
805         * sunrpc/xdr_stdio.c: Likewise.
806         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
807         * sysdeps/mach/hurd/tmpfile.c: Likewise.
808
809 2012-05-24  Roland McGrath  <roland@hack.frob.com>
810
811         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
812
813         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
814         in the third column, to generate for the shared library an IFUNC
815         that uses _dl_vdso_vsym.
816         * Makerules (COMPILE.c, compile-stdin.c): New variables.
817         * Makeconfig (object-suffixes-noshared): New variable.
818
819         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
820         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
821         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
822         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
823
824         [BZ #14132]
825         * include/sys/time.h (__gettimeofday): Remove macro.
826         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
827         * time/gettimeofday.c (__gettimeofday): Remove #undef.
828         Remove INTDEF.
829         (__gettimeofday): Add libc_hidden_def.
830         (gettimeofday): Add libc_hidden_weak.
831         * sysdeps/mach/gettimeofday.c: Likewise.
832         * sysdeps/posix/gettimeofday.c: Likewise.
833         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
834         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
835         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
836         (__gettimeofday_internal): Remove strong_alias.
837         (__gettimeofday): Add libc_hidden_def.
838         (gettimeofday): Add libc_hidden_weak.
839         * sysdeps/unix/syscalls.list (gettimeofday):
840         Remove __gettimeofday_internal alias.
841
842 2012-05-24  Daniel Jacobowitz  <drow@false.org>
843             H.J. Lu  <hongjiu.lu@intel.com>
844
845         [BZ #12495]
846         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
847         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
848         (largebin_index_32_big): New.
849         (largebin_index): Use it for 16-byte alignment.
850         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
851         correction with front_misalign.
852
853 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
854
855         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
856         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
857         Likewise.
858         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
859         Likewise.
860         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
861         Likewise.
862         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
863         Likewise.
864         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
865         Likewise.
866         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
867         Likewise.
868         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
869         Likewise.
870         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
871         Likewise.
872         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
873         Likewise.
874         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
875         Likewise.
876         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
877         Likewise.
878         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
879         Likewise.
880
881         * scripts/data/c++-types-x32-linux-gnu.data: New file.
882         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
883
884 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
885
886         [BZ #10846]
887         [BZ #14036]
888         * math/libm-test.inc (exp_test): Add test from bug 14036.
889         (pow_test): Add test from bug 10846.
890
891         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
892         and other flags.
893         (special_function): Do not include flags in test name.
894         (parse_args): Likewise.
895         * sysdeps/i386/fpu/libm-test-ulps: Update.
896         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
897         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
898         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
900
901         * math/gen-libm-test.pl (%beautify): Add entries for underflow
902         exceptions.
903         * math/libm-test.inc ("Philosophy"): Update comment about
904         exception testing.
905         (UNDERFLOW_EXCEPTION): New macro.
906         (UNDERFLOW_EXCEPTION_OK): Likewise.
907         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
908         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
909         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
910         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
911         (INVALID_EXCEPTION_OK): Update value.
912         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
913         (OVERFLOW_EXCEPTION_OK): Likewise.
914         (IGNORE_ZERO_INF_SIGN): Likewise.
915         (test_exceptions): Handle underflow exceptions.
916         (acos_test): Update for underflow exception expectations.
917         (cexp_test): Likewise.
918         (clog_test): Likewise.
919         (clog10_test): Likewise.
920         (csqrt_test): Likewise.
921         (ctan_test): Likewise.
922         (ctanh_test): Likewise.
923         (exp_test): Likewise.
924         (exp10_test): Likewise.
925         (exp2_test): Likewise.
926         (expm1_test): Likewise.
927         (fma_test): Likewise.
928         (j0_test): Likewise.
929         (jn_test): Likewise.
930         (nexttoward_test): Likewise.
931         (pow_test): Likewise.
932         (scalbn_test): Likewise.
933         (scalbln_test): Likewise.
934         (tan_test): Likewise.
935         (y1_test): Likewise.
936         * sysdeps/i386/fpu/libm-test-ulps: Update.
937         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
938
939 2012-05-23  David S. Miller  <davem@davemloft.net>
940
941         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
942         (__libc_sigaction): Remove unused local variables.
943
944 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
945
946         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
947
948 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
949
950         mktime: avoid signed integer overflow
951         * time/mktime.c (__mktime_internal): Do not mishandle the case
952         where diff == INT_MIN.
953
954         mktime: simplify computation of average
955         * time/mktime.c (ranged_convert): Use new time_t_avg function
956         instead of rolling our own (probably-slower) code.
957
958         mktime: do not assume signed right shift propagates sign bit
959         * time/mktime.c (isdst_differ): New static function.
960         (__mktime_internal): No need to normalize tm_isdst now.
961         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
962         tm_isdst values.
963
964         mktime: merge another wrapv change from gnulib
965         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
966         from some compilers.
967
968         mktime: remove incorrect attempt at unusual arithmetics
969         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
970         The code didn't really work on such machines anyway.
971         (TYPE_MINIMUM): Assume two's complement.
972         (twos_complement_arithmetic): Verify that long_int and time_t
973         are two's complement (or unsigned, in the latter case).
974
975         mktime: check signed shifts on long_int and time_t, too
976         * time/mktime.c (SHR): Check that shifts work as desired
977         on the types long_int and time_t too, as SHR is used on
978         such types.
979
980         mktime: do not assume 'long' is wide enough
981         * time/mktime.c (verify): Move decl up.
982         (long_int): New type.
983         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
984         to remove assumption in the code that 'long' is wide enough to
985         store year values.  This assumption is not true on x32 and on
986         some non-glibc platforms.
987
988         mktime: merge wrapv change from gnulib
989         * time/mktime.c (WRAPV): New macro.
990         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
991         (guess_time_tm, __mktime_internal): Do not assume that signed
992         integer overflow wraps around; modern compilers generate code
993         where this assumption is no longer valid.
994
995 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
996
997         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
998         Replace "jmp L(pseudo_end)" with "ret".
999         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1000         Likewise.
1001
1002 2012-05-23  Andreas Jaeger  <aj@suse.de>
1003
1004         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
1005         * sysdeps/unix/sysv/linux/poll.c: Remove file.
1006
1007 2012-05-23  Andreas Jaeger  <aj@suse.de>
1008             Maximilian Attems  <max@stro.at>
1009
1010         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
1011         New macros.
1012
1013 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1014
1015         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
1016         code so that pseudo_end is just ret and the stack pointer is
1017         correct also for static library in error case.
1018
1019 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
1020
1021         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
1022         move to syscalls.list.
1023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
1024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
1025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
1026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
1027
1028         * manual/install.texi (Running make install): Do not mention Linux
1029         kernel version for which pt_chown is not needed.
1030         (Linux): Do not mention problems with nscd with 2.0 kernels.
1031         * INSTALL: Regenerated.
1032
1033 2012-05-23  Andreas Jaeger  <aj@suse.de>
1034
1035         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
1036         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
1037         macro.
1038         * sysdeps/unix/sysv/linux/s390/bits/mman.h
1039         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1040         * sysdeps/unix/sysv/linux/sh/bits/mman.h
1041         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1042         * sysdeps/unix/sysv/linux/i386/bits/mman.h
1043         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1044         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
1045         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1046         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
1047         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1048         * sysdeps/unix/sysv/linux/bits/in.h
1049         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
1050
1051 2012-05-22  Roland McGrath  <roland@hack.frob.com>
1052
1053         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
1054         (PREPARE_VERSION): Just use assert instead, it will be elided
1055         under [NDEBUG] anyway.
1056
1057 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1058
1059         * sysdeps/unix/sysv/linux/Makefile: Include
1060         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
1061         (sysdep_routines): Remove sysctl.
1062         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
1063         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
1064         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
1065         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
1066         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
1067
1068 2012-05-22  Andreas Jaeger  <aj@suse.de>
1069
1070         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
1071         that pseudo_end is just ret and the stack pointer is correct also
1072         for static library in error case.
1073
1074 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
1075
1076         [BZ #14122]
1077         * nss/nsswitch.c (defconfig_entries): New variable.
1078         (__nss_database_lookup): Don't leak defconfig entries.
1079         (nss_parse_service_list): Don't leak on error paths.
1080         (free_database_entries): New function.
1081         (free_defconfig): New function.
1082         (free_mem): Move common code to free_database_entries.
1083
1084 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1085
1086         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
1087         Add arch_prctl.
1088         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
1089
1090         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
1091         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
1092         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
1093         New macro.
1094         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
1095         (INTERNAL_SYSCALL_TYPES): Likewise.
1096         (LOAD_ARGS_TYPES_[1-6]): Likewise.
1097         (LOAD_REGS_TYPES_[1-6]): Likewise.
1098         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
1099         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
1100
1101 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1102
1103         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
1104         copysignl for GLIBC_2_0.
1105         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
1106         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
1107         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
1108         logbl for GLIBC_2_0.
1109         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
1110         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
1111
1112 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1113
1114         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
1115         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1116
1117         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1118         Use "neg %eax".
1119
1120         * time/mktime.c: Update copyright years.
1121
1122 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1123
1124         mktime: merge comment-quoting-style change from gnulib
1125         * time/mktime.c: Quote 'like this' in comments.
1126         The GNU coding standards suggest that we no longer quote `like this',
1127         as "`" and "'" are typically rendered asymmetrically nowadays.
1128         The typical gnulib style is to quote 'like this' when quoting
1129         code, and "like this" when quoting English.
1130
1131         * time/mktime.c (compile-command): Add "-I.".
1132
1133         mktime: merge mktime-internal.h change from gnulib
1134         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
1135
1136         mktime: merge time_r change from gnulib
1137         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
1138
1139         mktime: merge DEBUG change from gnulib
1140         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
1141         case system <time.h> has a #define.
1142
1143         mktime: merge <sys/types.h> change from gnulib
1144         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
1145         since <time.t> is now guaranteed to define time_t.
1146
1147         mktime: merge HAVE_CONFIG_H change from gnulib
1148         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
1149
1150 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1151
1152         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
1153         Use "neg %eax".
1154
1155         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
1156         __rlim_t cast.
1157         (struct rusage): Use anonymous union to pad each field to
1158         __syscall_slong_t.
1159
1160 2012-05-21  David S. Miller  <davem@davemloft.net>
1161
1162         * Makefules (o-iterator): Remove .s cases.
1163         (compile-command.s): Delete.
1164         (COMPILE.s): Delete.
1165         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
1166
1167 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
1168
1169         * configure.in (libc_cv_predef_stack_protector): Only consider
1170         "foobar" and "__stack_chk_fail" lines in libc_undefs.
1171         * configure: Regenerated.
1172
1173 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1174
1175         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
1176         New macro.  Use R*LP on int and pointer.
1177         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
1178         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
1179         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
1180         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
1181
1182         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
1183         [__WORDSIZE_TIME64_COMPAT32] instead of
1184         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
1185         (struct utmp): Likewise.
1186         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
1187         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
1188         Renamed to ...
1189         (__WORDSIZE_TIME64_COMPAT32): This.
1190         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
1191         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
1192         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
1193         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
1194         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
1195         (__WORDSIZE_TIME64_COMPAT32): New macro.
1196
1197 2012-05-21  Andreas Jaeger  <aj@suse.de>
1198
1199         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
1200         only if [SHARED]. Add prototype for __wcschr_ia32.
1201
1202 2012-05-21  Roland McGrath  <roland@hack.frob.com>
1203
1204         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
1205         of %rbp unmolested in the jmp_buf while mangling the low bits.
1206         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
1207         unmolested high bits of %rbp while demangling the low bits.
1208         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
1209
1210 2012-05-21  Andreas Jaeger  <aj@suse.de>
1211
1212         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
1213         * sunrpc/svc_simple.c: Use it for registerrpc.
1214         * sunrpc/xcrypt.c: Use it for passwd2des.
1215
1216         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
1217
1218 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1219
1220         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
1221         Don't define if [__SYSCALL_WORDSIZE != 32].
1222         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
1223         New macro.
1224
1225 2012-05-21  Bruno Haible  <bruno@clisp.org>
1226             Andreas Jaeger  <aj@suse.de>
1227
1228         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
1229         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
1230         inptr and inend for must_buffer_ch.
1231         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
1232         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
1233         * stdio-common/Makefile (tests): Remove bug15.
1234         (bug15-ENV): Remove macro.
1235         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
1236         anymore.
1237
1238 2012-05-19  Andreas Jaeger  <aj@suse.de>
1239             Roland McGrath  <roland@hack.frob.com>
1240
1241         * manual/contrib.texi: Completely rewritten. It contains now an
1242         alphabetical list of contributors and their contributions.
1243
1244 2012-05-21  Richard Henderson  <rth@twiddle.net>
1245
1246         * misc/getauxval.c (__getauxval): Use unsigned long int.
1247         * misc/sys/auxv.h: Include <sys/cdefs.h>.
1248         (getauxval): Use unsigned long int.
1249
1250 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1251
1252         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
1253
1254 2012-05-21  Roland McGrath  <roland@hack.frob.com>
1255
1256         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
1257         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
1258         __alignof__ (long double).
1259
1260 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1261
1262         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1263
1264 2012-05-20  Richard Henderson  <rth@twiddle.net>
1265
1266         * misc/getauxval.c: New file.
1267         * misc/sys/auxv.h: New file.
1268         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
1269         (routines): Add getauxval.
1270         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
1271         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
1272         * elf/dl-sysdep.c (_dl_auxv): Remove.
1273         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
1274         * elf/dl-support.c (_dl_auxv): New variable.
1275         (_dl_aux_init): Initialize it.
1276         * manual/startup.texi (Auxiliary Vector): New node.
1277         * sysdeps/generic/bits/hwcap.h: New file.
1278         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
1279         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
1280         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
1281         * sysdeps/sparc/sysdep.h: ... here.  Include it.
1282         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
1283         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
1284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1285         Update.
1286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
1287         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
1288         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
1289         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
1290         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
1291         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
1292         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
1293         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
1294
1295 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1296
1297         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1298
1299 2012-05-19  David S. Miller  <davem@davemloft.net>
1300
1301         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1302
1303 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
1304
1305         [BZ #14123]
1306         * math/s_ccosh.c: Include <float.h>
1307         (__ccosh): Avoid internal overflow calculating sinh and cosh
1308         values before multiplying by sin and cos values.
1309         * math/s_ccoshf.c: Likewise.
1310         * math/s_ccoshl.c: Likewise.
1311         * math/s_csin.c: Likewise.
1312         * math/s_csinf.c: Likewise.
1313         * math/s_csinl.c: Likewise.
1314         * math/s_csinh.c: Likewise.
1315         * math/s_csinhf.c: Likewise.
1316         * math/s_csinhl.c: Likewise.
1317         * math/libm-test.inc (ccos_test): Add more tests.
1318         (ccosh_test): Likewise.
1319         (csin_test): Likewise.
1320         (csinh_test): Likewise.
1321         * sysdeps/i386/fpu/libm-test-ulps: Update.
1322         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1323
1324 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1325
1326         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
1327         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1328
1329         * sysdeps/x86_64/x32/_itoa.h: Add comment.
1330
1331 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
1332
1333         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
1334         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
1335         * sysdeps/powerpc/soft-fp/Versions: Likewise.
1336         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
1337         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
1338         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
1339         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
1340         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
1341         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
1342         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
1343         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
1344         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
1345         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
1346         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
1347         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
1348         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
1349         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
1350         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
1351         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
1352         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
1353         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
1354         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
1355         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
1356         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
1357         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
1358         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
1359         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
1360         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
1361         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
1362         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
1363         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
1364
1365 2012-05-18  Andreas Jaeger  <aj@suse.de>
1366
1367         * csu/.gitignore: Delete.
1368
1369 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1370
1371         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
1372         (timex): Use __syscall_slong_t.
1373
1374 2012-05-18  Andreas Jaeger  <aj@suse.de>
1375             Carlos O'Donell  <carlos_odonell@mentor.com>
1376
1377         * manual/install.texi (Configuring and compiling): Update
1378         description about files modified in the source directory.
1379         * INSTALL: Regenerated.
1380
1381 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1382
1383         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
1384         value.  Use "or" to set return value to -1.
1385         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
1386         negate return value.
1387
1388 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1389
1390         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
1391         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
1392         failure if the compiler has Graphite support disabled.
1393         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
1394         Likewise.
1395         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
1396         CFLAGS-memmove.c): Likewise.
1397         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
1398         Likewise.
1399
1400 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1401
1402         * sysdeps/x86_64/x32/_itoa.h: New file.
1403
1404         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
1405         getdents system call only if kernel and user dirents have the
1406         same d_ino and d_off.
1407
1408         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
1409         LLONG_MAX != LONG_MAX.
1410         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1411         (_fitoa_word): Likewise.
1412
1413         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
1414         years.
1415         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
1416         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
1417         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
1418
1419         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
1420         include <bits/wordsize.h>.  Check __x86_64__ instead of
1421         __WORDSIZE.
1422         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
1423         if __x86_64__ is defined.  Use anonymous union on fpstate.
1424
1425         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
1426         anonymous union.
1427
1428 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
1429
1430         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
1431         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
1432         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
1433         Refer to _rtld_local_ro instead of _rtld_global_ro.
1434         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
1435         Likewise.
1436         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
1437         Likewise.
1438         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
1439         Likewise.
1440         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
1441         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
1442         of _rtld_global, and rtld_progname instead of _dl_argv[0].
1443
1444         * sysdeps/powerpc/powerpc32/dl-machine.c
1445         (__elf_machine_runtime_setup) [PROF]: Don't reference
1446         _dl_prof_resolve.
1447
1448 2012-05-18  Andreas Jaeger  <aj@suse.de>
1449
1450         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
1451         function only available for GCCs before 3.4 since GCC 3.4
1452         introduced a builtin.
1453         (lrint): Likewise.
1454         (llrintf): Likewise.
1455         (llrint): Likewise.
1456         (fmaxf): Likewise.
1457         (fmax): Likewise.
1458         (fminf): Likewise.
1459         (fmin): Likewise.
1460         (rint): Likewise.
1461         (rintf): Likewise.
1462         (nearbyint): Likewise.
1463         (nearbyintf): Likewise.
1464         (ceil): Likewise.
1465         (ceilf): Likewise.
1466         (floor): Likewise.
1467         (floorf): Likewise.
1468
1469 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1470
1471         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
1472         on both fields and cast pointer to __syscall_ulong_t.
1473
1474         * bits/types.h (__fsword_t): New type.
1475         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
1476         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
1477         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1478         (__FSWORD_T_TYPE): Likewise.
1479         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1480         (__FSWORD_T_TYPE): Likewise.
1481         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1482         (__FSWORD_T_TYPE): Likewise.
1483         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
1484         (__FSWORD_T_TYPE): Likewise.
1485         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
1486         __SWORD_TYPE with __fsword_t.
1487         (statfs64): Likewise.
1488
1489 2012-05-17  David S. Miller  <davem@davemloft.net>
1490
1491         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
1492
1493 2012-05-17  Andreas Jaeger  <aj@suse.de>
1494
1495         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
1496         warning.
1497
1498 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1499
1500         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
1501
1502 2012-05-17  Andreas Jaeger  <aj@suse.de>
1503
1504         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
1505         when it is used.
1506
1507 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
1508
1509         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
1510
1511 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1512
1513         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
1514         * sysdeps/x86_64/tst-mallocalign1.c: New file.
1515
1516 2012-05-17  Andreas Jaeger  <aj@suse.de>
1517             Carlos O'Donell  <carlos_odonell@mentor.com>
1518
1519         [BZ #14059]
1520         * sysdeps/x86_64/multiarch/init-arch.h
1521         (bit_YMM_Usable): Rename to...
1522         (bit_AVX_Usable): ... this.
1523         (bit_FMA4_Usable): New macro.
1524         (bit_XMM_state): New macro.
1525         (bit_YMM_state): New macro.
1526         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
1527         [__ASSEMBLER__] (index_AVX_Usable): ... this.
1528         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
1529         (CPUID_OSXSAVE): New macro.
1530         (CPUID_AVX): New macro.
1531         (CPUID_FMA4): New macro.
1532         (index_YMM_Usable): Rename to...
1533         (index_AVX_Usable): ... this.
1534         (HAS_AVX): Use HAS_ARCH_FEATURE.
1535         (HAS_FMA4): Likewise.
1536         (HAS_YMM_USABLE): Remove.
1537         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1538         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
1539         are present.
1540         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
1541         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
1542         * sysdeps/x86_64/multiarch/Makefile: Likewise.
1543         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
1544         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
1545
1546 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
1547
1548         * math/libm-test.c: Support platforms without multiple rounding modes.
1549         * math/bug-nextafter.c: Support platforms without FP exceptions.
1550         * math/bug-nexttoward.c: Likewise.
1551         * math/test-fenv.c: Likewise.
1552         * math/test-misc.c: Likewise.
1553         * stdlib/bug-getcontext.c: Likewise.
1554
1555 2012-05-17  Andreas Jaeger  <aj@suse.de>
1556
1557         * manual/examples/search.c (critter_cmp): Change signature to
1558         avoid warnings.
1559         * manual/string.texi (Collation Functions): Likewise.
1560
1561 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1562
1563         * bits/types.h: Fold copyright years.
1564         * bits/typesizes.h: Likewise.
1565         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
1566         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
1567         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
1568         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
1569         * time/time.h: Likewise.
1570
1571 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
1572
1573         [BZ #208]
1574         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
1575         in instead of returning them.  Return void.
1576         (__libc_mallinfo): Accumulate over all arenas.
1577         (__malloc_stats): Adjust for change in int_mallinfo interface.
1578
1579 2012-05-16  Roland McGrath  <roland@hack.frob.com>
1580
1581         [BZ #10375]
1582         * configure.in (NM): Add AC_CHECK_TOOL for it.
1583         (libc_extra_cflags): New substituted variable.
1584         Check for -fstack-protector being used implicitly.
1585         * configure: Regenerated.
1586         * config.make.in (config-extra-cflags): New variable,
1587         gets @libc_extra_cflags@.
1588         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
1589
1590         [BZ #10375]
1591         * configure.in: Check for _FORTIFY_SOURCE being predefined.
1592         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
1593         * configure: Regenerated.
1594         * config.make.in (CPPUNDEFS): New substituted variable.
1595         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
1596         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
1597         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
1598
1599 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1600
1601         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
1602         (mq_attr): Use __syscall_slong_t.
1603
1604 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1605
1606         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
1607         Check __x86_64__ instead of __WORDSIZE.
1608         (_STAT_VER_LINUX): Likewise.
1609         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
1610         __syscall_ulong_t and __syscall_slong_t.
1611         (stat64): Likewise.
1612
1613 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1614
1615         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
1616
1617 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1618
1619         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
1620
1621 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1622
1623         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
1624         __syscall_ulong_t.
1625
1626         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
1627         include <bits/wordsize.h>.  Check __x86_64__ instead of
1628         __WORDSIZE.
1629         (greg_t): Use "__extension__ long long int" if __x86_64__ is
1630         defined.
1631         (mcontext_t): Replace "unsigned long" with "unsigned long long".
1632
1633         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
1634         include <bits/wordsize.h>.  Check __x86_64__ instead of
1635         __WORDSIZE.
1636         (user_regs_struct): Use "__extension__ unsigned long long"
1637         instead of "unsigned long" if __x86_64__ is defined.
1638         (user): Likewise.  Pad after pointer field if __ILP32__ is
1639         defined.
1640
1641 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
1642
1643         * configure.in (makeinfo): Require version 4.5 or later.  Allow
1644         versions 5 to 9.
1645         * configure: Regenerated.
1646         * manual/install.texi (texinfo): Increase version requirement to
1647         4.5 or later.
1648         * INSTALL: Regenerated.
1649
1650         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
1651
1652 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1653
1654         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
1655
1656         * sysdeps/x86_64/x32/ffs.c: New file.
1657
1658         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
1659         __syscall_ulong_t.
1660         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
1661         defined.  Use __syscall_ulong_t.
1662         (shminfo): Use __syscall_ulong_t.
1663         (shm_info): Likewise.
1664
1665         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
1666         __syscall_ulong_t.
1667
1668         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
1669         <bits/wordsize.h>.
1670         (msgqnum_t): Use __syscall_ulong_t.
1671         (msglen_t): Likewise.
1672         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
1673         __syscall_ulong_t.
1674
1675         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
1676         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1677
1678         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
1679
1680         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
1681         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
1682
1683         * sysvipc/sys/msg.h (msgbuf): Replace long int with
1684         __syscall_slong_t.
1685
1686         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
1687         include <bits/wordsize.h>.  Check __x86_64__ instead of
1688         __WORDSIZE.
1689
1690         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
1691         "unsigned long long int" if __x86_64__ is defined.
1692         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
1693
1694         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
1695         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1696         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
1697
1698         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
1699         <stdint.h>.
1700         (GET_PC): Cast to uintptr_t first.
1701         (GET_FRAME): Likewise.
1702         (GET_STACK): Likewise.
1703
1704         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
1705         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
1706         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
1707         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
1708         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
1709         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
1710         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
1711         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
1712         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
1713         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
1714         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
1715         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
1716         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1717         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
1718         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
1719         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
1720         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
1721         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
1722         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
1723         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
1724         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
1725         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
1726         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
1727         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
1728         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
1729         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
1730         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
1731         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
1732         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
1733
1734 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
1735
1736         * Makerules (+depfiles): Also collect depfiles from .oS in
1737         $(extra-objs).
1738         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
1739         .oS, $(libnldbl-routines)).
1740
1741         * Makerules (native-compile-mkdep-flags): Define.
1742         * sunrpc/Makefile (extra-objs): Add $(addprefix
1743         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
1744         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
1745         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
1746         calling $(make-target-directory).
1747
1748 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1749
1750         * bits/types.h (__snseconds_t): Removed.
1751         * time/time.h (struct timespec): Replace __snseconds_t with
1752         __syscall_slong_t.
1753         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
1754         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
1755         Likewise.
1756         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1757         (__SNSECONDS_T_TYPE): Likewise.
1758         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1759         (__SNSECONDS_T_TYPE): Likewise.
1760         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1761         (__SNSECONDS_T_TYPE): Likewise.
1762
1763 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1764
1765         * sysdeps/mach/hurd/bits/typesizes.h
1766         (__SYSCALL_SLONG_TYPE): New macro.
1767         (__SYSCALL_ULONG_TYPE): Likewise.
1768
1769 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1770
1771         * bits/types.h (__syscall_slong_t): New type.
1772         (__syscall_ulong_t): Likewise.
1773
1774         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
1775         (__SYSCALL_ULONG_TYPE): Likewise.
1776         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1777         (__SYSCALL_SLONG_TYPE): Likewise.
1778         (__SYSCALL_ULONG_TYPE): Likewise.
1779         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1780         (__SYSCALL_SLONG_TYPE): Likewise.
1781         (__SYSCALL_ULONG_TYPE): Likewise.
1782         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1783         (__SYSCALL_SLONG_TYPE): Likewise.
1784         (__SYSCALL_ULONG_TYPE): Likewise.
1785
1786 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1787
1788         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
1789         Add sigaltstack-offsets.sym.
1790         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
1791         <sigaltstack-offsets.h>.
1792         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
1793         longjmp_msg pointer.
1794         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
1795         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
1796         signal stack.
1797         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
1798
1799 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
1800
1801         * elf/stackguard-macros.h: Remove file.
1802         * sysdeps/generic/stackguard-macros.h: New file.
1803         * sysdeps/i386/stackguard-macros.h: Likewise.
1804         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
1805         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
1806         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
1807         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
1808         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
1809         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
1810         * sysdeps/x86_64/stackguard-macros.h: Likewise.
1811         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
1812         <elf/stackguard-macros.h>.
1813
1814         [BZ #14109]
1815         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
1816         __aligned__ in attribute.
1817         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
1818         (gregset_t): Likewise.
1819
1820 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1821
1822         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
1823         * sysdeps/x86_64/64/Implies-after: Here.  New file.
1824         * sysdeps/x86_64/x32/Implies-after: New file.
1825
1826 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1827
1828         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
1829         and access return value for _dl_profile_fixup.  Use R10_LP to
1830         load frame size.
1831
1832 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1833
1834         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
1835
1836 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1837
1838         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
1839         * sysdeps/x86_64/x32/sysdep.h: New file.
1840
1841 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1842
1843         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
1844         * sysdeps/x86_64/setjmp.S: Likewise.
1845
1846 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1847
1848         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
1849         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
1850         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
1851         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
1852         remove unused global constant.
1853
1854 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
1855
1856         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
1857         include of <not-cancel.h>.
1858
1859 2012-05-15  Roland McGrath  <roland@hack.frob.com>
1860
1861         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
1862
1863 2012-05-15  Jeff Law  <law@redhat.com>
1864             Andreas Jaeger  <aj@suse.de>
1865
1866         [BZ #13594]
1867         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
1868         out from...
1869         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
1870         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
1871         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
1872         code changing __hst_map_handle.map.
1873
1874 2012-05-15  Roland McGrath  <roland@hack.frob.com>
1875
1876         * configure.in (sysnames): Look for Implies-before and Implies-after
1877         files.
1878         * configure: Regenerated.
1879
1880 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1881
1882         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
1883         8-byte data alignment with LP_SIZE alignment.
1884
1885 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1886
1887         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
1888         into R10_LP.
1889
1890 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1891
1892         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
1893
1894 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1895
1896         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
1897         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
1898         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
1899         Likewise.
1900         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1901
1902 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1903
1904         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
1905         (stackinfo_sub_sp): Likewise.
1906
1907 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1908
1909         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
1910         RAX_LP.
1911
1912 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1913
1914         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
1915         into R*_LP.
1916
1917 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1918
1919         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
1920         sizes into R*_LP.
1921
1922 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1923
1924         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
1925
1926 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1927
1928         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
1929         into R11_LP and load __x86_64_shared_cache_size_half into
1930         R8_LP.
1931
1932 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1933
1934         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
1935         R8_LP.
1936
1937 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1938
1939         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
1940         logb for POWER7.
1941         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
1942         logbf for POWER7.
1943         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
1944         logbl for POWER7.
1945         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
1946         powerpc32/power7/fpu/s_logb.c via #include.
1947         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
1948         powerpc32/power7/fpu/s_logbf.c via #include.
1949         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
1950         powerpc32/power7/fpu/s_logbl.c via #include.
1951
1952 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
1953
1954         * README.libm: Remove file.
1955
1956 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1957
1958         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
1959         count for x32.  Use R*_LP and omit operand-size suffix.
1960
1961 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1962
1963         * shlib-versions: Move x86_64-.*-linux.* entries to ...
1964         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
1965         * sysdeps/x86_64/x32/shlib-versions: New file.
1966
1967 2012-05-14  Roland McGrath  <roland@hack.frob.com>
1968
1969         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
1970         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
1971         Use _dl_fatal_printf instead.
1972
1973 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
1974
1975         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
1976         set if not set by the user.  Do not allow for being unset.
1977         * sysdeps/unix/sysv/linux/configure: Regenerated.
1978
1979 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1980
1981         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
1982         the `q' suffix from lea and replace .quad with ASM_ADDR.
1983
1984 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1985
1986         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
1987         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
1988         instead of $17.
1989         (PTR_DEMANGLE): Likewise.
1990
1991 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1992
1993         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
1994         (LP_OP): Likewise.
1995         (ASM_ADDR): Likewise.
1996         (RAX_LP): Likewise.
1997         (RBP_LP): Likewise.
1998         (RBX_LP): Likewise.
1999         (RCX_LP): Likewise.
2000         (RDI_LP): Likewise.
2001         (RSI_LP): Likewise.
2002         (RSP_LP): Likewise.
2003         (R8_LP): Likewise.
2004         (R9_LP): Likewise.
2005         (R10_LP): Likewise.
2006         (R10_LP): Likewise.
2007         (R11_LP): Likewise.
2008         (R12_LP): Likewise.
2009         (R13_LP): Likewise.
2010         (R14_LP): Likewise.
2011         (R15_LP): Likewise.
2012
2013 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2014
2015         * sysdeps/x86_64/x32/dl-machine.h: New file.
2016
2017 2012-05-14  Andreas Jaeger  <aj@suse.de>
2018
2019         * manual/Makefile (subdir): Remove export of subdir.
2020         (all): Remove target.
2021         (.PHONY): Remove all from list.
2022         (mkinstalldirs): Remove.
2023         (.PHONY): Remove installdirs from list.
2024         ($(inst_infodir)/libc.info): Use make-target-directory.
2025         (installdirs): Remove.
2026         (subdir_%): Remove.
2027         (glibc-targets): Remove.
2028         (lib): Remove.
2029         (stubs): Remove.
2030         ($(objpfx)stubs ../po/manual.pot): Remove.
2031         ($(objpfx)stamp%): Remove.
2032         (make-target-directory): Remove.
2033         (subdir_install): Remove.
2034         (routines): Remove.
2035         (aux): Remove.
2036         (sources): Remove.
2037         (objects): Remove.
2038         (headers): Remove.
2039
2040         [BZ #13750]
2041         * manual/.gitignore: Remove, it's not needed anymore.
2042         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
2043         all files in it.
2044         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
2045         directory.
2046         (texis): Renamed to $(objpfx)texis.
2047         (texis-path): New, contains path to generated files.
2048         (chapters.%): Use texis-path for complete path, add extra argument
2049         libc-texinfo.sh.
2050         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
2051         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
2052         (summary,texi, stamp-summary): Use complete path of
2053         files. Generate files in build dir.
2054         (dir-add.texi): Build in build dir.
2055         (libm-err.texi,stamp-libm-err): Likewise.
2056         (version.texi, stamp-version): Likewise.
2057         (.%c.texi): Likewise.
2058         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
2059         (mostlyclean): Remove target.
2060         (realclean): Remove target.
2061         (generated): Add new variable with contents from mostlyclean and
2062         realclean, remove entries duplicated in common-mostlyclean, add
2063         stamp-libm-err and stamp-version.
2064         (generated-dirs): Add libc directory.
2065         ($(inst_infodir)/libc.info): Install files from build dir.
2066
2067         * manual/install.texi (Configuring and compiling): Adjust since
2068         the info files are not part of the tar ball anymore.
2069
2070 2012-05-14  Andreas Jaeger  <aj@suse.de>
2071
2072         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
2073         variable.
2074
2075 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2076
2077         [BZ #13717]
2078         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2079         to 2.2.0 where earlier.
2080         * sysdeps/unix/sysv/linux/configure: Regenerated.
2081         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
2082         Remove conditional code.
2083         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
2084         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
2085         Remove conditional code.
2086         [!__NR_lchown]: Likewise.
2087         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2088         [__NR_lchown]: Likewise.
2089         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
2090         comment referencing __ASSUME_LCHOWN_SYSCALL.
2091         * sysdeps/unix/sysv/linux/i386/sigaction.c
2092         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2093         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2094         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
2095         Remove conditional code.
2096         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
2097         (__protocol_available): Remove #if 0 code.
2098         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
2099         conditional code.
2100         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
2101         * sysdeps/unix/sysv/linux/kernel-features.h
2102         (__ASSUME_GETCWD_SYSCALL): Don't define.
2103         (__ASSUME_REALTIME_SIGNALS): Likewise.
2104         (__ASSUME_PREAD_SYSCALL): Likewise.
2105         (__ASSUME_PWRITE_SYSCALL): Likewise.
2106         (__ASSUME_POLL_SYSCALL): Likewise.
2107         (__ASSUME_LCHOWN_SYSCALL): Likewise.
2108         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
2109         non-SPARC.
2110         (__ASSUME_SIOCGIFNAME): Don't define.
2111         (__ASSUME_MSG_NOSIGNAL): Likewise.
2112         (__ASSUME_SENDFILE): Define unconditionally.
2113         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
2114         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
2115         conditional code.
2116         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
2117         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
2118         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2119         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2120         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
2121         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2122         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
2124         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2125         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
2127         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2128         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
2130         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2131         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
2133         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2134         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
2136         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2137         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
2139         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2140         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
2142         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2143         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
2145         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2146         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2147         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
2148         Remove conditional code.
2149         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2150         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
2151         Remove conditional code.
2152         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2153         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
2154         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
2155         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
2156         Remove conditional code.
2157         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2158         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
2159         Remove conditional code.
2160         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2161         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
2162         Remove conditional code.
2163         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2164         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
2165         Remove conditional code.
2166         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2167         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
2168         Remove conditional code.
2169         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2170         * sysdeps/unix/sysv/linux/sh/pwrite64.c
2171         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2172         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2173         * sysdeps/unix/sysv/linux/sigaction.c
2174         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2175         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2176         * sysdeps/unix/sysv/linux/sigpending.c
2177         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2178         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2179         * sysdeps/unix/sysv/linux/sigprocmask.c
2180         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2181         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2182         * sysdeps/unix/sysv/linux/sigsuspend.c
2183         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2184         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2185         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2186         (__libc_missing_rt_sigs): Remove.
2187         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
2188         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
2189         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
2190         Remove conditional code.
2191         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
2192         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
2193         return 1.
2194         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
2195         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
2196         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
2197         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
2198
2199 2012-05-14  Andreas Jaeger  <aj@suse.de>
2200
2201         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
2202         it's not used in glibc.
2203         (__coshm1): Likewise.
2204         (__acosh1p): Likewise.
2205         (__sgn): Likewise.
2206
2207         * manual/string.texi (Copying and Concatenation): Add missing
2208         variable in concat example.
2209         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
2210
2211 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2212
2213         [BZ #14103]
2214         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
2215         __builtin_clzl with __builtin_clzll.
2216
2217 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2218
2219         [BZ #14104]
2220         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
2221         libc_freeres_ptr.
2222
2223 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2224
2225         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
2226         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
2227         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
2228         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
2229
2230 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
2231
2232         * NEWS: Update ia64 info.
2233
2234 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
2235
2236         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
2237         used as bcopy.
2238
2239 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2240
2241         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
2242         * sysdeps/unix/syscalls.list (dup3): Likewise.
2243         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
2244         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
2245
2246 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2247
2248         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
2249         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
2250
2251 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2252
2253         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
2254         thread pointer.
2255         (TLS_IE): Use mov/add instead of movq/addq to load thread
2256         pointer.
2257         (TLS_GD_PREFIX): New.
2258         (TLS_GD): Use it.
2259
2260 2012-05-11  David S. Miller  <davem@davemloft.net>
2261
2262         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
2263         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
2264         (_FPU_SETCW): Likewise.
2265
2266 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2267
2268         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
2269         is 32-byte aligned.
2270
2271 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
2272
2273         [BZ #11837]
2274         * iconvdata/gb18030.c: Update tables.
2275         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
2276         characters specially.
2277         (BODY for TO_LOOP): Add encoding of missing ranges.
2278
2279 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2280
2281         [BZ #13673]
2282         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
2283         * sysdeps/mach/hurd/dup3.c: Likewise.
2284         * sysdeps/mach/hurd/readlinkat.c: Likewise.
2285         * sysdeps/powerpc/memmove.c:: Likewise.
2286
2287 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2288
2289         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
2290         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
2291
2292 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2293
2294         * elf/elf.h (R_X86_64_RELATIVE64): New.
2295         (R_X86_64_NUM): Updated.
2296         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2297         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
2298         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
2299         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
2300         tst-quad1pie tst-quad2pie
2301         (modules-names): Add tst-quadmod1 tst-quadmod2.
2302         ($(objpfx)tst-quad1): New dependency.
2303         ($(objpfx)tst-quad2): Likewise.
2304         ($(objpfx)tst-quad1pie): Likewise.
2305         ($(objpfx)tst-quad2pie): Likewise.
2306         * sysdeps/x86_64/tst-quad1.c: New file.
2307         * sysdeps/x86_64/tst-quad1pie.c: New file.
2308         * sysdeps/x86_64/tst-quad2.c: Likewise.
2309         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
2310         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
2311         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
2312         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
2313         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
2314
2315 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2316
2317         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
2318         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
2319         * streams/stropts.h (t_scalar_t): Define type.
2320
2321         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
2322         (_PATH_PRESERVE): Set to "/var/lib".
2323         (_PATH_RWHODIR): Set to "/var/spool/rwho".
2324
2325         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
2326         instead of int.
2327
2328         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
2329         if __dir_mkfile succeeded.
2330
2331         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
2332         checking for _hurd_dtablesize.  Unlock it right after having
2333         finished _hurd_dtable allocation.
2334
2335 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2336
2337         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
2338         * sysdeps/mach/hurd/configure: Regenerated.
2339         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
2340         special-casing to...
2341         * sysdeps/gnu/configure.in: ... this new file.
2342         * sysdeps/unix/sysv/linux/configure: Regenerated.
2343         * sysdeps/gnu/configure: New generated file.
2344
2345         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
2346         for Linux: use nsec instead of usec, as well as:
2347         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
2348         members of type struct timespec.
2349         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
2350         New macros.
2351         (struct stat64): Likewise.
2352         (_STATBUF_ST_NSEC): New macro.
2353         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
2354
2355         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2356         __strtoul_internal rather than strtoul.
2357
2358 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2359
2360         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
2361         and reject them.
2362
2363 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2364
2365         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
2366         which preserves existing values.
2367         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
2368
2369 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2370
2371         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
2372         TIMEOUT values.  Return EINVAL for NFDS values either negative or
2373         greater than FD_SETSIZE.
2374
2375 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2376
2377         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
2378         allocated, call __vm_protect to finish enabling the existing space, and
2379         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
2380         allocate the remainder.
2381
2382 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2383
2384         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
2385         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
2386
2387 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2388
2389         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
2390         sysdeps/mach/hurd/readlink.c.
2391
2392         * posix/tst-sysconf.c (posix_options): Only use
2393         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
2394         _POSIX_SYNCHRONIZED_IO when they are defined
2395         * sysdeps/mach/hurd/bits/posix_opt.h:
2396         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
2397         (_XOPEN_REALTIME): Undefine macro.
2398         (_XOPEN_REALTIME_THREADS): Undefine macro.
2399         (_XOPEN_SHM): Undefine macro.
2400         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
2401         macro to -1.
2402         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
2403         macro to -1.
2404         (_POSIX_ASYNC_IO): Undefine macro.
2405         (_POSIX_PRIORITIZED_IO): Undefine macro.
2406         (_POSIX_SPIN_LOCKS): Define macro to -1.
2407
2408         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
2409         SA_NODEFER, SA_RESETHAND.
2410         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
2411         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
2412         F_DUPFD_CLOEXEC.
2413
2414 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2415
2416         * elf/Makefile (pldd-modules): Define unconditionally.
2417
2418 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2419
2420         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
2421
2422 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2423
2424         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
2425         Return ENOENT when name is empty.
2426         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
2427
2428 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2429
2430         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
2431
2432         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
2433
2434 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2435
2436         Fix mlock in all cases except non-readable pages.
2437         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
2438         instead of VM_PROT_ALL as parameter to __vm_wire function.
2439
2440         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
2441         (__mkdir): When path is `/', just fail with EEXIST.
2442         * sysdeps/mach/hurd/mkdirat.c: Likewise.
2443
2444 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2445
2446         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
2447         <sys/uio.h> (for writev).
2448         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
2449         and <sys/param.h> (for MIN).
2450
2451 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2452
2453         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
2454         REQUESTED_TIME.  Properly set the remaining time and return EINTR
2455         if interrupted.
2456
2457 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2458
2459         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
2460         Depend on against $(link-rpcuserlibs).
2461
2462 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2463
2464         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
2465         (__libc_stack_end): Do not use attribute_relro.
2466         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
2467         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
2468         to libthread-provided value.
2469         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
2470         attribute_relro.
2471
2472 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2473
2474         [BZ #3748]
2475         * bits/libc-lock.h (__libc_once_get): New macro.
2476         * sysdeps/mach/bits/libc-lock.h: Likewise.
2477         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
2478         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
2479         instead of using implementation details.
2480
2481         * libio/fileops.c: Unconditionally include <kernel-features.h>.
2482         * libio/freopen.c: Likewise.
2483         * libio/freopen64.c: Likewise.
2484         * misc/syslog.c: Likewise.
2485         * nscd/connections.c: Likewise.
2486         * nscd/netgroupcache.c: Likewise.
2487         * sysdeps/posix/getcwd.c: Likewise.
2488
2489 2012-05-10  Roland McGrath  <roland@hack.frob.com>
2490
2491         * math/w_ilogbf.c: Add #include <limits.h>.
2492
2493 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2494
2495         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
2496         path instead of returning without unlocking.
2497
2498         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
2499         immediate-write ioctls.
2500         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
2501
2502 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2503
2504         * sysdeps/mach/hurd/i386/init-first.c (init): Use
2505         __builtin_frame_address instead of making assumptions about the
2506         location of the return address relative to DATA.  Force early load of
2507         the return address.
2508         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
2509         __builtin_frame_address.
2510
2511         dup3 for GNU Hurd.
2512         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
2513         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
2514         implement dup3 and do some further code clean-ups.
2515         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
2516         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
2517
2518 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2519
2520         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
2521
2522         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
2523         HURD_CRITICAL_END around holding _hurd_dtable_lock.
2524         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
2525         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
2526         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
2527         d->port.lock.
2528
2529         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
2530         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
2531         when handler == SIG_ERR, not when handler != SIG_ERR.
2532
2533 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2534
2535         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
2536         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
2537         definitions.
2538
2539         accept4 for GNU Hurd.
2540         * include/sys/socket.h (__libc_accept4): New prototype.
2541         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
2542         to implement __libc_accept4.
2543         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
2544         __libc_accept4.
2545         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
2546
2547         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
2548         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
2549         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
2550         signal-defines.sym.
2551
2552 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2553
2554         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
2555
2556 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2557
2558         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
2559         assertion on O_CLOEXEC flag.
2560         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
2561         * hurd/intern-fd.c: Likewise.
2562         * hurd/port2fd.c: Likewise.
2563
2564 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2565
2566         [BZ #3906]
2567         * bits/in.h (IPV6_PKTINFO): Define new macro.
2568         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
2569
2570 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2571
2572         [BZ #13954]
2573         [BZ #13955]
2574         [BZ #13956]
2575         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
2576         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
2577         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
2578         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
2579         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2580         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
2581         * math/libm-test.inc (logb_test) : Additional logb tests.
2582
2583 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
2584             Andreas Jaeger  <aj@suse.de>
2585
2586         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
2587         * configure: Regenerated.
2588         * config.h.in (LINK_OBSOLETE_RPC): New macro.
2589         * config.make.in (link-obsolete-rpc): New substituted variable.
2590         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
2591         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
2592         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
2593         (shared-only-routines): Don't set it under [link-obsolete-rpc],
2594         so that libc.a contains the symbols.
2595         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
2596         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
2597         * sunrpc/auth_none.c: Likewise.
2598         * sunrpc/auth_unix.c: Likewise.
2599         * sunrpc/authdes_prot.c: Likewise.
2600         * sunrpc/authuxprot.c: Likewise.
2601         * sunrpc/clnt_gen.c: Likewise.
2602         * sunrpc/clnt_perr.c: Likewise.
2603         * sunrpc/clnt_raw.c: Likewise.
2604         * sunrpc/clnt_simp.c: Likewise.
2605         * sunrpc/clnt_tcp.c: Likewise.
2606         * sunrpc/clnt_udp.c: Likewise.
2607         * sunrpc/clnt_unix.c: Likewise.
2608         * sunrpc/des_crypt.c: Likewise.
2609         * sunrpc/des_soft.c: Likewise.
2610         * sunrpc/get_myaddr.c: Likewise.
2611         * sunrpc/key_call.c: Likewise.
2612         * sunrpc/key_prot.c: Likewise.
2613         * sunrpc/netname.c: Likewise.
2614         * sunrpc/pm_getmaps.c: Likewise.
2615         * sunrpc/pm_getport.c: Likewise.
2616         * sunrpc/pmap_clnt.c: Likewise.
2617         * sunrpc/pmap_prot.c: Likewise.
2618         * sunrpc/pmap_prot2.c: Likewise.
2619         * sunrpc/pmap_rmt.c: Likewise.
2620         * sunrpc/publickey.c: Likewise.
2621         * sunrpc/rpc_cmsg.c: Likewise.
2622         * sunrpc/rpc_common.c: Likewise.
2623         * sunrpc/rpc_dtable.c: Likewise.
2624         * sunrpc/rpc_prot.c: Likewise.
2625         * sunrpc/rpc_thread.c: Likewise.
2626         * sunrpc/rtime.c: Likewise.
2627         * sunrpc/svc.c: Likewise.
2628         * sunrpc/svc_auth.c: Likewise.
2629         * sunrpc/svc_raw.c: Likewise.
2630         * sunrpc/svc_run.c: Likewise.
2631         * sunrpc/svc_tcp.c: Likewise.
2632         * sunrpc/svc_udp.c: Likewise.
2633         * sunrpc/svc_unix.c: Likewise.
2634         * sunrpc/svcauth_des.c: Likewise.
2635         * sunrpc/xcrypt.c: Likewise.
2636         * sunrpc/xdr.c: Likewise.
2637         * sunrpc/xdr_array.c: Likewise.
2638         * sunrpc/xdr_float.c: Likewise.
2639         * sunrpc/xdr_intXX_t.c: Likewise.
2640         * sunrpc/xdr_mem.c: Likewise.
2641         * sunrpc/xdr_rec.c: Likewise.
2642         * sunrpc/xdr_ref.c: Likewise.
2643         * sunrpc/xdr_sizeof.c: Likewise.
2644         * sunrpc/xdr_stdio.c: Likewise.
2645
2646 2012-05-10  Roland McGrath  <roland@hack.frob.com>
2647
2648         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
2649         change.  Update copyright years.
2650
2651 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
2652
2653         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
2654
2655 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
2656             Joseph Myers  <joseph@codesourcery.com>
2657             Paul Pluzhnikov  <ppluzhnikov@google.com>
2658
2659         [BZ #14012]
2660         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
2661         requiring rpcgen.
2662         [cross-compiling] (extra-libs): Likewise.
2663         [cross-compiling] (extra-libs-others): Likewise.
2664         [cross-compiling] (librpcsvc-routines): Likewise.
2665         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
2666         [cross-compiling] (omit-deps): Likewise.
2667         (sunrpc-CPPFLAGS): New variable.
2668         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
2669         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
2670         (cross-rpcgen-objs): New variable.
2671         (extra-objs): Append $(cross-rpcgen-objs).
2672         ($(cross-rpcgen-objs)): New rule.
2673         ($(objpfx)cross-rpcgen): Likewise.
2674         (rpcgen-cmd): Define to use $(built-program-file).  Expand
2675         comment.
2676         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
2677         ($(objpfx)x%.stmp): Likewise.
2678         * sunrpc/proto.h [IS_IN_build] (_): Define.
2679         [IS_IN_build] (_libc_intl_domainname): Likewise.
2680
2681 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2682
2683         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
2684         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
2685         and R_X86_64_TPOFF64.
2686
2687 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
2688
2689         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
2690         sysdeps/unix/sysv/syscalls.list.
2691         (stime): Likewise.
2692         (utime): Likewise.
2693         * sysdeps/unix/sysv/syscalls.list: Remove file.
2694
2695 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2696
2697         [BZ #3440]
2698         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
2699         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
2700         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
2701         (__LC_IDENTIFICATION): Make these macros useful in #if
2702         expressions, as required by C99.
2703
2704 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
2705
2706         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
2707         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
2708         after this.
2709
2710 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
2711
2712         * stdlib/longlong.h: Updated from GCC.
2713
2714 2012-05-09  Andreas Jaeger  <aj@suse.de>
2715
2716         * nscd/nscd.c (run_modes): Make named enum, reorder so that
2717         default is first entry.
2718         (run_mode): Set type.
2719         (main): Remove informal message about syslog.
2720         (options): Fix typo.
2721
2722         [BZ #14053]
2723         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
2724         to asm.
2725         (lrint): Likewise.
2726         (llrintf): Likewise.
2727         (llrint): Likewise.
2728         (rint): Likewise.
2729         (rintf): Likewise.
2730         (nearbyint): Likewise.
2731         (nearbyintf): Likewise.
2732
2733 2012-05-09  Andreas Jaeger  <aj@suse.de>
2734             Pedro Alves  <palves@redhat.com>
2735
2736         * nscd/nscd.c (run_mode): Use enum.
2737         (main): Cleanup coding style issue.
2738
2739 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
2740             Andreas Jaeger  <aj@suse.de>
2741
2742         * nscd/nscd.c (go_background): Replaced with...
2743         (run_mode): ... this.
2744         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
2745         (options): Add -F --foreground.
2746         (main): Implement it.
2747         (parse_opt): Parse it.
2748
2749 2012-05-09  Andreas Jaeger  <aj@suse.de>
2750
2751         [BZ #14083]
2752         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
2753         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
2754         -Wconversion warning.
2755         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
2756         Likewise.
2757
2758 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
2759
2760         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
2761         == 0.
2762         (LC_ALL): Use macro-int-constant.
2763         (LC_COLLATE): Likewise.
2764         (LC_CTYPE): Likewise.
2765         (LC_MESSAGES): Likewise.
2766         (LC_MONETARY): Likewise.
2767         (LC_NUMERIC): Likewise.
2768         (LC_TIME): Likewise.
2769         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
2770         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
2771         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2772         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
2773         Specify type.
2774         [C99-based standards] (float_t): Expect type.
2775         [C99-based standards] (double_t): Expect type.
2776         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
2777         type.
2778         [C99-based standards] (HUGE_VALL): Likewise.
2779         [C99-based standards] (INFINITY): Likewise.
2780         [C99-based standards] (NAN): Likewise.
2781         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
2782         [C99-based standards] (FP_NAN): Likewise.
2783         [C99-based standards] (FP_NORMAL): Likewise.
2784         [C99-based standards] (FP_SUBNORMAL): Likewise.
2785         [C99-based standards] (FP_ZERO): Likewise.
2786         [C99-based standards] (FP_FAST_FMA): Use
2787         optional-macro-int-constant.  Specify type.  Require == 1.
2788         [C99-based standards] (FP_FAST_FMAF): Likewise.
2789         [C99-based standards] (FP_FAST_FMAL): Likewise.
2790         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
2791         [C99-based standards] (FP_ILOGBNAN): Likewise.
2792         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
2793         Specify type.
2794         [C99-based standards] (MATH_ERREXCEPT): Likewise.
2795         [C99-based standards] (math_errhandling): Specify type.
2796         [ISO99 || ISO11] (signgam): Do not allow.
2797         [non-C99-based standards] (copysignf): Do not allow.
2798         [non-C99-based standards] (exp2f): Likewise.
2799         [non-C99-based standards] (log2f): Likewise.
2800         [non-C99-based standards] (modff): Allow.
2801         [non-C99-based standards] (erff): Do not allow.
2802         [non-C99-based standards] (erfcf): Likewise.
2803         [non-C99-based standards] (gammaf): Likewise.
2804         [non-C99-based standards] (hypotf): Likewise.
2805         [non-C99-based standards] (j0f): Likewise.
2806         [non-C99-based standards] (j1f): Likewise.
2807         [non-C99-based standards] (jnf): Likewise.
2808         [non-C99-based standards] (lgammaf): Likewise.
2809         [non-C99-based standards] (tgammaf): Likewise.
2810         [non-C99-based standards] (y0f): Likewise.
2811         [non-C99-based standards] (y1f): Likewise.
2812         [non-C99-based standards] (ynf): Likewise.
2813         [non-C99-based standards] (isnanf): Likewise.
2814         [non-C99-based standards] (acoshf): Likewise.
2815         [non-C99-based standards] (asinhf): Likewise.
2816         [non-C99-based standards] (atanhf): Likewise.
2817         [non-C99-based standards] (cbrtf): Likewise.
2818         [non-C99-based standards] (expm1f): Likewise.
2819         [non-C99-based standards] (ilogbf): Likewise.
2820         [non-C99-based standards] (log1pf): Likewise.
2821         [non-C99-based standards] (logbf): Likewise.
2822         [non-C99-based standards] (nextafterf): Likewise.
2823         [non-C99-based standards] (remainderf): Likewise.
2824         [non-C99-based standards] (rintf): Likewise.
2825         [non-C99-based standards] (scalbf): Likewise.
2826         [non-C99-based standards] (copysignl): Likewise.
2827         [non-C99-based standards] (exp2l): Likewise.
2828         [non-C99-based standards] (log2l): Likewise.
2829         [non-C99-based standards] (modfl): Allow.
2830         [non-C99-based standards] (erfl): Do not allow.
2831         [non-C99-based standards] (erfcl): Likewise.
2832         [non-C99-based standards] (gammal): Likewise.
2833         [non-C99-based standards] (hypotl): Likewise.
2834         [non-C99-based standards] (j0l): Likewise.
2835         [non-C99-based standards] (j1l): Likewise.
2836         [non-C99-based standards] (jnl): Likewise.
2837         [non-C99-based standards] (lgammal): Likewise.
2838         [non-C99-based standards] (tgammal): Likewise.
2839         [non-C99-based standards] (y0l): Likewise.
2840         [non-C99-based standards] (y1l): Likewise.
2841         [non-C99-based standards] (ynl): Likewise.
2842         [non-C99-based standards] (isnanl): Likewise.
2843         [non-C99-based standards] (acoshl): Likewise.
2844         [non-C99-based standards] (asinhl): Likewise.
2845         [non-C99-based standards] (atanhl): Likewise.
2846         [non-C99-based standards] (cbrtl): Likewise.
2847         [non-C99-based standards] (expm1l): Likewise.
2848         [non-C99-based standards] (ilogbl): Likewise.
2849         [non-C99-based standards] (log1pl): Likewise.
2850         [non-C99-based standards] (logbl): Likewise.
2851         [non-C99-based standards] (nextafterl): Likewise.
2852         [non-C99-based standards] (remainderl): Likewise.
2853         [non-C99-based standards] (rintl): Likewise.
2854         [non-C99-based standards] (scalbl): Likewise.
2855         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2856         [non-C99-based standards] (FP_*): Do not allow.
2857         [C99-based standards] (FP_*): Change to
2858         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
2859         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
2860         allow.
2861         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
2862         (SIG_ERR): Likewise.
2863         [X/Open-based standards] (SIG_HOLD): Likewise.
2864         (SIG_IGN): Likewise.
2865         (SIGABRT): Use macro-int-constant.  Specify type.  Require
2866         positive value.
2867         (SIGFPE): Likewise.
2868         (SIGILL): Likewise.
2869         (SIGINT): Likewise.
2870         (SIGSEGV): Likewise.
2871         (SIGTER): Likewise.
2872         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
2873         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
2874         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
2875         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
2876         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
2877         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
2878         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
2879         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
2880         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
2881         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
2882         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
2883         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
2884         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
2885         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
2886         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
2887         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
2888         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
2889         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
2890         [X/Open-based standards] (SIGTRAP): Likewise.
2891         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
2892         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
2893         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
2894         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
2895         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
2896         allow.
2897
2898 2012-05-08  Ian Wienand  <ianw@vmware.com>
2899
2900         [BZ #14080]
2901         * time/tzset.c (__tzset_parse_tz): Update default rules for
2902         daylight time changes in the Energy Policy Act of 2005.
2903
2904 2012-05-09  Andreas Jaeger  <aj@suse.de>
2905
2906         [BZ #13983]
2907         * elf/ldconfig.c (parse_conf): Change string to make clear that
2908         ldconfig only issued a warning if ld.so.conf does not exist.
2909
2910 2012-05-08  David S. Miller  <davem@davemloft.net>
2911
2912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
2913         movxtod instead of popping the value on the stack.
2914
2915         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2916
2917 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
2918
2919         * config.h.in: Add HAVE_ARM_PCS_VFP.
2920
2921 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
2922
2923         [BZ #13979]
2924         * include/features.h: Warn if user requests __FORTIFY_SOURCE
2925         checking but the checks are disabled for any reason.
2926
2927 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2928
2929         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
2930         and ELF64_R_TYPE with ELFW(R_TYPE).
2931
2932 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
2933
2934         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
2935         (ulimit): Likewise.
2936
2937         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
2938         (settimeofday): Likewise.
2939
2940 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
2941
2942         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
2943         a struct th_u2 inside the union, and move tu_block/tu_code into
2944         a new th_u3 union of tu_block/tu_code inside of that.  Move
2945         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
2946         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
2947         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
2948         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
2949         (th_stuff): Change to th_u1.tu_stuff.
2950         (th_data): Define.
2951         (th_msg): Change to th_u1.th_u2.tu_data.
2952
2953 2012-05-07  David S. Miller  <davem@davemloft.net>
2954
2955         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2956
2957         [BZ #14074]
2958         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
2959         (SETUP_PIC_REG): Use it.
2960         (SETUP_PIC_REG_LEAF): Use it.
2961
2962 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
2963
2964         [BZ #13885]
2965         [BZ #13923]
2966         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2967         USE_AS_EXPM1L.
2968         (EXPL_FINITE): Likewise.
2969         (FLDLOG): Likewise.
2970         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
2971         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
2972         e_expl.S.
2973         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2974         USE_AS_EXPM1L.
2975         (EXPL_FINITE): Likewise.
2976         (FLDLOG): Likewise.
2977         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
2978         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
2979         e_expl.S.
2980         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
2981         test of -max_value argument for long double.
2982         * sysdeps/i386/fpu/libm-test-ulps: Update.
2983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2984
2985 2012-05-06  David S. Miller  <davem@davemloft.net>
2986
2987         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
2988         quad soft-float symbols whose references which are compiler
2989         generated.
2990         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
2991
2992 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
2993
2994         [BZ #13884]
2995         [BZ #13914]
2996         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2997         USE_AS_EXP10L.
2998         (EXPL_FINITE): Likewise.
2999         (FLDLOG): Likewise.
3000         (c0): Likewise.
3001         (c1): Likewise.
3002         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3003         Adjust comments for base varying.
3004         (__expl_finite): Change alias to EXPL_FINITE.
3005         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
3006         e_expl.S.
3007         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
3008         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
3009         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
3010         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
3011         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3012         USE_AS_EXP10L.
3013         (EXPL_FINITE): Likewise.
3014         (FLDLOG): Likewise.
3015         (c0): Likewise.
3016         (c1): Likewise.
3017         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3018         Adjust comments for base varying.
3019         (__expl_finite): Change alias to EXPL_FINITE.
3020         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
3021         tests for bugs.
3022         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3023
3024         [BZ #14064]
3025         * math/libm-test.inc (check_float_internal): Correct ulp
3026         calculation for subnormal expected results.
3027
3028 2012-05-06  Andreas Jaeger  <aj@suse.de>
3029
3030         * Makeconfig (+math-flags): New, set to -frounding-math.
3031         (+cflags): Add +math-flags so that all of glibc gets compiled with
3032         it.
3033
3034         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
3035
3036 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
3037
3038         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
3039         Disable one test.
3040
3041         [BZ #13787]
3042         [BZ #13922]
3043         [BZ #14036]
3044         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
3045         (__ieee754_expl): Allow for and saturate large arguments.
3046         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
3047         (u_threshold): Likewise.
3048         (__exp): Call __ieee754_exp before checking for overflow and
3049         underflow.
3050         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
3051         (u_threshold): Likewise.
3052         (__expf): Call __ieee754_expf before checking for overflow and
3053         underflow.
3054         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
3055         (u_threshold): Likewise.
3056         (__expl): Call __ieee754_expl before checking for overflow and
3057         underflow.
3058         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
3059         (__ieee754_expl): Allow for and saturate large arguments.
3060         * math/libm-test.inc (exp_test): Add another test.  Do not allow
3061         missing overflow exception on overflow.
3062         (expm1_test): Do not allow missing overflow exception on overflow.
3063
3064         * sysdeps/i386/fpu/e_expl.c: Move to ...
3065         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
3066         rather than using inline asm.
3067         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
3068         * sysdeps/x86_64/fpu/e_expl.S: Copy from
3069         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
3070
3071         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
3072         (nice): Likewise.
3073         (poll): Likewise.
3074         (signal): Likewise.
3075         (time): Likewise.
3076         (times): Likewise.
3077
3078 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3079
3080         * sysdeps/unix/syscalls.list (adjtime): Add entry from
3081         sysdeps/unix/common/syscalls.list.
3082         (fchmod): Likewise.
3083         (fchown): Likewise.
3084         (ftruncate): Likewise.
3085         (getrusage): Likewise.
3086         (gettimeofday): Likewise.
3087         (setpgid): Likewise.
3088         (setregid): Likewise.
3089         (setreuid): Likewise.
3090         (sigaction): Likewise.
3091         (truncate): Likewise.
3092         (vhangup): Likewise.
3093         * sysdeps/unix/common/syscalls.list: Remove file.
3094         * sysdeps/unix/bsd/Implies: Don't include unix/common.
3095         * sysdeps/unix/sysv/linux/Implies: Likewise.
3096
3097 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3098
3099         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
3100         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
3101         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
3102         Moved to ...
3103         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
3104         Here.
3105         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
3106         to ...
3107         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
3108         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
3109         to ...
3110         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
3111         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
3112         to ...
3113         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
3114         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
3115         to ...
3116         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
3117         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
3118         to ...
3119         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
3120         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
3121         to ...
3122         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
3123         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
3124         to ...
3125         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
3126         Here.
3127         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
3128         to ...
3129         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
3130         Here.
3131         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
3132         to ...
3133         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
3134         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
3135         Moved to ...
3136         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
3137         Here.
3138         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
3139         to ...
3140         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
3141
3142 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3143
3144         * sysdeps/unix/common/bits/dirent.h: Remove file.
3145         * sysdeps/unix/common/bits/fcntl.h: Likewise.
3146
3147         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
3148         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
3149         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
3150         * sysdeps/unix/bsd/isatty.c: Likewise.
3151         * sysdeps/unix/bsd/tcdrain.c: Likewise.
3152         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
3153         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
3154
3155 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3156
3157         [BZ #13563]
3158         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
3159         long double comparison inaccuracies.
3160         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
3161         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3162
3163 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
3164
3165         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
3166         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
3167
3168 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3169
3170         [BZ #14049]
3171         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
3172         nonzero digits before rounding a hex value.
3173         * stdlib/tst-strtod.c (tests): Add another test.
3174
3175 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3176
3177         * sysdeps/s390/fpu/libm-test-ulps: Update.
3178
3179 2012-05-03  Andreas Jaeger  <aj@suse.de>
3180
3181         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
3182         does not get optimized out.
3183         (malloc_opt_barrier): New.
3184
3185 2012-05-03  Andreas Jaeger  <aj@suse.de>
3186             Roland McGrath  <roland@hack.frob.com>
3187
3188         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
3189         intermediate file deletion.
3190         (generated): Add .symlist files.
3191
3192 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
3193
3194         [BZ #13775]
3195         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
3196         Redirect under this condition.
3197         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
3198         [__USE_GNU] (__dprintf_chk): Not under this condition.
3199         [__USE_GNU] (__vdprintf_chk): Likewise.
3200         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
3201         under this condition.
3202         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
3203         [__USE_XOPEN2K8] (dprintf): Define under this condition.
3204         [__USE_XOPEN2K8] (vdprintf): Likewise.
3205         [__USE_GNU] (__dprintf_chk): Not under this condition.
3206         [__USE_GNU] (__vdprintf_chk): Likewise.
3207         [__USE_GNU] (dprintf): Likewise.
3208         [__USE_GNU] (vdprintf): Likewise.
3209
3210 2012-05-03  Roland McGrath  <roland@hack.frob.com>
3211
3212         * elf/Makefile (common-generated): Set this instead of generated for
3213         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
3214         $(all-built-dso)-derived lists.
3215
3216 2012-05-03  Andreas Jaeger  <aj@suse.de>
3217
3218         * sysdeps/i386/fpu/libm-test-ulps: Update.
3219
3220         * FAQ: Removed.
3221         * FAQ.in: Likewise.
3222         * scripts/gen-FAQ.pl: Likewise.
3223         * manual/install.texi (Installation): Point to online location of
3224         FAQ.
3225         * Makefile (files-for-dist): Remove FAQ.
3226         (FAQ): Remove.
3227
3228 2012-05-02  Allan McRae  <allan@archlinux.org>
3229
3230         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
3231         (LDFLAGS-reldepmod5.so): Likewise.
3232         (LDFLAGS-reldep6mod1.so): Likewise.
3233         (LDFLAGS-reldep6mod4.so): Likewise.
3234         (LDFLAGS-reldep8mod3.so): Likewise.
3235         (LDFLAGS-unload4mod1.so): Likewise.
3236         (LDFLAGS-unload4mod2.so): Likewise.
3237         (LDFLAGS-tst-initorder): Likewise.
3238         (LDFLAGS-tst-initordera2.so): Likewise.
3239         (LDFLAGS-tst-initordera3.so): Likewise.
3240         (LDFLAGS-tst-initordera4.so): Likewise.
3241         (LDFLAGS-tst-initorderb2.so): Likewise.
3242         (LDFLAGS-noload): Likewise.
3243         (LDFLAGS-next): Likewise.
3244         (LDFLAGS-order2mod1.so): Likewise.
3245         (LDFLAGS-order2mod2.so): Likewise.
3246         (LDFLAGS-tst-initorder2): Likewise.
3247         (LDFLAGS-tst-initorder2a.so): Likewise.
3248         (LDFLAGS-tst-initorder2b.so): Likewise.
3249         (LDFLAGS-tst-initorder2c.so): Likewise.
3250         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
3251
3252 2012-05-02  David S. Miller  <davem@davemloft.net>
3253
3254         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3255
3256 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
3257
3258         [BZ #14055]
3259         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
3260
3261 2012-05-02  Andreas Jaeger  <aj@suse.de>
3262
3263         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
3264         since we manipulate rounding mode.
3265         (CPPFLAGS-test-idouble.c): Likewise.
3266         (CPPFLAGS-test-ifloat.c): Likewise.
3267         (CFLAGS-test-ldouble.c): Likewise.
3268         (CFLAGS-test-double.c): Likewise.
3269         (CFLAGS-test-float.c): Likewise.
3270         (CFLAGS-test-misc.c): Likewise.
3271         (CFLAGS-test-test-fenv.c): Likewise.
3272
3273 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3274
3275         [BZ #2550]
3276         [BZ #2570]
3277         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
3278         comparisons to determine direction to adjust input.
3279
3280 2012-05-01  Roland McGrath  <roland@hack.frob.com>
3281
3282         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
3283         output to the target.
3284
3285         * scripts/localplt.awk: New file.
3286         * elf/Makefile ($(objpfx)check-localplt): Target removed.
3287         (check-localplt-CFLAGS): Variable removed.
3288         ($(all-built-dso:=.jmprel)): New static pattern rule.
3289         (generated): Add those targets.
3290         (localplt-built-dso): New variable.
3291         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
3292
3293         * elf/check-localplt.c: File removed.
3294
3295         * scripts/check-execstack.awk: New file.
3296         * elf/Makefile ($(objpfx)check-execstack): Target removed.
3297         (check-execstack-CFLAGS): Variable removed.
3298         ($(objpfx)check-execstack.h): Target removed.
3299         ($(objpfx)execstack-default): New target.
3300         (generated): Add that instead of check-execstack.h.
3301         ($(all-built-dso:=.phdr)): New static pattern rule.
3302         (generated): Add those targets.
3303         * elf/check-execstack.c: File removed.
3304
3305         * scripts/check-textrel.awk: New file.
3306         * elf/Makefile ($(objpfx)check-textrel): Target removed.
3307         (check-textrel-CFLAGS): Variable removed.
3308         (all-built-dso): Use := to define.o
3309         ($(all-built-dso:=.dyn)): New static pattern rule.
3310         (generated): Add those targets.
3311         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
3312         * config.make.in (READELF): New substituted variable.
3313         * elf/check-textrel.c: File removed.
3314
3315 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
3316
3317         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3318         allow.
3319         * conform/data/ctype.h-data [C99-based standards] (isblank):
3320         Expect function.
3321         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
3322         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
3323         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3324         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
3325         Specify type.  Require positive value.
3326         (EILSEQ): Likewise.
3327         (ERANGE): Likewise.
3328         [ISO || POSIX] (EILSEQ): Do not expect.
3329         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
3330         Specify type.  Require positive value.
3331         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
3332         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
3333         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
3334         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
3335         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
3336         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
3337         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
3338         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
3339         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
3340         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
3341         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
3342         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
3343         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
3344         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
3345         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
3346         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
3347         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
3348         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
3349         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
3350         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
3351         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
3352         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
3353         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
3354         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
3355         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
3356         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
3357         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
3358         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
3359         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
3360         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
3361         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
3362         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
3363         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
3364         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
3365         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
3366         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
3367         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
3368         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
3369         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
3370         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
3371         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
3372         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
3373         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
3374         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
3375         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
3376         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
3377         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
3378         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
3379         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
3380         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
3381         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
3382         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
3383         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
3384         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
3385         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
3386         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
3387         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
3388         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
3389         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
3390         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
3391         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
3392         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
3393         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
3394         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
3395         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
3396         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
3397         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
3398         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
3399         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
3400         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
3401         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
3402         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
3403         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
3404         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
3405         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
3406         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
3407         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
3408         Require >= 2.
3409         (FLT_ROUNDS): Expect as macro, not constant.
3410         (FLT_MANT_DIG): Use macro-int-constant.
3411         (DBL_MANT_DIG): Likewise.
3412         (LDBL_MANT_DIG): Likewise.
3413         (FLT_DIG): Likewise.
3414         (DBL_DIG): Likewise.
3415         (LDBL_DIG): Likewise.
3416         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
3417         (DBL_MIN_EXP): Likewise.
3418         (LDBL_MIN_EXP): Likewise.
3419         (FLT_MAX_EXP): Use macro-int-constant.
3420         (DBL_MAX_EXP): Likewise.
3421         (LDBL_MAX_EXP): Likewise.
3422         (FLT_MAX_10_EXP): Likewise.
3423         (DBL_MAX_10_EXP): Likewise.
3424         (LDBL_MAX_10_EXP): Likewise.
3425         (FLT_MAX): Use macro-constant.
3426         (DBL_MAX): Likewise.
3427         (LDBL_MAX): Likewise.
3428         (FLT_EPSILON): Use macro-constant.  Give upper bound.
3429         (DBL_EPSILON): Likewise.
3430         (LDBL_EPSILON): Likewise.
3431         (FLT_MIN): Likewise.
3432         (DBL_MIN): Likewise.
3433         (LDBL_MIN): Likewise.
3434         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
3435         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
3436         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
3437         [ISO11] (FLT_HAS_SUBNORM): Likewise.
3438         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
3439         [ISO11] (DBL_DECIMAL_DIG): Likewise.
3440         [ISO11] (FLT_DECIMAL_DIG): Likewise.
3441         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
3442         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
3443         [ISO11] (FLT_TRUE_MIN): Likewise.
3444         [ISO11] (LDBL_TRUE_MIN): Likewise.
3445         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3446         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
3447         (SCHAR_MIN): Use macro-int-constant.  Specify type.
3448         (SCHAR_MAX): Likewise.
3449         (UCHAR_MAX): Likewise.
3450         (CHAR_MIN): Likewise.
3451         (CHAR_MAX): Likewise.
3452         (MB_LEN_MAX): Use macro-int-constant.
3453         (SHRT_MIN): Use macro-int-constant.  Specify type.
3454         (SHRT_MAX): Likewise.
3455         (USHRT_MAX): Likewise.
3456         (INT_MAX): Likewise.
3457         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
3458         bound negative.
3459         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
3460         bound with "U".
3461         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
3462         bound with "L".
3463         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
3464         bound negative.  Suffix upper bound with "L".
3465         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
3466         bound with "UL".
3467         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
3468         Specify type.
3469         [C99-based standards] (LLONG_MAX): Likewise.
3470         [C99-based standards] (ULLONG_MAX): Likewise.
3471         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
3472         == 0.
3473         [ISO11] (max_align_t): Require type.
3474         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3475
3476         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
3477         from $CFLAGS, without defining away __attribute__ calls.
3478         (checknamespace): Use $CFLAGS_namespace.
3479
3480         * conform/conformtest.pl (@keywords): Only include C99 keywords
3481         for standards based on C99 or C11.
3482
3483         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
3484         Disable tests.
3485         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
3486         UNIX98]: Likewise.
3487
3488         * conform/conformtest.pl: Handle "macro-int-constant" and test for
3489         usability of symbols in #if.
3490
3491         * conform/conformtest.pl: If macro or constant types start
3492         "promoted:", expect the symbol to be of the following type
3493         promoted by the integer promotions.
3494
3495         * conform/conformtest.pl: Parse all "constant" and "macro" lines
3496         in one place.  Also handle "macro-constant".
3497
3498         * conform/conformtest.pl: Only accept expected macro values with
3499         "==".  Parse all "macro" lines in one place.
3500         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
3501
3502         * conform/conformtest.pl: Handle braced types on "constant" lines
3503         instead of handling "typed-constant".
3504         * conform/data/signal.h-data: Use "constant" instead of
3505         "typed-constant".
3506
3507         * conform/conformtest.pl: Handle "optional-" at start of lines in
3508         one place rather than duplicating several cases.  Handle each
3509         format of "macro" line with initial "optional-".
3510
3511         * conform/conformtest.pl: Only accept expected constant or
3512         optional-constant values with "==".  Parse all "constant" lines in
3513         one place.  Parse all "optional-constant" lines in one place.
3514         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
3515         * conform/data/fmtmsg.h-data: Likewise.
3516         * conform/data/netinet/in.h-data: Likewise.
3517         * conform/data/tar.h-data: Likewise.
3518         * conform/data/limits.h-data: Use "==" form on "constant" and
3519         "optional-constant" lines.
3520
3521         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
3522         Use -std=c99 for XOPEN2K.
3523         (@knownproblems): Remove.
3524         (newtoken): Don't check %isknown.
3525
3526         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
3527         Do not expect macro.
3528         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
3529         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
3530         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
3531         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
3532         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
3533         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
3534         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
3535         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
3536         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
3537         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
3538         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
3539         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
3540         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
3541         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
3542         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
3543         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
3544         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
3545         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
3546         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
3547         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
3548         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
3549         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
3550         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
3551         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
3552         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
3553         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
3554         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
3555         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
3556         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
3557         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
3558         [XPG3] (acosh): Likewise.
3559         [XPG3] (asinh): Likewise.
3560         [XPG3] (atanh): Likewise.
3561         [XPG3] (cbrt): Likewise.
3562         [XPG3] (expm1): Likewise.
3563         [XPG3] (ilogb): Likewise.
3564         [XPG3] (log1p): Likewise.
3565         [XPG3] (logb): Likewise.
3566         [XPG3] (nextafter): Likewise.
3567         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
3568         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
3569         [XPG3] (remainder): Likewise.
3570         [XPG3] (rint): Likewise.
3571         [XPG3 || XPG4 || UNIX98] (round): Likewise.
3572         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
3573         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
3574         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
3575         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
3576         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
3577         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
3578         [UNIX98 || XOPEN2K] (scalb): Expect.
3579         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
3580         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
3581         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
3582         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
3583         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
3584         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
3585         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
3586         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
3587         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
3588         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
3589         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
3590         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
3591         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
3592         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
3593         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
3594         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
3595         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
3596         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
3597         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
3598         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
3599         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
3600         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
3601         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
3602         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
3603         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
3604         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
3605         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
3606         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
3607         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
3608         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
3609         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
3610         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
3611         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
3612         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
3613         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
3614         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
3615         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
3616         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
3617         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
3618         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
3619         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
3620         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
3621         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
3622         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
3623         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
3624         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
3625         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
3626         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
3627         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
3628         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
3629         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
3630         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
3631         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
3632         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
3633         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
3634         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
3635         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
3636         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
3637         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
3638         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
3639         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
3640         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
3641         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
3642         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
3643         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
3644         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
3645         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
3646         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
3647         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
3648         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
3649         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
3650         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
3651         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
3652         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
3653         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
3654         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
3655         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
3656         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
3657         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
3658         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
3659         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
3660         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
3661         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
3662         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
3663         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
3664         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
3665         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
3666         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
3667         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
3668         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
3669         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
3670         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
3671         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
3672         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
3673         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
3674         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
3675         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
3676         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
3677         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
3678         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
3679         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
3680         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
3681         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
3682         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
3683         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
3684         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
3685         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
3686         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
3687         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
3688         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
3689         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
3690         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
3691         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
3692         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
3693         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
3694         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
3695         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
3696         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
3697         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
3698         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
3699         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
3700         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
3701         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
3702         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
3703         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
3704         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
3705         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
3706         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
3707         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
3708         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
3709         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
3710         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
3711         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
3712         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
3713         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
3714         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
3715         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
3716
3717         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
3718         _XOPEN_SOURCE_EXTENDED for XPG4.
3719
3720         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
3721
3722         * Makeconfig (localtime): Remove variable.
3723         (inst_localtime-file): Likewise.
3724
3725 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3726
3727         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
3728         Update.
3729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3730         Update.
3731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
3732         Update.
3733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
3734         Update.
3735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
3736         Update.
3737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
3738         Update.
3739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3740         Update.
3741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
3742         Update.
3743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
3744         Update.
3745
3746 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
3747
3748         [BZ #2550]
3749         [BZ #2570]
3750         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
3751         comparisons to determine direction to adjust input.
3752         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
3753         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
3754         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
3755         Likewise.
3756         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
3757         Likewise.
3758         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
3759         Likewise.
3760         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3761         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
3762         Likewise.
3763         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
3764         Likewise.
3765         * math/libm-test.inc (nexttoward_test): Add more tests.
3766
3767 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3768
3769         [BZ #14040]
3770         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
3771         in version GLIBC_2.1, not GLIBC_2.0.
3772         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
3773         Likewise.
3774
3775 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
3776
3777         [BZ #13942]
3778         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
3779         (1 - x) * (1 + x).
3780         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
3781         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
3782         * math/libm-test.inc (acos_test): Add more tests.
3783         (asin_test): Likewise.
3784         * sysdeps/i386/fpu/libm-test-ulps: Update.
3785         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3786
3787         [BZ #14034]
3788         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
3789         of square root.
3790         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
3791         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
3792         * math/libm-test.inc (acos_test_tonearest): New function.
3793         (acos_test_towardzero): Likewise.
3794         (acos_test_downward): Likewise.
3795         (acos_test_upward): Likewise.
3796         (asin_test_tonearest): Likewise.
3797         (asin_test_towardzero): Likewise.
3798         (asin_test_downward): Likewise.
3799         (asin_test_upward): Likewise.
3800         (main): Call the new functions.
3801         * sysdeps/i386/fpu/libm-test-ulps: Update.
3802         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3803
3804         [BZ #13884]
3805         [BZ #13924]
3806         * math/e_exp10.c: Include <float.h>.
3807         (__ieee754_exp10): Handle underflow here rather than multiplying
3808         large negative argument by M_LN10.
3809         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
3810         of __ieee754_expf.
3811         * math/e_exp10l.c: Include <float.h>.
3812         (__ieee754_exp10l): Handle underflow here rather than multiplying
3813         large negative argument by M_LN10l.
3814         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
3815         spurious overflow exception on underflow.
3816
3817 2012-04-29  Marek Polacek  <polacek@redhat.com>
3818
3819         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
3820         (__fortify_function): New macro.
3821         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
3822         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
3823         __extern_always_inline.
3824         * libio/bits/stdio2.h: Likewise.
3825         * libio/bits/stdio.h: Likewise.
3826         * string/string.h: Likewise.
3827         * string/bits/string3.h: Likewise.
3828         * include/stdio.h: Likewise.
3829         * stdlib/bits/stdlib.h: Likewise.
3830         * stdlib/stdlib.h: Likewise.
3831         * rt/bits/mqueue2.h: Likewise.
3832         * rt/mqueue.h: Likewise.
3833         * posix/bits/unistd.h: Likewise.
3834         * posix/unistd.h: Likewise.
3835         * io/bits/poll2.h: Likewise.
3836         * io/bits/fcntl2.h: Likewise.
3837         * io/fcntl.h: Likewise.
3838         * io/sys/poll.h: Likewise.
3839         * misc/bits/syslog.h: Likewise.
3840         * misc/bits/syslog-ldbl.h: Likewise.
3841         * misc/sys/syslog.h: Likewise.
3842         * socket/bits/socket2.h: Likewise.
3843         * socket/sys/socket.h: Likewise.
3844         * debug/tst-chk1.c: Likewise.
3845         * wcsmbs/bits/wchar2.h: Likewise.
3846         * wcsmbs/bits/wchar-ldbl.h: Likewise.
3847         * wcsmbs/wchar.h: Likewise.
3848
3849 2012-04-29  Andreas Jaeger  <aj@suse.de>
3850
3851         * Makerules (tests): Remove enable-check-abi protection.
3852         (check-abi-warn): Remove.
3853         (check-abi-%): Remove check-abi-warn usage.
3854
3855         * configure.in: Remove check-abi configure option.
3856         * configure: Regenerated.
3857         * config.make.in (enable-check-abi): Remove.
3858
3859 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
3860
3861         [BZ #14033]
3862         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
3863         double functions to double *_finite functions.
3864
3865         [BZ #13941]
3866         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
3867         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
3868         LDBL_MIN_EXP.
3869         * stdio-common/Makefile (tests): Add tst-sprintf3.
3870         * stdio-common/tst-sprintf3.c: New file.
3871
3872         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
3873         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
3874
3875 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
3876
3877         * conform/conformtest.pl: Remove duplicate typed-constant
3878         handling.
3879
3880 2012-04-28  David S. Miller  <davem@davemloft.net>
3881
3882         * Makerules (%.abilist): Add vpath on sysdep_dirs.
3883         (check-abi-%): Remove AWK script prerequisite and explicit
3884         abilist directory.
3885         (check-abi): Rewrite to just diff the symlist with the abilist.
3886         (config-tls, config-abi-config): Delete, no longer used.
3887         (update-abi-%): Remove AWK script and explicit abilist directory.
3888         (update-abi): Rewrite to simply compare and conditionally copy the
3889         symlist and the sysdep abilist file.  Remove update-abi-config
3890         checks.
3891         * abilist/ld.abilist: Remove.
3892         * abilist/libBrokenLocale.abilist: Remove.
3893         * abilist/libanl.abilist: Remove.
3894         * abilist/libcrypt.abilist: Remove.
3895         * abilist/libdl.abilist: Remove.
3896         * abilist/librt.abilist: Remove.
3897         * abilist/libthread_db.abilist: Remove.
3898         * abilist/libutil.abilist: Remove.
3899         * scripts/extract-abilist.awk: Remove.
3900         * scripts/merge-abilist.awk: Remove.
3901         * sysdeps/generic/libcidn.abilist: New file.
3902         * sysdeps/generic/libnss_compat.abilist: New file.
3903         * sysdeps/generic/libnss_db.abilist: New file.
3904         * sysdeps/generic/libnss_dns.abilist: New file.
3905         * sysdeps/generic/libnss_files.abilist: New file.
3906         * sysdeps/generic/libnss_hesiod.abilist: New file.
3907         * sysdeps/generic/libnss_nis.abilist: New file.
3908         * sysdeps/generic/libnss_nisplus.abilist: New file.
3909         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
3910         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
3911         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
3912         file.
3913         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
3914         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
3915         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
3916         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
3917         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
3918         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
3919         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
3920         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
3921         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
3922         file.
3923         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
3924         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
3925         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
3926         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
3927         file.
3928         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
3929         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
3930         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
3931         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
3932         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
3933         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
3934         file.
3935         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
3936         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
3937         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
3938         file.
3939         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
3940         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
3941         New file.
3942         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
3943         New file.
3944         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
3945         New file.
3946         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
3947         New file.
3948         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
3949         New file.
3950         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
3951         New file.
3952         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
3953         New file.
3954         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
3955         New file.
3956         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
3957         New file.
3958         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
3959         New file.
3960         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
3961         New file.
3962         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
3963         New file.
3964         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
3965         New file.
3966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
3967         file.
3968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
3969         New file.
3970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
3971         New file.
3972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
3973         file.
3974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
3975         New file.
3976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
3977         New file.
3978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
3979         file.
3980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
3981         New file.
3982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
3983         New file.
3984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
3985         New file.
3986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
3987         New file.
3988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
3989         New file.
3990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
3991         New file.
3992         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
3993         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
3994         file.
3995         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
3996         New file.
3997         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
3998         file.
3999         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
4000         file.
4001         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
4002         file.
4003         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
4004         file.
4005         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
4006         file.
4007         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4008         New file.
4009         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
4010         file.
4011         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
4012         file.
4013         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
4014         New file.
4015         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
4016         file.
4017         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
4018         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
4019         file.
4020         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
4021         New file.
4022         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
4023         file.
4024         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
4025         file.
4026         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
4027         file.
4028         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
4029         file.
4030         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
4031         file.
4032         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4033         New file.
4034         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
4035         file.
4036         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
4037         file.
4038         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
4039         New file.
4040         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
4041         file.
4042         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4043         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
4044         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
4045         file.
4046         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
4047         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
4048         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
4049         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
4050         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
4051         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
4052         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
4053         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
4054         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
4055         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
4056         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
4057         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
4058         file.
4059         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
4060         New file.
4061         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
4062         file.
4063         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
4064         file.
4065         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
4066         file.
4067         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
4068         file.
4069         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
4070         file.
4071         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
4072         New file.
4073         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
4074         New file.
4075         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
4076         file.
4077         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
4078         New file.
4079         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
4080         file.
4081         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
4082         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
4083         file.
4084         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
4085         New file.
4086         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
4087         file.
4088         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
4089         file.
4090         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
4091         file.
4092         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
4093         file.
4094         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
4095         file.
4096         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
4097         New file.
4098         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
4099         New file.
4100         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
4101         file.
4102         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
4103         New file.
4104         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
4105         file.
4106
4107 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4108
4109         * conform/conformtest.pl: Fix typo in handling typed-constant from
4110         allow-header.
4111
4112 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4113
4114         * README: Cut down references to pre-2.6 Linux kernels and
4115         Linuxthreads.  Update lists of configurations in libc and ports
4116         and sort alphabetically.  Say "or newer" with Linux kernel version
4117         requirements.
4118
4119         * config.h.in [IS_IN_build]: Allow compiling without optimization.
4120
4121 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4122
4123         [BZ #887]
4124         * math/libm-test.inc (logb_test_downward): New test to expose
4125         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
4126         rounding mode.
4127
4128 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4129
4130         [BZ #14027]
4131         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
4132         to be done.
4133         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
4134         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
4135
4136 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
4137
4138         * sysdeps/unix/i386/brk.S: Remove file.
4139         * sysdeps/unix/i386/dl-brk.S: Likewise.
4140         * sysdeps/unix/i386/pipe.S: Likewise.
4141         * sysdeps/unix/i386/sigreturn.S: Likewise.
4142         * sysdeps/unix/i386/syscall.S: Likewise.
4143         * sysdeps/unix/i386/vfork.S: Likewise.
4144         * sysdeps/unix/i386/wait.S: Likewise.
4145
4146         * sysdeps/unix/common/tcsendbrk.c: Move to ...
4147         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
4148
4149         * configure.in (arm*-none*): Do not allow without
4150         --enable-hacker-mode.
4151         (netbsd*): Remove case setting base_os.
4152         (386bsd*): Likewise.
4153         (freebsd*): Likewise.
4154         (bsdi*): Likewise.
4155         (osf*): Likewise.
4156         (sunos*): Likewise.
4157         (ultrix*): Likewise.
4158         (newsos*): Likewise.
4159         (dynix*): Likewise.
4160         (*bsd*): Likewise.
4161         (sysv*): Likewise.
4162         (isc*): Likewise.
4163         (esix*): Likewise.
4164         (sco*): Likewise.
4165         (minix*): Likewise.
4166         (irix4*): Likewise.
4167         (irix6*): Likewise.
4168         (solaris[2-9]*): Likewise.
4169         (none): Likewise.
4170         * configure: Regenerated.
4171
4172 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4173
4174         [BZ #11521]
4175         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
4176         overflow or cancellation in calculating denominator.
4177         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
4178         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
4179         down expression to avoid unexpected rounding in newer GCCs.
4180         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
4181
4182 2012-04-26  David S. Miller  <davem@davemloft.net>
4183
4184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
4185         long-double compat symbols.
4186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
4190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
4191         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
4192         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
4193         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
4194         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
4195         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
4196         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
4197         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
4198         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
4199
4200 2012-04-25  David S. Miller  <davem@davemloft.net>
4201
4202         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
4203         HWCAP_* values only after the memory barriers have been defined.
4204         (atomic_full_barrier): Define.
4205         (atomic_read_barrier): Define.
4206         (atomic_write_barrier): Define.
4207
4208 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4209
4210         * shlib-versions: Add libgcc_s version information.
4211         * sysdeps/generic/libgcc_s.h: Remove.
4212         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
4213         libgcc_s.h.
4214         * sysdeps/gnu/unwind-resume.c: Likewise.
4215         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
4216
4217 2012-04-25  David S. Miller  <davem@davemloft.net>
4218
4219         * sysdeps/unix/sparc/brk.S: Delete.
4220         * sysdeps/unix/sparc/dl-brk.S: Delete.
4221         * sysdeps/unix/sparc/pipe.S: Delete.
4222         * sysdeps/unix/sparc/sysdep.S: Delete.
4223         * sysdeps/unix/sparc/sysdep.h: Delete.
4224         * sysdeps/unix/sparc/vfork.S: Delete.
4225         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
4226         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
4227         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
4228         ret_ERRVAL, r0, r1, MOVE): Define.
4229         (JUMPTARGET): Remove.
4230         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
4231         sysdeps/unix/sparc/sysdep.h
4232         (ENTRY, END): Remove.
4233         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4234
4235 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
4236
4237         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
4238         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
4239         -DIS_IN_build.
4240
4241         * timezone/README: Update upstream location and email address for
4242         tzcode and tzdata.
4243         * timezone/zdump.c: Update from tzcode 2012b.
4244         * timezone/zic.c: Likewise.
4245
4246         * configure.in (libc_cv_as_needed): Remove test.
4247         * configure: Regenerated.
4248         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
4249         conditional definition.
4250         [$(have-as-needed) != yes] (no-as-needed): Likewise.
4251         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
4252         * config.make.in (have-as-needed): Remove variable.
4253
4254 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4255             Paul Pluzhnikov  <ppluzhnikov@google.com>
4256
4257         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
4258         strings correctly.
4259
4260 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
4261
4262         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
4263         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
4264         * sysdeps/sh/strlen.S: Likewise.
4265
4266 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4267
4268         * sysdeps/unix/fork.S: Remove file.
4269         * sysdeps/unix/i386/fork.S: Likewise.
4270         * sysdeps/unix/sparc/fork.S: Likewise.
4271
4272         * sysdeps/unix/system.c: Remove file.
4273         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
4274
4275         * sysdeps/unix/getegid.S: Remove file.
4276         * sysdeps/unix/geteuid.S: Likewise.
4277
4278 2012-04-24  Roland McGrath  <roland@hack.frob.com>
4279
4280         * scripts/check-localplt.awk: New file.
4281         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
4282         of diff.
4283         * scripts/data/localplt-generic.data: Add a comment.
4284
4285         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
4286         NODE when __dir_mkfile failed.
4287         * sysdeps/mach/hurd/symlinkat.c: Likewise.
4288         Reported by Ludovic Courtès <ludo@gnu.org>.
4289
4290 2012-04-24  Andreas Jaeger  <aj@suse.de>
4291
4292         * Makerules (common-clean): Also remove gen-as-const-headers
4293         files.
4294
4295 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4296
4297         * Makerules (native-compile): Do not change working directory for
4298         build.  Use $(OUTPUT_OPTION) in command.
4299         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
4300
4301 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4302
4303         [BZ #13886]
4304         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
4305         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
4306         * math/libm-test.inc (floor_test): Add more tests.
4307         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
4308
4309 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4310
4311         * sysdeps/unix/getdents.c: Remove file.
4312         * sysdeps/unix/sysv/getdents.c: Likewise.
4313         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
4314
4315         * sysdeps/unix/syscalls.list (madvise): Add syscall from
4316         sysdeps/unix/mman/syscalls.list.
4317         (mmap): Likewise.
4318         (mprotect): Likewise.
4319         (msync): Likewise.
4320         (munmap): Likewise.
4321         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
4322         * sysdeps/unix/mman/syscalls.list: Remove.
4323         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
4324
4325         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
4326         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
4327         * configure: Regenerated.
4328         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
4329         $(libgcc_s_suffix).
4330         * config.make.in (libgcc_s_suffix): Remove variable.
4331
4332 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
4333
4334         * sysdeps/unix/sysv/gethostname.c: Move to ...
4335         * sysdeps/posix/gethostname.c: ... here.
4336
4337         * sysdeps/unix/execve.S: Remove file.
4338
4339         * sysdeps/unix/_exit.S: Remove file.
4340
4341 2012-04-23  Andreas Jaeger  <aj@suse.de>
4342
4343         [BZ #13739]
4344         * manual/Makefile: Remove make dist support, there's no
4345         need for a stand-alone documentation tar ball.
4346         (TEXI2DVI): Define always, it's not in Makeconfig.
4347         (dist): Removed.
4348         (tar-it): Removed.
4349         (edition): Removed.
4350         (glibc-doc-$(edition).tar): Removed
4351         (%.Z): Removed.
4352         (%.gz): Removed.
4353         (%.uu): Removed.
4354         (ETAGS): Remove, it's in Makeconfig.
4355         (move-if-change): Remove, it's in Makeconfig.
4356
4357 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
4358
4359         [BZ #13970]
4360         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
4361         (strtod, strtof, strtold, strtol, strtoul, strtoq)
4362         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
4363         (strtod_l, strtof_l, strtold_l): Remove __wur.
4364         It is not necessarily an error to ignore strtol's return value.
4365         One can reliably look at the stored endptr to decide whether
4366         the number had valid syntax.
4367
4368 2012-04-21  Andreas Jaeger  <aj@suse.de>
4369
4370         [BZ #13739]
4371         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
4372
4373 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
4374
4375         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
4376         * sysdeps/unix/sysv/Versions: Remove file.
4377
4378 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
4379
4380         [BZ #13927]
4381         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4382
4383 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
4384
4385         [BZ #7064]
4386         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
4387         version from __vm86.
4388
4389 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
4390
4391         * sysdeps/unix/common/lxstat.c: Remove file.
4392         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
4393
4394         * sysdeps/unix/sysv/Makefile: Remove file.
4395
4396         * sysdeps/unix/sysv/direct.h: Remove file.
4397
4398         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
4399         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
4400         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
4401         * sysdeps/unix/sysv/bits/signum.h: Likewise.
4402         * sysdeps/unix/sysv/bits/stat.h: Likewise.
4403         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
4404         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
4405
4406         * sysdeps/unix/sysv/setrlimit.c: Remove file.
4407
4408         * sysdeps/unix/xmknod.c: Remove file.
4409         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
4410
4411         * sysdeps/unix/sysv/settimeofday.c: Remove file.
4412
4413         * sysdeps/unix/sysv/i386/time.S: Remove file.
4414
4415         * sysdeps/unix/fxstat.c: Remove file.
4416         * sysdeps/unix/xstat.c: Likewise.
4417         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
4418
4419         * sysdeps/unix/sysv/sigaction.c: Remove file.
4420
4421         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
4422         (sysdep_headers): Remove variable.
4423         [termio.h not in sysdep_headers] (generated): Likewise.
4424         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
4425         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
4426         * sysdeps/unix/sysv/tcdrain.c: Likewise.
4427         * sysdeps/unix/sysv/tcflow.c: Likewise.
4428         * sysdeps/unix/sysv/tcflush.c: Likewise.
4429         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
4430         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
4431         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
4432         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
4433         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
4434
4435         * sysdeps/unix/siglist.c: Remove file.
4436
4437         * sysdeps/unix/getppid.S: Remove file.
4438
4439         * sysdeps/unix/mkdir.c: Remove file.
4440         * sysdeps/unix/rmdir.c: Likewise.
4441
4442 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
4443
4444         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
4445         ERR_MAX value.
4446         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
4447         errlist-compat value.
4448
4449 2012-04-18  David S. Miller  <davem@davemloft.net>
4450
4451         * sysdeps/generic/memcopy.h (reg_char): Delete.
4452         * debug/strcat_chk.c: Use char, not reg_char.
4453         * debug/strcpy_chk.c: Likewise.
4454         * debug/strncat_chk.c: Likewise.
4455         * debug/strncpy_chk.c: Likewise.
4456         * string/memchr.c: Likewise.
4457         * string/memrchr.c: Likewise.
4458         * string/rawmemchr.c: Likewise.
4459         * string/strcat.c: Likewise.
4460         * string/strchr.c: Likewise.
4461         * string/strchrnul.c: Likewise.
4462         * string/strcmp.c: Likewise.
4463         * string/strcpy.c: Likewise.
4464         * string/strncat.c: Likewise.
4465         * string/strncmp.c: Likewise.
4466         * string/strncpy.c: Likewise.
4467
4468 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
4469
4470         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
4471         __builtin_memcopy is called when src and dest ranges are known to not
4472         overlap.
4473
4474 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
4475
4476         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
4477         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
4478         fwd_align_merge macro call.
4479         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
4480         bwd_align_merge macro call.
4481         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
4482
4483 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
4484
4485         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
4486         bwd_align_merge macros.
4487         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
4488         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
4489         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
4490
4491 2012-04-18  David S. Miller  <davem@davemloft.net>
4492
4493         * sysdeps/sparc/sparc64/memcopy.h: Delete.
4494
4495 2012-04-18  Andreas Jaeger  <aj@suse.de>
4496
4497         [BZ# 6794]
4498         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
4499         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
4500         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
4501
4502         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
4503         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
4504         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
4505
4506         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
4507         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
4508         Adjust for changed ldbl-128 files.
4509
4510         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
4511         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
4512         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
4513
4514 2012-04-17  David S. Miller  <davem@davemloft.net>
4515
4516         * sysdeps/sparc/sparc32/memcopy.h: Delete.
4517
4518 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
4519
4520         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
4521         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
4522         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
4523         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
4524         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
4525         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
4526
4527 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4528
4529         [BZ #6794]
4530         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
4531         * math/libm-test.inc: Add ilogb errno and exception tests.
4532         * math/w_ilogb.c: New file: ilogb wrapper.
4533         * math/w_ilogbf.c: New file: ilogbf wrapper.
4534         * math/w_ilogbl.c: New file: ilogbl wrapper.
4535         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
4536         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
4537         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
4538         exception being thrown with 0.0 as argument.
4539         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
4540         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
4541         exception being thrown with 0.0 as argument.
4542         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
4543         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
4544         exception being thrown with 0.0 as argument.
4545         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
4546         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
4547         exception being thrown with 0.0 as argument.
4548         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
4549         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
4550         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
4551         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
4552         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
4553         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
4554         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
4555         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
4556         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
4557
4558 2012-04-17  Petr Baudis  <pasky@ucw.cz>
4559
4560         * include/sys/uio.h: Change __vector to __iovec to avoid clash
4561         with altivec.
4562
4563 2012-04-16  Marek Polacek  <polacek@redhat.com>
4564
4565         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
4566
4567 2012-04-16  Marek Polacek  <polacek@redhat.com>
4568
4569         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
4570         operands of fdivp instruction.
4571
4572 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
4573
4574         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
4575         * elf/tst-auditmod3b.c: Likewise.
4576         * elf/tst-auditmod4b.c: Likewise.
4577         * elf/tst-auditmod5b.c: Likewise.
4578         * elf/tst-auditmod6b.c: Likewise.
4579         * elf/tst-auditmod6c.c: Likewise.
4580         * elf/tst-auditmod7b.c: Likewise.
4581         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
4582         * sysdeps/x86_64/preconfigure.in: Likewise.
4583         * sysdeps/x86_64/preconfigure: Regenerated.
4584
4585 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
4586
4587         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
4588         __ILP32__.
4589
4590 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
4591
4592         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4593         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
4594
4595 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
4596
4597         [BZ #13973]
4598         * locale/iso-639.def: Fix gl language name. Spotted by
4599         Yaron Shahrabani.
4600
4601 2012-04-12  Roland McGrath  <roland@hack.frob.com>
4602
4603         [BZ #2074]
4604         * libio/libio.h (__io_write_fn): Update comment.
4605
4606 2012-04-12  Petr Baudis  <pasky@ucw.cz>
4607
4608         [BZ #2074]
4609         * stdio.texi (Hook Functions): The user provided writer function
4610         is not allowed to return -1.
4611
4612 2012-04-11  David S. Miller  <davem@davemloft.net>
4613
4614         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4615
4616 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
4617
4618         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
4619         Add a leading slash to rtkaio.
4620
4621 2012-04-11  Jim Meyering  <meyering@redhat.com>
4622
4623         [BZ #11959]
4624         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
4625         It is not necessarily an error to ignore fwrite's return
4626         value.  One can reliably use ferror to test for errors after
4627         the fact.
4628
4629 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4630
4631         * bits/types.h (__snseconds_t): New type.
4632         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
4633
4634         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
4635         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4636         (__SNSECONDS_T_TYPE): Likewise.
4637         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4638         (__SNSECONDS_T_TYPE): Likewise.
4639         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4640         (__SNSECONDS_T_TYPE): Likewise.
4641
4642 2012-04-10  Andreas Jaeger  <aj@suse.de>
4643
4644         [BZ #2636]
4645         * manual/time.texi (Processor Time): Return type of times is
4646         elapsed real time since an arbitrary point in the past.
4647         (CPU Time): Move CLK_TCK from here...
4648         (Processor Time): ...to here.  Correct description.
4649         * manual/conf.texi (Constants for Sysconf): Correct description of
4650         _SC_CLK_TCK.
4651
4652 2012-04-10  David S. Miller  <davem@davemloft.net>
4653
4654         [BZ #13967]
4655         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
4656         where the is a gap between DT_REL(A) and DT_JMPREL.
4657
4658 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4659
4660         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
4661         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
4662         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
4663
4664 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4665
4666         * elf/dl-support.c (_dl_inhibit_cache): New variable.
4667         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
4668         (dl_main): Handle --inhibit-cache.
4669         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
4670         _dl_inhibit_cache.
4671         * elf/dl-load.c (_dl_map_object): Use it.
4672         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
4673
4674 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
4675
4676         [BZ #13872]
4677         * sysdeps/i386/fpu/e_powl.S (p78): New object.
4678         (__ieee754_powl): Saturate large exponents rather than testing for
4679         overflow of y*log2(x).
4680         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4681         * math/libm-test.inc (pow_test): Do not permit spurious overflow
4682         exceptions.
4683
4684         [BZ #11521]
4685         * math/s_ctan.c: Include <float.h>.
4686         (__ctan): Avoid internal overflow or cancellation in calculating
4687         denominator.
4688         * math/s_ctanf.c: Likewise.
4689         * math/s_ctanl.c: Likewise.
4690         * math/s_ctanh.c: Likewise.
4691         * math/s_ctanhf.c: Likewise.
4692         * math/s_ctanhl.c: Likewise.
4693         * math/libm-test.inc (ctan_test): Add more tests.
4694         (ctanh_test): Likewise.
4695         * sysdeps/i386/fpu/libm-test-ulps: Update.
4696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4697
4698 2012-04-09  Andreas Jaeger  <aj@suse.de>
4699
4700         [BZ #6894]
4701         * manual/filesys.texi (Directory Entries): Mention that d_namlen
4702         is an optional BSD extension.
4703
4704         [BZ #10254]
4705         * manual/stdio.texi (Opening Streams): Document additional fopen
4706         parameters.
4707
4708 2012-04-09  Roland McGrath  <roland@hack.frob.com>
4709
4710         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
4711         %eax without telling the compiler.
4712
4713 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
4714
4715         [BZ # 13963]
4716         * manual/install.texi: Use sourceware.org.
4717
4718 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
4719
4720         [BZ #13873]
4721         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
4722         (__ieee754_pow): Generate overflow and underflow using huge*huge
4723         and tiny*tiny rather than just returning constant infinity or zero
4724         for large exponents.
4725         * math/libm-test.inc (pow_test): Require overflow exceptions for
4726         applicable cases of large exponents.
4727
4728         [BZ #706]
4729         * sysdeps/i386/fpu/e_pow.S (p10): New object.
4730         (__ieee754_pow): Use iterative multiplication algorithm only for
4731         integer exponents with absolute value below 1024.  Check for odd
4732         integer exponents when using algorithm for real exponents.
4733         * math/libm-test.inc (pow_test): Add more tests.
4734         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4735
4736 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
4737
4738         [BZ #13705]
4739         * math/libm-test.inc (exp_test): Do not allow overflow exception
4740         on underflow test.
4741
4742 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
4743
4744         [BZ #13705]
4745         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
4746         instead of __kernel_standard_f.
4747
4748 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
4749
4750         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
4751         * sysdeps/x86_64/memset_chk.S: Likewise.
4752
4753 2012-04-08  Andreas Jaeger  <aj@suse.de>
4754
4755         [BZ #10153]
4756         * manual/startup.texi (Environment Access): Describe return value
4757         for putenv and setenv.
4758
4759         [BZ #6895]
4760         * manual/filesys.texi (Directory Entries): Add description for
4761         DT_LNK.
4762
4763         [BZ #6890]
4764         * manual/filesys.texi (Directory Entries): Clarify that it's file
4765         system not operating system in the description of DT_UNKNOWN.
4766
4767         [BZ #6578]
4768         * manual/syslog.texi (closelog): Fix reference, it's openlog.
4769
4770 2012-04-08  Stephen Compall  <s11@member.fsf.org>
4771
4772         [BZ #6649]
4773         * manual/llio.texi (Opening and Closing Files): Add cross
4774         reference to explain mode argument.
4775
4776 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
4777
4778         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
4779         * sysdeps/x86_64/memset_chk.S: Likewise.
4780
4781 2012-04-07  David S. Miller  <davem@davemloft.net>
4782
4783         * elf/elf.h (R_SPARC_WDISP10): Define.
4784         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
4785         R_SPARC_SIZE32.
4786         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
4787         R_SPARC_SIZE64 and R_SPARC_H34.
4788
4789 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
4790
4791         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
4792         conditions and remove no longer applicable assertion.
4793
4794 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
4795
4796         * bits/byteswap.h: Include <features.h>.
4797         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
4798         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
4799
4800 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
4801
4802         * bits/byteswap.h (__bswap_16): Removed.
4803         Include <bits/byteswap-16.h> to get __bswap_16.
4804         * sysdeps/i386/bits/byteswap.h: Likewise.
4805         * sysdeps/s390/bits/byteswap.h: Likewise.
4806         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4807         * bits/byteswap-16.h: New file.
4808         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4809         * sysdeps/s390/bits/byteswap-16.h: Likewise.
4810         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
4811         * string/Makefile (headers): Add bits/byteswap-16.h.
4812
4813 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
4814
4815         [BZ #13895]
4816         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
4817         extra indirection.
4818         * nss/Makefile (tests-static, tests): Add tst-nss-static.
4819         * nss/tst-nss-static.c: New.
4820
4821 2012-04-06  Robert Millan  <rmh@gnu.org>
4822
4823         [BZ #6486]
4824         * manual/llio.texi (File Position Primitive): lseek
4825         refers to WHENCE when it really means OFFSET.
4826
4827 2012-04-06  Andreas Jaeger  <aj@suse.de>
4828
4829         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
4830         strncmp declarations.
4831
4832         * abilist/libc.abilist: Add __poll and __ppoll.
4833
4834 2012-04-05  David S. Miller  <davem@davemloft.net>
4835
4836         * scripts/check-local-headers.sh: Accept a host triplet in the
4837         path matched by the exclude regexp.
4838
4839         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
4840         definition.
4841         * sysdeps/powerpc/powerpc32/dl-machine.h
4842         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
4843         * sysdeps/s390/s390-32/dl-machine.h
4844         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
4845         * sysdeps/sparc/sparc32/dl-machine.h
4846         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
4847         * sysdeps/sparc/sparc64/dl-machine.h
4848         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
4849
4850         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
4851         lazy binding.
4852         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
4853         undefined symbol errors.
4854
4855         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
4856         DT_NEEDED entries.
4857
4858 2012-04-05  Michael Matz  <matz@suse.de>
4859
4860         [BZ #13592]
4861         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
4862
4863 2012-04-05  Andreas Jaeger  <aj@suse.de>
4864
4865         [BZ #13908]
4866         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
4867         comment.
4868
4869 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4870
4871         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
4872         which ROUND is no valid rounding mode.
4873
4874 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4875
4876         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
4877         read again.
4878         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
4879
4880 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4881
4882         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
4883         an exception using FPU order intentionally.
4884
4885 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4886
4887         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
4888         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
4889         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
4890         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
4891
4892 2012-04-05  Simon Josefsson  <simon@josefsson.org>
4893
4894         [BZ #12340]
4895         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
4896         EINVAL when BUFLEN is too smal.
4897
4898 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
4899
4900         [BZ #13553]
4901         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
4902         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
4903
4904 2012-04-03  Andreas Jaeger  <aj@suse.de>
4905
4906         [BZ #13938]
4907         * manual/setjmp.texi (System V contexts): Fix sentence.
4908
4909         [BZ #13926]
4910         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
4911         New macro for this case.
4912         [!__GNUC__] (__bswap_64): New inline function for this case.
4913         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4914         * bits/byteswap.h: Likewise.
4915         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
4916         ull, guard with __GLIBC_HAVE_LONG_LONG.
4917
4918         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
4919         __GLIBC_HAVE_LONG_LONG.
4920
4921         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
4922         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
4923
4924 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
4925
4926         [BZ #13691]
4927         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
4928         inptr and inend, rather than using last_ch.
4929
4930 2012-04-02  David S. Miller  <davem@davemloft.net>
4931
4932         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
4933         * stdio-common/printf-parse.h (read_int): Change return type to
4934         'int', return -1 on INT_MAX overflow.
4935         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
4936         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
4937         overflows INT_MAX.  Check for overflow of in-format-string precision
4938         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
4939         SIZE_MAX not INT_MAX for integer overflow test.
4940         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
4941         skip the construct in the format string but do not record anything.
4942         * stdio-common/bug22.c: Adjust to test both width/prevision
4943         INT_MAX overflow as well as total length INT_MAX overflow.  Check
4944         explicitly for proper errno values.
4945
4946 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
4947
4948         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
4949         CHAR_MAX.
4950         * string/test-strcmp.c [! WIDE]: Likewise.
4951         * time/tst-mktime2.c: Likewise for INT_MAX.
4952         * string/test-string.h: #include <sys/param.h> for MIN.
4953
4954         * csu/init-first.c (__libc_init_first): Call __ctype_init.
4955         * sysdeps/i386/init-first.c (init): Likewise.
4956         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
4957         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
4958         * sysdeps/sh/init-first.c (init): Likewise.
4959
4960 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
4961
4962         * po/ru.po: Update from translation team.
4963         * po/vi.po: Likewise.
4964
4965 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
4966
4967         * resolv/nss_dns/dns-host.c: Merge copyright years.
4968
4969 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4970
4971         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
4972         Optimize memcpy with prefetch if
4973         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
4974         src, dst pointers have unequal 16 byte alignments.
4975
4976 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4977
4978         [BZ #13928]
4979         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
4980         from a CNAME entry and return the minimum ttl for the query.
4981         (gaih_getanswer_slice): Likewise.
4982
4983 2012-03-30  Jeff Law  <law@redhat.com>
4984
4985         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
4986         due to long keys.
4987         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
4988         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
4989
4990         * resolv/nss_dns/dns-host.c: Update copyright year.
4991
4992 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
4993
4994         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
4995         requests to save a system call.  Fix check that all bytes are sent.
4996
4997         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
4998         comments for sendmmsg.
4999
5000 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5001
5002         [BZ #13691]
5003         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
5004         with only 1 character between 0x0041 and 0x01b0.
5005         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
5006         * wcsmbs/tst-mbsnrtowcs.c: New file.
5007
5008 2012-03-29  David S. Miller  <davem@davemloft.net>
5009
5010         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
5011         small copies by hand.
5012
5013 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5014
5015         [BZ #13761]
5016         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
5017         _nss_compat_initgroups_dyn): Fall back to malloc/free
5018         for large group memberships.
5019
5020 2012-03-28  David S. Miller  <davem@davemloft.net>
5021
5022         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
5023         that branches into memcpy.
5024         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5025         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
5026         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5027         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
5028         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
5029         bits.
5030         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
5031         implementation too.
5032         * sysdeps/sparc/mempcpy.S: New file.
5033
5034         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
5035         the IFUNC routine in the libc case.
5036         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
5037
5038         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
5039         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
5040         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
5041         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
5042         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
5043         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
5044         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
5045         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
5046
5047         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
5048         loop to 256 bytes instead of 64 bytes and fix test signedness.
5049
5050         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
5051         * sysdeps/sparc/sparc32/Makefile: rather than here...
5052         * sysdeps/sparc/sparc64/Makefile: and here.
5053
5054 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
5055
5056         * malloc/mallocbug.c: Avoid warnings about unused variables.
5057
5058 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
5059
5060         [BZ #13760]
5061         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
5062         in the right place. Discard and retry query if response is
5063         larger than input buffer size.
5064
5065 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
5066
5067         [BZ #369]
5068         [BZ #2678]
5069         [BZ #3866]
5070         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
5071         x for large integer exponent.
5072         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
5073         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
5074         sign of result as needed afterwards.
5075         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
5076         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
5077         result for underflowing pow the same as for overflow.
5078         (__kernel_standard_l): Handle powl overflow and underflow here
5079         rather than calling __kernel_standard.
5080         * math/libm-test.inc (pow_test): Add more tests.
5081
5082         [BZ #3868]
5083         [BZ #13879]
5084         [BZ #13910]
5085         [BZ #13911]
5086         [BZ #13912]
5087         [BZ #13913]
5088         [BZ #13915]
5089         [BZ #13916]
5090         [BZ #13917]
5091         [BZ #13918]
5092         [BZ #13919]
5093         [BZ #13920]
5094         [BZ #13921]
5095         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
5096         * sysdeps/ieee754/k_standard.c: Include <float.h>.
5097         (__kernel_standard_l): New function.
5098         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
5099         __kernel_standard.
5100         * math/w_acosl.c (__acosl): Likewise.
5101         * math/w_asinl.c (__asinl): Likewise.
5102         * math/w_atan2l.c (__atan2l): Likewise.
5103         * math/w_atanhl.c (__atanhl): Likewise.
5104         * math/w_coshl.c (__coshl): Likewise.
5105         * math/w_exp10l.c (__exp10l): Likewise.
5106         * math/w_exp2l.c (__exp2l): Likewise.
5107         * math/w_fmodl.c (__fmodl): Likewise.
5108         * math/w_hypotl.c (__hypotl): Likewise.
5109         * math/w_j0l.c (__j0l, __y0l): Likewise.
5110         * math/w_j1l.c (__j1l, __y1l): Likewise.
5111         * math/w_jnl.c (__jnl, __ynl): Likewise.
5112         * math/w_lgammal.c (__lgammal): Likewise.
5113         * math/w_log10l.c (__log10l): Likewise.
5114         * math/w_log2l.c (__log2l): Likewise.
5115         * math/w_logl.c (__logl): Likewise.
5116         * math/w_powl.c (__powl): Likewise.
5117         * math/w_remainderl.c (__remainderl): Likewise.
5118         * math/w_scalbl.c (sysv_scalbl): Likewise.
5119         * math/w_sinhl.c (__sinhl): Likewise.
5120         * math/w_sqrtl.c (__sqrtl): Likewise.
5121         * math/w_tgammal.c (__tgammal): Likewise.
5122         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
5123         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
5124         * math/libm-test.inc (acos_test): Add more tests.
5125         (acosh_test): Likewise.
5126         (asin_test): Likewise.
5127         (atanh_test): Likewise.
5128         (exp_test): Likewise.
5129         (exp10_test): Likewise.
5130         (exp2_test): Likewise.
5131         (expm1_test): Likewise.
5132         (lgamma_test): Likewise.
5133         (log_test): Likewise.
5134         (log10_test): Likewise.
5135         (log1p_test): Likewise.
5136         (log2_test): Likewise.
5137         (pow_test): Do not allow some spurious overflow exceptions.
5138         (sqrt_test): Add more tests.
5139         (tgamma_test): Likewise.
5140         (y0_test): Likewise.
5141         (y1_test): Likewise.
5142         (yn_test): Likewise.
5143
5144 2012-03-27  Anton Blanchard  <anton@samba.org>
5145
5146         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
5147         MAP_HUGETLB.
5148         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5149         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
5150         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5151
5152 2012-03-27  David S. Miller  <davem@davemloft.net>
5153
5154         * conform/Makefile: Run run-conformtest.sh using $(BASH).
5155
5156         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
5157         have-as-vis3 check.
5158
5159 2012-03-27  Andreas Jaeger  <aj@suse.de>
5160
5161         * sysdeps/x86_64/elf/configure.in: Moved to ...
5162         * sysdeps/x86_64/configure.in: ... here.
5163         * sysdeps/x86_64/elf/start.S: Moved to ...
5164         * sysdeps/x86_64/start.S: ... here.
5165         * sysdeps/x86_64/elf/configure: Delete.
5166
5167         * sysdeps/x86_64/configure.in: Merge contents from
5168         sysdeps/i386/configure.in (without i686 check).
5169
5170         * sysdeps/i386/elf/Versions: Merge into ...
5171         * sysdeps/i386/Versions: ... this.
5172         * sysdeps/i386/elf/Versions: Delete file.
5173         * sysdeps/i386/elf/start.S: Moved to ...
5174         * sysdeps/i386/start.S: ...here.
5175         * sysdeps/i386/elf/configure.in: Merge into...
5176         * sysdeps/i386/configure.in: ...here.
5177         * sysdeps/i386/elf/configure.in: Delete file.
5178         * sysdeps/i386/elf/configure: Delete file.
5179
5180         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
5181         * debug/backtracesyms.c: ... here.
5182         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
5183         * debug/backtracesymsfd.c: ... here.
5184         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
5185         * sysdeps/generic/ifunc-sel.h: ... here.
5186
5187         * sysdeps/unix/i386/start.c: Delete file.
5188         * sysdeps/unix/sparc/start.c: Delete file.
5189         * sysdeps/unix/start.c: Delete file.
5190
5191         * sysdeps/sh/elf/configure.in: Moved to ...
5192         * sysdeps/sh/configure.in: ... here.
5193         * sysdeps/sh/elf/start.S: Moved to ...
5194         * sysdeps/sh/start.S: ... here.
5195         * sysdeps/sh/elf/configure: Delete file.
5196
5197         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
5198         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
5199         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
5200         * sysdeps/powerpc/powerpc64/entry.h: ... here.
5201         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
5202         * sysdeps/powerpc/powerpc64/start.S: here.
5203         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
5204         * sysdeps/powerpc/powerpc64/Makefile: ... this.
5205         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
5206         * sysdeps/powerpc/powerpc64/configure.in: ... this.
5207         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
5208
5209         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
5210         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
5211         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
5212         * sysdeps/powerpc/powerpc32/start.S: ... here.
5213         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
5214         * sysdeps/powerpc/powerpc32/configure.in: ... this.
5215         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
5216
5217         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
5218         * sysdeps/powerpc/ifunc-sel.h: ... here.
5219         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
5220         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
5221
5222         * sysdeps/sparc/elf/configure.in: Moved to ...
5223         * sysdeps/sparc/configure.in: ... here.
5224         * sysdeps/sparc/elf/configure: Delete file.
5225         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
5226         * sysdeps/sparc/sparc32/start.S: ... here.
5227         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
5228         * sysdeps/sparc/sparc64/start.S: ... here.
5229         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
5230         * sysdeps/sparc/sparc32/Makefile: ... this.
5231         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
5232         * sysdeps/sparc/sparc64/Makefile: ... this.
5233
5234         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
5235         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
5236         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
5237         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
5238         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
5239         * sysdeps/s390/s390-32/setjmp.S: ... here.
5240         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
5241         * sysdeps/s390/s390-32/configure.in: ... here.
5242         * sysdeps/s390/s390-32/elf/configure: Delete file.
5243         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
5244         * sysdeps/s390/s390-32/start.S: ... here.
5245
5246         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
5247         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
5248         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
5249         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
5250         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
5251         * sysdeps/s390/s390-64/setjmp.S: ... here.
5252         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
5253         * sysdeps/s390/s390-64/configure.in: ... here
5254         * sysdeps/s390/s390-64/elf/configure: Delete file.
5255         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
5256         * sysdeps/s390/s390-64/start.S: ... here.
5257         * sysdeps/s390/s390-64/elf/configure: Delete.
5258
5259         * configure.in: Remove support for elf directories in sysdeps.
5260
5261         * configure: Regenerated.
5262         * sysdeps/i386/configure: Regenerated.
5263         * sysdeps/powerpc/powerpc32/configure: Regenerated.
5264         * sysdeps/powerpc/powerpc64/configure: Regenerated.
5265         * sysdeps/s390/s390-32/configure: Regenerated.
5266         * sysdeps/s390/s390-64/configure: Regenerated.
5267         * sysdeps/sh/configure: Regenerated.
5268         * sysdeps/sparc/configure: Regenerated.
5269         * sysdeps/x86_64/configure: Regenerated.
5270
5271 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
5272
5273         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5274
5275         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
5276         denormal result into account.
5277
5278 2012-03-25  Roland McGrath  <roland@hack.frob.com>
5279
5280         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
5281         Reported by Allan McRae <allan@archlinux.org>.
5282
5283 2012-03-23  Jeff Law  <law@redhat.com>
5284
5285         * nss/getnssent.c (__nss_getent): Fix typo.
5286
5287 2012-03-23  David S. Miller  <davem@davemloft.net>
5288
5289         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5290
5291 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
5292
5293         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
5294         to pad to uint64_t for each field.
5295         (dl_tls_index): Replace unsigned long with uint64_t.
5296
5297 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
5298         Paul Pluzhnikov  <ppluzhnikov@google.com>
5299
5300         [BZ #6528]
5301         * grp/Makefile (otherlibs): Don't set it.
5302         * inet/Makefile (otherlibs): Likewise.
5303         * login/Makefile (otherlibs): Likewise.
5304         * nscd/Makefile (otherlibs): Likewise.
5305         * posix/Makefile (otherlibs): Likewise.
5306         * pwd/Makefile (otherlibs): Likewise.
5307         * rt/Makefile (otherlibs): Likewise.
5308         * sunrpc/Makefile (otherlibs): Likewise.
5309         * nss/Makefile (otherlibs): Likewise.
5310         Add libnss_files to routines and static-only-routines.
5311         ($(objpfx)getent): Remove rule.
5312         * resolv/Makefile: Add libnss_dns and libresolv to routines and
5313         static-only-routines.
5314
5315 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
5316
5317         [BZ #13892]
5318         * math/s_cexp.c: Include <float.h>.
5319         (__cexp): Handle exp result overflowing not necessarily
5320         overflowing both real and imaginary parts of result.
5321         * math/s_cexpf.c: Likewise.
5322         * math/s_cexpl.c: Likewise.
5323         * math/libm-test.inc (cexp_test): Add more tests.
5324         * sysdeps/i386/fpu/libm-test-ulps: Update.
5325         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5326
5327 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5328
5329         * include/link.h (ELFW): New macro.
5330         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
5331         Replace ELF64_R_TYPE with ELFW(R_TYPE).
5332
5333 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5334
5335         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
5336         with uint64_t.
5337
5338 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5339
5340         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
5341         declaration.
5342         (struct La_x32_retval): Likewise.
5343
5344 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5345
5346         * sysdeps/x86_64/preconfigure.in: New file.
5347         * sysdeps/x86_64/preconfigure: New generated file.
5348
5349 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
5350
5351         [BZ #13824]
5352         * math/e_exp2l.c: Include <float.h>.
5353         (__ieee754_exp2l): Handle overflow and underflow cases
5354         separately.  Only pass fractional part of argument to
5355         __ieee754_expl.
5356         * math/libm-test.inc (exp2_test): Add more tests.
5357
5358         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
5359         negating x to take absolute value.
5360         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
5361         Likewise.
5362         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5363         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
5364         Likewise.
5365         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
5366         computing low part if x was negated.
5367         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5368
5369 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5370
5371         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
5372         la_x32_gnu_pltexit.
5373         (pltexit): Cast int_retval to ptrdiff_t.
5374         * elf/tst-auditmod3b.c: Likewise.
5375         * elf/tst-auditmod4b.c: Likewise.
5376         * elf/tst-auditmod5b.c: Likewise.
5377         * elf/tst-auditmod6b.c: Likewise.
5378         * elf/tst-auditmod6c.c: Likewise.
5379         * elf/tst-auditmod7b.c: Likewise.
5380
5381         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
5382         and x32_gnu_pltexit.
5383
5384         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
5385         __ELF_NATIVE_CLASS.
5386         (La_x32_regs): New macro.
5387         (La_x32_retval): Likewise.
5388         (la_x32_gnu_pltenter): New function prototype.
5389         (la_x32_gnu_pltexit): Likewise.
5390
5391 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
5392
5393         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
5394         exponent.
5395
5396         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5397
5398         * configure.in (libc_cv_cc_nofma): Check for option to disable
5399         generation of FMA instructions.
5400         * configure: Regenerate.
5401         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
5402         * sysdeps/ieee754/dbl-64/Makefile: New file.
5403         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5404         Remove brandred-fma4.
5405         (CFLAGS-brandred-fma4.c): Remove.
5406         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
5407         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
5408         define.
5409         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
5410         define.
5411
5412 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5413
5414         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5415         LLONG_MAX != LONG_MAX.
5416         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5417         (_fitoa_word): Likewise.
5418         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
5419         LLONG_MAX != LONG_MAX.
5420         * stdio-common/_itowa.h: Include <_itoa.h>.
5421         (_itowa_word): Use _ITOA_WORD_TYPE on value.
5422         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
5423         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
5424         only if not defined.
5425         (_ITOA_WORD_TYPE): Likewise.
5426         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5427         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
5428
5429 2012-03-21  David S. Miller  <davem@davemloft.net>
5430
5431         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5432
5433 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5434
5435         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
5436         of x86_64 when setting libc_cv_slibdir, libdir and
5437         libc_cv_localedir.
5438         * sysdeps/unix/sysv/linux/configure: Regenerated.
5439
5440 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
5441
5442         * manual/lang.texi (Old Varargs): Remove section.
5443         (How Variadic): Update menu.
5444         (va_start): Do not mention varargs.h.
5445
5446 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5447             Joseph Myers  <joseph@codesourcery.com>
5448
5449         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
5450         link test.
5451         * configure: Regenerated.
5452
5453 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5454
5455         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
5456         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
5457         conformtest.pl
5458
5459 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
5460
5461         * NOTES: Remove.
5462         * Makefile (files-for-dist): Remove NOTES.
5463         (NOTES): Remove rule.
5464         * README: Don't refer to NOTES.
5465         * manual/creature.texi: Don't include macros.texi.
5466         * manual/intro.texi (creature.texi): Remove comment referring to
5467         NOTES.
5468
5469         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
5470         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
5471         * configure: Regenerated.
5472         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
5473         LIBC_TRY_CC_OPTION.
5474         (libc_cv_as_i686): Likewise.
5475         (libc_cv_cc_avx): Likewise.
5476         (libc_cv_cc_sse2avx): Likewise.
5477         (libc_cv_cc_fma4): Likewise.
5478         (libc_cv_cc_novzeroupper): Likewise.
5479         * sysdeps/i386/configure: Regenerated.
5480
5481         [BZ #13883]
5482         * sysdeps/i386/fpu/s_cexp.S: Remove.
5483         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
5484         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
5485         * math/libm-test.inc (cexp_test): Add more tests.
5486         * sysdeps/i386/fpu/libm-test-ulps: Update.
5487         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5488
5489 2012-03-21  Allan McRae  <allan@archlinux.org>
5490
5491         * timezone/Makefile: Do not install iso3166.tab and zone.tab
5492
5493 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
5494
5495         [BZ #13871]
5496         * math/w_exp2.c: Do not include <float.h>.
5497         (o_threshold, u_threshold): Remove.
5498         (__exp2): Calculate result before checking finiteness and calling
5499         __kernel_standard.
5500         * math/w_exp2f.c: Likewise.
5501         * math/w_exp2l.c: Likewise.
5502         * math/libm-test.inc (exp2_test): Require overflow exception for
5503         1e6 input.
5504
5505         [BZ #3866]
5506         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
5507         range of signed 64-bit integers before using fistpll.  Remove
5508         checks for whether integers fit in mantissa bits.
5509         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
5510         the range of signed 32-bit integers before using fistpl.  Remove
5511         checks for whether integers fit in mantissa bits.
5512         * sysdeps/i386/fpu/e_powl.S (p64): New object.
5513         (__ieee754_powl): Test for y outside the range of signed 64-bit
5514         integers before using fistpll.  Reduce 64-bit values to 63-bit
5515         ones as needed.
5516         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
5517         divide-by-zero is raised for zero to large negative powers.
5518         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
5519         (__ieee754_powl): Test for y outside the range of signed 64-bit
5520         integers before using fistpll.  Reduce 64-bit values to 63-bit
5521         ones as needed.
5522         * math/libm-test.inc (pow_test): Add more tests.
5523
5524 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
5525
5526         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
5527         <stdio-common/_itoa.h>.
5528         * debug/segfault.c: Likewise.
5529         * elf/dl-cache.c: Likewise.
5530         * elf/dl-minimal.c: Likewise.
5531         * elf/dl-misc.c: Likewise.
5532         * elf/dl-sysdep.c: Likewise.
5533         * elf/dl-version.c: Likewise.
5534         * elf/rtld.c: Likewise.
5535         * hurd/hurdsock.c: Likewise.
5536         * hurd/lookup-retry.c: Likewise.
5537         * malloc/malloc.c: Likewise.
5538         * malloc/mtrace.c: Likewise.
5539         * nscd/nscd_getgr_r.c: Likewise.
5540         * nscd/nscd_getpw_r.c: Likewise.
5541         * nscd/nscd_getserv_r.c: Likewise.
5542         * posix/getopt_init.c: Likewise.
5543         * posix/wordexp.c: Likewise.
5544         * stdio-common/_itoa.c: Likewise.
5545         * stdio-common/printf_fphex.c: Likewise.
5546         * stdio-common/vfprintf.c: Likewise.
5547         * string/_strerror.c: Likewise.
5548         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5549         * sysdeps/i386/i686/hp-timing.h: Likewise.
5550         * sysdeps/mach/_strerror.c: Likewise.
5551         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
5552         * sysdeps/mach/hurd/sethostid.c: Likewise.
5553         * sysdeps/mach/hurd/xmknodat.c: Likewise.
5554         * sysdeps/mach/xpg-strerror.c: Likewise.
5555         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
5556         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
5557         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
5558         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
5559         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
5560         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
5561         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
5562         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5563         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
5564         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
5565         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
5566         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
5567         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
5568         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
5569         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
5570         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
5571         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
5572         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
5573         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
5574         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
5575         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
5576
5577         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
5578
5579         * stdio-common/_itoa.h: Moved to ...
5580         * sysdeps/generic/_itoa.h: Here.
5581
5582         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
5583
5584         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
5585         instead of "_itoa.h" and "_itowa.h".
5586         * stdio-common/vfprintf.: Likewise.
5587
5588 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
5589
5590         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
5591         <bits/wordsize.h>.
5592         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
5593         (__signbit): Likwise.
5594         (llrintf): Likwise.
5595         (llrint): Likwise.
5596
5597 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
5598
5599         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
5600         __WORDSIZE != 64.
5601
5602 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
5603
5604         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
5605         OVERFLOW_EXCEPTION_OK.
5606         * math/libm-test.inc ("Philosophy"): Update comment about
5607         exception testing.
5608         (OVERFLOW_EXCEPTION): Define.
5609         (OVERFLOW_EXCEPTION_OK): Likewise.
5610         (INVALID_EXCEPTION_OK): Renumber.
5611         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5612         (IGNORE_ZERO_INF_SIGN): Likewise.
5613         (test_exceptions): Handle FE_OVERFLOW.
5614         (exp10_test): Expect overflow exceptions.
5615         (exp2_test): Likewise.
5616         (expm1_test): Likewise.
5617         (nextafter_test): Likewise.
5618         (pow_test): Likewise.
5619         (scalbn_test): Likewise.
5620         (scalbln_test): Likewise.
5621
5622 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5623
5624         * sysdeps/x86_64/bits/atomic.h
5625         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
5626         64bit integer.
5627         (atomic_exchange_acq): Likewise.
5628         (__arch_exchange_and_add_body): Likewise.
5629         (__arch_add_body): Likewise.
5630         (atomic_add_negative): Likewise.
5631         (atomic_add_zero): Likewise.
5632
5633 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5634
5635         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
5636         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
5637
5638 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5639
5640         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
5641         Check __x86_64__ instead of __WORDSIZE.
5642
5643 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5644
5645         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
5646
5647 2012-03-19  David S. Miller  <davem@davemloft.net>
5648
5649         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5650
5651         * sysdeps/sparc/fpu/fenv_private.h: New file.
5652         * sysdeps/sparc/fpu/math_private.h: Use it.
5653         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
5654         Remove.
5655         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
5656         (libc_feholdexcept_setroundl): Remove.
5657         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
5658         Remove.
5659         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
5660         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
5661
5662 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5663
5664         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
5665         int64_t instead of long int.
5666         (INSERT_WORDS64): Likwise.
5667
5668 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5669
5670         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
5671         _Unwind_GetCFA return to _Unwind_Ptr first.
5672
5673 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
5674
5675         [BZ #13629]
5676         * math/s_clog.c: Include <float.h>.
5677         (__clog): Scale large or subnormal inputs.
5678         * math/s_clogf.c: Likewise.
5679         * math/s_clogl.c: Likewise.
5680         * math/s_clog10.c: Include <float.h>.
5681         (M_LOG10_2): Define.
5682         (__clog10): Scale large or subnormal inputs.
5683         * math/s_clog10f.c: Likewise.
5684         * math/s_clog10l.c: Likewise.
5685         * math/libm-test.inc (clog_test): Add more tests.
5686         (clog10_test): Likewise.
5687         * sysdeps/i386/fpu/libm-test-ulps: Update.
5688         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5689
5690         [BZ #11451]
5691         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
5692         x and y.
5693         * math/libm-test.inc (atan2_test): Add another test.
5694
5695         * Makerules (common-objdir-compile): Remove.
5696         * sysdeps/unix/Makefile (config-generated): Do not add
5697         $(unix-generated) to variable.
5698         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
5699         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
5700         Remove rule.
5701         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
5702         Likewise.
5703         [generic bits/local_lim.h] (before-compile): Do not append to
5704         variable.
5705         [generic bits/local_lim.h] (common-generated): Likewise.
5706         [generic sys/param.h] (before-compile): Do not append to variable.
5707         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
5708         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
5709         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
5710         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
5711         include.
5712         [generic sys/param.h] (sys/param.h-includes): Remove variable.
5713         [generic sys/param.h] (sys/param.h-includes): Remove rule.
5714         [generic sys/param.h] ($(addprefix
5715         $(common-objpfx),$(sys/param.h-includes))): Likewise.
5716         [generic sys/param.h] (common-generated): Do not append to
5717         variable.
5718         [generic sys/param.h] (sysdep_headers): Likewise.
5719         [generic bits/errno.h] (before-compile): Do not append to
5720         variable.
5721         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
5722         rule.
5723         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
5724         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
5725         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
5726         [generic bits/errno.h] (common-generated): Do not append to
5727         variable.
5728         [generic bits/ioctls.h] (before-compile): Do not append to
5729         variable.
5730         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
5731         rule.
5732         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
5733         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
5734         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
5735         rule.
5736         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
5737         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
5738         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
5739         [generic bits/ioctls.h] (common-generated): Do not append to
5740         variable.
5741         [generic sys/syscall.h] (syscall.h): Remove variable.
5742         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
5743         rule.
5744         [generic sys/syscall.h] (before-compile): Do not append to
5745         variable.
5746         [generic sys/syscall.h] (common-generated): Likewise.
5747         * sysdeps/unix/errnos-tmpl.c: Remove file.
5748         * sysdeps/unix/errnos.awk: Likewise.
5749         * sysdeps/unix/ioctls-tmpl.c: Likewise.
5750         * sysdeps/unix/ioctls.awk: Likewise.
5751         * sysdeps/unix/mk-local_lim.c: Likewise.
5752         * sysdeps/unix/snarf-ioctls: Likewise.
5753
5754 2012-03-19  Richard Henderson  <rth@twiddle.net>
5755
5756         * sysdeps/i386/fpu/fenv_private.h: New file.
5757         * sysdeps/i386/fpu/math_private.h: Use it.
5758         (math_opt_barrier, math_force_eval): Remove.
5759         (libc_feholdexcept_setround_53bit): Remove.
5760         (libc_feupdateenv_53bit): Remove.
5761         * sysdeps/x86_64/fpu/math_private.h: Likewise.
5762         (math_opt_barrier, math_force_eval): Remove.
5763         (libc_feholdexcept): Remove.
5764         (libc_feholdexcept_setround): Remove.
5765         (libc_fetestexcept, libc_fesetenv): Remove.
5766         (libc_feupdateenv_test): Remove.
5767         (libc_feupdateenv, libc_feholdsetround): Remove.
5768         (libc_feresetround): Remove.
5769
5770         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
5771         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
5772
5773         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
5774         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
5775         (libc_feupdateenv_testl): New.
5776         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
5777         (libc_feupdateenv_testf): New.
5778         (libc_feupdateenv): Use libc_feupdateenv_test.
5779         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
5780         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
5781
5782         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
5783         (libc_feholdsetroundf, libc_feholdsetroundl): New.
5784         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
5785         (libc_feresetround_noex): New.
5786         (libc_feresetround_noexf): New.
5787         (libc_feresetround_noexl): New.
5788         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
5789         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
5790         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
5791         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
5792         SET_RESTORE_ROUND.
5793         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
5794         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
5795         (__cos): Likewise.
5796         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
5797         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
5798         SET_RESTORE_ROUND_NOEX.
5799         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
5800         SET_RESTORE_ROUND_NOEXF.
5801         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
5802         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
5803         (libc_feholdsetroundf): New.
5804         (libc_feresetround, libc_feresetroundf): New.
5805
5806         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
5807         (libc_feholdexcept_setround_53bit): Convert from macro to function.
5808         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
5809
5810         * sysdeps/generic/math_private.h: Include <fenv.h>.
5811         (default_libc_feholdexcept): New.
5812         (default_libc_feholdexcept_setround): New.
5813         (default_libc_fesetenv, default_libc_feupdateenv): New.
5814         (libc_feholdexcept): Only define if undefined.
5815         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
5816         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
5817         (libc_feholdexcept_setroundl): Likewise.
5818         (libc_feholdexcept_setround_53bit): Likewise.
5819         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
5820         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
5821         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
5822         (libc_feupdateenv_53bit): Likewise.
5823         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
5824         (libc_feholdexcept): Convert from macro to inline function.
5825         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
5826         (libc_fesetenv, libc_feupdateenv): Likewise.
5827
5828         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
5829         not previously defined.
5830         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
5831         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
5832         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
5833         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
5834         * sysdeps/ieee754/flt-32/math_private.h: New file.
5835         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
5836         math_private.h below SET_FLOAT_WORD.
5837         (__isnan, __isinf_ns, __finite): Remove.
5838         (__isnanf, __isinf_nsf, __finitef): Remove.
5839
5840 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
5841
5842         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5843
5844 2012-03-17  David S. Miller  <davem@davemloft.net>
5845
5846         [BZ #6471]
5847         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
5848         for 2.16.
5849
5850 2012-03-16  David S. Miller  <davem@davemloft.net>
5851
5852         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
5853         warnings.
5854
5855         [BZ #6471]
5856         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
5857         properly.
5858         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
5859         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
5860         sysdep_routines when subdir is sysvipc.
5861         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
5862         __getshmlba helper.
5863
5864         * sysdeps/sparc/fpu/libm-test/ulps: Update.
5865
5866 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5867
5868         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
5869         [__LP64__].
5870
5871 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5872
5873         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
5874         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
5875         (__lround): Renamed to ...
5876         (__llround): This.  Replace long int with long long int.
5877         Define lround functions as aliases of llround functions.
5878         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
5879
5880 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5881
5882         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5883         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
5884         adresses to uintptr_t.  Replace "long int" and "unsigned long
5885         int" with "greg_t" on va_arg.
5886
5887 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5888
5889         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
5890         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
5891
5892         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
5893         Move e_machine check before EI_CLASS check.  Handle x32
5894         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
5895         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
5896         SKIP_EM_IA_64 and include
5897         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
5898
5899         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
5900         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
5901         (add_system_dir): New macro.
5902
5903         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
5904         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
5905
5906 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
5907
5908         [BZ #2551]
5909         [BZ #2552]
5910         [BZ #2553]
5911         [BZ #2554]
5912         [BZ #2562]
5913         [BZ #2563]
5914         [BZ #2565]
5915         [BZ #2566]
5916         [BZ #2576]
5917         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
5918         (y0): Likewise.
5919         * math/w_j0f.c (j0f): Likewise.
5920         (y0f): Likewise.
5921         * math/w_j0l.c (__j0l): Likewise.
5922         (__y0l): Likewise.
5923         * math/w_j1.c (j1): Likewise.
5924         (y1): Likewise.
5925         * math/w_j1f.c (j1f): Likewise.
5926         (y1f): Likewise.
5927         * math/w_j1l.c (__j1l): Likewise.
5928         (__y1l): Likewise.
5929         * math/w_jn.c (jn): Likewise.
5930         (yn): Likewise.
5931         * math/w_jnf.c (jnf): Likewise.
5932         (ynf): Likewise.
5933         * math/w_jnl.c (__jnl): Likewise.
5934         (__ynl): Likewise.
5935         * math/libm-test.inc (j0_test): Add more tests.
5936         (j1_test): Likewise.
5937         (jn_test): Likewise.  Add trailing semicolon to existing test.
5938         (y0_test): Likewise.
5939         (y1_test): Likewise.
5940         * sysdeps/i386/fpu/libm-test-ulps: Update.
5941         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5942
5943         [BZ #13851]
5944         [BZ #13854]
5945         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
5946         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
5947         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
5948         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
5949         (__tanl): Set errno for infinite argument.
5950         * sysdeps/i386/fpu/mptan.c: Remove.
5951         * sysdeps/i386/fpu/s_tan.S: Likewise.
5952         * sysdeps/i386/fpu/s_tanl.S: Likewise.
5953         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
5954         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
5955         * math/libm-test.inc (tan_test): Add more tests and enable more
5956         tests for double and long double.
5957         * sysdeps/i386/fpu/libm-test-ulps: Update.
5958         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5959
5960 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5961
5962         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
5963         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
5964
5965 2012-03-16  Roland McGrath  <roland@hack.frob.com>
5966
5967         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
5968         * configure.in: Use it for both main tree and add-ons.
5969         * configure: Regenerated.
5970
5971 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5972
5973         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
5974
5975 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
5976
5977         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
5978         in comment.
5979
5980         [BZ #13851]
5981         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
5982         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
5983         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
5984         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
5985         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
5986         infinite argument.
5987         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
5988         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
5989         != 0 for prec == 2.
5990         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
5991         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
5992         * sysdeps/i386/fpu/s_cosl.S: Likewise.
5993         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
5994         * sysdeps/i386/fpu/s_sinl.S: Likewise.
5995         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
5996         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
5997         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
5998         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
5999         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
6000         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
6001         * math/libm-test.inc (cos_test): Add more tests and enable more
6002         tests for long double.
6003         (sin_test): Likewise.
6004         (sincos_test): Likewise.
6005         * sysdeps/i386/fpu/libm-test-ulps: Update.
6006         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6007
6008 2012-03-16  David S. Miller  <davem@davemloft.net>
6009
6010         * sysdeps/sparc/fpu/math_private.h: New file.
6011
6012 2012-03-15  David S. Miller  <davem@davemloft.net>
6013
6014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
6015         file.
6016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
6017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
6018         file.
6019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
6020         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
6021         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
6022         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
6023         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
6024         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
6025         sysdep routines.
6026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
6027
6028         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
6029         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
6030
6031         * sysdeps/sparc/sparc-ifunc.h: New file.
6032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
6033         sparc-ifunc.h
6034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
6035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
6036         Likewise.
6037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
6038         Likewise.
6039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
6040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
6041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
6043         Likewise.
6044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
6045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
6046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
6047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
6048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
6049         Likewise.
6050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
6051         Likewise.
6052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
6053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
6054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
6055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
6056         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
6057         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
6058         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
6059         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
6060         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
6061         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
6062         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
6063         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
6064         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
6065         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
6066         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
6067         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
6068         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
6069         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
6070         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
6071         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
6072         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
6073         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
6074         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
6075         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
6076
6077 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6078
6079         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
6080         scaling.
6081         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6082
6083 2012-03-15  Andreas Jaeger  <aj@suse.de>
6084
6085         [BZ #13852]
6086         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
6087         ieee754/flt-32 implementation for sin, cos and sincos.
6088         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
6089         * sysdeps/i386/fpu/s_cosf.S: Likewise.
6090         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
6091         * sysdeps/i386/fpu/s_sinf.S: Likewise.
6092         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
6093         ieee754/flt-32 implementation for tan.
6094
6095         * math/libm-test.inc (cos_test): Enable some large input tests for
6096         float as well
6097         (sin_test): Likewise.
6098         (sincos_test): Likewise.
6099         (tan_test): Add tests for large input.
6100
6101         * sysdeps/i386/fpu/libm-test-ulps: Update.
6102
6103 2012-03-15  Andreas Jaeger  <aj@suse.de>
6104
6105         [BZ #13658]
6106         * math/libm-test.inc (cos_test): Add more test cases.
6107         (sin_test): Likewise.
6108         (sincos_test): Likewise.
6109
6110 2012-03-15  Andreas Jaeger  <aj@suse.de>
6111
6112         [BZ #13837]
6113         * math/libm-test.inc (cos_test): Add a test case for large input
6114         value.
6115         (sin_test): Likewise.
6116         (sincos_test): Likewise.
6117
6118 2012-03-15  Andreas Jaeger  <aj@suse.de>,
6119         Joseph Myers  <joseph@codesourcery.com>
6120
6121         [BZ #13658]
6122         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
6123         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
6124         * sysdeps/i386/fpu/branred.c: Likewise.
6125         * sysdeps/i386/fpu/dosincos.c: Likewise.
6126         * sysdeps/i386/fpu/mpa.c: Likewise.
6127         * sysdeps/i386/fpu/s_cos.S: Likewise.
6128         * sysdeps/i386/fpu/s_sin.S: Likewise.
6129         * sysdeps/i386/fpu/s_sincos.S: Likewise.
6130         * sysdeps/i386/fpu/sincos32.c: Likewise.
6131
6132         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
6133         Define.
6134         (libc_feupdateenv_53bit): Define.
6135         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
6136         Define.
6137         (libc_feupdateenv_53bit): Define.
6138
6139         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
6140         53 bit (without extend i386 double precision).
6141
6142         * math/libm-test.inc (sincos_test): Add tests for large input.
6143         (sin): Likewise.
6144         (cos): Likewise.
6145
6146         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
6147
6148 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6149
6150         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6151
6152 2012-03-15  David S. Miller  <davem@davemloft.net>
6153
6154         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
6155         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
6156         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
6157         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
6158         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
6159         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
6160         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
6161         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
6162         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
6163         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
6164         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
6165         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
6166         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
6167         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
6168         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
6169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
6170         file.
6171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
6172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
6173         file.
6174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
6175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
6176         file.
6177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
6178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
6179         file.
6180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
6181         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
6182         fmin/fmax sysdep routines.
6183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
6184
6185 2012-03-14  David S. Miller  <davem@davemloft.net>
6186
6187         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
6188         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
6189         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
6190         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
6191         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
6192         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
6193         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
6194         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
6195         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
6196         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
6197         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
6198         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
6199         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
6200         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
6201         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
6202         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
6203         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
6204         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
6205         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
6206         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
6207         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
6208         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
6209         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
6210         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
6211         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
6212         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
6213         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
6214         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
6215         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
6216         routines.
6217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
6218         file.
6219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
6220         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
6221         file.
6222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
6223         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
6224         file.
6225         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
6226         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
6227         file.
6228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
6229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
6230         file.
6231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
6232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
6233         file.
6234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
6235         file.
6236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
6237         file.
6238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
6239         file.
6240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
6241         New file.
6242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
6243         file.
6244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
6245         file.
6246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
6247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
6248         file.
6249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
6250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
6251         file.
6252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
6253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
6254         file.
6255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
6256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
6257         VIS3 routines.
6258
6259         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
6260         New file.
6261
6262         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6263
6264         * sysdeps/sparc/configure.in: New file.
6265         * sysdeps/sparc/configure: Generate.
6266         * configure.in (libc_cv_sparc_as_vis3): Substitute.
6267         * configure: Regenerate.
6268         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
6269         * config.make.in (have-as-vis3): New.
6270         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
6271         available use -Av9d instead of -Av9a.
6272         * sysdeps/sparc/sparc64/Makefile: Likewise.
6273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
6274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
6275         New file.
6276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
6277         file.
6278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
6279         New file.
6280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
6281         file.
6282         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
6283         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
6284         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
6285         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
6286         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
6287
6288         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
6289         fzeros/fnegs to load 0x80000000 into a float register instead of
6290         using the stack.
6291         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
6292
6293 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
6294
6295         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6296         bits/syscall.h.
6297         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
6298         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
6299         ($(inst_includedir)/bits/syscall.h): Remove rule.
6300         ($(objpfx)bits/syscall.d): Include instead of
6301         $(objpfx)syscall-list.d.
6302         (generated): Change syscall-list.h and syscall-list.d to
6303         bits/syscall.h and bits/syscall.d.
6304
6305 2012-03-14  Roland McGrath  <roland@hack.frob.com>
6306
6307         [BZ #13846]
6308         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
6309
6310 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
6311
6312         [BZ #13841]
6313         * math/s_csqrt.c: Include <float.h>.
6314         (__csqrt): Scale large or subnormal inputs.
6315         * math/s_csqrtf.c: Likewise.
6316         * math/s_csqrtl.c: Likewise.
6317         * math/libm-test.inc (csqrt_test): Add more tests.
6318         * sysdeps/i386/fpu/libm-test-ulps: Update.
6319         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6320
6321         [BZ #13840]
6322         * math/libm-test.inc (hypot_test): Add more tests.
6323
6324 2012-03-13  David S. Miller  <davem@davemloft.net>
6325
6326         [BZ #13840]
6327         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
6328         double-precision for the calculation instead of scaling.
6329
6330 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
6331
6332         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
6333         manipulate bits before adding and subtracting TWO52[sx].
6334         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
6335         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6336         Likewise.
6337         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
6338
6339 2012-03-13  David S. Miller  <davem@davemloft.net>
6340
6341         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
6342         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
6343         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
6344         rtld-global-offsets.h
6345         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6346
6347         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
6348         large parameters.
6349
6350         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
6351
6352         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
6353         'err' in the ifdef scope in which it is actually used.
6354
6355         * nss/nss_db/db-init.c: Include string.h
6356
6357 2012-03-12  David S. Miller  <davem@davemloft.net>
6358
6359         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
6360         masking out of the most significant byte of random value used.
6361         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
6362         Fix coding style in previous change.
6363
6364         * sysdeps/unix/sysv/linux/kernel-features.h
6365         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
6366         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
6367         expression.
6368         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
6369         later.
6370
6371 2012-03-11  David S. Miller  <davem@davemloft.net>
6372
6373         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
6374         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
6375         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
6376         for 'resultvar' otherwise things get truncated on 64-bit.
6377
6378         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
6379         Fix masking out of the most significant byte of random value used.
6380
6381         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6382
6383 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
6384
6385         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6386
6387 2012-03-09  David S. Miller  <davem@davemloft.net>
6388
6389         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
6390         variables with appropriate CPP guards.
6391         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
6392         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
6393         on resulting framesize and the management of the outregs buffer for pltexit.
6394         Preserve floating point return values across _dl_call_pltexit call.
6395         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
6396         framesize and the management of the outregs buffer for pltexit.
6397         Preserve floating point return values across _dl_call_pltexit
6398         call.
6399         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
6400         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
6401         (print_exit): Fix format string for return register value.
6402
6403 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
6404
6405         * sunrpc/Makefile (others): Add rpcgen.
6406         ($(objpfx)rpcgen): Remove special build rule and dependency on
6407         libc.
6408         * sunrpc/rpcgen.c: New file.
6409
6410 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
6411
6412         [BZ #13673]
6413         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
6414         * stdio-common/bug-vfprintf-nargs.c: Likewise.
6415         * sysdeps/i386/crti.S: Likewise.
6416         * sysdeps/i386/crtn.S: Likewise.
6417         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
6418         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
6419         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
6420         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
6421         * sysdeps/sh/crti.S: Likewise.
6422         * sysdeps/sh/crtn.S: Likewise.
6423         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
6424
6425         [BZ #13673]
6426         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
6427         with URL.
6428         * locale/programs/locfile-kw.gperf: Likewise.
6429         * locale/programs/charmap-kw.h: Regenerated.
6430         * locale/programs/locfile-kw.h: Likewise.
6431
6432         [BZ #13673]
6433         * intl/plural.y: Replace FSF snail mail address with URL.
6434         * intl/plural.c: Regenerated.
6435
6436 2012-03-09  Richard Henderson  <rth@twiddle.net>
6437
6438         * include/math_private.h: Remove file.
6439         * math/math_private.h: Move file ...
6440         * sysdeps/generic/math_private.h: ... here.
6441
6442         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
6443         * sysdeps/powerpc/fpu/math_private.h: Likewise.
6444         * sysdeps/x86_64/fpu/math_private.h: Likewise.
6445
6446         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
6447         and <math_private.h>.
6448         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
6449         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6450         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
6451         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
6452         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
6453         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
6454         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6455         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6456         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6457         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6458         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6459         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6460         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6461         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6462         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6463         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6464         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6465         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6466         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6467         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6468         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6469         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6470         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6471         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6472         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
6473         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6474         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6475         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6476         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6477         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6478         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6479         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6480         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6481         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6482         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6483         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
6484         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6485         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
6486         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6487         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6488         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
6489         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
6490         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
6491         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6492         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
6493         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6494         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6495         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6496         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6497         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
6498         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6499         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6500         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
6501         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6502         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
6503         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6504         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6505         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
6506         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
6507         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
6508         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6509         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6510         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6511         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
6512         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6513         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6514         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6515         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6516         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
6517         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
6518         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
6519         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6520         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6521         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6522         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
6523         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6524         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
6525         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6526         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
6527         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6528         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
6529         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6530         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
6531         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6532         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6533         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
6534         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
6535         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6536         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6537         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6538         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6539         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6540         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6541         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6542         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6543         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6544         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6545         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6546         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6547         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6548         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6549         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6550         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6551         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6552         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
6553         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6554         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6555         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6556         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
6557         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6558         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
6559         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
6560         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6561         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
6562         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6563         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6564         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6565         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
6566         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
6567         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
6568         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
6569         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6570         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6571         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
6572         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
6573         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
6574         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
6575         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6576         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6577         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6578         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6579         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
6580         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
6581         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6582         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6583         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
6584         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6585         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
6586         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
6587         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6588         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6589         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
6590         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
6591         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
6592         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
6593         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
6594         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
6595         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
6596         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6597         * sysdeps/ieee754/k_standard.c: Likewise.
6598         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6599         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6600         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6601         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6602         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6603         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6604         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6605         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6606         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6607         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6608         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6609         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6610         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6611         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6612         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6613         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6614         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
6615         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6616         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6617         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
6618         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
6619         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
6620         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
6621         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
6622         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
6623         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
6624         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6625         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6626         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
6627         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
6628         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
6629         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
6630         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6631         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6632         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
6633         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
6634         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
6635         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
6636         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6637         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6638         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6639         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6640         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
6641         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
6642         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6643         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6644         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
6645         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6646         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
6647         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
6648         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
6649         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
6650         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6651         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6652         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
6653         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
6654         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
6655         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
6656         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
6657         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
6658         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
6659         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6660         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
6661         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6662         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6663         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6664         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
6665         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6666         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
6667         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
6668         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6669         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6670         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
6671         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
6672         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
6673         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6674         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
6675         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
6676         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6677         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
6678         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
6679         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
6680         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
6681         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
6682         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
6683         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6684         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
6685         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
6686         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
6687         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
6688         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
6689         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
6690         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
6691         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
6692         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
6693         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
6694         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
6695         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
6696         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
6697         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
6698         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
6699         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
6700         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
6701         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
6702         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
6703         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
6704         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
6705         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
6706         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
6707         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
6708         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
6709         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
6710         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
6711         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6712         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
6713         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6714         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
6715         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6716         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6717         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
6718         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6719         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6720         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
6721         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
6722         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6723         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6724         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
6725         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6726         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
6727         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
6728         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
6729         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6730         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
6731         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
6732         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
6733         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
6734         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
6735         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6736         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
6737         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6738         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6739         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
6740         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6741         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6742         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
6743         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
6744         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
6745         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
6746         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
6747         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
6748         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
6749         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6750         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
6751         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
6752         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
6753         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
6754         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
6755         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
6756         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
6757         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
6758         * sysdeps/ieee754/s_lib_version.c: Likewise.
6759         * sysdeps/ieee754/s_matherr.c: Likewise.
6760         * sysdeps/ieee754/s_signgam.c: Likewise.
6761         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
6762         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6763         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
6764         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
6765         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
6766         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6767         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
6768         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
6769         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6770         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6771         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6772         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
6773         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
6774         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
6775         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
6776         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
6777         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
6778         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
6779         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
6780         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
6781         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
6782
6783 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
6784
6785         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
6786         * sunrpc/rpc_main.c: Likewise.
6787         * sunrpc/rpc_svcout.c: Likewise.
6788
6789 2012-03-09  David S. Miller  <davem@davemloft.net>
6790
6791         * include/math_private.h: New file.
6792
6793 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
6794
6795         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
6796         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
6797         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
6798         from <bits/socket_type.h>.
6799         (enum __socket_type): Don't define here.
6800         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
6801         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6802         bits/socket_type.h.
6803
6804         [BZ #13566]
6805         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
6806         checking __USE_GNU.
6807
6808         * Makerules ($(inst_includedir)/%.h): New rule.
6809         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
6810         (install-others): Remove variable setting.
6811         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
6812
6813 2012-03-08  Richard Henderson  <rth@twiddle.net>
6814
6815         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
6816         from macro to inline function; merge with the
6817         !__LIBC_INTERNAL_MATH_INLINES version.
6818         (__ieee754_sqrtf): Likewise.
6819
6820         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
6821         to inline function.
6822         (__rintf, __floor, __floorf): Likewise.
6823
6824         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
6825         macro to inline function.
6826         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
6827
6828         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
6829         not <math/math_private.h>.
6830
6831 2012-03-08  David S. Miller  <davem@davemloft.net>
6832
6833         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
6834         copyright year.
6835         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
6836
6837 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
6838
6839         * resolv/gai_misc.c (handle_requests): Fix struct timespec
6840         normalization.
6841         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
6842         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
6843
6844 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
6845
6846         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
6847         be defined individually, they must be defined as a block.  Define
6848         S for printing a string instead of hidint the different by using a
6849         macro for adding the 'l'.
6850         * stdio-common/tst-fphex-wide.c: Adjust.
6851
6852 2012-03-07  Marek Polacek  <polacek@redhat.com>
6853
6854         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
6855
6856 2012-03-08  Marek Polacek  <polacek@redhat.com>
6857
6858         [BZ #13806]
6859         * stdio-common/Makefile (tests): Add tst-fphex-wide.
6860         * stdio-common/tst-fphex.c: Define a few macros to make the
6861         test reusable.  Use them.
6862         * stdio-common/tst-fphex-wide.c: New file.
6863
6864 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
6865
6866         [BZ #6911]
6867         * manual/macros.texi (gnusystems): New macro.
6868         (nongnusystems): Likewise.
6869         (gnulinuxhurdsystems): Likewise.
6870         (gnuhurdsystems): Likewise..
6871         (gnulinuxsystems): Likewise.
6872         * manual/charset.texi: Use new macros or @theglibc{} to refer to
6873         variants of the GNU system, not "GNU system".
6874         * manual/conf.texi: Likewise.
6875         * manual/errno.texi: Likewise.  Update example of errno macro
6876         expansion.
6877         * manual/filesys.texi: Likewise.
6878         (getumask): Document as specific to GNU/Hurd.
6879         * manual/install.texi: Likewise.  Reword some references to
6880         GNU/Linux.
6881         * manual/intro.texi: Likewise.
6882         * manual/io.texi: Likewise.
6883         (File Name Portability): Detail which constraints are inapplicable
6884         to all GNU systems and which are only inapplicable to GNU/Hurd.
6885         * manual/job.texi: Likewise.
6886         * manual/llio.texi: Likewise.
6887         (O_NOCTTY): Document as present on GNU/Linux.
6888         * manual/maint.texi: Likewise.
6889         * manual/memory.texi: Likewise.
6890         * manual/pattern.texi: Likewise.
6891         * manual/pipe.texi: Likewise.
6892         * manual/process.texi: Likewise.
6893         * manual/resource.texi: Likewise.
6894         (RUSAGE_CHILDREN): Remove statement about specifying a particular
6895         child on GNU/Hurd.
6896         * manual/setjmp.texi: Likewise.
6897         * manual/signal.texi: Likewise.
6898         * manual/startup.texi: Likewise.
6899         * manual/stdio.texi: Likewise.
6900         * manual/terminal.texi: Likewise.
6901         (ONLCR): Document as POSIX.
6902         (OXTABS): Document availability on GNU/Linux as XTABS.
6903         (ONOEOT): Document availability separately from other bits.
6904         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
6905         * manual/time.texi: Likewise.
6906         * manual/users.texi: Likewise.
6907         * INSTALL: Regenerated.
6908         * sysdeps/gnu/errlist.c: Regenerated.
6909
6910         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
6911         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
6912         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
6913         puts.
6914         * configure: Regenerated.
6915
6916 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
6917
6918         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
6919         default includes instead of AC_HEADER_CHECK.
6920         * sysdeps/i386/configure: Regenerated.
6921
6922         [BZ #10716]
6923         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
6924         * math/s_cacoshf.c (__cacoshf): Likewise.
6925         * math/s_cacoshl.c (__cacoshl): Likewise.
6926         * math/s_casinh.c (__casinh): Set signs of result from argument.
6927         * math/s_casinhf.c (__casinhf): Likewise.
6928         * math/s_casinhl.c (__casinhl): Likewise.
6929         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
6930         (casinh_test): Add more tests.
6931         * sysdeps/i386/fpu/libm-test-ulps: Update.
6932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6933
6934 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
6935
6936         * po/zh_TW.po: Update from translation team.
6937
6938         * login/Makefile (distribute): Remove variable.
6939         * catgets/Makefile: Likewise.
6940         * mach/Makefile: Likewise.
6941         * malloc/Makefile: Likewise.
6942         * misc/Makefile: Likewise.
6943         * iconv/Makefile: Likewise.
6944         * nscd/Makefile: Likewise.
6945         * hurd/Makefile: Likewise.
6946         * manual/Makefile: Likewise.
6947         * locale/Makefile: Likewise.
6948         * intl/Makefile: Likewise.
6949         * conform/Makefile: Likewise.
6950         * nss/Makefile: Likewise.
6951         * time/Makefile: Likewise.
6952         * soft-fp/Makefile: Likewise.
6953         * dirent/Makefile: Likewise.
6954         * gmon/Makefile: Likewise.
6955         * po/Makefile: Likewise.
6956         * rt/Makefile: Likewise.
6957         * socket/Makefile: Likewise.
6958         * math/Makefile: Likewise.
6959         * signal/Makefile: Likewise.
6960         * debug/Makefile: Likewise.
6961         * elf/Makefile: Likewise.
6962         * timezone/Makefile: Likewise.
6963         * stdlib/Makefile: Likewise.
6964         * iconvdata/Makefile: Likewise.
6965         * sunrpc/Makefile: Likewise.
6966         * io/Makefile: Likewise.
6967         * argp/Makefile: Likewise.
6968         * inet/Makefile: Likewise.
6969         * hesiod/Makefile: Likewise.
6970         * grp/Makefile: Likewise.
6971         * csu/Makefile: Likewise.
6972         * wctype/Makefile: Likewise.
6973         * crypt/Makefile: Likewise.
6974         * libio/Makefile: Likewise.
6975         * string/Makefile: Likewise.
6976         * nis/Makefile: Likewise.
6977         * resolv/Makefile: Likewise.
6978         * stdio-common/Makefile: Likewise.
6979         * wcsmbs/Makefile: Likewise.
6980         * dlfcn/Makefile: Likewise.
6981         * posix/Makefile: Likewise.
6982
6983         [BZ #6959]
6984         * timezone/Makefile: Don't install timezone files, just the programs
6985         and scripts.
6986
6987 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
6988
6989         * nss/databases.def: Add missing gshadow entry.
6990
6991         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
6992
6993 2012-03-06  Marek Polacek  <polacek@redhat.com>
6994
6995         [BZ #13726]
6996         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
6997         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
6998         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
6999         * stdio-common/tst-long-dbl-fphex.c: New file.
7000
7001 2012-03-06  David S. Miller  <davem@davemloft.net>
7002
7003         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7004         (set_obp_int): New function.
7005         (get_obp_int): New function.
7006         (__get_clockfreq_via_dev_openprom): Likewise.
7007         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7008         Avoid unused variable warnings on 'val' and use builtin_expect.
7009         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
7010         __builtin_expect.
7011         (INLINE_CLONE_SYSCALL): Likewise.
7012
7013 2012-03-05  David S. Miller  <davem@davemloft.net>
7014
7015         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7016
7017 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
7018
7019         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7020
7021         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
7022         only for |x| >= 40.
7023         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7024
7025 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7026
7027         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
7028         Replace gettimeofday with __vdso_gettimeofday.
7029
7030         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7031         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
7032         __vdso_clock_gettime and __vdso_getcpu.
7033
7034         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
7035         time with __vdso_time.
7036
7037 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7038
7039         * manual/lang.texi (size_t): Note types to which size_t may be
7040         equivalent with the GNU C Library, but do not describe when
7041         differences between them are significant.
7042
7043 2012-03-05  Andreas Jaeger  <aj@suse.de>
7044
7045         * sysdeps/i386/fpu/libm-test-ulps: Update.
7046
7047 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7048
7049         [BZ #3976]
7050         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
7051         (__ieee754_pow): Save and restore rounding mode and use
7052         round-to-nearest for main computations.
7053         * math/libm-test.inc (pow_test_tonearest): New function.
7054         (pow_test_towardzero): Likewise.
7055         (pow_test_downward): Likewise.
7056         (pow_test_upward): Likewise.
7057         (main): Call the new functions.
7058         * sysdeps/i386/fpu/libm-test-ulps: Update.
7059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7060
7061         [BZ #3976]
7062         * math/libm-test.inc (cosh_test_tonearest): New function.
7063         (cosh_test_towardzero): Likewise.
7064         (cosh_test_downward): Likewise.
7065         (cosh_test_upward): Likewise.
7066         (sinh_test_tonearest): Likewise.
7067         (sinh_test_towardzero): Likewise.
7068         (sinh_test_downward): Likewise.
7069         (sinh_test_upward): Likewise.
7070         (main): Call the new functions.
7071         * sysdeps/i386/fpu/libm-test-ulps: Update.
7072         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7073
7074 2012-03-05  Tom de Vries  <tom@codesourcery.com>
7075
7076         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
7077         default stack guard is set in last bytes.
7078         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
7079
7080 2012-03-05  Kees Cook  <keescook@chromium.org>
7081
7082         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
7083
7084         [BZ #13656]
7085         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
7086         possibly allocate from heap instead of stack.
7087         * stdio-common/bug-vfprintf-nargs.c: New file.
7088         * stdio-common/Makefile (tests): Add nargs overflow test.
7089
7090 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
7091
7092         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7093
7094 2012-03-03  Marek Polacek  <polacek@redhat.com>
7095
7096         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
7097         * math/math_private.h: Likewise.
7098         * stdlib/tst-strtod.c: Likewise.
7099         * sysdeps/i386/i486/bits/atomic.h: Likewise.
7100         * sysdeps/x86_64/bits/atomic.h: Likewise.
7101
7102 2012-03-02  David S. Miller  <davem@davemloft.net>
7103
7104         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
7105         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
7106         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
7107         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
7108         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
7109         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
7110         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
7111         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
7112
7113 2012-03-02  Roland McGrath  <roland@hack.frob.com>
7114
7115         [BZ #13792]
7116         * manual/examples/README: New file, says the example source files
7117         can be used under GPL>=2.
7118         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
7119         line containing just "*/".
7120         * manual/examples/add.c: Add copyright header (GPL>=2).
7121         * manual/examples/argp-ex1.c: Likewise.
7122         * manual/examples/argp-ex2.c: Likewise.
7123         * manual/examples/argp-ex3.c: Likewise.
7124         * manual/examples/argp-ex4.c: Likewise.
7125         * manual/examples/atexit.c: Likewise.
7126         * manual/examples/db.c: Likewise.
7127         * manual/examples/dir.c: Likewise.
7128         * manual/examples/dir2.c: Likewise.
7129         * manual/examples/execinfo.c: Likewise.
7130         * manual/examples/filecli.c: Likewise.
7131         * manual/examples/filesrv.c: Likewise.
7132         * manual/examples/fmtmsgexpl.c: Likewise.
7133         * manual/examples/genpass.c: Likewise.
7134         * manual/examples/inetcli.c: Likewise.
7135         * manual/examples/inetsrv.c: Likewise.
7136         * manual/examples/isockad.c: Likewise.
7137         * manual/examples/longopt.c: Likewise.
7138         * manual/examples/memopen.c: Likewise.
7139         * manual/examples/memstrm.c: Likewise.
7140         * manual/examples/mkfsock.c: Likewise.
7141         * manual/examples/mkisock.c: Likewise.
7142         * manual/examples/mygetpass.c: Likewise.
7143         * manual/examples/pipe.c: Likewise.
7144         * manual/examples/popen.c: Likewise.
7145         * manual/examples/rprintf.c: Likewise.
7146         * manual/examples/search.c: Likewise.
7147         * manual/examples/select.c: Likewise.
7148         * manual/examples/setjmp.c: Likewise.
7149         * manual/examples/sigh1.c: Likewise.
7150         * manual/examples/sigusr.c: Likewise.
7151         * manual/examples/stpcpy.c: Likewise.
7152         * manual/examples/strdupa.c: Likewise.
7153         * manual/examples/strftim.c: Likewise.
7154         * manual/examples/strncat.c: Likewise.
7155         * manual/examples/subopt.c: Likewise.
7156         * manual/examples/swapcontext.c: Likewise.
7157         * manual/examples/termios.c: Likewise.
7158         * manual/examples/testopt.c: Likewise.
7159         * manual/examples/testpass.c: Likewise.
7160         * manual/examples/timeval_subtract.c: Likewise.
7161
7162         [BZ #13792]
7163         * manual/time.texi (Elapsed Time): Move timeval_subtract example
7164         function to ...
7165         * manual/timeval_subtract.c.texi: ... here, new file.
7166
7167 2012-03-02  David S. Miller  <davem@davemloft.net>
7168
7169         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
7170
7171 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
7172
7173         [BZ #3976]
7174         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
7175         (__sin): Save and restore rounding mode and use round-to-nearest
7176         for all computations.
7177         (__cos): Save and restore rounding mode and use round-to-nearest
7178         for all computations.
7179         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
7180         <fenv.h>.
7181         (tan): Save and restore rounding mode and use round-to-nearest for
7182         all computations.
7183         * math/libm-test.inc (cos_test_tonearest): New function.
7184         (cos_test_towardzero): Likewise.
7185         (cos_test_downward): Likewise.
7186         (cos_test_upward): Likewise.
7187         (sin_test_tonearest): Likewise.
7188         (sin_test_towardzero): Likewise.
7189         (sin_test_downward): Likewise.
7190         (sin_test_upward): Likewise.
7191         (tan_test_tonearest): Likewise.
7192         (tan_test_towardzero): Likewise.
7193         (tan_test_downward): Likewise.
7194         (tan_test_upward): Likewise.
7195         (main): Call the new functions.
7196         * sysdeps/i386/fpu/libm-test-ulps: Update.
7197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7198
7199         [BZ #10135]
7200         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
7201         small n, then large n, before computing and testing k+n.
7202         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7203         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7204         Likewise.
7205         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7206         Likewise.
7207         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
7208         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7209         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7210         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7211         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7212         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7213         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7214         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
7215         * math/libm-test.inc (scalbn_test): Add more tests.
7216         (scalbln_test): Likewise.
7217
7218         * manual/filesys.texi (mode_t): Describe constraints on size and
7219         signedness, not exact equivalence to a particular type.
7220         (ino_t): Likewise.
7221         (ino64_t): Likewise.
7222         (dev_t): Likewise.
7223         (nlink_t): Likewise.
7224         (blkcnt_t): Likewise.
7225         (blkcnt64_t): Likewise.
7226         * manual/llio.texi (off_t): Likewise.
7227
7228         [BZ #3976]
7229         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
7230         (__ieee754_exp): Save and restore rounding mode and use
7231         round-to-nearest for all computations.
7232         * math/libm-test.inc (exp_test_tonearest): New function.
7233         (exp_test_towardzero): Likewise.
7234         (exp_test_downward): Likewise.
7235         (exp_test_upward): Likewise.
7236         (main): Call the new functions.
7237         * sysdeps/i386/fpu/libm-test-ulps: Update.
7238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7239
7240 2012-03-01  Chris Demetriou  <cgd@google.com>
7241
7242         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
7243         have predictable order.
7244
7245 2012-03-01  David S. Miller  <davem@davemloft.net>
7246
7247         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
7248
7249         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
7250         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
7251         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
7252         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
7253
7254         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
7255         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
7256         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
7257         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
7258         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
7259         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
7260         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
7261         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
7262         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
7263
7264         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7265
7266         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
7267         * sysdeps/sparc/fpu/libm-test-ulps: to here.
7268         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
7269
7270         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
7271         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7272         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
7273         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
7274         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
7275         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
7276         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
7277         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7278         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7279         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
7280         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
7281         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
7282         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7283         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
7284         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
7285         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7286         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
7287         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
7288         * sysdeps/sparc/elf/configure: Regenerated.
7289
7290 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
7291
7292         * configure.in (AS, LD): Require binutils 2.20 or later.
7293         * configure: Regenerated.
7294         * manual/install.texi (Tools for Compilation): Give binutils 2.20
7295         as required minimum version.
7296         * INSTALL: Regenerated.
7297
7298         [BZ #2541]
7299         [BZ #4108]
7300         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
7301         before squaring exponent.
7302         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
7303         bottom long double and 27 bits of top long double before squaring
7304         exponent.
7305         * math/libm-test.inc (erfc_test): Add more tests.
7306         * sysdeps/i386/fpu/libm-test-ulps: Update.
7307         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7309
7310 2012-03-01  Kai Tietz  <ktietz@redhat.com>
7311
7312         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
7313         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
7314         containing bit-fields.
7315         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7316         * soft-fp/single.h (_FP_UNION_S): Likewise.
7317         * soft-fp/double.h (_FP_UNION_D): Likewise.
7318
7319 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
7320
7321         [BZ #13786]
7322         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
7323         not include ../strcmp.S.
7324         [USE_AS_STRNCASECMP_L]: Likewise.
7325         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
7326         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
7327         * sysdeps/i386/i686/multiarch/strncase_l-c.c
7328         (__strncasecmp_l_ia32): Define as alias to
7329         __strncasecmp_l_nonascii.
7330
7331         [BZ #5794]
7332         * math/libm-test.inc (expm1_test): Add test for bug 5794.
7333         * sysdeps/i386/fpu/libm-test-ulps: Update.
7334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7335
7336         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
7337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7338
7339 2012-02-29  Jeff Law  <law@redhat.com>
7340
7341         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
7342         out of bounds read.
7343
7344 2012-02-29  Marek Polacek  <polacek@redhat.com>
7345
7346         [BZ #13706]
7347         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
7348         * elf/Makefile: Add rules to run tst-unused-dep.out.
7349
7350 2012-02-28  David S. Miller  <davem@davemloft.net>
7351
7352         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
7353         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
7354         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
7355         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
7356         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
7357         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
7358
7359 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
7360
7361         * math/libm-test.inc (llround_test): Move one test from
7362         lround_test.  Use TEST_f_L in moved test.
7363         (lround_test): Move misplaced test to llround_test.  Add testcase
7364         from bug 2561.
7365
7366 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
7367
7368         * sysdeps/x86_64/fpu/e_expf.S: New file.
7369         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
7370
7371 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
7372
7373         [BZ #13637]
7374         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
7375         of remain_len that may cause incomplete multi-byte character and
7376         false match.
7377         * posix/bug-regex33.c: New file.
7378         * posix/Makefile (tests): Add bug-regex33.
7379
7380 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
7381
7382         * manual/macros.texi: New file.
7383         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
7384         * manual/libc.texinfo: Include macros.texi.
7385         * manual/creatute.texi: Likewise.
7386         * manual/install.texi: Likewise.
7387         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
7388         @glibcadj{} in references to the GNU C Library.
7389         * manual/charset.texi: Likewise.
7390         * manual/conf.texi: Likewise.
7391         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
7392         when not using those macros.
7393         * manual/creature.texi: Likewise.
7394         * manual/crypt.texi: Likewise.
7395         * manual/errno.texi: Likewise.
7396         * manual/filesys.texi: Likewise.
7397         * manual/header.texi: Likewise.
7398         * manual/install.texi: Likewise.
7399         * manual/intro.texi: Likewise.
7400         * manual/io.texi: Likewise.
7401         * manual/job.texi: Likewise.
7402         * manual/lang.texi: Likewise.
7403         * manual/libc.texiinfo: Likewise.
7404         * manual/llio.texi: Likewise.
7405         * manual/locale.texi: Likewise.
7406         * manual/maint.texi: Likewise.
7407         * manual/math.texi: Likewise.
7408         * manual/memory.texi: Likewise.
7409         * manual/message.texi: Likewise.
7410         * manual/nss.texi: Likewise.
7411         * manual/pattern.texi: Likewise.
7412         * manual/process.texi: Likewise.
7413         * manual/resource.texi: Likewise.
7414         * manual/search.texi: Likewise.
7415         * manual/setjmp.texi: Likewise.
7416         * manual/signal.texi: Likewise.
7417         * manual/socket.texi: Likewise.
7418         * manual/startup.texi: Likewise.
7419         * manual/stdio.texi: Likewise.
7420         * manual/string.texi: Likewise.
7421         * manual/sysinfo.texi: Likewise.
7422         * manual/syslog.texi: Likewise.
7423         * manual/terminal.texi: Likewise.
7424         * manual/time.texi: Likewise.
7425         * manual/users.texi: Likewise.
7426         * INSTALL: Regenerated.
7427         * NOTES: Regenerated.
7428         * sysdeps/gnu/errlist.c: Regenerated.
7429
7430 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
7431
7432         * include/dirent.h: Include <dirstream.h> before
7433         <dirent/dirent.h>.
7434
7435 2012-02-28  David S. Miller  <davem@davemloft.net>
7436
7437         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
7438         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
7439         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
7440         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
7441
7442 2012-02-27  David S. Miller  <davem@davemloft.net>
7443
7444         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
7445         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
7446         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
7447         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
7448
7449         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
7450         frame pointer instead of stack pointer relative arg slot.
7451         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
7452         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
7453         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
7454
7455 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
7456
7457         [BZ #3992]
7458         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
7459
7460 2012-02-27  David S. Miller  <davem@davemloft.net>
7461
7462         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
7463         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
7464         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7465         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
7466         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
7467         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
7468         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
7469         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
7470
7471 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
7472
7473         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
7474         later.  Allow versions 5-9.
7475         * configure: Regenerated.
7476         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
7477         required minimum version and 4.6 as recommended version.  Do not
7478         mention bugs in GCC 2.7 and 2.8.
7479         * INSTALL: Regenerated.
7480
7481 2012-02-27  David S. Miller  <davem@davemloft.net>
7482
7483         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
7484         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
7485         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
7486         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
7487         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
7488         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
7489         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
7490         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
7491
7492         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
7493         manipulate bits before adding and subtracting TWO112[sx].
7494         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
7495
7496 2012-02-27  Roland McGrath  <roland@hack.frob.com>
7497
7498         [BZ #13775]
7499         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
7500         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
7501         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
7502         being in POSIX, because they are in 1003.1-2008.
7503
7504         * rt/tst-aio.c: Include <fcntl.h>.
7505         * rt/tst-aio7.c: Likewise.
7506         * rt/tst-aio64.c: Likewise.
7507
7508         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
7509
7510 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
7511
7512         * manual/install.texi (--with-headers): Describe headers as
7513         interface headers, not private headers.
7514         (Specific advice for GNU/Linux systems): Describe use of headers
7515         from "make headers_install", not private headers from older
7516         kernels.
7517         * INSTALL: Regenerated.
7518         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
7519         Change to 2.6.19.
7520         * sysdeps/unix/sysv/linux/configure: Regenerated.
7521
7522         * manual/llio.texi (fclean): Remove documentation.
7523
7524         * manual/Makefile (libc-texi-generated): New variable.  Include
7525         version.texi.
7526         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
7527         $(libc-texi-generated), not duplicated list of files.
7528         (version.texi, stamp-version): New rules.
7529         (realclean): Remove $(libc-texi-generated), not individual files
7530         from that list.  Do not remove dir-add.texinfo.
7531         * manual/libc.texinfo: Comment out uses of edition numbers and
7532         references to printed manual.  Remove last-updated dates.
7533         (EDITION): Comment out.
7534         (ISBN): Likewise.
7535         (VERSION, UPDATED): Remove.
7536         (version.texi): Include.
7537
7538 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
7539
7540         * sysdeps/posix/spawni.c: Include <signal.h>.
7541         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
7542         * sysdeps/pthread/aio_fsync.c: Likewise.
7543
7544 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
7545
7546         * conform/Makefile (tests): Run only when not cross-compiling and
7547         when fast-check is not defined.
7548
7549         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
7550         * conform/data/limits.h-data: Fixes for POSIX2008.
7551         * conform/run-conformtest.sh: Run all tests.
7552         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
7553         headers.
7554         * include/bits/dlfcn.h: Likewise.
7555         * include/langinfo.h: Likewise.
7556         * include/monetary.h: Likewise.
7557         * include/sys/poll.h: Likewise.
7558
7559         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
7560         for __USE_GNU.
7561         * posix/spawn.h: Define __need_sigset_t.
7562         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
7563         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
7564         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
7565         to get sigevent_t only.
7566         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
7567         only for __USE_GNU.
7568         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7569         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
7570         process_vm_writev only for __USE_GNU.
7571         * termios/termios.h: Declare tcgetsid also for POSIX2008.
7572
7573         * conform/Makefile: For now ignore errors from run-conformtest.
7574         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
7575         POSIX to avoid namespace pollution.  Don't prepend headers.
7576         * conform/data/aio.h-data: Fixes for POSIX testing.
7577         * conform/data/fcntl.h-data: Likewise.
7578         * conform/data/glob.h-data: Likewise.
7579         * conform/data/grp.h-data: Likewise.
7580         * conform/data/pthread.h-data: Likewise.
7581         * conform/data/pwd.h-data: Likewise.
7582         * conform/data/signal.h-data: Likewise.
7583         * conform/data/spawn.h-data: Likewise.
7584         * conform/data/stdio.h-data: Likewise.
7585         * conform/data/stdlib.h-data: Likewise.
7586         * conform/data/stropts.h-data: Likewise.
7587         * conform/data/sys/mman.h-data: Likewise.
7588         * conform/data/sys/stat.h-data: Likewise.
7589         * conform/data/sys/types.h-data: Likewise.
7590         * conform/data/sys/wait.h-data: Likewise.
7591         * conform/data/time.h-data: Likewise.
7592         * conform/data/unistd.h-data: Likewise.
7593         * conform/data/utime.h-data: Likewise.
7594
7595         * io/sys/stat.h: fchmod was always in POSIX.
7596         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
7597         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
7598         * rt/aio.h: Define __need_timespec before including <time.h>.
7599         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
7600         struct.  Add forward declaration of pthread_attr_t and use it in
7601         sigevent.
7602         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7603         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7604         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
7605         always remove CLK_TCK definition.
7606
7607 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
7608
7609         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
7610
7611 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
7612
7613         * conform/run-conformtest.sh: New file.
7614         * conform/Makefile: Run run-conformtest for tests.
7615         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
7616         support.
7617
7618         * conform/data/uchar.h-data: New file.
7619         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
7620         * conform/data/arpa/inet.h-data: Likewise.
7621         * conform/data/assert.h-data: Likewise.
7622         * conform/data/complex.h-data: Likewise.
7623         * conform/data/cpio.h-data: Likewise.
7624         * conform/data/ctype.h-data: Likewise.
7625         * conform/data/dirent.h-data: Likewise.
7626         * conform/data/dlfcn.h-data: Likewise.
7627         * conform/data/errno.h-data: Likewise.
7628         * conform/data/fcntl.h-data: Likewise.
7629         * conform/data/float.h-data: Likewise.
7630         * conform/data/fmtmsg.h-data: Likewise.
7631         * conform/data/fnmatch.h-data: Likewise.
7632         * conform/data/ftw.h-data: Likewise.
7633         * conform/data/glob.h-data: Likewise.
7634         * conform/data/grp.h-data: Likewise.
7635         * conform/data/iconv.h-data: Likewise.
7636         * conform/data/inttypes.h-data: Likewise.
7637         * conform/data/langinfo.h-data: Likewise.
7638         * conform/data/libgen.h-data: Likewise.
7639         * conform/data/limits.h-data: Likewise.
7640         * conform/data/locale.h-data: Likewise.
7641         * conform/data/math.h-data: Likewise.
7642         * conform/data/monetary.h-data: Likewise.
7643         * conform/data/mqueue.h-data: Likewise.
7644         * conform/data/ndbm.h-data: Likewise.
7645         * conform/data/net/if.h-data: Likewise.
7646         * conform/data/netdb.h-data: Likewise.
7647         * conform/data/netinet/in.h-data: Likewise.
7648         * conform/data/nl_types.h-data: Likewise.
7649         * conform/data/poll.h-data: Likewise.
7650         * conform/data/pthread.h-data: Likewise.
7651         * conform/data/pwd.h-data: Likewise.
7652         * conform/data/regex.h-data: Likewise.
7653         * conform/data/sched.h-data: Likewise.
7654         * conform/data/search.h-data: Likewise.
7655         * conform/data/semaphore.h-data: Likewise.
7656         * conform/data/setjmp.h-data: Likewise.
7657         * conform/data/signal.h-data: Likewise.
7658         * conform/data/spawn.h-data: Likewise.
7659         * conform/data/stdarg.h-data: Likewise.
7660         * conform/data/stdio.h-data: Likewise.
7661         * conform/data/stdlib.h-data: Likewise.
7662         * conform/data/string.h-data: Likewise.
7663         * conform/data/strings.h-data: Likewise.
7664         * conform/data/stropts.h-data: Likewise.
7665         * conform/data/sys/ipc.h-data: Likewise.
7666         * conform/data/sys/mman.h-data: Likewise.
7667         * conform/data/sys/msg.h-data: Likewise.
7668         * conform/data/sys/resource.h-data: Likewise.
7669         * conform/data/sys/select.h-data: Likewise.
7670         * conform/data/sys/sem.h-data: Likewise.
7671         * conform/data/sys/shm.h-data: Likewise.
7672         * conform/data/sys/socket.h-data: Likewise.
7673         * conform/data/sys/stat.h-data: Likewise.
7674         * conform/data/sys/statvfs.h-data: Likewise.
7675         * conform/data/sys/time.h-data: Likewise.
7676         * conform/data/sys/timeb.h-data: Likewise.
7677         * conform/data/sys/times.h-data: Likewise.
7678         * conform/data/sys/types.h-data: Likewise.
7679         * conform/data/sys/uio.h-data: Likewise.
7680         * conform/data/sys/un.h-data: Likewise.
7681         * conform/data/sys/utsname.h-data: Likewise.
7682         * conform/data/sys/wait.h-data: Likewise.
7683         * conform/data/syslog.h-data: Likewise.
7684         * conform/data/tar.h-data: Likewise.
7685         * conform/data/termios.h-data: Likewise.
7686         * conform/data/utime.h-data: Likewise.
7687         * conform/data/utmpx.h-data: Likewise.
7688         * conform/data/varargs.h-data: Likewise.
7689         * conform/data/wchar.h-data: Likewise.
7690         * conform/data/wctype.h-data: Likewise.
7691         * conform/data/wordexp.h-data: Likewise.
7692
7693         * include/stropts.h: New file.
7694         * include/uchar.h: New file.
7695         * include/aio.h: Changes to allow conformtest.pl to use the headers.
7696         * include/assert.h: Likewise.
7697         * include/ctype.h: Likewise.
7698         * include/dirent.h: Likewise.
7699         * include/dlfcn.h: Likewise.
7700         * include/fcntl.h: Likewise.
7701         * include/fnmatch.h: Likewise.
7702         * include/glob.h: Likewise.
7703         * include/grp.h: Likewise.
7704         * include/libio.h: Likewise.
7705         * include/locale.h: Likewise.
7706         * include/math.h: Likewise.
7707         * include/net/if.h: Likewise.
7708         * include/netdb.h: Likewise.
7709         * include/netinet/in.h: Likewise.
7710         * include/pthread.h: Likewise.
7711         * include/pwd.h: Likewise.
7712         * include/regex.h: Likewise.
7713         * include/sched.h: Likewise.
7714         * include/search.h: Likewise.
7715         * include/setjmp.h: Likewise.
7716         * include/signal.h: Likewise.
7717         * include/stdio.h: Likewise.
7718         * include/stdlib.h: Likewise.
7719         * include/string.h: Likewise.
7720         * include/sys/cdefs.h: Likewise.
7721         * include/sys/mman.h: Likewise.
7722         * include/sys/msg.h: Likewise.
7723         * include/sys/resource.h: Likewise.
7724         * include/sys/select.h: Likewise.
7725         * include/sys/socket.h: Likewise.
7726         * include/sys/stat.h: Likewise.
7727         * include/sys/statvfs.h: Likewise.
7728         * include/sys/time.h: Likewise.
7729         * include/sys/times.h: Likewise.
7730         * include/sys/uio.h: Likewise.
7731         * include/sys/utsname.h: Likewise.
7732         * include/sys/wait.h: Likewise.
7733         * include/termios.h: Likewise.
7734         * include/time.h: Likewise.
7735         * include/ulimit.h: Likewise.
7736         * include/unistd.h: Likewise.
7737         * include/utime.h: Likewise.
7738         * include/wchar.h: Likewise.
7739         * include/wctype.h: Likewise.
7740         * include/wordexp.h: Likewise.
7741
7742         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
7743
7744         * time/time.h: TIME_UTC must be a macro.
7745         Make timespec_get available for ISO C11 only as well.
7746
7747 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
7748
7749         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
7750         Reported by Peng Haitao <penght@cn.fujitsu.com>.
7751
7752 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
7753
7754         * configure.in: Use -o not -a in test for unsupported multi-arch.
7755
7756 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
7757
7758         * manual/texinfo.tex: Update to version 2012-01-19.16.
7759
7760 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
7761
7762         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
7763
7764 2012-02-24  Roland McGrath  <roland@hack.frob.com>
7765
7766         [BZ #13738]
7767         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
7768         * manual/fdl-1.3.texi: New file.
7769         * manual/fdl-1.1.texi: File removed.
7770
7771         [BZ #13738]
7772         * manual/libc.texinfo (FDL_VERSION): New @set.
7773         Use it for mention of FDL in cover text.
7774         (Documentation License): Use it in @include file name.
7775
7776 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
7777             Roland McGrath  <roland@hack.frob.com>
7778
7779         [BZ #5461]
7780         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
7781         not LONG_LONG_MAX and LONG_LONG_MIN.
7782         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
7783         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
7784         name.
7785         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
7786
7787 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
7788
7789         [BZ #2547]
7790         [BZ #11365]
7791         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
7792         manipulate bits before adding and subtracting TWO23[sx].
7793         * math/libm-test.inc (nearbyint_test): Add more tests.
7794
7795 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
7796
7797         [BZ #2548]
7798         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
7799         bits before adding and subtracting TWO23[sx].
7800         * math/libm-test.inc (rint_test): Add more tests.
7801         (rint_test_tonearest): Likewise.
7802         (rint_test_towardzero): Likewise.
7803         (rint_test_downward): Likewise.
7804         (rint_test_upward: Likewise.
7805
7806 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
7807
7808         [BZ #10110]
7809         * include/stdc-predef.h: New file.  Extracted from features.h.
7810         * include/features.h: Include stdc-predef.h.
7811         * Makefile (headers): Add stdc-predef.h.
7812         * CONFORMANCE (Compiler limitations): Update.
7813
7814 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
7815
7816         * manual/libc.texinfo (VERSION, UPDATED): Revert.
7817
7818 2012-02-21  David S. Miller  <davem@davemloft.net>
7819
7820         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
7821         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
7822
7823 2012-02-20  David S. Miller  <davem@davemloft.net>
7824
7825         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
7826         using a normal save/restore sequence, rather than allocating a
7827         dummy stack frame just to store a frame pointer and restore.
7828         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
7829
7830 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
7831
7832         * manual/install.texi: Fix stray word in line-wrapped comment.
7833
7834 2012-02-20  David S. Miller  <davem@davemloft.net>
7835
7836         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
7837         both binutils and gcc support GOTDATA.
7838
7839         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
7840         "rd %pc" in the PIC register setup sequences.
7841
7842         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
7843         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
7844         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
7845         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
7846         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7847         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
7848         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7849         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
7850         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
7851         (SYSCALL_ERROR_HANDLER): Likewise.
7852         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
7853         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
7854         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
7855         (SYSCALL_ERROR_HANDLER): Likewise.
7856
7857         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
7858         (HAVE_GCC_GOTDATA): New.
7859         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
7860         relocation support in both binutils and gcc.
7861         * sysdeps/sparc/elf/configure: Regenerate.
7862
7863         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
7864         * sysdeps/sparc/sparc32/elf/configure: Delete.
7865         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
7866         * sysdeps/sparc/sparc64/elf/configure: Delete.
7867         * sysdeps/sparc/elf/configure.in: New file.
7868         * sysdeps/sparc/elf/configure: Generate.
7869
7870         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
7871         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
7872         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
7873         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
7874         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
7875
7876 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
7877
7878         * manual/install.texi: Do not mention specific glibc version
7879         numbers.
7880         * manual/libc.texinfo (VERSION, UPDATED): Update.
7881         (@copying): Use @copyright{} and range of years.
7882
7883 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
7884
7885         [BZ #13695]
7886         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
7887         [crti.S not in sysdirs] (generated): Do not append.
7888         [crti.S not in sysdirs] (omit-deps): Likewise.
7889         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
7890         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
7891         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
7892         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
7893         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
7894         Likewise.
7895         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
7896         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
7897         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
7898         * csu/defs.awk: Remove file.
7899         * sysdeps/generic/initfini.c: Likewise.
7900         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
7901         variable.
7902         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
7903         Likewise.
7904
7905 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
7906
7907         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
7908         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
7909         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
7910         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
7911         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
7912         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
7913         <bits/epoll.h>.
7914         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
7915         (__EPOLL_PACKED): Define to empty if not defined by
7916         <bits/epoll.h>.
7917         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
7918         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7919         bits/epoll.h.
7920
7921 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
7922
7923         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
7924         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
7925         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
7926         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
7927         <bits/timerfd.h>.
7928         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
7929         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7930         bits/timerfd.h.
7931
7932 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
7933
7934         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
7935         in C locale.
7936         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7937         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
7938         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
7939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7940
7941 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
7942
7943         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7944         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
7945
7946 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
7947
7948         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
7949         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
7950         defined.
7951         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
7952         Likewise.
7953         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
7954         entry for 2.16.
7955
7956 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
7957
7958         * math/w_acos.c: Use non-signaling floating-point comparisons.
7959         * math/w_acosf.c: Likewise.
7960         * math/w_acosh.c: Likewise.
7961         * math/w_acoshf.c: Likewise.
7962         * math/w_acoshl.c: Likewise.
7963         * math/w_acosl.c: Likewise.
7964         * math/w_asin.c: Likewise.
7965         * math/w_asinf.c: Likewise.
7966         * math/w_asinl.c: Likewise.
7967         * math/w_atanh.c: Likewise.
7968         * math/w_atanhf.c: Likewise.
7969         * math/w_atanhl.c: Likewise.
7970         * math/w_exp2.c: Likewise.
7971         * math/w_exp2f.c: Likewise.
7972         * math/w_exp2l.c: Likewise.
7973         * math/w_j0.c: Likewise.
7974         * math/w_j0f.c: Likewise.
7975         * math/w_j0l.c: Likewise.
7976         * math/w_j1.c: Likewise.
7977         * math/w_j1f.c: Likewise.
7978         * math/w_j1l.c: Likewise.
7979         * math/w_jn.c: Likewise.
7980         * math/w_jnf.c: Likewise.
7981         * math/w_log.c: Likewise.
7982         * math/w_log10.c: Likewise.
7983         * math/w_log10f.c: Likewise.
7984         * math/w_log10l.c: Likewise.
7985         * math/w_log2.c: Likewise.
7986         * math/w_log2f.c: Likewise.
7987         * math/w_log2l.c: Likewise.
7988         * math/w_logf.c: Likewise.
7989         * math/w_logl.c: Likewise.
7990         * math/w_sqrt.c: Likewise.
7991         * math/w_sqrtf.c: Likewise.
7992         * math/w_sqrtl.c: Likewise.
7993         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
7994         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
7995         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7996         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
7997         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
7998
7999 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8000
8001         [BZ #9739]
8002         * manual/string.texi (strnlen): Use correct parameter name in
8003         equivalent expression.
8004
8005 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8006
8007         [BZ #11174]
8008         * manual/users.texi (seteuid): Consistently use neweuid for
8009         argument name.
8010
8011 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8012
8013         [BZ #13704]
8014         * manual/nss.texi (Services in the NSS configuration): Correct
8015         list of services in example configuration file.
8016
8017 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
8018
8019         [BZ #11322]
8020         * manual/arith.texi: Remove statements about negative zero
8021         behaving identically to zero.
8022
8023 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8024
8025         [BZ #5993]
8026         * manual/install.texi: Do not document upgrading from libc5.
8027
8028 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8029
8030         [BZ #4596]
8031         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
8032
8033 2012-02-18  David S. Miller  <davem@davemloft.net>
8034
8035         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
8036         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
8037         %o7 across the call.
8038         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
8039         instead.
8040         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
8041         SETUP_PIC_REG_LEAF.
8042         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8043         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
8044         * sysdeps/sparc/crtn.S: Likewise.
8045
8046 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
8047
8048         * aout/Makefile: Remove.
8049
8050 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
8051
8052         [BZ #13058]
8053         * manual/examples/argp-ex1.c (main): Format definition in GNU
8054         style.
8055         * manual/examples/argp-ex2.c (main): Likewise.
8056         * manual/examples/argp-ex3.c (main): Likewise.
8057         * manual/examples/argp-ex4.c (main): Likewise.
8058         * manual/examples/longopt.c (main): Use new-style prototype
8059         definition.
8060         * manual/examples/strncat.c (main): Specify return type and use
8061         (void) for arguments.
8062         * manual/examples/subopt.c (main): Use char **argv argument.
8063
8064 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8065
8066         [BZ #5077]
8067         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
8068         rounding modes.
8069
8070 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
8071
8072         [BZ #6907]
8073         * manual/string.texi (strchr): Change when strchrnul is
8074         recommended.
8075
8076 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
8077
8078         [BZ #174]
8079         * manual/locale.texi (setlocale): Document LOCPATH.
8080
8081 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8082
8083         [BZ #10210]
8084         * manual/process.texi (execle): Move @dots{} before last argument.
8085
8086 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
8087
8088         [BZ #12047]
8089         * manual/charset.texi (Generic Charset Conversion): Fix typo
8090         (LC_TYPE -> LC_CTYPE).
8091
8092 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
8093
8094         [BZ #5805]
8095         * manual/arith.texi (scalbn): Use @var{} on parameter names.
8096         (scalbnf): Likewise.
8097         (scalbnl): Likewise.
8098         (scalbln): Likewise.
8099         (scalblnf): Likewise.
8100         (scalblnl): Likewise.
8101         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
8102         (vwarnx): Likewise.
8103         (verr): Likewise.
8104         (verrx): Likewise.
8105         * manual/filesys.texi (telldir): Use braces around return type.
8106         * manual/llio.texi (mmap): Add space after comma.
8107         (mmap64): Likewise.
8108         * manual/math.texi (jn): Use @var{} on parameter names.
8109         (jnf): Likewise.
8110         (jnl): Likewise.
8111         (yn): Likewise.
8112         (ynf): Likewise.
8113         (ynl): Likewise.
8114         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
8115         line.
8116         * manual/resource.texi (ulimit): Use @dots{} instead of literal
8117         "...".
8118         (sched_get_priority_min): Remove semicolon on @deftypefun line.
8119         (sched_get_priority_max): Likewise.
8120         * manual/signal.texi (sigvec): Add space after comma.
8121         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
8122         names.
8123         (if_indextoname): Likewise.
8124         (if_freenameindex): Likewise.
8125         (sendto): Use ',' instead of '.' in prototype.
8126         * manual/startup.texi (syscall): Use @dots{} instead of literal
8127         "...".
8128         * manual/stdio.texi (__fpending): Separate initial words of
8129         paragraph from @deftypefun line.
8130         * manual/syslog.texi (syslog): Use @dots{} instead of literal
8131         "...".
8132         (vsyslog): Use @var{} on parameter names.
8133         * manual/terminal.texi (stty): Use @var{} on parameter names.
8134         * manual/users.texi (getutmp): Use @var{} on parameter names.
8135         (getutmpx): Likewise.
8136
8137 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8138
8139         [BZ #6884]
8140         * manual/stdio.texi (fopen): Fix typos in description of
8141         ",ccs=STRING".
8142
8143 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
8144
8145         [BZ #4026]
8146         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
8147         get clock_id definition.
8148
8149 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
8150
8151         [BZ #4822]
8152         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
8153         (madvise): Cast every argument to void on its own.
8154
8155 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8156
8157         [BZ #9902]
8158         * manual/startup.texi (Exit Status): Fix typo.
8159
8160 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8161
8162         [BZ #10140]
8163         * manual/examples/argp-ex1.c: Include <stdlib.h>.
8164         * manual/examples/argp-ex2.c: Likewise.
8165         * manual/examples/argp-ex3.c: Likewise.
8166
8167 2012-02-16  Richard Henderson  <rth@redhat.com>
8168
8169         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
8170         * sysdeps/s390/s390-32/initfini.c: Remove.
8171         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
8172         * sysdeps/s390/s390-64/initfini.c: Remove.
8173
8174 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8175
8176         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
8177         compiler output for sysdeps/generic/initfini.c.
8178         * sysdeps/sh/elf/initfini.c: Remove file.
8179
8180 2012-02-16  David S. Miller  <davem@davemloft.net>
8181
8182         [BZ #11494]
8183         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
8184
8185         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
8186         * sysdeps/sparc/crti.S: New file.
8187         * sysdeps/sparc/crtn.S: New file.
8188         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
8189         * sysdeps/sparc/sparc64/Makefile: Likewise.
8190
8191 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
8192
8193         [BZ #3335]
8194         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
8195
8196 2012-02-15  Roland McGrath  <roland@hack.frob.com>
8197
8198         [BZ #4822]
8199         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
8200
8201         * mach/devstream.c (cookie_io_functions_t): Macro removed.
8202         (write, read, close): Likewise.
8203         Patch by Aurelien Jarno <aurelien@aurel32.net>.
8204
8205 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
8206
8207         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
8208         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
8209         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
8210         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
8211         <bits/signalfd.h>.
8212         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
8213         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8214         bits/signalfd.h.
8215
8216 2012-02-14  Marek Polacek  <polacek@redhat.com>
8217
8218         * sysdeps/x86_64/crti.S: New file.
8219         * sysdeps/x86_64/crtn.S: New file.
8220         * sysdeps/x86_64/elf/initfini.c: Remove file.
8221
8222 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
8223
8224         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
8225         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
8226         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
8227         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
8228         <bits/inotify.h>.
8229         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
8230         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8231         bits/inotify.h.
8232
8233 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
8234
8235         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
8236         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
8237         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
8238         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
8239         <bits/eventfd.h>.
8240         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
8241         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8242         bits/eventfd.h.
8243
8244 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
8245
8246         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
8247         __feraiseexcept instead of feraiseexcept.
8248
8249         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
8250         nanosleep invocations.
8251         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
8252         strings, and add error checking for a nanosleep invocations.
8253
8254 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8255
8256         Replace FSF snail mail address with URLs, as per GNU coding standards.
8257         Most of the snail mail addresses were wrong anyway, and omitting
8258         them makes the source code easier to maintain.  Almost all of the
8259         changes are to license notices and to locale LC_IDENTIFICATION
8260         addresses, except for this one:
8261         * manual/libc.texinfo: In "Published by", give the FSF's URL,
8262         not its snail mail address.
8263
8264 2012-02-09  Richard Henderson  <rth@twiddle.net>
8265
8266         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
8267         of kernel-features.h.
8268
8269         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
8270
8271 2012-02-08  Marek Polacek  <polacek@redhat.com>
8272
8273         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
8274         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
8275         * sysdeps/gnu/_G_config.h: Likewise.
8276         * sysdeps/generic/_G_config.h: Likewise.
8277
8278 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
8279
8280         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
8281         tests.
8282         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8283
8284         * sysdeps/powerpc/powerpc32/crti.S: New file.
8285         * sysdeps/powerpc/powerpc32/crtn.S: New file.
8286         * sysdeps/powerpc/powerpc64/crti.S: New file.
8287         * sysdeps/powerpc/powerpc64/crtn.S: New file.
8288
8289         * Makeconfig (have-initfini): Don't set.
8290         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
8291         * configure.in (nopic_initfini): Don't substitute.
8292         * config.h.in (HAVE_INITFINI): Don't #undef.
8293         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
8294         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
8295
8296 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
8297
8298         Support crti.S and crtn.S provided directly by architectures.
8299         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
8300         [crti.S in sysdirs] (omit-deps): Likewise.
8301         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
8302         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
8303         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
8304         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
8305         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
8306         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
8307         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
8308         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
8309         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
8310         compiler output for sysdeps/generic/initfini.c.
8311         * sysdeps/i386/elf/Makefile: Remove file.
8312         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
8313
8314 2012-02-07  Marek Polacek  <polacek@redhat.com>
8315
8316         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
8317         * sysdeps/gnu/_G_config.h: Likewise.
8318         * sysdeps/mach/hurd/_G_config.h: Likewise.
8319
8320 2012-02-07  Marek Polacek  <polacek@redhat.com>
8321
8322         * math/Makefile (tests): Add tst-CMPLX2.
8323         * math/tst-CMPLX2.c: New file.
8324
8325 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
8326
8327         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8328
8329         * math/libm-test.inc (jn_test): Add missing L suffix.
8330
8331 2012-02-06  Marek Polacek  <polacek@redhat.com>
8332
8333         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
8334         * sysdeps/i386/fpu/e_powf.S: Likewise.
8335         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
8336         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8337         * sysdeps/i386/fpu/e_acosh.S: Likewise.
8338         * sysdeps/i386/fpu/e_pow.S: Likewise.
8339         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
8340         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
8341         * sysdeps/i386/fpu/s_expm1.S: Likewise.
8342         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
8343         * sysdeps/i386/fpu/e_log2.S: Likewise.
8344         * sysdeps/i386/fpu/e_log2l.S: Likewise.
8345         * sysdeps/i386/fpu/e_scalb.S: Likewise.
8346         * sysdeps/i386/fpu/e_powl.S: Likewise.
8347         * sysdeps/i386/fpu/s_log1p.S: Likewise.
8348         * sysdeps/i386/fpu/e_log10f.S: Likewise.
8349         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
8350         * sysdeps/i386/fpu/e_logl.S: Likewise.
8351         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
8352         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
8353         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
8354         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
8355         * sysdeps/i386/fpu/e_log2f.S: Likewise.
8356         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
8357         * sysdeps/i386/fpu/e_log.S: Likewise.
8358         * sysdeps/i386/fpu/s_cexp.S: Likewise.
8359         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
8360         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
8361         * sysdeps/i386/fpu/e_logf.S: Likewise.
8362         * sysdeps/i386/fpu/e_log10l.S: Likewise.
8363         * sysdeps/i386/fpu/e_atanh.S: Likewise.
8364         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
8365         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
8366         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8367         * sysdeps/i386/fpu/e_log10.S: Likewise.
8368         * sysdeps/i386/fpu/s_frexp.S: Likewise.
8369         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
8370         * sysdeps/i386/fpu/s_asinh.S: Likewise.
8371         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
8372         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
8373         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
8374         * sysdeps/i386/asm-syntax.h: Likewise.
8375         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8376         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8377         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8378         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
8379         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
8380         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8381         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
8382         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
8383         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8384         * sysdeps/powerpc/sysdep.h: Likewise.
8385         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
8386         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8387
8388 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
8389
8390         [BZ #411]
8391         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
8392
8393 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
8394
8395         * sysdeps/i386/sysdep.h: Include <features.h>.
8396         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
8397         version.
8398
8399 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
8400
8401         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
8402         Define.
8403         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
8404         LOAD_PIC_REG_STR.
8405
8406 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
8407
8408         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
8409         (SETUP_PIC_REG): Use GET_PC_THUNK.
8410         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
8411         macro.
8412
8413 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
8414
8415         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
8416         for non-PIC compilation.
8417         (SETUP_PIC_REG): Add .p2align directive.
8418         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
8419         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
8420         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8421         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8422         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
8423         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8424         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
8425         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
8426         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8427         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8428         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8429         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8430         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8431         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8432         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8433         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
8434         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
8435         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8436         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8437         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8438         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8439         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
8440         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8441         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
8442         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
8443         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
8444         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8445         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
8446         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8447         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8448         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8449         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8450         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8451         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8452         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8453         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8454         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8455         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8456         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8457         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8458         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8459
8460 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
8461
8462         * math/tst-CMPLX.c: Include <stdio.h>.
8463
8464 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
8465
8466         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
8467         float.
8468         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
8469         * sysdeps/sparc/bits/mathdef.h: Likewise.
8470
8471 2012-01-31  Marek Polacek  <polacek@redhat.com>
8472
8473         * libio/libio.h: Don't define _PARAMS.
8474         * locale/programs/config.h: Don't define PARAMS.
8475         * stdlib/strtol_l.c: Likewise.
8476         (__strtol_l): Remove PARAMS from the prototype.
8477
8478 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
8479
8480         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
8481         names.  Just use the correct names.  Remove unnecessary wrapper
8482         functions.
8483         * malloc/arena.c: Likewise.
8484         * malloc/hooks.c: Likewise.
8485
8486         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
8487         ARENA_TEST says not to.  Simplify test for creation of a new arena.
8488         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
8489
8490 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
8491
8492         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
8493         into tail calls.
8494         (update_get_addr): New function.
8495         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
8496         GET_ADDR_MODULE parameter.
8497
8498 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
8499
8500         * crypt/cert.c: Remove __STDC__ conditionals.
8501         * crypt/crypt-entry.c: Likewise.
8502         * crypt/crypt_util.c: Likewise.
8503         * libio/filedoalloc.c: Likewise.
8504         * libio/fileops.c: Likewise.
8505         * libio/genops.c: Likewise.
8506         * libio/iofclose.c: Likewise.
8507         * libio/iofdopen.c: Likewise.
8508         * libio/iofopen.c: Likewise.
8509         * libio/iofopen64.c: Likewise.
8510         * libio/iogetdelim.c: Likewise.
8511         * libio/iopopen.c: Likewise.
8512         * libio/obprintf.c: Likewise.
8513         * libio/oldfileops.c: Likewise.
8514         * libio/oldiofclose.c: Likewise.
8515         * libio/oldiofdopen.c: Likewise.
8516         * libio/oldiofopen.c: Likewise.
8517         * libio/oldiopopen.c: Likewise.
8518         * libio/wfiledoalloc.c: Likewise.
8519         * libio/wgenops.c: Likewise.
8520         * locale/programs/xmalloc.c: Likewise.
8521         * misc/syslog.c: Likewise.
8522         * stdio-common/xbug.c: Likewise.
8523         * string/memchr.c: Likewise.
8524         * string/memcmp.c: Likewise.
8525         * string/memrchr.c: Likewise.
8526         * string/rawmemchr.c: Likewise.
8527         * sysdeps/posix/getcwd.c: Likewise.
8528         * time/strftime_l.c: Likewise.
8529
8530 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
8531
8532         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
8533         * config.make.in (config-cflags-sse2avx): Define.
8534         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
8535         Fix typo.
8536
8537 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
8538
8539         * scripts/config.guess: Update from upstream config git repository.
8540         * scripts/config.sub: Likewise.
8541
8542 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
8543
8544         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
8545         (EM_NUM): Update.
8546         (R_TILEPRO_*, R_TILEGX_*): New macros.
8547
8548         * scripts/firstversions.awk: Fix bug in version range handling.
8549
8550         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
8551
8552         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
8553
8554         * include/sys/epoll.h: New file.
8555         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
8556         libc_hidden_def.
8557
8558 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
8559
8560         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
8561         Avoid unnecessary __WORDSIZE == 64 test.
8562         (fmaxf): Use VEX format if possible.
8563         (fmax): Likewise.
8564         (fminf): Likewise.
8565         (fmin): Likewise.
8566
8567         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
8568         * math/math_private.h: Remove libc_fegetround* and
8569         libc_fesetround*.
8570         * sysdeps/i386/configure.in: Check for -msse2avx.
8571         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
8572         also if SSE2AVX is defined.
8573         Remove libc_fegetround* and libc_fesetround*.
8574         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
8575         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
8576         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
8577         of HAS_YMM_USABLE.
8578         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8579         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8580         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8581         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8582         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8583
8584         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
8585
8586 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8587
8588         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
8589         size is not set.
8590         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
8591
8592 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
8593
8594         [BZ #13618]
8595         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
8596         relocation.
8597         * Makeconfig (libm): Define.
8598         * elf/Makefile: Add rules to build and run tst-relsort1.
8599         * elf/tst-relsort1.c: New file.
8600         * elf/tst-relsort1mod1.c: New file.
8601         * elf/tst-relsort1mod2.c: New file.
8602
8603 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
8604
8605         * math/s_ldexp.c: Remove __STDC__ conditionals.
8606         * math/s_ldexpf.c: Likewise.
8607         * math/s_ldexpl.c: Likewise.
8608         * math/s_nextafter.c: Likewise.
8609         * math/s_nexttowardf.c: Likewise.
8610         * math/s_significand.c: Likewise.
8611         * math/s_significandf.c: Likewise.
8612         * math/s_significandl.c: Likewise.
8613         * math/w_jnl.c: Likewise.
8614         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
8615         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
8616         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8617         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8618         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8619         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8620         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
8621         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8622         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8623         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
8624         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
8625         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8626         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
8627         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
8628         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
8629         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
8630         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8631         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8632         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8633         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8634         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8635         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8636         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8637         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8638         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8639         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8640         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8641         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8642         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
8643         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8644         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8645         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
8646         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8647         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
8648         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
8649         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8650         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8651         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
8652         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
8653         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8654         * sysdeps/ieee754/k_standard.c: Likewise.
8655         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8656         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8657         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8658         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8659         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8660         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
8661         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8662         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
8663         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
8664         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8665         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
8666         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
8667         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
8668         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
8669         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
8670         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8671         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8672         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8673         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8674         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8675         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
8676         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
8677         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
8678         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
8679         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
8680         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
8681         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8682         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8683         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8684         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
8685         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
8686         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
8687         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8688         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
8689         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
8690         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
8691         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8692         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
8693         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
8694         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8695         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8696         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
8697         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8698         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8699         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
8700         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
8701         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
8702         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8703         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
8704         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8705         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8706         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
8707         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
8708         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
8709         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
8710         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
8711         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8712         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8713         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8714         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8715         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
8716         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8717         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
8718         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8719         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
8720         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
8721         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
8722         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
8723         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
8724         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
8725         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
8726         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
8727         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
8728         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
8729         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
8730         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
8731         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
8732         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
8733         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
8734         * sysdeps/ieee754/s_matherr.c: Likewise.
8735         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
8736         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
8737         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
8738         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
8739
8740 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
8741
8742         * crypt/md5.h: Remove __STDC__ conditionals.
8743         * libio/libioP.h: Likewise.
8744         * locale/programs/config.h: Likewise.
8745         * sysdeps/generic/sysdep.h: Likewise.
8746         * sysdeps/i386/asm-syntax.h: Likewise.
8747         * sysdeps/s390/asm-syntax.h: Likewise.
8748         * sysdeps/unix/sysdep.h: Likewise.
8749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
8750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
8751
8752 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
8753
8754         * libio/libio.h: Remove __STDC__ conditionals.
8755         * malloc/obstack.h: Likewise.
8756         * math/complex.h: Likewise.
8757         * math/math.h: Likewise.
8758         * sysdeps/generic/_G_config.h: Likewise.
8759         * sysdeps/gnu/_G_config.h: Likewise.
8760         * sysdeps/mach/hurd/_G_config.h: Likewise.
8761         * sysdeps/powerpc/bits/mathdef.h: Likewise.
8762         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
8763         * sysdeps/sparc/bits/mathdef.h: Likewise.
8764
8765 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
8766
8767         [BZ #13583]
8768         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
8769         Clean up HAS_* macros.
8770         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
8771         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
8772         possible.
8773         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
8774         HAS_AVX.
8775         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8776         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8777         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8778         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8779         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8780
8781 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
8782
8783         * elf/tst-unique3.cc (gets): Remove declaration.
8784         * elf/tst-unique3lib.cc (gets): Likewise.
8785         * elf/tst-unique3lib2.cc (gets): Likewise.
8786         * elf/tst-unique4.cc (gets): Likewise.
8787
8788 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
8789
8790         * include/stdio.h: Add C++ protection.  Add gets declarations and
8791         definitions.
8792         * debug/tst-chk1.c: Don't declare gets here.
8793         * stdio-common/tst-gets.c: Likewise.
8794
8795 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
8796
8797         * posix/glob: Remove directory.
8798
8799 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
8800
8801         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
8802
8803 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
8804
8805         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
8806         of the non-standard EPFNOSUPPORT.
8807
8808 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8809
8810         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
8811         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
8812         ANYWHERE set to 1 only on KERN_NO_SPACE error.
8813
8814 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
8815
8816         * wcsmbs/uchar.h: Test __STDC_VERSION__.
8817
8818 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
8819
8820         * nscd/aicache.c (addhstaiX): Do not cache negative results of
8821         transient errors.
8822         * nscd/grpcache.c (cache_addgr): Likewise.
8823         * nscd/hstcache.c (cache_addhst): Likewise.
8824         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8825         * nscd/pwdcache.c (cache_addpw): Likewise.
8826         * nscd/servicescache.c (cache_addserv): Likewise.
8827
8828 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
8829
8830         * malloc/malloc.c: Various cleanups.
8831         * malloc/hooks.c: Likewise.
8832
8833         * stdlib/Makefile (tests): Add bug-fmtmsg1.
8834         * stdlib/bug-fmtmsg1.c: New file.
8835
8836         * stdlib/fmtmsg.c (init): Add missing unlock.
8837         Patch by Peng Haitao <penght@cn.fujitsu.com>.
8838
8839 2012-01-12  Marek Polacek  <polacek@redhat.com>
8840
8841         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
8842         and _GNU_SOURCE.
8843
8844 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
8845
8846         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
8847         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
8848         macro to ensure uniqueness of label name.
8849         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
8850         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
8851
8852 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
8853
8854         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
8855
8856         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
8857         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
8858         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
8859         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
8860
8861 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
8862
8863         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
8864
8865         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
8866         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
8867         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
8868
8869         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
8870
8871         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
8872         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
8873         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
8874         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
8875
8876         * math/bits/math-finite.h: Add ldexp support.
8877
8878 2012-01-10  Marek Polacek  <polacek@redhat.com>
8879
8880         * locale/programs/localedef.h (show_archive_content): Add noreturn
8881         attribute.
8882
8883 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
8884
8885         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
8886
8887 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
8888
8889         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
8890
8891         * io/Makefile (headers): Add bits/poll2.h.
8892
8893 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
8894
8895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
8896         typo #include statement.
8897
8898 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
8899
8900         * include/sys/cdefs.h: Define __attribute_alloc_size.
8901         * catgets/gencat.c: Add alloc_size attribute and apply consistently
8902         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
8903         * elf/pldd.c: Likewise.
8904         * iconv/iconv_charmap.c: Likewise.
8905         * iconv/iconvconfig.c: Likewise.
8906         * iconv/strtab.c: Likewise.
8907         * locale/programs/locale.c: Likewise.
8908         * locale/programs/localedef.h: Likewise.
8909         * locale/programs/simple-hash.c: Likewise.
8910         * nscd/nscd.h: Likewise.
8911         * nss/makedb.c: Likewise.
8912         * sysdeps/generic/ldconfig.h: Likewise.
8913         * locale/programs/localedef.c: Remove xmalloc prototype.
8914         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
8915
8916 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
8917
8918         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
8919         appropriate.
8920
8921 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
8922
8923         * math/Makefile (tests): Add tst-CMPLX.
8924         * math/tst-CMPLX.c: New file.
8925
8926         * math/complex.h (CMPLXL): Fix typo.
8927
8928         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
8929         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
8930         GLIBC_2.16.
8931         * debug/tst-chk1.c: Add poll and ppoll tests.
8932         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
8933         * include/sys/poll.h: Add hidden proto for ppoll.
8934         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
8935         * sysdeps/mach/hurd/ppoll.c: Likewise.
8936         * io/ppoll.c: Likewise.
8937         * debug/poll_chk.c: New file.
8938         * debug/ppoll_chk.c: New file.
8939         * include/bits/poll2.h: New file.
8940         * io/bits/poll2.h: New file.
8941
8942         [BZ #1350]
8943         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
8944
8945         * configure.in: static is always set to yes.  Remove.
8946         * config.make.in: Don't set build-static.
8947         * Makeconfig: Remove use of build-static.
8948         * dlfcn/Makefile: Likewise.
8949         * elf/Makefile: Likewise.
8950         * math/Makefile: Likewise.
8951         * misc/Makefile: Likewise.
8952         * nptl/Makefile: Likewise.
8953         * sysdeps/mach/hurd/Makefile: Likewise.
8954
8955         * configure.in: PWD_P is not used anymore.
8956         * config.make.in: Remove PWD_P entry.
8957
8958         * configure.in: Remove last remnants of RANLIB.
8959         No need to check for signed size_t anymore.
8960         Don't set libc_commonpagesize and libc_relro_required here for Alpha
8961         and IA-64.
8962         Remove __builtin_expect test because we require at least gcc 3.4.
8963         * aclocal.m4: Likewise.
8964
8965         * wcsmbs/mbrtoc16.c: Implement using towc function.
8966         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
8967         * wcsmbs/wcsmbsload.c: Likewise.
8968         * iconv/gconv_simple.c: Likewise.
8969         * iconv/gconv_int.h: Likewise.
8970         * iconv/gconv_builtin.h: Likewise.
8971         * iconv/iconv_prog.c: Remove CHAR16 handling.
8972
8973         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
8974
8975         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
8976
8977         * configure.in: Remove --with-elf and --enable-bounded options.
8978         Dont set base_machine for ia64.  More non-ELF conditions removed.
8979         Remove testing and setting of leading underscore information.
8980         * config.make.in (build-bounded): Set to no.
8981         * config.h.in: Remove NO_UNDERSCORES entry.
8982         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
8983         them.
8984         * csu/start.c: Remove !NO_UNDERSCORE code.
8985         * locale/localeinfo.h: Likewise.
8986         * sysdeps/generic/machine-gmon.h: Likewise.
8987         * sysdeps/generic/sysdep.h: Likewise.
8988         * sysdeps/i386/sysdep.h: Likewise.
8989         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
8990         * sysdeps/mach/sysdep.h: Likewise.
8991         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8992         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8993         * sysdeps/sh/sysdep.h: Likewise.
8994         * sysdeps/sparc/sparc32/alloca.S: Likewise.
8995         * sysdeps/unix/i386/sysdep.S: Likewise.
8996         * sysdeps/unix/sparc/start.c: Likewise.
8997         * sysdeps/unix/sparc/sysdep.S: Likewise.
8998         * sysdeps/unix/sparc/sysdep.h: Likewise.
8999         * sysdeps/unix/start.c: Likewise.
9000         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9001         * sysdeps/x86_64/sysdep.h: Likewise.
9002
9003 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
9004
9005         [BZ #13553]
9006         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
9007         for non-gcc.
9008         * argp/argp-fmtstream.h: Use const instead __const.
9009         * argp/argp.h: Likewise.
9010         * assert/assert.h: Likewise.
9011         * bits/fenv.h: Likewise.
9012         * bits/sched.h: Likewise.
9013         * bits/sigset.h: Likewise.
9014         * bits/sigthread.h: Likewise.
9015         * catgets/nl_types.h: Likewise.
9016         * conform/data/pthread.h-data: Likewise.
9017         * crypt/crypt-private.h: Likewise.
9018         * crypt/crypt.h: Likewise.
9019         * crypt/crypt_util.c: Likewise.
9020         * ctype/ctype.h: Likewise.
9021         * debug/execinfo.h: Likewise.
9022         * debug/mbsnrtowcs_chk.c: Likewise.
9023         * debug/mbsrtowcs_chk.c: Likewise.
9024         * debug/wcsnrtombs_chk.c: Likewise.
9025         * debug/wcsrtombs_chk.c: Likewise.
9026         * debug/wcstombs_chk.c: Likewise.
9027         * dirent/dirent.h: Likewise.
9028         * dlfcn/dlfcn.h: Likewise.
9029         * elf/neededtest4.c: Likewise.
9030         * grp/grp.h: Likewise.
9031         * gshadow/gshadow.h: Likewise.
9032         * iconv/gconv.h: Likewise.
9033         * iconv/gconv_int.h: Likewise.
9034         * iconv/gconv_simple.c: Likewise.
9035         * iconv/iconv.h: Likewise.
9036         * iconv/loop.c: Likewise.
9037         * iconv/skeleton.c: Likewise.
9038         * include/aio.h: Likewise.
9039         * include/aliases.h: Likewise.
9040         * include/argz.h: Likewise.
9041         * include/arpa/inet.h: Likewise.
9042         * include/assert.h: Likewise.
9043         * include/dirent.h: Likewise.
9044         * include/dlfcn.h: Likewise.
9045         * include/execinfo.h: Likewise.
9046         * include/fcntl.h: Likewise.
9047         * include/fenv.h: Likewise.
9048         * include/glob.h: Likewise.
9049         * include/grp.h: Likewise.
9050         * include/libintl.h: Likewise.
9051         * include/mntent.h: Likewise.
9052         * include/netdb.h: Likewise.
9053         * include/pwd.h: Likewise.
9054         * include/rpc/netdb.h: Likewise.
9055         * include/sched.h: Likewise.
9056         * include/search.h: Likewise.
9057         * include/shadow.h: Likewise.
9058         * include/signal.h: Likewise.
9059         * include/stdio.h: Likewise.
9060         * include/stdlib.h: Likewise.
9061         * include/string.h: Likewise.
9062         * include/sys/socket.h: Likewise.
9063         * include/sys/stat.h: Likewise.
9064         * include/sys/statfs.h: Likewise.
9065         * include/sys/statvfs.h: Likewise.
9066         * include/sys/syslog.h: Likewise.
9067         * include/sys/time.h: Likewise.
9068         * include/sys/uio.h: Likewise.
9069         * include/time.h: Likewise.
9070         * include/unistd.h: Likewise.
9071         * include/utmp.h: Likewise.
9072         * include/wchar.h: Likewise.
9073         * include/wctype.h: Likewise.
9074         * inet/aliases.h: Likewise.
9075         * inet/arpa/inet.h: Likewise.
9076         * inet/netinet/ether.h: Likewise.
9077         * inet/netinet/in.h: Likewise.
9078         * intl/libintl.h: Likewise.
9079         * io/bits/fcntl2.h: Likewise.
9080         * io/fcntl.h: Likewise.
9081         * io/ftw.h: Likewise.
9082         * io/sys/poll.h: Likewise.
9083         * io/sys/stat.h: Likewise.
9084         * io/sys/statfs.h: Likewise.
9085         * io/sys/statvfs.h: Likewise.
9086         * io/utime.h: Likewise.
9087         * libio/bits/stdio.h: Likewise.
9088         * libio/bits/stdio2.h: Likewise.
9089         * libio/libio.h: Likewise.
9090         * libio/libioP.h: Likewise.
9091         * libio/stdio.h: Likewise.
9092         * locale/lc-ctype.c: Likewise.
9093         * locale/locale.h: Likewise.
9094         * login/utmp.h: Likewise.
9095         * malloc/arena.c: Likewise.
9096         * malloc/malloc.c: Likewise.
9097         * malloc/malloc.h: Likewise.
9098         * malloc/mcheck.c: Likewise.
9099         * malloc/mtrace.c: Likewise.
9100         * math/bits/mathcalls.h: Likewise.
9101         * math/fenv.h: Likewise.
9102         * math/math_private.h: Likewise.
9103         * misc/bits/error.h: Likewise.
9104         * misc/bits/syslog.h: Likewise.
9105         * misc/err.h: Likewise.
9106         * misc/error.h: Likewise.
9107         * misc/fstab.h: Likewise.
9108         * misc/mntent.h: Likewise.
9109         * misc/regexp.h: Likewise.
9110         * misc/search.h: Likewise.
9111         * misc/sgtty.h: Likewise.
9112         * misc/sys/mman.h: Likewise.
9113         * misc/sys/syslog.h: Likewise.
9114         * misc/sys/uio.h: Likewise.
9115         * misc/sys/xattr.h: Likewise.
9116         * misc/ttyent.h: Likewise.
9117         * nis/rpcsvc/ypclnt.h: Likewise.
9118         * nss/nss.h: Likewise.
9119         * posix/bits/unistd.h: Likewise.
9120         * posix/fnmatch.h: Likewise.
9121         * posix/glob.h: Likewise.
9122         * posix/sched.h: Likewise.
9123         * posix/spawn.h: Likewise.
9124         * posix/sys/wait.h: Likewise.
9125         * posix/unistd.h: Likewise.
9126         * posix/wordexp.h: Likewise.
9127         * pwd/pwd.h: Likewise.
9128         * resolv/netdb.h: Likewise.
9129         * resource/sys/resource.h: Likewise.
9130         * rt/aio.h: Likewise.
9131         * rt/bits/mqueue2.h: Likewise.
9132         * rt/mqueue.h: Likewise.
9133         * shadow/shadow.h: Likewise.
9134         * signal/signal.h: Likewise.
9135         * socket/send.c: Likewise.
9136         * socket/sendto.c: Likewise.
9137         * socket/sys/socket.h: Likewise.
9138         * stdio-common/printf.h: Likewise.
9139         * stdlib/bits/stdlib.h: Likewise.
9140         * stdlib/fmtmsg.h: Likewise.
9141         * stdlib/monetary.h: Likewise.
9142         * stdlib/stdlib.h: Likewise.
9143         * stdlib/ucontext.h: Likewise.
9144         * streams/stropts.h: Likewise.
9145         * string/argz.h: Likewise.
9146         * string/bits/string2.h: Likewise.
9147         * string/string.h: Likewise.
9148         * string/strings.h: Likewise.
9149         * sunrpc/rpc/auth.h: Likewise.
9150         * sunrpc/rpc/auth_des.h: Likewise.
9151         * sunrpc/rpc/clnt.h: Likewise.
9152         * sunrpc/rpc/netdb.h: Likewise.
9153         * sunrpc/rpc/pmap_clnt.h: Likewise.
9154         * sunrpc/rpc/xdr.h: Likewise.
9155         * sysdeps/generic/inttypes.h: Likewise.
9156         * sysdeps/generic/net/if.h: Likewise.
9157         * sysdeps/generic/sys/swap.h: Likewise.
9158         * sysdeps/gnu/net/if.h: Likewise.
9159         * sysdeps/gnu/utmpx.h: Likewise.
9160         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
9161         * sysdeps/i386/i486/bits/string.h: Likewise.
9162         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
9163         * sysdeps/s390/bits/string.h: Likewise.
9164         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
9165         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
9166         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9167         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
9168         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9169         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9170         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9171         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
9172         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
9173         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
9174         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
9175         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9176         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
9177         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9178         * sysdeps/unix/sysv/linux/readv.c: Likewise.
9179         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
9180         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
9181         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9182         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
9183         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
9184         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
9185         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
9186         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
9187         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
9188         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
9189         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
9190         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
9191         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9192         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
9193         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
9194         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
9195         * sysvipc/sys/ipc.h: Likewise.
9196         * sysvipc/sys/msg.h: Likewise.
9197         * sysvipc/sys/sem.h: Likewise.
9198         * sysvipc/sys/shm.h: Likewise.
9199         * termios/termios.h: Likewise.
9200         * time/sys/time.h: Likewise.
9201         * time/time.h: Likewise.
9202         * wcsmbs/bits/wchar2.h: Likewise.
9203         * wcsmbs/uchar.h: Likewise.
9204         * wcsmbs/wchar.h: Likewise.
9205         * wctype/wctype.h: Likewise.
9206
9207         [BZ #13551]
9208         * Makeconfig: Remove all but ELF support including AIX support.
9209         * Makerules: Likewise.
9210         * config.h.in: Likewise.
9211         * config.make.in: Likewise.
9212         * configure: Likewise.
9213         * configure.in: Likewise.
9214         * csu/Makefile: Likewise.
9215         * csu/version.c: Likewise.
9216         * debug/Makefile: Likewise.
9217         * dlfcn/Makefile: Likewise.
9218         * elf/Makefile: Likewise.
9219         * extra-lib.mk: Likewise.
9220         * iconv/Makefile: Likewise.
9221         * include/libc-symbols.h: Likewise.
9222         * include/shlib-compat.h: Likewise.
9223         * resolv/Makefile: Likewise.
9224         * resolv/res_libc.c: Likewise.
9225         * rt/Makefile: Likewise.
9226         * sysdeps/i386/asm-syntax.h: Likewise.
9227         * sysdeps/i386/sysdep.h: Likewise.
9228         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
9229         * sysdeps/mach/sysdep.h: Likewise.
9230         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
9231         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
9232         * sysdeps/s390/asm-syntax.h: Likewise.
9233         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9234         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9235         * sysdeps/sh/sysdep.h: Likewise.
9236         * sysdeps/unix/sparc/sysdep.h: Likewise.
9237         * sysdeps/wordsize-32/divdi3.c: Likewise.
9238         * sysdeps/x86_64/sysdep.h: Likewise.
9239
9240         * argp/Versions: Remove _argp_unlock_xxx.
9241
9242         [BZ #13559]
9243         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
9244         * abilist/libBrokenLocale.abilist: Likewise.
9245         * abilist/libanl.abilist: Likewise.
9246         * abilist/libc.abilist: Likewise.
9247         * abilist/libcrypt.abilist: Likewise.
9248         * abilist/libdl.abilist: Likewise.
9249         * abilist/libm.abilist: Likewise.
9250         * abilist/libnsl.abilist: Likewise.
9251         * abilist/libpthread.abilist: Likewise.
9252         * abilist/libresolv.abilist: Likewise.
9253         * abilist/librt.abilist: Likewise.
9254         * abilist/libthread_db.abilist: Likewise.
9255         * abilist/libutil.abilist: Likewise.
9256         * abilist/libnss_db.abilist: New file.
9257
9258         * scripts/abilist.awk: Add support for indirect functions.
9259
9260         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
9261
9262         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
9263
9264         * shlib-versions: Remove entries for ports architectures.
9265
9266         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
9267         files in ports.
9268         * elf/stackguard-macros.h: Remove support for IA-64.
9269         * elf/tst-auditmod1.c: Likewise.
9270         * sysdeps/generic/ldsodefs.h: Likewise.
9271
9272         * sysdeps/unix/sysv/linux/configure.in: Ports should define
9273         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
9274         configure files.
9275
9276         [BZ #13552]
9277         * configure.in: Remove --enable-omitfp support.
9278         * FAQ.in: Adjust.
9279         * config.make.in: Likewise.
9280         * Makeconfig: Likewise.
9281         * manual/install.texi: Likewise.
9282
9283         In case anyone cares, the IA-64 architecture could move to ports.
9284         * sysdeps/ia64/*: Removed.
9285         * sysdeps/unix/sysv/linux/ia64/*: Removed.
9286         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
9287
9288         [BZ #13555]
9289         * configure.in: Remove entries for unsupported architectures.
9290
9291         [BZ #13533]
9292         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
9293         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
9294         routines.
9295         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
9296         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
9297         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
9298         fall back to using wcrtomb.
9299         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
9300         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
9301         renaming.
9302         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
9303         * wcsmbs/tst-c16c32-1.c: New file.
9304
9305         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
9306         local variable.
9307
9308         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
9309
9310         * elf/tst-unique3.cc: Add explicit declaration of gets.
9311         * elf/tst-unique3lib.cc: Likewise.
9312         * elf/tst-unique3lib2.cc: Likewise.
9313         * elf/tst-unique4.cc: Likewise.
9314
9315         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
9316
9317 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
9318
9319         [BZ #13566]
9320         * assert/assert.h (static_assert): Don't define for C++.
9321         * libio/stdio.h (gets): Do declare for C++ <= C++11.
9322         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
9323
9324 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
9325
9326         * iconv/loop.c (single loop): Fix assertion in storing of
9327         remaining bytes.
9328
9329         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
9330
9331 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
9332
9333         * posix/getconf.c: Update copyright year.
9334         * nss/getent.c: Likewise.
9335         * nss/makedb.c: Likewise.
9336         * iconv/iconvconfig.c: Likewise.
9337         * iconv/iconv_prog.c: Likewise.
9338         * elf/ldconfig.c: Likewise.
9339         * elf/pldd.c: Likewise.
9340         * elf/sotruss.ksh: Likewise.
9341         * catgets/gencat.c: Likewise.
9342         * csu/version.c: Likewise.
9343         * elf/ldd.bash.in: Likewise.
9344         * elf/sprof.c (print_version): Likewise.
9345         * locale/programs/locale.c: Likewise.
9346         * locale/programs/localedef.c: Likewise.
9347         * login/programs/pt_chown.c: Likewise.
9348         * nscd/nscd.c (print_version): Likewise.
9349         * debug/xtrace.sh: Likewise.
9350         * malloc/memusage.sh: Likewise.
9351         * malloc/mtrace.pl: Likewise.
9352         * debug/catchsegv.sh: Likewise.
9353
9354 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
9355
9356         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
9357         pure attribute.
9358
9359 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
9360
9361         [BZ #13533]
9362         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
9363         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
9364         transformations.
9365         * iconv/gconv_int.h: Likewise.
9366         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
9367         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
9368         from libc for GLIBC_2.16.
9369         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
9370         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
9371         * wcsmbs/uchar.h: Really define mbstate_t.
9372         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
9373         * wcsmbs/c16rtomb.c: New file.
9374         * wcsmbs/mbrtoc16.c: New file.
9375         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
9376         for C/POSIX locale.
9377         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
9378         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
9379
9380         * wcsmbs/wchar.h: Add missing __restrict.
9381
9382 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
9383
9384         [BZ #13532]
9385         * time/Makefile (routines): Add timespec_get.
9386         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
9387         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
9388         timespec for ISO C11.
9389         * time/timespec_get.c: New file.
9390         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
9391         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
9392
9393         [BZ #13531]
9394         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
9395         * stdlib/stdlib.h: Declare aligned_alloc.
9396         * Versions.def: Add GLIBC_2.16 for libc.
9397         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
9398
9399         [BZ 13527]
9400         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
9401         ISO C11.
9402
9403         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
9404         code.
9405
9406         [BZ #13528]
9407         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
9408
9409         [BZ #13529]
9410         * assert/assert.h (static_assert): Define.
9411
9412         * version.h: Update for 2.16 development version.
9413
9414         [BZ #13526]
9415         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
9416         _ISOC11_SOURCE.
9417
9418         * version.h (RELEASE): Bump for 2.15 release.
9419         * include/features.h (__GLIBC_MINOR__): Bump to 15.
9420
9421         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
9422         Patch by Marek Polacek <mpolacek@redhat.com>.
9423
9424         * bits/byteswap.h: Protect long long constants with __extension__.
9425         * sysdeps/i386/bits/byteswap.h: Likewise.
9426         * sysdeps/ia64/bits/byteswap.h: Likewise.
9427         * sysdeps/s390/bits/byteswap.h: Likewise.
9428         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9429
9430 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9431
9432         [BZ #13540]
9433         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
9434         destination buffer.
9435         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
9436
9437 2011-12-23  Marek Polacek  <polacek@redhat.com>
9438
9439         * elf/dl-addr.c (determine_info): Add inline keyword.
9440         * elf/tst-auditmod4b.c (check_avx): Likewise.
9441         * elf/tst-auditmod6b.c (check_avx): Likewise.
9442         * elf/tst-auditmod6c.c (check_avx): Likewise.
9443         * elf/tst-auditmod7b.c (check_avx): Likewise.
9444
9445 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
9446
9447         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
9448         !__SSE_MATH__.
9449
9450 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9451
9452         [BZ #13540]
9453         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
9454         processing for last bytes.
9455
9456 2011-08-06  Bruno Haible  <bruno@clisp.org>
9457
9458         [BZ #13061]
9459         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
9460         U+0385, not to U+1FEE.
9461
9462         [BZ #13062]
9463         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
9464         entry for U+00A5 U+0301.
9465
9466 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
9467
9468         [BZ #13166]
9469         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
9470         buffer for the output is too small.
9471
9472         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
9473         optimization.
9474
9475         [BZ #13185]
9476         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
9477         SSE flags if possible.
9478
9479 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9480
9481         [BZ #13540]
9482         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
9483         processing for last bytes.
9484
9485 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
9486
9487         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
9488         (syscall-list-default-options, syscall-list-default-condition)
9489         (syscall-list-includes): Define.
9490         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
9491         list of ABIs and options and #if conditions for each ABI.  Do not
9492         handle common syscalls between ABIs specially.
9493         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
9494         Remove.
9495         (syscall-list-variants, syscall-list-32bit-options)
9496         (syscall-list-32bit-condition, syscall-list-64bit-options)
9497         (syscall-list-64bit-condition): Define.
9498         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
9499         (syscall-list-variants, syscall-list-32bit-options)
9500         (syscall-list-32bit-condition, syscall-list-64bit-options)
9501         (syscall-list-64bit-condition): Define.
9502         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
9503         Remove.
9504         (syscall-list-variants, syscall-list-32bit-options)
9505         (syscall-list-32bit-condition, syscall-list-64bit-options)
9506         (syscall-list-64bit-condition): Define.
9507         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
9508         Remove.
9509         (syscall-list-variants, syscall-list-32bit-options)
9510         (syscall-list-32bit-condition, syscall-list-64bit-options)
9511         (syscall-list-64bit-condition): Define.
9512
9513 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
9514
9515         * locale/iso-639.def: Add brx entry.
9516
9517         [BZ #13328]
9518         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
9519         Proposed by Mariusz_Cukr <marcukr@op.pl>.
9520
9521         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
9522         __feraiseexcept_renamed.
9523
9524 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
9525
9526         [BZ #13538]
9527         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
9528         EPOLLET with unsigned values.
9529         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9530         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
9531
9532         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
9533         to large cancellation.
9534         * math/s_cacoshf.c: Likewise.
9535         * math/s_cacoshl.c: Likewise.
9536
9537 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
9538
9539         [BZ #13305]
9540         [BZ #12786]
9541         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
9542         * math/s_cacoshf.c: Likewise.
9543         * math/s_cacoshl.c: Likewise.
9544
9545 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
9546
9547         [BZ #13439]
9548         * iconv/gconv.h: Define __GCONV_SWAP.
9549         * iconvdata/unicode.c: The swap bit must be stored in __flags.
9550         * iconvdata/utf-16.c: Likewise.
9551         * iconvdata/utf-32.c: Likewise.
9552
9553 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
9554
9555         [BZ #13524]
9556         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
9557         numerator after shifting it by one limb.
9558
9559 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
9560
9561         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
9562         under [__USE_EXTERN_INLINES].
9563
9564 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
9565
9566         [BZ #13446]
9567         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
9568
9569 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9570
9571         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
9572         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
9573         optimized code.
9574         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
9575         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
9576         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
9577         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
9578         for strncasecmp/strncasecmp_l compilation.
9579         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
9580         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
9581
9582 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
9583
9584         [BZ #13484]
9585         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
9586         of __asm__.
9587
9588 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
9589
9590         [BZ #13506]
9591         * time/tzfile.c (__tzfile_read): Check values from file header.
9592
9593 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
9594
9595         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
9596         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
9597         * powerpc/powerpc32/dl-start.S: Likewise.
9598         * powerpc/powerpc32/elf/start.S: Likewise.
9599         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
9600         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
9601         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
9602         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
9603         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
9604         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
9605         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
9606         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
9607         * powerpc/powerpc32/fpu/s_round.S: Likewise.
9608         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
9609         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
9610         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
9611         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
9612         * powerpc/powerpc32/memset.S: Likewise.
9613         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
9614         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
9615         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
9616         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
9617         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
9618         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
9619         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
9620         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
9621         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
9622         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
9623         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
9624         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
9625         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
9626
9627 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9628
9629         * math/libm-test.inc: Added more nearbyint tests.
9630         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
9631         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
9632         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
9633         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
9634
9635 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
9636
9637         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
9638         FD_CLOEXEC.
9639
9640 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9641
9642         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
9643         Add wcscpy-ssse3 wcscpy-c.
9644         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
9645         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
9646         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
9647         * sysdeps/x86_64/wcschr.S: New file.
9648         * sysdeps/x86_64/wcsrchr.S: New file.
9649         * string/test-strcmp.c: Remove checking of wcscmp function for
9650         wrong alignments.
9651         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
9652         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
9653         wcsrchr-sse2 wcsrchr-c.
9654         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
9655         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
9656         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
9657         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
9658         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
9659         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
9660         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
9661         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
9662         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
9663         * wcsmbc/wcschr.c (WCSCHR): New macro.
9664
9665 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9666
9667         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
9668         * wcsmbs/test-wcsrchr.c: New file.
9669         * string/test-strrchr.c: Add wcsrchr support.
9670         (WIDE): New macro.
9671         * wcsmbs/test-wcscpy.c: New file.
9672         * string/test-strcpy.c: Add wcscpy support.
9673         (WIDE): New macro.
9674
9675 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
9676
9677         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
9678         the inner loop.
9679
9680 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
9681
9682         [BZ #13472]
9683         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
9684
9685 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
9686
9687         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
9688         Minor optimizations.
9689
9690         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
9691         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
9692         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9693
9694 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
9695
9696         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
9697         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
9698         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
9699         for gcc to avoid warnings.
9700         * inet/Makefile (tests): Add tst-checks.
9701         * inet/tst-checks.c: New file.
9702
9703         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
9704         warning.
9705
9706         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
9707         __wmemcmp_sse2.
9708
9709         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
9710         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
9711
9712         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
9713
9714 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
9715
9716         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
9717         problem.
9718
9719         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
9720
9721 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
9722
9723         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
9724         conditional on GCC version.
9725         (__arch_compare_and_exchange_val_8_acq)
9726         (__arch_compare_and_exchange_val_16_acq)
9727         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
9728         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
9729         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
9730
9731 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
9732
9733         * sysdeps/sh/backtrace.c: New file.
9734
9735 2011-12-02  Andreas Schwab  <schwab@redhat.com>
9736
9737         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
9738         parenthesis.
9739
9740 2011-12-01  Andreas Schwab  <schwab@redhat.com>
9741
9742         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
9743         falling back to utime.
9744
9745 2011-11-30  Andreas Schwab  <schwab@redhat.com>
9746
9747         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
9748         expectations for float.
9749
9750 2011-11-29  Andreas Schwab  <schwab@redhat.com>
9751
9752         * locale/weight.h (findidx): Add parameter len.
9753         * locale/weightwc.h (findidx): Likewise.
9754         * posix/fnmatch_loop.c (FCT): Adjust caller.
9755         * posix/regcomp.c (build_equiv_class): Likewise.
9756         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
9757         * posix/regexec.c (check_node_accept_bytes): Likewise.
9758         * string/strcoll_l.c (STRCOLL): Likewise.
9759         * string/strxfrm_l.c (STRXFRM): Likewise.
9760
9761 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
9762
9763         * Makefile.in: Remove CVSOPT handling.
9764         * configure.in: Remove use of AC_REVISION.
9765         * iconvdata/Makefile (distribute): No need to filter out CVS.
9766         * scripts/list-sources.sh: Remove CVS, subversion and monotone
9767         handling.
9768
9769 2011-11-16  Andreas Schwab  <schwab@redhat.com>
9770
9771         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
9772         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
9773         [USE_AS_STRNCASECMP_L]: Likewise.
9774         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
9775         NO_TLS_DIRECT_SEG_REFS.
9776         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
9777         Fix argument offsets for non-PIC.
9778         [USE_AS_STRNCASECMP_L]: Likewise.
9779         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
9780         NO_TLS_DIRECT_SEG_REFS.
9781
9782 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
9783
9784         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
9785         O_CLOEXEC.
9786         * locale/loadlocale.c (_nl_load_locale): Likewise.
9787
9788 2011-11-15  Andreas Schwab  <schwab@redhat.com>
9789
9790         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
9791         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
9792         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
9793         (SYSCALL_GETTIME): Set errno on error.
9794
9795         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
9796         count references to noai6ai_cached.
9797
9798 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
9799
9800         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
9801
9802         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
9803         FD_CLOEXEC for /proc/self/maps.
9804
9805         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
9806         FD_CLOEXEC for /proc/meminfo.
9807
9808         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
9809         gai.conf.
9810
9811         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
9812         FD_CLOEXEC for given file.
9813
9814         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
9815
9816         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
9817         FD_CLOEXEC for /etc/hosts.
9818         (_gethtent): Likewise.
9819
9820         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
9821
9822         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
9823         cancellation and set FD_CLOEXEC for /etc/netgroup.
9824
9825         * nss/nss_files/files-key.c (search): Don't allow cancellation when
9826         reading /etc/publickey.
9827
9828         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
9829         allow cancellation when reading /etc/group.
9830
9831         * nss/nss_files/files-alias.c (internal_setent): Don't allow
9832         cancellation.
9833         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
9834
9835         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
9836         when using data file.
9837
9838         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
9839
9840         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
9841         (write_nis_obj): Use "c" and "e" in fopen.
9842
9843         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
9844
9845         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
9846
9847         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
9848
9849         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
9850
9851         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
9852         locale.alias.
9853
9854         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
9855
9856         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
9857
9858         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
9859
9860         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
9861         file parsing and set FD_CLOEXEC.
9862
9863 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
9864
9865         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
9866
9867 2011-11-14  Andreas Schwab  <schwab@redhat.com>
9868
9869         * malloc/arena.c (arena_get2): Don't call reused_arena when
9870         _int_new_arena failed.
9871
9872 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
9873
9874         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
9875         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
9876         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
9877         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9878         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9879         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
9880         to compile strcasecmp and strncasecmp.
9881         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
9882         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
9883
9884         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
9885
9886 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
9887
9888         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
9889         locale-defines.sym to gen-as-const-headers.
9890         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
9891         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
9892         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
9893         to compile strcasecmp and strncasecmp.
9894         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
9895         strcasecmp_l and strncasecmp_l.
9896         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
9897         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
9898         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
9899         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
9900         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
9901         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
9902         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
9903         * sysdeps/i386/i686/multiarch/strncase.S: New file.
9904         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
9905         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
9906         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
9907
9908 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
9909
9910         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
9911         result of SYSDEP_GETTIME_CPU to retval.
9912         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
9913         parameter list to macro.  Remove trailing semicolon.  Adjust users.
9914
9915         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
9916         variable.
9917
9918         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
9919         mantissa words.
9920         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
9921
9922         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
9923         from unused variable.
9924
9925         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
9926         DWARF definitions.
9927         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
9928         for assembling.
9929
9930         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
9931         over namespaces.
9932
9933         * sunrpc/rpc_prot.c (rejected): Fix case value.
9934
9935         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
9936         unsigned long long int to avoid warnings in shift.
9937
9938         * posix/regex_internal.c (re_string_reconstruct): Actually use result
9939         of use of trans.
9940         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
9941         variable tmp.
9942
9943         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
9944         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
9945         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
9946
9947         * nis/nis_table.c (nis_list): Use variable of correct type for
9948         result of __follow_path call.
9949
9950 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9951
9952         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
9953         of math functions ceil, trunc, floor, round, and sqrt, when
9954         avaliable on the platform.
9955         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
9956         name clash.
9957         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9958         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
9959         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
9960
9961 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
9962
9963         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
9964         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
9965
9966 2011-11-11  Roland McGrath  <roland@hack.frob.com>
9967
9968         * include/unistd.h: Fix __readlink return type.
9969         Reported by Chris Metcalf <cmetcalf@tilera.com>.
9970
9971 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
9972
9973         * stdlib/ucontext.h: Undo last change for makecontext.
9974
9975 2011-11-11  Andreas Schwab  <schwab@redhat.com>
9976
9977         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
9978
9979         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
9980         * setjmp/setjmp.h: Mark functions as non-leaf.
9981         * setjmp/bits/setjmp2.h: Likewise.
9982         * stdlib/ucontext.h: Likewise.
9983
9984 2011-11-10  Andreas Schwab  <schwab@redhat.com>
9985
9986         * malloc/arena.c (_int_new_arena): Don't increment narenas.
9987         (reused_arena): Don't check arena limit.
9988         (arena_get2): Atomically check arena limit.
9989
9990 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
9991
9992         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
9993         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
9994
9995         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
9996         instructions.
9997
9998 2011-11-07  Andreas Schwab  <schwab@redhat.com>
9999
10000         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
10001         handler when locking.
10002
10003         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10004         Fix size of allocated buffer.
10005
10006 2011-11-04  Andreas Schwab  <schwab@redhat.com>
10007
10008         [BZ #10103]
10009         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
10010         declarations for long double functions.
10011         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
10012
10013         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
10014
10015 2011-11-03  Andreas Schwab  <schwab@redhat.com>
10016
10017         * nscd/nscd.c (main): Don't start AVC thread until credentials are
10018         installed.
10019
10020         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
10021         is disabled.
10022
10023 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10024
10025         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
10026
10027 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
10028
10029         * include/alloca.h (stackinfo_alloca_round): Define.
10030         (extend_alloca): Use it.
10031         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
10032         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
10033         here.
10034
10035         * scripts/check-local-headers.sh: Ignore libaudit.h.
10036
10037         * nscd/Makefile (extra-objs): Make recursively expanded.
10038
10039 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
10040
10041         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
10042         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
10043
10044         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
10045         * posix/tst-rfc3484-2.c: Likewise.
10046         * posix/tst-rfc3484-3.c: Likewise.
10047
10048         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10049         process_vm_writev.
10050         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
10051         process_vm_writev.
10052         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
10053         process_vm_writev from libc using GLIBC_2.15 version.
10054
10055         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
10056
10057 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10058
10059         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
10060         stack usage.
10061
10062 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
10063
10064         [BZ #13367]
10065         * nss/getent.c (initgroups_keys): Show error message in case no group
10066         names are given.
10067
10068         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
10069         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
10070         __bump_nl_timestamp.
10071         * nscd/connections (nscd_init): When host database is served open
10072         netlink socket and request notification about configuration changes.
10073         (main_loop_poll): Track netlink file descriptor and bump timestamp
10074         in case data becomes available.
10075         (main_loop_epoll): Likewise.
10076         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
10077         (database_pers_head): Add extra_data fileds.
10078         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
10079         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
10080         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
10081         Adjust caller.
10082         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
10083         in6ai data, call __free_in6ai.
10084         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
10085         Add -DHAVE_NETLINK.
10086         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
10087         interface information.  Reuse previous data if netlink timestamp
10088         is not changed.
10089         (__bump_nl_timestamp): New function.
10090         (__free_in6ai): New function.
10091
10092 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
10093
10094         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
10095         close_not_cancel_no_status here.
10096         (__check_pf): Reorganize code a bit to not call close twice if OOM.
10097
10098 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10099
10100         [BZ #13276]
10101         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
10102         return value.
10103
10104         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
10105         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
10106         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
10107
10108 2011-07-03  Andreas Jaeger  <aj@suse.de>
10109
10110         [BZ #10709]
10111         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
10112         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
10113         * math/libm-test.inc (sin_test): Add test case.
10114
10115 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10116
10117         [BZ #13337]
10118         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
10119         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10120
10121         * elf/chroot_canon.c (chroot_canon): Cleanups.
10122
10123         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
10124
10125         [BZ #13335]
10126         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
10127         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10128
10129         * string/test-strchr.c: Make usable for strchrnul testing.
10130         * string/test-strchrnul.c: New file.
10131         * string/Makefile (strop-tests): Add strchrnul.
10132
10133         * po/it.po: Update from translation team.
10134         * po/es.po: Likewise.
10135
10136 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
10137
10138         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
10139         the three constants needed as parameters.  Drop the others.
10140         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
10141         __m128i_strloadu_tolower.
10142         Create and initialize variable zero and use it in all the places
10143         where _mm_setzero_si128 was used.
10144
10145         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
10146         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
10147         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
10148         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
10149         anymore.
10150         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
10151         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
10152         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
10153         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
10154         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
10155         __mpranred, __mptan.
10156         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
10157         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
10158         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
10159         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
10160         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
10161         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
10162         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
10163         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
10164         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
10165
10166 2011-10-28  Andreas Schwab  <schwab@redhat.com>
10167
10168         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
10169         redefine if SHARED.
10170         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
10171
10172         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
10173         wide char related routines to wcsmbs subdir.
10174
10175 2011-10-27  Andreas Schwab  <schwab@redhat.com>
10176
10177         [BZ #13344]
10178         * misc/sys/cdefs.h (__THROWNL): Define.
10179         * posix/unistd.h: Use __THREADNL instead of __THREAD
10180         for memory synchronization functions.
10181
10182 2011-10-26  Roland McGrath  <roland@hack.frob.com>
10183
10184         [BZ #13349]
10185         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
10186         doesn't exist.
10187         * manual/stdio.texi (Obstack Streams): Node removed.
10188
10189 2011-10-26  Andreas Schwab  <schwab@redhat.com>
10190
10191         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
10192         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10193         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10194
10195         * math/math_private.h (math_force_eval): Allow non-addressable
10196         arguments.
10197         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
10198
10199 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10200
10201         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
10202         file is not needed.
10203
10204         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
10205         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
10206         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10207         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10208         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10209         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10210         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10211         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
10212         Add AVX variants.
10213         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
10214         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
10215         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
10216         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
10217         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
10218         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
10219         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
10220         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
10221         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
10222         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
10223         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
10224         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
10225         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
10226         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
10227         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
10228         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
10229         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
10230         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
10231         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
10232
10233         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
10234         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
10235
10236         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
10237         place.  Use VEX encoding when compiling for AVX.
10238
10239 2011-10-25  Andreas Schwab  <schwab@redhat.com>
10240
10241         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
10242         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
10243
10244         * string/test-strchr.c (do_test): Don't generate NUL bytes.
10245
10246 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10247
10248         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
10249         useless if() expression.
10250         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10251         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10252         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10253         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10254         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10255         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10256         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10257         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10258         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10259         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10260         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10261         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10262         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10263         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10264         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10265         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10266         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10267         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10268         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10269
10270         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
10271
10272 2011-10-25  Andreas Schwab  <schwab@redhat.com>
10273
10274         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
10275         condition.
10276         * elf/dl-fini.c (_dl_sort_fini): Likewise.
10277
10278 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10279
10280         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
10281         .text section.  Avoid duplicate constants.
10282         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10283         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10284         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10285         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10286         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10287         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10288         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10289         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10290         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
10291         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
10292         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
10293         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
10294         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
10295         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
10296         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
10297         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
10298         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
10299         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
10300         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10301         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10302         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10303         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10304         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10305         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
10306         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
10307         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
10308         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
10309         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
10310         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
10311         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
10312         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
10313         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
10314         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
10315         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
10316         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
10317         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
10318         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
10319         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
10320         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
10321         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
10322         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
10323         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
10324         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
10325         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
10326         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
10327
10328 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
10329
10330         * sysdeps/x86_64/dla.h: Move to ...
10331         * sysdeps/x86_64/fpu/dla.h: ...here.
10332         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
10333         situations.  Use __builtin_fma only for gcc 4.6 and up.
10334
10335         * config.make.in: Add have-mfma4 entry.
10336         * configure.in: Substitute libc_cv_cc_fma4.
10337         * math/Makefile (dbl-only-routines): Add sincostab.
10338         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
10339         Use __sincostab not sincos.
10340         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
10341         name is a macro.
10342         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10343         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10344         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10345         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
10346         using __copysign.
10347         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
10348         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
10349         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
10350         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
10351         and __inv.
10352         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
10353         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
10354         __copysign.
10355         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
10356         define aliases when function name is a macro.
10357         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
10358         sysdeps/ieee754/dbl-64/sincos.tbl.
10359         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
10360         fma4-enabled routines.
10361         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
10362         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
10363         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
10364         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
10365         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
10366         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
10367         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
10368         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
10369         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
10370         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
10371         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
10372         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
10373         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
10374         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
10375         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
10376         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
10377         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
10378         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
10379         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
10380         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
10381         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
10382         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
10383         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
10384         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
10385         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
10386         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
10387         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
10388         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
10389         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
10390         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
10391
10392         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
10393         rename.
10394         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10395         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10396         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10397         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10398         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10399         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10400         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10401         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10402
10403 2011-10-24  Andreas Schwab  <schwab@redhat.com>
10404
10405         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
10406
10407 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
10408
10409         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
10410
10411         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
10412         prediction.
10413         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
10414
10415         * string/strnlen.c: Don't define STRNLEN, reverse logic.
10416         Remove unused variable magic_bits.
10417         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
10418
10419         * string/strnlen.c: Define and use STRNLEN macro.
10420         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
10421         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
10422         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
10423         * wcsmbs/wcslen.c: Define and use WCSLEN.
10424         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
10425         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
10426         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
10427         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
10428         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
10429         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
10430         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
10431
10432 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10433
10434         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10435         strnlen-sse2-no-bsf.
10436         Rename strlen-no-bsf to strlen-sse2-no-bsf.
10437         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
10438         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
10439         Add strnlen support.
10440         (USE_AS_STRNLEN): New macro.
10441         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
10442         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
10443         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
10444         * sysdeps/x86_64/wcslen.S: New file.
10445
10446 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
10447
10448         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10449         XMM-moves are used for copying on small sizes.
10450
10451 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10452
10453         * wcsmbs/Makefile (strop-tests): Add wcschr.
10454         * wcsmbs/test-wcschr.c: New file.
10455         * string/test-strchr.c: Update.
10456         Add wcschr support.
10457         (WIDE): New macro.
10458
10459 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10460
10461         * wcsmbs/Makefile (strop-tests): Add wcslen.
10462         * wcsmbs/test-wcslen.c: New file.
10463         * string/test-strlen.c: Update.
10464         Add wcslen support.
10465         (WIDE): New macro.
10466
10467 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
10468
10469         * po/it.po: Update from translation team.
10470
10471 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10472
10473         * sysdeps/x86_64/wcscmp.S: Update.
10474         Fix wrong comparison semantics.
10475         wcscmp shall use signed comparison not unsigned.
10476         Don't use substraction to avoid overflow bug.
10477         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
10478         * wcsmbc/wcscmp.c: Likewise.
10479         * string/test-strcmp.c: Likewise.
10480         Add new tests to check cases with negative values.
10481
10482 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
10483
10484         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
10485         * sysdeps/x86_64/dla.h: ...here.  New file.
10486         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
10487         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10488         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10489         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10490         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10491         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10492         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10493         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10494         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10495
10496 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
10497
10498         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
10499         __ynl_finite aliases.
10500
10501 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
10502
10503         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10504
10505         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
10506         define DLA_FMA.
10507         [DLA_FMA] (EMULV): Use DLA_FMA.
10508         [DLA_FMA] (MUL12): Use EMULV.
10509         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
10510         that are not needed.
10511         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10512         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10513         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10514         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10515         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10516         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10517         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10518
10519 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
10520
10521         * math/s_nan.c: Undef __nan.
10522         * math/s_nanf.c: Undef __nanf.
10523         * math/s_nanl.c: Undef __nanl.
10524         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
10525         "math_private.h".
10526
10527 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
10528
10529         * math/s_catan.c: Add branch predictions.
10530         * math/s_catanf.c: Likewise.
10531         * math/s_catanh.c: Likewise.
10532         * math/s_catanhf.c: Likewise.
10533         * math/s_catanhl.c: Likewise.
10534         * math/s_catanl.c: Likewise.
10535         * math/s_cexp.c: Likewise.
10536         * math/s_cexpf.c: Likewise.
10537         * math/s_cexpl.c: Likewise.
10538         * math/s_clog.c: Likewise.
10539         * math/s_clog10.c: Likewise.
10540         * math/s_clog10f.c: Likewise.
10541         * math/s_clog10l.c: Likewise.
10542         * math/s_clogf.c: Likewise.
10543         * math/s_clogl.c: Likewise.
10544         * math/s_csqrt.c: Likewise.
10545         * math/s_csqrtf.c: Likewise.
10546         * math/s_csqrtl.c: Likewise.
10547         * math/s_ctanf.c: Likewise.
10548         * math/s_ctanh.c: Likewise.
10549         * math/s_ctanhf.c: Likewise.
10550         * math/s_ctanhl.c: Likewise.
10551         * math/s_ctanl.c: Likewise.
10552
10553         * math/math_private.h: Define __nan, __nanf, __nanl.
10554         * math/s_cacosh.c: Include <math_private.h>.
10555         * math/s_cacoshl.c: Likewise.
10556         * math/s_casinh.c: Likewise.
10557         * math/s_casinhf.c: Likewise.
10558         * math/s_casinhl.c: Likewise.
10559         * math/s_ccos.c: Rely entire on ccosh.
10560         * math/s_ccosf.c: Rely entire on ccoshf.
10561         * math/s_ccosl.c: Rely entirely on ccoshl.
10562         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
10563         Remove tests for FE_INVALID.
10564         * math/s_ccoshf.c: Likewise.
10565         * math/s_ccoshl.c: Likewise.
10566         * math/s_csin.c: Likewise.
10567         * math/s_csinf.c: Likewise.
10568         * math/s_csinh.c Likewise.
10569         * math/s_csinhf.c: Likewise.
10570         * math/s_csinhl.c: Likewise.
10571         * math/s_csinl.c: Likewise.
10572         * math/s_ctan.c: Likewise.
10573         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
10574         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
10575         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
10576
10577 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
10578
10579         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
10580         compilation problems.
10581
10582         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
10583         __builtin_expect.
10584
10585 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
10586
10587         * sysdeps/i386/configure.in: Test for -mfma4 option.
10588         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
10589         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
10590         COMMON_CPUID_INDEX_80000001.
10591         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
10592         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
10593         use it if FMA3 is not supported.
10594         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
10595
10596         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
10597         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
10598
10599 2011-10-20  Andreas Schwab  <schwab@redhat.com>
10600
10601         [BZ #12892]
10602         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
10603         it would create a cycle with a link time dependency.
10604
10605 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
10606
10607         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
10608         instruction.
10609         * string/Makefile (strop-tests): Add rawmemchr.
10610         * string/test-rawmemchr.c: New file.
10611
10612         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
10613         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
10614         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
10615         when compiling str{,n}casecmp and when AVX is available.  Hook up
10616         new optimized code in initializers.
10617
10618 2011-10-19  Andreas Schwab  <schwab@redhat.com>
10619
10620         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
10621         __feraiseexcept instead of feraiseexcept.
10622
10623 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
10624
10625         * math/math_private.h: Define defaults for libc_fetestexcept and
10626         libc_feupdateenv.
10627         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
10628         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10629         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
10630         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
10631         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10632         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
10633         libc_fetestexcept and libc_feupdateenv.
10634
10635         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
10636         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
10637         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
10638         * sysdeps/x86_64/fpu/math_private.h: Define special version of
10639         libc_feholdexcept_setround.
10640
10641         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
10642         Add s_nearbyint-c and s_nearbyintf-c.
10643         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
10644         nearbyintf inlines.
10645         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
10646         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
10647         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
10648         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
10649
10650         * math/math_private.h: Define defaults for libc_fegetround,
10651         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
10652         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
10653         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
10654         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
10655         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
10656         standard functions.
10657         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10658         Remove comments and hacks for old compiler versions.
10659         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
10660         libc_fegetround, libc_fesetround, libc_feholdexcept, and
10661         libc_feholdexceptl.
10662
10663 2011-10-18  Andreas Schwab  <schwab@redhat.com>
10664
10665         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
10666         (__feraiseexcept_renamed): Add __NTH.
10667         (feraiseexcept): Add __NTH.  Rename local variables to fix
10668         namespace violations.
10669
10670 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
10671
10672         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
10673
10674         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
10675
10676         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
10677         recently added interfaces.
10678         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10679
10680         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
10681         about macro parameter expansion.
10682
10683         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
10684         __NO_MATH_INLINES is defined.  Cleanups.
10685
10686         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
10687         and __floorf is target has SSE4.1.
10688         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
10689         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
10690         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
10691         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
10692
10693         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
10694         name.
10695         (floorf): Likewise.
10696
10697         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
10698
10699 2011-10-17  Andreas Schwab  <schwab@redhat.com>
10700
10701         * misc/sys/cdefs.h: Fix last change.
10702
10703         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
10704         database lookup.
10705
10706 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
10707
10708         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
10709
10710         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
10711         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10712         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10713         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10714         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10715         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10716         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10717         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10718         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10719         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
10720         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
10721         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
10722         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
10723         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
10724         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
10725         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
10726         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
10727         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
10728         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
10729         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
10730         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
10731         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
10732
10733         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
10734         ceil, ceilf, floor, floorf.
10735
10736         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
10737         Perform IRELATIVE relocations last.
10738
10739         * elf/do-rel.h: Add another parameter nrelative, replacing the
10740         local variable with the same name.  Change name of the function
10741         to end in Rel or Rela (uppercase).
10742         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
10743         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
10744         elf_dynamic_do_##reloc function.
10745
10746 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
10747
10748         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
10749         is sufficient, at least on modern CPUs.
10750
10751         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
10752
10753         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
10754         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
10755
10756         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
10757         __expl_finite.
10758         * math/bits/math-finite.h: Add entries for exp.
10759         * math/e_expl.c: Add __*_finite alias.
10760         * sysdeps/i386/fpu/e_exp.S: Likewise.
10761         * sysdeps/i386/fpu/e_expf.S: Likewise.
10762         * sysdeps/i386/fpu/e_expl.c: Likewise.
10763         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10764         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
10765         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10766         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
10767         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
10768         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
10769         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
10770
10771         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
10772         is sufficient, at least on modern CPUs.
10773
10774         * ctype/ctype-info.c (__ctype_init): Define.
10775         * include/ctype.h (__ctype_init): Declare.
10776         (__ctype_b_loc): The variable is always initialized.
10777         (__ctype_toupper_loc): Likewise.
10778         (__ctype_tolower_loc): Likewise.
10779         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
10780         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
10781
10782 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
10783
10784         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
10785
10786         * configure.in: Also look in $cxxmachine/include for C++ system
10787         headers.
10788
10789 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10790
10791         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
10792         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
10793         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
10794         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
10795         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
10796         (USE_AS_WMEMCMP): New macro.
10797         Fixing indents.
10798         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
10799         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
10800         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
10801         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
10802         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10803         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
10804         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
10805         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
10806         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
10807         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
10808         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
10809         (USE_AS_WMEMCMP): New macro.
10810         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
10811         * sysdeps/string/test-memcmp.c: Update.
10812         Fix simple_wmemcmp.
10813         Add new tests.
10814         * wcsmbs/wmemcmp.c: Update.
10815         (WMEMCMP): New macro.
10816         Fix overflow bug.
10817
10818 2011-10-12  Andreas Jaeger  <aj@suse.de>
10819
10820         [BZ #13268]
10821         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
10822
10823 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
10824
10825         * libio/iofwide.c (do_length): Avoid warning.
10826
10827         * ctype/ctype.h (__isctype_f): Add missing __THROW.
10828
10829 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
10830
10831         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
10832
10833         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
10834         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
10835         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
10836         * sysdeps/i386/i686/fpu/e_log.S: New file.
10837         * sysdeps/i386/i686/fpu/e_logf.S: New file.
10838         * sysdeps/i386/i686/fpu/e_logl.S: New file.
10839
10840         * ctype/ctype.h: Add support for inlined isXXX functions when
10841         compiling C++ code.
10842
10843 2011-10-14  Andreas Schwab  <schwab@redhat.com>
10844
10845         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10846
10847         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
10848
10849 2011-10-13  Roland McGrath  <roland@hack.frob.com>
10850
10851         [BZ #13291]
10852         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
10853
10854 2011-10-13  Andreas Schwab  <schwab@redhat.com>
10855
10856         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
10857         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
10858         feraiseexcept.
10859
10860         * sysdeps/x86_64/memrchr.S: Check for zero size.
10861
10862         * string/stratcliff.c: Add memrchr tests.
10863
10864 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10865
10866         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10867         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
10868         rawmemchr-sse2 rawmemchr-sse2-bsf.
10869         * sysdeps/i386/i686/multiarch/memchr.S: New file.
10870         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
10871         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
10872         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
10873         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
10874         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
10875         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
10876         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
10877         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
10878         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
10879         * string/memrchr.c (MEMRCHR): New macro.
10880
10881 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
10882
10883         Add integration with gcc's -ffinite-math-only and optimize wrapper
10884         functions in libm.
10885         * Versions.def: Define GLIBC_2.15 version for libm.
10886         * math/Makefile (headers): Add bits/math-finite.h.
10887         * math/bits/math-finite.h: New file.
10888         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
10889         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
10890         * math/e_acoshl.c: Add __*_finite alias.
10891         * math/e_acosl.c: Likewise.
10892         * math/e_asinl.c: Likewise.
10893         * math/e_atan2l.c: Likewise.
10894         * math/e_atanhl.c: Likewise.
10895         * math/e_coshl.c: Likewise.
10896         * math/e_exp10.c: Likewise.
10897         * math/e_exp10f.c: Likewise.
10898         * math/e_exp10l.c: Likewise.
10899         * math/e_exp2l.c: Likewise.
10900         * math/e_fmodl.c: Likewise.
10901         * math/e_gammal_r.c: Likewise.
10902         * math/e_hypotl.c: Likewise.
10903         * math/e_j0l.c: Likewise.
10904         * math/e_j1l.c: Likewise.
10905         * math/e_jnl.c: Likewise.
10906         * math/e_lgammal_r.c: Likewise.
10907         * math/e_log10l.c: Likewise.
10908         * math/e_log2l.c: Likewise.
10909         * math/e_logl.c: Likewise.
10910         * math/e_powl.c: Likewise.
10911         * math/e_sinhl.c: Likewise.
10912         * math/e_sqrtl.c: Likewise.
10913         * math/e_scalb.c: Completely rewritten and optimized.
10914         * math/e_scalbf.c: Likewise.
10915         * math/e_scalbl.c: Likewise.
10916         * math/w_acos.c: Likewise.
10917         * math/w_acosf.c: Likewise.
10918         * math/w_acosl.c: Likewise.
10919         * math/w_acosh.c: Likewise.
10920         * math/w_acoshf.c: Likewise.
10921         * math/w_acoshl.c: Likewise.
10922         * math/w_asin.c: Likewise.
10923         * math/w_asinf.c: Likewise.
10924         * math/w_asinl.c: Likewise.
10925         * math/w_atan2.c: Likewise.
10926         * math/w_atan2f.c: Likewise.
10927         * math/w_atan2l.c: Likewise.
10928         * math/w_atanh.c: Likewise.
10929         * math/w_atanhf.c: Likewise.
10930         * math/w_atanhl.c: Likewise.
10931         * math/w_exp10.c: Likewise.
10932         * math/w_exp10f.c: Likewise.
10933         * math/w_exp10l.c: Likewise.
10934         * math/w_fmod.c: Likewise.
10935         * math/w_fmodf.c: Likewise.
10936         * math/w_fmodl.c: Likewise.
10937         * math/w_j0.c: Likewise.
10938         * math/w_j0f.c: Likewise.
10939         * math/w_j0l.c: Likewise.
10940         * math/w_j1.c: Likewise.
10941         * math/w_j1f.c: Likewise.
10942         * math/w_j1l.c: Likewise.
10943         * math/w_jn.c: Likewise.
10944         * math/w_jnf.c: Likewise.
10945         * math/w_log.c: Likewise.
10946         * math/w_logf.c: Likewise.
10947         * math/w_logl.c: Likewise.
10948         * math/w_log10.c: Likewise.
10949         * math/w_log10f.c: Likewise.
10950         * math/w_log10l.c: Likewise.
10951         * math/w_log2.c: Likewise.
10952         * math/w_log2f.c: Likewise.
10953         * math/w_log2l.c: Likewise.
10954         * math/w_pow.c: Likewise.
10955         * math/w_powf.c: Likewise.
10956         * math/w_powl.c: Likewise.
10957         * math/w_remainder.c: Likewise.
10958         * math/w_remainderf.c: Likewise.
10959         * math/w_remainderl.c: Likewise.
10960         * math/w_scalb.c: Likewise.
10961         * math/w_scalbf.c: Likewise.
10962         * math/w_scalbl.c: Likewise.
10963         * math/w_sqrt.c: Likewise.
10964         * math/w_sqrtf.c: Likewise.
10965         * math/w_sqrtl.c: Likewise.
10966         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
10967         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
10968         used.
10969         * math/math_private.h: Declare __kernel_standard_f.
10970         * math/w_cosh.c: Remove cruft and optimize a bit.
10971         * math/w_coshf.c: Likewise.
10972         * math/w_coshl.c: Likewise.
10973         * math/w_exp2.c: Likewise.
10974         * math/w_exp2f.c: Likewise.
10975         * math/w_exp2l.c: Likewise.
10976         * math/w_hypot.c: Likewise.
10977         * math/w_hypotf.c: Likewise.
10978         * math/w_hypotl.c: Likewise.
10979         * math/w_lgamma.c: Likewise.
10980         * math/w_lgamma_r.c: Likewise.
10981         * math/w_lgammaf.c: Likewise.
10982         * math/w_lgammaf_r.c: Likewise.
10983         * math/w_lgammal.c: Likewise.
10984         * math/w_lgammal_r.c: Likewise.
10985         * math/w_sinh.c: Likewise.
10986         * math/w_sinhf.c: Likewise.
10987         * math/w_sinhl.c: Likewise.
10988         * math/w_tgamma.c: Likewise.
10989         * math/w_tgammaf.c: Likewise.
10990         * math/w_tgammal.c: Likewise.
10991         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10992         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10993         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
10994         Minor optimizations.  Pretty printing.  Remove cruft.
10995         * sysdeps/i386/fpu/e_acosf.S: Likewise.
10996         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10997         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10998         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10999         * sysdeps/i386/fpu/e_acosl.c: Likewise.
11000         * sysdeps/i386/fpu/e_asin.S: Likewise.
11001         * sysdeps/i386/fpu/e_asinf.S: Likewise.
11002         * sysdeps/i386/fpu/e_atan2.S: Likewise.
11003         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
11004         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
11005         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11006         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11007         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11008         * sysdeps/i386/fpu/e_exp10.S: Likewise.
11009         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
11010         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
11011         * sysdeps/i386/fpu/e_exp2.S: Likewise.
11012         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
11013         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
11014         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11015         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
11016         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11017         * sysdeps/i386/fpu/e_hypot.S: Likewise.
11018         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
11019         * sysdeps/i386/fpu/e_log.S: Likewise.
11020         * sysdeps/i386/fpu/e_log10.S: Likewise.
11021         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11022         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11023         * sysdeps/i386/fpu/e_log2.S: Likewise.
11024         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11025         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11026         * sysdeps/i386/fpu/e_logf.S: Likewise.
11027         * sysdeps/i386/fpu/e_logl.S: Likewise.
11028         * sysdeps/i386/fpu/e_pow.S: Likewise.
11029         * sysdeps/i386/fpu/e_powf.S: Likewise.
11030         * sysdeps/i386/fpu/e_powl.S: Likewise.
11031         * sysdeps/i386/fpu/e_remainder.S: Likewise.
11032         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
11033         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
11034         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11035         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11036         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11037         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
11038         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
11039         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
11040         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11041         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11042         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11043         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11044         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11045         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11046         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11047         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11048         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11049         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11050         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11051         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11052         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11053         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11054         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11055         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11056         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11057         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11058         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11059         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11060         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11061         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11062         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11063         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11064         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11065         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11066         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11067         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11068         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11069         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11070         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11071         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11072         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11073         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11074         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11075         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11076         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11077         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11078         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11079         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11080         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11081         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11082         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11083         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11084         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11085         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11086         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11087         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11088         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11089         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11090         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11091         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11092         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11093         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11094         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11095         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11096         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11097         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11098         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11099         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11100         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11101         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11102         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11103         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11104         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11105         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11106         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11107         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11108         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11109         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11110         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11111         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11112         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11113         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11114         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11115         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11116         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
11117         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11118         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11119         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11120         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11121         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11122         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11123         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11124         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11125         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11126         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11127         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11128         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11129         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11130         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11131         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11132         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11133         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
11134         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11135         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
11136         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
11137         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
11138         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
11139         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
11140         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
11141         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
11142         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
11143         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
11144         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11145         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11146         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11147         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11148         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
11149         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11150         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
11151         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
11152         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
11153         (__isnanf): Likewise.
11154         (__isinf_ns): Likewise.
11155         (__isinf_nsf): Likewise.
11156         (__finite): Likewise.
11157         (__finitef): Likewise.
11158         (__ieee754_sqrt): Define as macro.
11159         (__ieee754_sqrtf): Define as macro.
11160         (__ieee754_sqrtl): Define as macro.
11161         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
11162         inlined copy.
11163         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
11164         __FINITE_MATH_ONLY__ consistent.
11165         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
11166
11167 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
11168
11169         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
11170         of rawmemchr.
11171
11172         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
11173
11174 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
11175
11176         * po/ja.po: Update from translation team.
11177
11178 2011-10-08  Roland McGrath  <roland@hack.frob.com>
11179
11180         * locale/programs/locarchive.c (prepare_address_space): New function.
11181         (create_archive, enlarge_archive, open_archive): Use it.
11182
11183         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
11184         inside [SHARED], where it is used.
11185
11186         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
11187
11188         * nss/getent.c (netgroup_keys): Remove unused variable.
11189         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11190
11191 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
11192
11193         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
11194         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
11195         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
11196         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
11197         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
11198         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
11199         * math/Makefile (libm-calls): Add s_isinf_ns.
11200         * math/divtc3.c: Use __isinf_nsl instead of isinf.
11201         * math/multc3.c: Likewise.
11202         * math/s_casin.c: Likewise.
11203         * math/s_casinf.c: Likewise.
11204         * math/s_casinl.c: Likewise.
11205         * math/s_ccos.c: Likewise.
11206         * math/s_ccosf.c: Likewise.
11207         * math/s_ccosl.c: Likewise.
11208         * math/s_ctan.c: Likewise.
11209         * math/s_ctanf.c: Likewise.
11210         * math/s_ctanh.c: Likewise.
11211         * math/s_ctanhf.c: Likewise.
11212         * math/s_ctanhl.c: Likewise.
11213         * math/s_ctanl.c: Likewise.
11214         * math/w_fmod.c: Likewise.
11215         * math/w_fmodf.c: Likewise.
11216         * math/w_fmodl.c: Likewise.
11217         * math/w_remainder.c: Likewise.
11218         * math/w_remainderf.c: Likewise.
11219         * math/w_remainderl.c: Likewise.
11220         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
11221         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
11222         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
11223         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
11224         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
11225         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
11226         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
11227         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
11228
11229         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
11230         of the number.
11231         * stdio-common/printf_fphex.c: Likewise.
11232         * stdio-common/printf_size.c: Likewise.
11233
11234         * math/e_exp10.c: Include math_private.h using <...> not "...".
11235         * math/e_exp10f.c: Likewise.
11236         * math/e_exp10l.c: Likewise.
11237         * math/e_exp2l.c: Likewise.
11238         * math/e_j0l.c: Likewise.
11239         * math/e_j1l.c: Likewise.
11240         * math/e_jnl.c: Likewise.
11241         * math/e_lgammal_r.c: Likewise.
11242         * math/e_rem_pio2l.c: Likewise.
11243         * math/e_scalb.c: Likewise.
11244         * math/e_scalbf.c: Likewise.
11245         * math/e_scalbl.c: Likewise.
11246         * math/k_cosl.c: Likewise.
11247         * math/k_sinl.c: Likewise.
11248         * math/k_tanl.c: Likewise.
11249         * math/s_cacoshf.c: Likewise.
11250         * math/s_catan.c: Likewise.
11251         * math/s_catanf.c: Likewise.
11252         * math/s_catanh.c: Likewise.
11253         * math/s_catanhf.c: Likewise.
11254         * math/s_catanhl.c: Likewise.
11255         * math/s_catanl.c: Likewise.
11256         * math/s_ccosh.c: Likewise.
11257         * math/s_ccoshf.c: Likewise.
11258         * math/s_ccoshl.c: Likewise.
11259         * math/s_cexp.c: Likewise.
11260         * math/s_cexpf.c: Likewise.
11261         * math/s_cexpl.c: Likewise.
11262         * math/s_clog.c: Likewise.
11263         * math/s_clog10.c: Likewise.
11264         * math/s_clog10f.c: Likewise.
11265         * math/s_clog10l.c: Likewise.
11266         * math/s_clogf.c: Likewise.
11267         * math/s_clogl.c: Likewise.
11268         * math/s_csin.c: Likewise.
11269         * math/s_csinf.c: Likewise.
11270         * math/s_csinh.c: Likewise.
11271         * math/s_csinhf.c: Likewise.
11272         * math/s_csinhl.c: Likewise.
11273         * math/s_csinl.c: Likewise.
11274         * math/s_csqrt.c: Likewise.
11275         * math/s_csqrtf.c: Likewise.
11276         * math/s_csqrtl.c: Likewise.
11277         * math/s_ctan.c: Likewise.
11278         * math/s_ctanf.c: Likewise.
11279         * math/s_ctanh.c: Likewise.
11280         * math/s_ctanhf.c: Likewise.
11281         * math/s_ctanhl.c: Likewise.
11282         * math/s_ctanl.c: Likewise.
11283         * math/s_ldexp.c: Likewise.
11284         * math/s_ldexpf.c: Likewise.
11285         * math/s_ldexpl.c: Likewise.
11286         * math/s_significand.c: Likewise.
11287         * math/s_significandf.c: Likewise.
11288         * math/s_significandl.c: Likewise.
11289         * math/w_acos.c: Likewise.
11290         * math/w_acosf.c: Likewise.
11291         * math/w_acosh.c: Likewise.
11292         * math/w_acoshf.c: Likewise.
11293         * math/w_acoshl.c: Likewise.
11294         * math/w_acosl.c: Likewise.
11295         * math/w_asin.c: Likewise.
11296         * math/w_asinf.c: Likewise.
11297         * math/w_asinl.c: Likewise.
11298         * math/w_atan2.c: Likewise.
11299         * math/w_atan2f.c: Likewise.
11300         * math/w_atan2l.c: Likewise.
11301         * math/w_atanh.c: Likewise.
11302         * math/w_atanhf.c: Likewise.
11303         * math/w_atanhl.c: Likewise.
11304         * math/w_cosh.c: Likewise.
11305         * math/w_coshf.c: Likewise.
11306         * math/w_coshl.c: Likewise.
11307         * math/w_dremf.c: Likewise.
11308         * math/w_exp10.c: Likewise.
11309         * math/w_exp10f.c: Likewise.
11310         * math/w_exp10l.c: Likewise.
11311         * math/w_exp2.c: Likewise.
11312         * math/w_exp2f.c: Likewise.
11313         * math/w_fmod.c: Likewise.
11314         * math/w_fmodf.c: Likewise.
11315         * math/w_fmodl.c: Likewise.
11316         * math/w_hypot.c: Likewise.
11317         * math/w_hypotf.c: Likewise.
11318         * math/w_hypotl.c: Likewise.
11319         * math/w_j0.c: Likewise.
11320         * math/w_j0f.c: Likewise.
11321         * math/w_j0l.c: Likewise.
11322         * math/w_j1.c: Likewise.
11323         * math/w_j1f.c: Likewise.
11324         * math/w_j1l.c: Likewise.
11325         * math/w_jn.c: Likewise.
11326         * math/w_jnf.c: Likewise.
11327         * math/w_jnl.c: Likewise.
11328         * math/w_lgamma.c: Likewise.
11329         * math/w_lgamma_r.c: Likewise.
11330         * math/w_lgammaf.c: Likewise.
11331         * math/w_lgammaf_r.c: Likewise.
11332         * math/w_lgammal.c: Likewise.
11333         * math/w_lgammal_r.c: Likewise.
11334         * math/w_log.c: Likewise.
11335         * math/w_log10.c: Likewise.
11336         * math/w_log10f.c: Likewise.
11337         * math/w_log10l.c: Likewise.
11338         * math/w_log2.c: Likewise.
11339         * math/w_log2f.c: Likewise.
11340         * math/w_log2l.c: Likewise.
11341         * math/w_logf.c: Likewise.
11342         * math/w_logl.c: Likewise.
11343         * math/w_pow.c: Likewise.
11344         * math/w_powf.c: Likewise.
11345         * math/w_powl.c: Likewise.
11346         * math/w_remainder.c: Likewise.
11347         * math/w_remainderf.c: Likewise.
11348         * math/w_remainderl.c: Likewise.
11349         * math/w_scalb.c: Likewise.
11350         * math/w_scalbf.c: Likewise.
11351         * math/w_scalbl.c: Likewise.
11352         * math/w_sinh.c: Likewise.
11353         * math/w_sinhf.c: Likewise.
11354         * math/w_sinhl.c: Likewise.
11355         * math/w_sqrt.c: Likewise.
11356         * math/w_sqrtf.c: Likewise.
11357         * math/w_sqrtl.c: Likewise.
11358         * math/w_tgamma.c: Likewise.
11359         * math/w_tgammaf.c: Likewise.
11360         * math/w_tgammal.c: Likewise.
11361
11362         * po/ja.po: Update from translation team.
11363
11364 2011-09-29  Andreas Jaeger  <aj@suse.de>
11365
11366         [BZ #13179]
11367         * sunrpc/netname.c (netname2host): Fix logic.
11368
11369         [BZ #6779]
11370         [BZ #6783]
11371         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
11372         correctly.
11373         * math/w_remainder.c (__remainder): Likewise.
11374         * math/w_remainderf.c (__remainderf): Likewise.
11375         * math/libm-test.inc (remainder_test): Add test cases.
11376
11377 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11378
11379         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
11380         sdiv_qrnnd.
11381
11382 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
11383
11384         * string/test-memcmp.c: Avoid unncessary #defines.
11385         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
11386
11387 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11388
11389         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
11390         Use new sse2 version for core i3 - i7 as it's faster
11391         than sse42 version.
11392         (bit_Prefer_PMINUB_for_stringop): New.
11393         * sysdeps/x86_64/rawmemchr.S: Update.
11394         Replace with faster SSE2 version.
11395         * sysdeps/x86_64/memrchr.S: New file.
11396         * sysdeps/x86_64/memchr.S: Update.
11397         Replace with faster SSE2 version.
11398
11399 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
11400
11401         * elf/dl-load.c (lose): Add cast to avoid warning.
11402
11403 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
11404
11405         * po/ca.po: Update from translation team.
11406
11407         * inet/getnetgrent_r.c: Hook up nscd.
11408         * nscd/Makefile (routines): Add nscd_netgroup.
11409         (nscd-modules): Add netgroupcache.
11410         (CFLAGS-netgroupcache.c): Define.
11411         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
11412         (cache_search): Add const to second parameter.
11413         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
11414         INNETGR.
11415         (dbs): Add netgrdb entry.
11416         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
11417         (verify_persistent_db): Handle netgrdb.
11418         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
11419         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
11420         GETFDNETGR.
11421         (netgroup_response_header): Define.
11422         (innetgroup_response_header): Define.
11423         (datahead): Add netgroup_response_header and innetgroup_response_header
11424         elements.
11425         * nscd/nscd.conf: Add entries for netgroup cache.
11426         * nscd/nscd.h (dbtype): Add netgrdb.
11427         (_PATH_NSCD_NETGROUP_DB): Define.
11428         (netgroup_iov_disabled): Declare.
11429         (xmalloc, xcalloc, xrealloc): Move declarations here.
11430         (cache_search): Adjust prototype.
11431         Add netgroup-related prototypes.
11432         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
11433         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
11434         (__nscd_innetgr): Declare.
11435         * nscd/selinux.c (perms): Use access_vector_t as element type and
11436         add netgroup-related initializers.
11437         * nscd/netgroupcache.c: New file.
11438         * nscd/nscd_netgroup.c: New file.
11439         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
11440         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
11441         For four parameters use innetgr.
11442         * nss/nss_files/files-init.c: Add definition and callback for netgr.
11443         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
11444         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
11445         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
11446
11447         * nscd/connections.c (register_traced_file): Don't register file
11448         for disabled databases.
11449
11450 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
11451
11452         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
11453
11454         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
11455         from tree and freeing node.
11456
11457 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
11458
11459         * nss/nsswitch.c (__nss_database_lookup): Handle
11460         nss_parse_service_list out of memory case.
11461
11462 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
11463
11464         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
11465         out of memory case.
11466
11467 2011-10-04  Andreas Schwab  <schwab@redhat.com>
11468
11469         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
11470         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
11471         pass it down.
11472         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
11473         elf_machine_rela, elf_machine_lazy_rel.
11474         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
11475         (ELF_DYNAMIC_DO_REL): Likewise.
11476         (ELF_DYNAMIC_DO_RELA): Likewise.
11477         (ELF_DYNAMIC_RELOCATE): Likewise.
11478         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
11479         to ELF_DYNAMIC_DO_REL.
11480         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
11481         (dl_main): In trace mode always set __RTLD_NOIFUNC.
11482         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
11483         elf_machine_rela.
11484         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
11485         skip_ifunc, don't call ifunc function if non-zero.
11486         (elf_machine_rela): Likewise.
11487         (elf_machine_lazy_rel): Likewise.
11488         (elf_machine_lazy_rela): Likewise.
11489         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
11490         (elf_machine_lazy_rel): Likewise.
11491         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
11492         Likewise.
11493         (elf_machine_lazy_rel): Likewise.
11494         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11495         Likewise.
11496         (elf_machine_lazy_rel): Likewise.
11497         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
11498         (elf_machine_lazy_rel): Likewise.
11499         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
11500         (elf_machine_lazy_rel): Likewise.
11501         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
11502         (elf_machine_lazy_rel): Likewise.
11503         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
11504         (elf_machine_lazy_rel): Likewise.
11505         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
11506         (elf_machine_lazy_rel): Likewise.
11507         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
11508         (elf_machine_lazy_rel): Likewise.
11509
11510 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
11511
11512         * nss/nss_files/files-init.c (_nss_files_init): Use static
11513         initialization for all the *_traced_file variables.
11514
11515 2011-09-28  Andreas Schwab  <schwab@redhat.com>
11516
11517         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11518
11519 2011-09-27  Roland McGrath  <roland@hack.frob.com>
11520
11521         [BZ #13226]
11522         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
11523
11524 2011-09-27  Andreas Schwab  <schwab@redhat.com>
11525
11526         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
11527         Reread the line before reparsing it.
11528
11529 2011-09-26  Andreas Schwab  <schwab@redhat.com>
11530
11531         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
11532
11533 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
11534             Maxim Kuvyrkov  <maxim@codesourcery.com>
11535             Joseph Myers  <joseph@codesourcery.com>
11536
11537         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
11538         if needed for __stack_chk_guard.
11539
11540 2011-09-19  Roland McGrath  <roland@hack.frob.com>
11541
11542         * sysdeps/posix/spawni.c (script_execute): Always define it.
11543         It will be optimized away if unused.
11544         (maybe_script_execute): New function.
11545         (__spawni): Call it.
11546
11547         * Makerules: Don't include tls.make.
11548         (config-tls): Always set to thread.
11549         * tls.make.c: File removed.
11550
11551 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
11552
11553         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
11554         * config.make.in (CPPFLAGS-config): New substituted variable.
11555
11556 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
11557
11558         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
11559
11560         [BZ #13192]
11561         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
11562         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
11563
11564 2011-09-15  Roland McGrath  <roland@hack.frob.com>
11565
11566         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
11567         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
11568         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
11569         (CALL_FAIL): Likewise.
11570         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
11571         (CALL_FAIL): Macro removed.
11572         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
11573
11574 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
11575
11576         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
11577         for __FINITE_MATH_ONLY__ == 1.
11578
11579 2011-09-15  Andreas Schwab  <schwab@redhat.com>
11580
11581         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
11582         __ieee754_sqrt instead of sqrt.
11583         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
11584         __ieee754_sqrtf instead of sqrtf.
11585         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
11586         __floorf instead of floorf.
11587         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
11588         __floorf, __truncf instead of floorf, truncf.
11589
11590 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
11591
11592         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
11593
11594         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
11595         __extern_always_inline.
11596         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
11597         32-bit.
11598
11599 2011-09-14  Andreas Schwab  <schwab@redhat.com>
11600
11601         * elf/rtld.c (dl_main): Also relocate in dependency order when
11602         doing symbol dependency testing.
11603
11604 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
11605
11606         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11607         Always define `refsym'.
11608
11609 2011-09-13  Andreas Schwab  <schwab@redhat.com>
11610
11611         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
11612         (__FD_ELT): Renamed from __FDELT.
11613         * misc/bits/select2.h (__FD_ELT): Likewise.
11614         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
11615         __FD_MASK instead of __FDELT, __FDMASK.
11616         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
11617         Likewise.
11618         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
11619         Likewise.
11620
11621         * elf/Makefile (gen-ldd): Fix pattern.
11622
11623         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
11624         (init_tls): Likewise.
11625
11626 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
11627
11628         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
11629
11630 2011-09-12  Andreas Schwab  <schwab@redhat.com>
11631
11632         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
11633         `struct cmsghdr *' instead of `void *'.
11634         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
11635         Likewise.
11636
11637 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
11638
11639         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
11640         if non-absolute.
11641         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
11642         ldd_rewrite_script.
11643
11644 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
11645
11646         * configure.in: Remove --with-tls option.
11647         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
11648         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
11649         out in case it is missing.
11650         * sysdeps/ia64/elf/configure.in: Likewise.
11651         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
11652         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
11653         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
11654         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
11655         * sysdeps/sh/elf/configure.in: Likewise.
11656         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
11657         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11658         * sysdeps/x86_64/elf/configure.in: Likewise.
11659         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
11660         * sysdeps/mach/hurd/tls.h: Likewise.
11661
11662         [BZ #13067]
11663         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
11664
11665         [BZ #13090]
11666         * configure.in: Fix use of AC_INIT.
11667
11668         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
11669
11670 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
11671
11672         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
11673         __set_errno.
11674         * malloc/hooks.c: Likewise.
11675
11676         [BZ #11929]
11677         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
11678         variables statically.
11679         (narenas): Initialize.
11680         (list_lock): Initialize.
11681         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
11682         initializtion of main_arena and list_lock.  Small cleanups.
11683         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
11684         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
11685         Add initializers to main_arena and mp_.
11686         (malloc_state): Remove pagesize member.  Change all users to use
11687         GLRO(dl_pagesize).
11688
11689         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
11690         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
11691         is always initialized.
11692
11693         * malloc/malloc.c: Removed unused configurations and dead code.
11694         * malloc/arena.c: Likewise.
11695         * malloc/hooks.c: Likewise.
11696         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
11697
11698         * include/tls.h: Removed.  USE___THREAD must always be defined.
11699         * bits/libc-tsd.h: Don't handle !USE___THREAD.
11700         * elf/dl-libc.c: Likewise.
11701         * elf/dl-tsd.c: Likewise.
11702         * include/errno.h: Likewise.
11703         * include/netdb.h: Likewise.
11704         * include/resolv.h: Likewise.
11705         * inet/herrno-loc.c: Likewise.
11706         * inet/herrno.c: Likewise.
11707         * malloc/arena.c: Likewise.
11708         * malloc/hooks.c: Likewise.
11709         * malloc/malloc.c: Likewise.
11710         * resolv/res-state.c: Likewise.
11711         * resolv/res_libc.c: Likewise.
11712         * sysdeps/i386/dl-machine.h: Likewise.
11713         * sysdeps/ia64/dl-machine.h: Likewise.
11714         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11715         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11716         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11717         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11718         * sysdeps/sh/dl-machine.h: Likewise.
11719         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11720         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11721         * sysdeps/unix/i386/sysdep.S: Likewise.
11722         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
11723         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
11724         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
11725         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
11726         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
11727         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
11728         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
11729         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11730         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11731         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11732         * sysdeps/unix/x86_64/sysdep.S: Likewise.
11733         * sysdeps/x86_64/dl-machine.h: Likewise.
11734         * tls.make.c: Likewise.
11735
11736         * configure.in: Remove --with-__thread option.  Make tests for
11737         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
11738         tls_model attribute fail if no support is available.  Remove
11739         USE_IN_LIBIO.
11740         * Makeconfig: Adjust for dropped configure option.  All features are
11741         now mandatory.
11742         * Makerules: Likewise.
11743         * Versions.def: Likewise.
11744         * argp/argp-fmtstream.c: Likewise.
11745         * argp/argp-fmtstream.h: Likewise.
11746         * argp/argp-help.c: Likewise.
11747         * assert/assert.c: Likewise.
11748         * config.h.in: Likewise.
11749         * config.make.in: Likewise.
11750         * configure: Likewise.
11751         * configure.in: Likewise.
11752         * csu/Versions: Likewise.
11753         * csu/init.c: Likewise.
11754         * elf/tst-audit2.c: Likewise.
11755         * elf/tst-tls10.c: Likewise.
11756         * elf/tst-tls10.h: Likewise.
11757         * elf/tst-tls11.c: Likewise.
11758         * elf/tst-tls12.c: Likewise.
11759         * elf/tst-tls14.c: Likewise.
11760         * elf/tst-tlsmod11.c: Likewise.
11761         * elf/tst-tlsmod12.c: Likewise.
11762         * elf/tst-tlsmod13.c: Likewise.
11763         * elf/tst-tlsmod13a.c: Likewise.
11764         * elf/tst-tlsmod14a.c: Likewise.
11765         * elf/tst-tlsmod15b.c: Likewise.
11766         * elf/tst-tlsmod16a.c: Likewise.
11767         * elf/tst-tlsmod16b.c: Likewise.
11768         * elf/tst-tlsmod7.c: Likewise.
11769         * elf/tst-tlsmod8.c: Likewise.
11770         * elf/tst-tlsmod9.c: Likewise.
11771         * gmon/gmon.c: Likewise.
11772         * grp/fgetgrent_r.c: Likewise.
11773         * grp/putgrent.c: Likewise.
11774         * hurd/fopenport.c: Likewise.
11775         * include/libc-symbols.h: Likewise.
11776         * include/tls.h: Likewise.
11777         * intl/gettextP.h: Likewise.
11778         * intl/loadinfo.h: Likewise.
11779         * locale/global-locale.c: Likewise.
11780         * locale/localeinfo.h: Likewise.
11781         * mach/devstream.c: Likewise.
11782         * malloc/arena.c: Likewise.
11783         * malloc/set-freeres.c: Likewise.
11784         * misc/err.c: Likewise.
11785         * misc/getttyent.c: Likewise.
11786         * misc/mntent_r.c: Likewise.
11787         * posix/getopt.c: Likewise.
11788         * posix/wordexp.c: Likewise.
11789         * pwd/fgetpwent_r.c: Likewise.
11790         * resolv/Versions: Likewise.
11791         * resolv/res_hconf.c: Likewise.
11792         * shadow/fgetspent_r.c: Likewise.
11793         * shadow/putspent.c: Likewise.
11794         * stdio-common/printf_fphex.c: Likewise.
11795         * stdio-common/tmpfile.c: Likewise.
11796         * stdlib/abort.c: Likewise.
11797         * stdlib/fmtmsg.c: Likewise.
11798         * sunrpc/auth_unix.c: Likewise.
11799         * sunrpc/clnt_perr.c: Likewise.
11800         * sunrpc/clnt_tcp.c: Likewise.
11801         * sunrpc/clnt_udp.c: Likewise.
11802         * sunrpc/clnt_unix.c: Likewise.
11803         * sunrpc/openchild.c: Likewise.
11804         * sunrpc/svc_simple.c: Likewise.
11805         * sunrpc/svc_tcp.c: Likewise.
11806         * sunrpc/svc_udp.c: Likewise.
11807         * sunrpc/svc_unix.c: Likewise.
11808         * sunrpc/xdr.c: Likewise.
11809         * sunrpc/xdr_array.c: Likewise.
11810         * sunrpc/xdr_rec.c: Likewise.
11811         * sunrpc/xdr_ref.c: Likewise.
11812         * sunrpc/xdr_stdio.c: Likewise.
11813
11814 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
11815
11816         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11817
11818 2011-07-03  Andreas Jaeger  <aj@suse.de>
11819
11820         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
11821         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
11822         regenerate with gen-libm-tests.pl.
11823
11824 2010-05-12  Petr Baudis  <pasky@suse.cz>
11825
11826         [BZ #11589]
11827         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
11828         around j0() zero points by switching to j1().
11829         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11830         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11831         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11832         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11833
11834 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
11835
11836         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
11837         instead of 0.
11838         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
11839         instead of 0.                              .
11840         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11841         Patch in part by Pavel Roskin <proski@gnu.org>.
11842
11843         [BZ #13138]
11844         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
11845         realloc.
11846         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
11847         Free memory block if necessary.
11848
11849         [BZ #12847]
11850         * libio/genops.c (INTDEF): For string streams the _lock pointer can
11851         be NULL.  Don't lock in this case.
11852
11853 2011-09-09  Roland McGrath  <roland@hack.frob.com>
11854
11855         * elf/elf.h (ELFOSABI_GNU): New macro.
11856         (ELFOSABI_LINUX): Define to that.
11857
11858 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
11859
11860         * string/strncat.c (strncat): Undef the symbol in case it has been
11861         defined in bits/string.h.
11862
11863 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
11864
11865         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
11866
11867         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
11868         link map.
11869
11870 2011-08-17  Andreas Jaeger  <aj@suse.de>
11871
11872         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
11873
11874 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11875             Ian Lance Taylor  <iant@google.com>
11876
11877         * math/libm-test.inc (lround_test): New testcase.
11878         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
11879
11880 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
11881
11882         * Makefile: Remove support for automatic cvs check-ins.
11883         * Makerules: Likewise.
11884         * config.make.in: Likewise.
11885         * configure.in: Likewise.
11886         * intl/Makefile: Likewise.
11887         * locale/Makefile: Likewise.
11888         * po/Makefile: Likewise.
11889         * posix/Makefile: Likewise.
11890         * sysdeps/gnu/Makefile: Likewise.
11891         * sysdeps/mach/hurd/Makefile: Likewise.
11892         * sysdeps/sparc/sparc32/Makefile: Likewise.
11893
11894         [BZ #13118]
11895         * posix/Makefile (bug-regex32-ENV): Define.
11896         Patch by John Stanley <jpsinthemix@verizon.net>.
11897
11898         * misc/Makefile (headers): Add bits/select2.h.
11899         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
11900         * misc/bits/select2.h: New file.
11901         * include/bits/select2.h: New file.
11902         * debug/Makefile (routines): Add fdelt_chk.
11903         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
11904         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
11905         FD_ISSET.
11906         * debug/fdelt_chk.c: New file.
11907
11908         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
11909         * wcsmbs/test-wmemcmp.c: Likewise.
11910         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
11911         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
11912
11913 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11914
11915         * string/Makefile (strop-tests): Add memcmp.
11916         * string/test-wmemcmp.c: New file.
11917         * string/test-memcmp.c: Add wmemcmp support.
11918
11919 2011-09-08  Roland McGrath  <roland@hack.frob.com>
11920
11921         [BZ #13153]
11922         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
11923         2011-07-19 change.
11924
11925         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
11926         garbage value in a __mach_port_mod_refs call in the cases of the
11927         task-self and thread-self ports.
11928
11929 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11930
11931         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
11932
11933 2011-09-08  Andreas Schwab  <schwab@redhat.com>
11934
11935         * elf/dl-load.c (lose): Check for non-null L.
11936
11937 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
11938
11939         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
11940
11941         * elf/dl-libc.c (dlerror_run): Pass back error code from
11942         dl_catch_error.
11943
11944         [BZ #13123]
11945         * elf/dl-load.c (lose): Free l_origin if it is valid.
11946
11947         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
11948         names.
11949         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
11950         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
11951         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
11952         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
11953         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
11954         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
11955
11956 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11957
11958         * sysdeps/powerpc/fpu/e_hypot.c: New file.
11959         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
11960         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
11961         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
11962         * sysdeps/powerpc/fpu/k_cosf.c: New file.
11963         * sysdeps/powerpc/fpu/k_sinf.c: New file.
11964         * sysdeps/powerpc/fpu/s_cosf.c: New file.
11965         * sysdeps/powerpc/fpu/s_sinf.c: New file.
11966         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
11967         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
11968
11969 2011-08-15  Alan Modra  <amodra@gmail.com>
11970
11971         [BZ #13092]
11972         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
11973         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
11974         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
11975         ppc_mcount to static-only-routines.
11976         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
11977         __mcount_internal.
11978         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
11979         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
11980
11981 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
11982
11983         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
11984         for finite and infinity parameters.
11985
11986 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11987
11988         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
11989         and add nop instructions for throughput optimization.
11990         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11991
11992 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
11993
11994         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
11995         aligned copy for power7 with vector-scalar instructions.
11996         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
11997
11998 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11999
12000         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
12001         AVX check.
12002
12003 2011-09-07  Andreas Schwab  <schwab@redhat.com>
12004
12005         [BZ #13144]
12006         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
12007         last change.
12008
12009 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12010
12011         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12012         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
12013         syscall wrapper around clock_gettime in __vdso_clock_gettime.
12014         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
12015         clock_gettime.
12016
12017 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12018
12019         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
12020         Forgot to demangle the pointer.
12021
12022         * sysdeps/i386/sysdep.h: Define atom_text_section.
12023         * sysdeps/x86_64/sysdep.h: Likewise.
12024         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
12025         section with atom_text_section.
12026         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12027         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12028         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
12029         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
12030         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
12031
12032         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
12033         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
12034         already be defined.  Change to take two parameters and don't assign
12035         result to variable.  Adjust all users.
12036         Define INTERNAL_GETTIME if not already defined.
12037         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
12038         call.
12039         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
12040         HAVE_CLOCK_GETTIME_VSYSCALL.
12041         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
12042
12043         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
12044         gettimeofday vsyscall, just use time.
12045
12046 2011-09-06  Andreas Schwab  <schwab@redhat.com>
12047
12048         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
12049         <errno.h>.
12050
12051 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12052
12053         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
12054         syscall on x86-64.
12055         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
12056         syscall.
12057         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
12058         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
12059         syscall if possible.
12060
12061 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12062
12063         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
12064         e_ident.  Don't pass to find_mapsXX.
12065         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
12066
12067 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12068
12069         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12070         strchr-sse2-no-bsf strrchr-sse2-no-bsf
12071         * sysdeps/x86_64/multiarch/strchr.S: Update.
12072         Check bit_slow_BSF bit.
12073         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
12074         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
12075         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
12076
12077 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12078
12079         [BZ #13134]
12080         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
12081         before glibc 2.15.
12082         (tryshell): Define.
12083         (__spawni): Change last parameter to be flag.  Test
12084         SPAWN_XFLAGS_USE_PATH flag to use path or not.
12085         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
12086         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
12087         * posix/spawni.c: Likewise.
12088         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
12089         * posix/spawnp.c: Likewise.  Change normal version to use
12090         SPAWN_XFLAGS_USE_PATH.
12091         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
12092         SPAWN_XFLAGS_TRY_SHELL.
12093
12094         [BZ #13150]
12095         * posix/glob.h: Remove gcc 1.x support.
12096
12097         [BZ #13068]
12098         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
12099
12100 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12101
12102         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12103         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
12104         strrchr-sse2-bsf
12105         * sysdeps/i386/i686/multiarch/strchr.S: New file.
12106         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
12107         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
12108         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
12109         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
12110         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
12111
12112 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12113
12114         * sysdeps/x86_64/wcscmp.S: New file.
12115
12116         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
12117         wcscmp-c wcscmp-sse2
12118         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
12119         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
12120         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
12121         * wcsmbs/wcscmp.c: Allow renaming.
12122
12123 2011-09-05  David S. Miller  <davem@davemloft.net>
12124
12125         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
12126         stack slot, rather than the struct return pointer slot.
12127         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
12128         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
12129         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
12130         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
12131
12132 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12133
12134         * po/ja.po: Update from translation team.
12135
12136         [BZ #13144]
12137         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
12138         kernel in 64-bit binaries.
12139
12140 2011-09-01  David S. Miller  <davem@davemloft.net>
12141
12142         * elf/elf.h (HWCAP_SPARC_*): Move to..
12143         * sysdeps/sparc/sysdep.h: this new file and add new values.
12144         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
12145         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
12146         _DL_HWCAP_COUNT to 24.
12147         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
12148         entries.
12149         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
12150         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
12151         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
12152         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
12153         instead of magic constants.
12154         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12155
12156 2011-08-31  David S. Miller  <davem@davemloft.net>
12157
12158         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
12159         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
12160         Reimplement to do errno handling inline.
12161         (SYSCALL_ERROR_HANDLER): New macro.
12162         (__SYSCALL_STRING): Do not do errno handling in asm.
12163         (__CLONE_SYSCALL_STRING): Delete.
12164         (__INTERNAL_SYSCALL_STRING): Delete.
12165         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
12166         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
12167         (PSEUDO): Reimplement to do errno handling inline.
12168         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
12169         (SYSCALL_ERROR_HANDLER): New macro.
12170         (__SYSCALL_STRING): Do not do errno handling in asm.
12171         (__CLONE_SYSCALL_STRING): Delete.
12172         (__INTERNAL_SYSCALL_STRING): Delete.
12173         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
12174         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
12175         i386.
12176         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
12177         (inline_syscall*): Add 'err' argument.
12178         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
12179         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
12180         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
12181         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
12182
12183         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
12184         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
12185
12186 2011-08-30  Andreas Schwab  <schwab@redhat.com>
12187
12188         * elf/rtld.c (dl_main): Relocate objects in dependency order.
12189
12190 2011-08-29  Jiri Olsa <jolsa@redhat.com>
12191
12192         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
12193         directive.
12194
12195 2011-08-24  David S. Miller  <davem@davemloft.net>
12196
12197         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
12198
12199 2011-08-24  Andreas Schwab  <schwab@redhat.com>
12200
12201         * elf/Makefile: Add rules to build and run unload8 test.
12202         * elf/unload8.c: New file.
12203         * elf/unload8mod1.c: New file.
12204         * elf/unload8mod1x.c: New file.
12205         * elf/unload8mod2.c: New file.
12206         * elf/unload8mod3.c: New file.
12207
12208         * elf/dl-close.c (_dl_close_worker): Reset private search list if
12209         it wasn't used.
12210
12211 2011-08-23  David S. Miller  <davem@davemloft.net>
12212
12213         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
12214         subtract stack bias.
12215         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
12216         %sp not %fp in calculations.
12217         (_JMPBUF_UNWINDS_ADJ): Likewise.
12218
12219         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
12220         (aio_suspend): Call it to force an exception region around the
12221         AIO_MISC_WAIT() invocation.
12222
12223 2011-08-23  Andreas Schwab  <schwab@redhat.com>
12224
12225         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
12226         backslash.
12227
12228 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
12229
12230         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
12231         protection macro.
12232         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
12233         and <dl-machine.h>.
12234         (Elf64_FuncDesc): Remove.
12235
12236 2011-08-22  David S. Miller  <davem@davemloft.net>
12237
12238         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
12239         sigaltstack check, add missing cfi directives.
12240         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
12241         missing cfi directives, and sigaltstack handling.
12242
12243 2011-08-16  Andreas Schwab  <schwab@redhat.com>
12244
12245         [BZ #11724]
12246         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
12247         object is seen twice.
12248         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12249
12250         * elf/Makefile (distribute): Add tst-initorder2.c.
12251         (tests): Add tst-initorder2.
12252         (modules-names): Add tst-initorder2a tst-initorder2b
12253         tst-initorder2c tst-initorder2d.  Add rules to build them.
12254         ($(objpfx)tst-initorder2.out): New rule.
12255         * elf/tst-initorder2.c: New file.
12256         * elf/tst-initorder2.exp: New file.
12257
12258 2011-08-22  Andreas Schwab  <schwab@redhat.com>
12259
12260         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
12261
12262         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
12263         dependencies back to end of function.
12264
12265         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
12266         $(elfobjdir)/ld.so.
12267
12268 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
12269
12270         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
12271         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
12272         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12273         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12274         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
12275         of __vdso_gettimeofday.
12276         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
12277         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
12278         attribute_hidden.
12279         (_libc_vdso_platform_setup): Remove initialization of
12280         __vdso_gettimeofday and __vdso_time.
12281
12282 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
12283
12284         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
12285         and fgetc_unlocked.
12286         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
12287         getc_unlocked.
12288
12289         * elf/dl-open.c (add_to_global): Report additions to the global scope
12290         for LD_DEBUG=scopes.
12291         (dl_open_worker): Also print scope of newly loaded dependencies.
12292         (_dl_show_scope): Indicate if there is no scope.
12293
12294         [BZ #13114]
12295         * stdio-common/Makefile (tests): Add bug24.
12296         * stdio-common/bug24.c: New file.
12297
12298 2011-08-19  Andreas Jaeger  <aj@suse.de>
12299
12300         [BZ #13114]
12301         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
12302         non-existant file when using close-on-exec mode.
12303
12304 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
12305
12306         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
12307         the very first instruction.
12308
12309         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
12310         the CFI state in the end.
12311         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
12312         inclusion of dl-trampoline.h.
12313         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
12314
12315 2011-08-19  Andreas Schwab  <schwab@redhat.com>
12316
12317         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
12318         expectations for long double.
12319
12320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
12321         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
12322
12323 2011-08-14  David S. Miller  <davem@davemloft.net>
12324
12325         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
12326         artificual limit depends upon the system page size.
12327
12328 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
12329
12330         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
12331         * resolv/Makefile: Define CFLAGS-libresolv.
12332
12333 2011-08-17  Andreas Schwab  <schwab@redhat.com>
12334
12335         * nss/makedb.c (compute_tables): Make variables used in nested
12336         function static.
12337
12338 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
12339
12340         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
12341         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
12342         if buffer was too small.
12343
12344         * elf/pldd.c (main): Attach to all threads in the process.
12345         Rewrite /proc handling to use *at functions.
12346
12347 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
12348
12349         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
12350         specifies first scope to show.
12351         (dl_open_worker): Update callers.  Move printing scope of new
12352         object to before the relocation.
12353         * elf/rtld.c (dl_main): Update _dl_show_scope call.
12354         * sysdeps/generic/ldsodefs.h: Update declaration.
12355
12356         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
12357         string for the scope number.
12358
12359 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
12360
12361         * nscd/servicescache.c (cache_addserv): Make sure written is always
12362         initialized.
12363
12364 2011-08-14  Roland McGrath  <roland@hack.frob.com>
12365
12366         * sysdeps/i386/i486/bits/atomic.h
12367         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
12368         statement expression, so as to suppress "set but not used" warning.
12369         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
12370
12371         * string/strncat.c (STRNCAT): Use prototype definition.
12372
12373         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
12374         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
12375         -Iprograms here.
12376         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
12377         (localedef-modules): Add localedef.
12378         (locale-modules): Add locale.
12379
12380         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
12381         * elf/rtld.c (dl_main): Invert order of assignment in last change,
12382         to avoid a warning.
12383
12384 2011-08-14  David S. Miller  <davem@davemloft.net>
12385
12386         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
12387         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
12388
12389 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
12390
12391         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
12392         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
12393         * elf/rtld.c (dl_main): Set l_name of vDSO.
12394         Call _dl_show_scope when DL_DEBUG_SCOPES.
12395         (process_dl_debug): Recognize scopes flag and also set it for all.
12396         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
12397         Declare _dl_show_scope.
12398
12399         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
12400         (do_dlopen): Pass caller_dlopen to dl_open.
12401         (__libc_dlopen_mode): Initialize caller_dlopen.
12402
12403         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
12404         of libc.  Make tolower call locale-independent.  Optimize a bit by
12405         using isdigit instead of isalnum.
12406         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
12407
12408 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
12409
12410         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
12411         was a dependency or dynamically loaded.
12412
12413 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
12414
12415         * intl/l10nflist.c: Allow architecture-specific pop function.
12416         * sysdeps/x86_64/l10nflist.c: New file.
12417
12418         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
12419         classification.
12420
12421 2011-08-10  Andreas Schwab  <schwab@redhat.com>
12422
12423         * include/dirent.h: Add libc_hidden_proto for scandirat and
12424         scandirat64.  Don't declare __scandirat64.
12425         * dirent/scandirat.c: Add libc_hidden_def.
12426         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
12427         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
12428
12429 2011-08-10  David S. Miller  <davem@davemloft.net>
12430
12431         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
12432         enum.
12433         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12434         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12435         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12436
12437 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
12438
12439         * Versions.def [libc]: Add GLIBC_2.15.
12440         * dirent/Makefile (routines): Add scandirat and scandirat64.
12441         * dirent/Versions [libc]: Export scandirat and scandirat64 for
12442         GLIBC_2.15.
12443         * dirent/dirent.h: Declare scandirat and scandirat64.
12444         * dirent/scandirat.c: New file.
12445         * dirent/scandirat64.c: New file.
12446         * sysdeps/wordsize-64/scandirat.c: New file.
12447         * sysdeps/wordsize-64/scandirat64.c: New file.
12448         * dirent/opendir.c: Define opendirat.
12449         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
12450         using scandirat.
12451         * dirent/scandir64.c: Adjust for scandir.c change.
12452         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
12453         __scandirat64, and __scandir_cancel_handler.
12454         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
12455         additional parameter and use openat instead of open (outside of ld.so).
12456         Add new __opendir as wrapper around __opendirat.
12457         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
12458         here without requiring old scandirat implementation.
12459
12460 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
12461
12462         * dirent/scandir.c (cancel_handler): Renamed to
12463         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
12464         defined.  Adjust users.
12465         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
12466         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12467
12468 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
12469
12470         * string/test-string.h (IMPL): Use __STRING to expand name and then
12471         stringify it.
12472
12473         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
12474         of cleanups.
12475
12476 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12477
12478         * string/Makefile: Update.
12479         (strop-tests): Append strncat.
12480         * string/test-wcscmp.c: New file.
12481         New comprehensive test for wcscmp.
12482         * string/test-strcmp.c: Update.
12483         (WIDE): New define.
12484
12485 2011-07-22  Andreas Schwab  <schwab@redhat.com>
12486
12487         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
12488         line.
12489
12490 2011-07-26  Andreas Schwab  <schwab@redhat.com>
12491
12492         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
12493         encoding to ACE if AI_IDN.
12494
12495 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
12496
12497         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
12498         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
12499
12500 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12501
12502         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
12503         Fix overflow bug in strncat.
12504         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
12505
12506         * string/test-strncat.c: Update.
12507         Add new tests for checking overflow bugs.
12508
12509 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12510
12511         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12512         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
12513         * sysdeps/i386/i686/multiarch/strcat.S: New file.
12514         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
12515         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
12516         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
12517         * sysdeps/i386/i686/multiarch/strncat.S: New file.
12518         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
12519         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
12520
12521         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
12522         (USE_AS_STRCAT): Define.
12523         Add strcat and strncat support.
12524         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
12525
12526 2011-07-25  Andreas Schwab  <schwab@redhat.com>
12527
12528         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
12529         __n bigger than INT_MAX+1.
12530         (__strncmp_g): Likewise.
12531
12532 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
12533
12534         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
12535         * libio/stido.h: Likewise.
12536
12537         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
12538         (AF_NFC): Define.
12539         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
12540         (AF_NFC): Define.
12541
12542         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
12543         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12544         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12545         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
12546         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12547
12548         [BZ #13021]
12549         * scripts/test-installation.pl: Don't expect libnss_test1 to be
12550         installed.
12551
12552         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
12553         typo.
12554         (_dl_x86_64_save_sse): Likewise.
12555
12556 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
12557
12558         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
12559         OSXSAVE.
12560         (_dl_x86_64_save_sse): Likewise.
12561
12562         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
12563
12564         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
12565
12566 2011-07-21  Andreas Schwab  <schwab@redhat.com>
12567
12568         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
12569         change.
12570         (_dl_x86_64_save_sse): Use correct AVX check.
12571
12572 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12573
12574         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
12575         bug in strncpy/strncat.
12576         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
12577
12578 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
12579
12580         * string/tester.c (test_strcat): Add tests for different alignments
12581         of source and destination.
12582         (test_strncat): Likewise.
12583
12584 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
12585
12586         [BZ #12852]
12587         * posix/glob.c (glob): Check passed in values before using them in
12588         expressions to avoid some overflows.
12589         (glob_in_dir): Likewise.
12590
12591         [BZ #13007]
12592         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
12593         check for AVX enablement so that we don't crash with old kernels and
12594         new hardware.
12595         * elf/tst-audit4.c: Add same checks here.
12596         * elf/tst-audit6.c: Likewise.
12597
12598         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
12599
12600 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
12601
12602         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
12603
12604 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
12605
12606         * po/cs.po: Update from translation team.
12607         * po/bg.po: Likewise.
12608
12609 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
12610
12611         * misc/sys/cdefs.h: Add support for const attribute.
12612         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
12613         to gnu_dev_{major,minor,makedev} functions.
12614
12615 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
12616
12617         * intl/dcigettext.c (get_output_charset): Add missing bracket.
12618
12619 2011-07-20  Andreas Schwab  <schwab@redhat.com>
12620
12621         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
12622         strlen results.
12623
12624 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12625
12626         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
12627         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
12628         register in order to avoid conflicts with the soft frame pointer
12629         being held in r11 when necessary.
12630         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
12631         (INTERNAL_VSYSCALL_NCS): Likewise.
12632
12633 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
12634
12635         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
12636         * elf/dl-fini.c (_dl_fini): Adjust caller.
12637         * elf/dl-close.c (_dl_close_worker): Likewise.
12638         * sysdeps/generic/ldsodefs.h: Adjust declaration.
12639
12640 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
12641
12642         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
12643         "aux_cache->nlibs < 0".
12644
12645         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
12646         in the reload-count case.
12647
12648 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12649
12650         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12651         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
12652         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
12653         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
12654         * sysdeps/x86_64/multiarch/strcat.S: New file.
12655         * sysdeps/x86_64/multiarch/strncat.S: New file.
12656         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
12657         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
12658         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
12659         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
12660         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
12661         (USE_AS_STRCAT): Define.
12662         Add strcat and strncat support.
12663         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
12664         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
12665         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
12666         * string/strncat.c: Update.
12667         (USE_AS_STRNCAT): Define.
12668         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12669         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
12670         and i7.
12671         * sysdeps/x86_64/multiarch/init-arch.h
12672         (bit_Prefer_PMINUB_for_stringop): New.
12673         (index_Prefer_PMINUB_for_stringop): Likewise.
12674         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
12675         bit_Prefer_PMINUB_for_stringop.
12676
12677 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
12678
12679         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
12680         buffer64.
12681         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
12682         of casting of buffer.
12683         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
12684         buffer32 and buffer64.
12685         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
12686         writes instead of casting of buffer.
12687         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
12688         buffer32.
12689         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
12690         casting of buffer.
12691
12692 2011-07-19  Andreas Schwab  <schwab@redhat.com>
12693
12694         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
12695
12696 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
12697
12698         * nscd/nscd.c (termination_handler): Don't do anything for a database
12699         if it has not yet been initialized.
12700
12701 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
12702
12703         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
12704
12705 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
12706
12707         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
12708
12709 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
12710
12711         * po/nl.po: Update from translation team.
12712         * po/sv.po: Likewise.
12713
12714 2011-07-16  Roland McGrath  <roland@hack.frob.com>
12715
12716         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
12717         now disallowed by GCC.
12718
12719         * configure.in (use-default-link): Default to yes if a test -shared
12720         link meets our qualifications.
12721         * configure: Regenerated.
12722
12723         * config.make.in (output-format): New variable.
12724         * configure.in: Check for ld --print-output-format support.
12725         * configure: Regenerated.
12726         * Makerules ($(common-objpfx)format.lds)
12727         [$(output-format) != unknown]: Just use $(output-format),
12728         instead of the linker-script munging.
12729
12730 2011-07-14  Roland McGrath  <roland@hack.frob.com>
12731
12732         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
12733         of $(common-objpfx)shlib.lds.
12734         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
12735
12736         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
12737         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
12738
12739         * configure.in (-z relro check): Adjust test code to add a large
12740         writable data section after it.
12741         * configure: Regenerated.
12742
12743 2011-07-11  Roland McGrath  <roland@hack.frob.com>
12744
12745         * configure.in (-z relro check): Fix test code to make the variable
12746         truly const.
12747         * configure: Regenerated.
12748
12749 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
12750
12751         * nscd/nscd.h (struct traced_file): Define.
12752         (struct database_dyn): Remove inotify_descr, reset_res, and filename
12753         elements.  Add traced_files.
12754         (inotify_fd): Declare.
12755         (register_traced_file): Declare.
12756         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
12757         (inotify_fd): Export.
12758         (resolv_conf_descr): Remove.
12759         (nscd_init): Move inotify descriptor creation to main.
12760         Don't register files for notification here.
12761         (register_traced_file): New function.
12762         (invalidate_cache): Don't use reset_res to determine whether to call
12763         res_init, go through the list of registered files.
12764         (main_loop_poll): The inotify descriptors are now stored in the
12765         structures for the traced files.
12766         (main_loop_epoll): Likewise
12767         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
12768         to __nss_disable_nscd.
12769         * nscd/cache.c (prune_cache): There is no single inotify descriptor
12770         for a database anymore.  Check the records for all the registered
12771         files instead.
12772         * nss/Makefile (libnss_files-routines): Add files-init.
12773         (libnss_db-routines): Add db-init.
12774         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
12775         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
12776         * nss/nss_db/db-init.c: New file.
12777         * nss/nss_files/files-init.c: New file.
12778         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
12779         __nss_lookup_function.
12780         (__nss_lookup_function): Call nss_load_library.
12781         (nss_load_all_libraries): New function.
12782         (__nss_disable_nscd): Take parameter with callback function for files
12783         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
12784         used for the cached services.
12785         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
12786         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
12787         options for features to all the files in nscd.
12788
12789         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
12790
12791 2011-07-10  Roland McGrath  <roland@hack.frob.com>
12792
12793         * csu/elf-init.c (__libc_csu_init): Comment typo.
12794
12795 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
12796
12797         * po/pl.po: Update from translation team.
12798         * po/ja.po: Likewise.
12799         * po/ru.po: Likewise.
12800         * po/ko.po: Likewise.
12801         * po/fr.po: Likewise.
12802
12803 2011-07-09  Roland McGrath  <roland@hack.frob.com>
12804
12805         * configure.in (.ctors/.dtors header and trailer check):
12806         Use an empirical test on a built program.
12807         * configure: Regenerated.
12808
12809         * configure.in (-z relro check): Use an empirical test on a built DSO.
12810         Detect, but do not require, on ia64.
12811         * configure: Regenerated.
12812
12813         * configure.in (READELF): Find it with AC_CHECK_TOOL.
12814         Update tests that use readelf to use $READELF instead.
12815         * configure: Regenerated.
12816
12817 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
12818
12819         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
12820         if the result is not used.
12821
12822 2011-07-05  Andreas Jaeger  <aj@suse.de>
12823
12824         [BZ#9696]
12825         * stdlib/tst-strtod.c: Add testcase.
12826
12827 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12828
12829         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
12830         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
12831         The latter has a higher limit.  Take additional parameter to pass to
12832         the new function.
12833         (__pathconf): Pass file to __statfs_link_max.
12834         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
12835         __statfs_link_max.
12836         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
12837         __statfs_link_max.
12838
12839         [BZ #12868]
12840         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
12841         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12842         Handle Lustre.
12843         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
12844         (__statfs_filesize_max): Likewise.
12845         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
12846
12847 2011-07-05  Andreas Jaeger  <aj@suse.de>
12848
12849         * resolv/res_comp.c (dn_skipname): Remove unused variable.
12850
12851 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
12852
12853         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
12854         `status' variable.
12855         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
12856         Likewise.
12857
12858 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
12859
12860         * Makefile (strop-tests): Add strncat.
12861         * string/test-strncat.c: New file.
12862
12863 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
12864
12865         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
12866
12867 2011-06-21  Andreas Jaeger  <aj@suse.de>
12868
12869         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
12870         Copy rule from iconvdata/Makefile.
12871
12872 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
12873
12874         [BZ #12922]
12875         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
12876         but no long options are defined, just return 'W'.
12877
12878 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
12879
12880         [BZ #9696]
12881         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
12882
12883 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
12884
12885         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
12886         netgroups to read.
12887         (innetgr): Likewise.
12888
12889 2011-07-05  Roland McGrath  <roland@hack.frob.com>
12890
12891         * config.make.in (install_root): Default to $(DESTDIR).
12892
12893 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
12894
12895         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
12896
12897 2011-07-02  Roland McGrath  <roland@hack.frob.com>
12898
12899         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
12900
12901         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
12902         containing directory rather than embedding absolute directory names.
12903
12904         * scripts/check-local-headers.sh: Rewritten using awk.
12905         Match by word, not by line.  Print error messages for matches.
12906         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
12907
12908         * Makerules [shlib-lds-flags empty]:
12909         ($(common-objpfx)libc_pic.opts): New target.
12910         ($(common-objpfx)libc_pic.os.clean): New target.
12911         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
12912
12913         * config.make.in (OBJCOPY): New variable.
12914         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
12915         * configure: Regenerated.
12916
12917         * config.make.in (use-default-link): New variable.
12918         * configure.in (use_default_link): Grok --with-default-link to set it.
12919         * configure: Regenerated.
12920         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
12921         (shlib-lds, shlib-lds-flags): Define to empty.
12922
12923         * Makerules (shlib-lds): New variable.
12924         (shlib-lds-flags): New variable.
12925         (build-shlib, build-moduile, build-module-asneeded): Use it.
12926         ($(common-objpfx)libc.so): Use $(shlib-lds).
12927         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
12928         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
12929
12930         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
12931         DT_FLAGS/DT_FLAGS_1 with zero flags.
12932
12933         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
12934         linker script munging.
12935
12936 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
12937
12938         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
12939         as 128-bit value.
12940         * crypt/sha512.c (sha512_process_block): Perform total addition using
12941         128-bit if possible.
12942         (__sha512_finish_ctx): Likewise.
12943         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
12944         as 64-bit value.
12945         * crypt/sha256.c (SWAP64): Define.
12946         (sha256_process_block): Perform total addition using 64-bit if
12947         possible.
12948         (__sha256_finish_ctx): Likewise.
12949
12950 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
12951
12952         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
12953         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12954         * nscd/hstcache.c (cache_addhst): Likewise.
12955         * nscd/grpcache.c (cache_addgr): Likewise.
12956         * nscd/aicache.c (addhstaiX): Likewise
12957         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
12958
12959 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
12960
12961         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
12962         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12963         * nscd/hstcache.c (cache_addhst): Likewise.
12964         * nscd/grpcache.c (cache_addgr): Likewise.
12965         * nscd/aicache.c (addhstaiX): Likewise
12966
12967 2011-07-01  Andreas Schwab  <schwab@redhat.com>
12968
12969         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
12970         domain only when needed.
12971
12972 2011-06-30  Andreas Schwab  <schwab@redhat.com>
12973
12974         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
12975         is always restored.
12976
12977 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
12978
12979         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
12980         are re-adding the entry.
12981         * nscd/servicescache.c (cache_addserv): Likewise.
12982
12983 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
12984
12985         * sysdeps/generic/dl-irel.h: fix protection against multiple
12986         inclusions.
12987         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
12988
12989 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
12990
12991         [BZ #12935]
12992         * malloc/memusage.sh: Fix quoting in message.
12993         * debug/xtrace.sh: Likewise.
12994
12995         * configure.in: Remove support for --experimental-malloc option, make
12996         it the default.
12997         * config.make.in: Likewise.
12998         * malloc/Makefile: Likewise.
12999
13000 2011-06-27  Andreas Schwab  <schwab@redhat.com>
13001
13002         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
13003         two-byte characters.
13004
13005 2011-06-27  Roland McGrath  <roland@hack.frob.com>
13006
13007         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
13008         AC_CACHE_CHECK invocation.
13009         * configure: Regenerated.
13010
13011         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
13012
13013 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
13014
13015         [BZ #12350]
13016         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
13017         bit from old_res_options.
13018
13019         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
13020
13021         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
13022         value type for setfct.
13023
13024 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13025
13026         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13027         __gettimeofday instead of gettimeofday.
13028
13029 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
13030
13031         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
13032
13033 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13034
13035         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
13036
13037         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
13038         info.
13039
13040 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13041
13042         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13043         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13044         strcpy-sse2-unaligned strncpy-sse2-unaligned
13045         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
13046         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
13047         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
13048         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
13049         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
13050         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
13051         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
13052         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
13053         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
13054         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
13055         (STRCPY): Support SSE2 and SSSE3 versions.
13056
13057 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
13058
13059         [BZ #12874]
13060         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
13061         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
13062         kernels which artificially limit size of requests.
13063
13064 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13065
13066         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13067         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13068         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
13069         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
13070         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
13071         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
13072         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
13073         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
13074         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
13075         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
13076         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
13077         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
13078         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
13079         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
13080         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
13081         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13082         Enable unaligned load optimization for Intel Core i3, i5 and i7
13083         processors.
13084         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
13085         Define.
13086         (index_Fast_Unaligned_Load): Define.
13087         (HAS_FAST_UNALIGNED_LOAD): Define.
13088
13089 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
13090
13091         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
13092
13093 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13094
13095         [BZ #12907]
13096         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
13097         until it is clear that the information is realy needed.
13098         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
13099
13100 2011-06-22  Andreas Schwab  <schwab@redhat.com>
13101
13102         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
13103
13104 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13105
13106         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13107         /sys/devices/system/cpu/online if it is usable.
13108
13109         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
13110         reading the information from the /proc filesystem to once a second.
13111
13112 2011-06-21  Andreas Jaeger  <aj@suse.de>
13113
13114         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
13115         NULL after inclusion of kernel headers.
13116
13117 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
13118
13119         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
13120         calls to internal_setent.
13121
13122         [BZ #12885]
13123         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
13124         addresses using gethostbyname4_r ignore IPv4 addresses.
13125
13126         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
13127         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
13128
13129         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
13130
13131 2011-06-20  David S. Miller  <davem@davemloft.net>
13132
13133         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
13134         inclusions.
13135         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
13136
13137         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
13138         (elf_irel): Use it.
13139         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
13140         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
13141         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
13142         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
13143         * sysdeps/x86_64/dl-irel.h: Likewise.
13144
13145         * elf/dl-runtime.c: Use elf_ifunc_invoke.
13146         * elf/dl-sym.c: Likewise.
13147
13148 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
13149
13150         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
13151         need to dereference resplen2.
13152
13153 2011-06-14  Andreas Schwab  <schwab@redhat.com>
13154
13155         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
13156
13157 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
13158
13159         * Makeconfig: Define vardbdir and inst_vardbdir.
13160         * nss/Makefile: Add rules to install db-Makefile.
13161
13162         * nss/nss_db/db-XXX.c: Cleanup.
13163
13164         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
13165         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
13166         GLIBC_PRIVATE.
13167         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
13168         * nss/makedb.c: Implement -g option to specify that value strings
13169         are generated and should not be added to table iterated over for
13170         get*ent calls.
13171         * nss/nss_db/db-initgroups.c: New file.
13172
13173         * nss/getent.c: Add support for initgroups lookups through getgrouplist
13174         interface.
13175
13176         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
13177         (internal_getgrouplist): Adjust to name change.
13178         Update use_initgroups_entry if this is not the first call.
13179         * nss/databases.def: Add initgroups entry.
13180
13181         * nss/makedb.c (compute_tables): Check result of multiple hash table
13182         sizes to minimize maximum chain length.
13183
13184 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
13185
13186         * Versions.def: Add entry for libnss_db.
13187         * shlib-versions: Likewise.
13188         * nss/Makefile: Add rules to build libnss_db.
13189         * nss/Versions: Add libnss_db information.  Organize libnss_files
13190         entries better.
13191         * nss/db-Makefile: Add gshadow support.  Change rules for the new
13192         makedb progra.  Some minor improvements to generate smaller files.
13193         * nss/nss_db/nss_db.h: Move NSS database header data structures to
13194         here from...
13195         * nss/makedb.c: ...here.
13196         Improve database format to be smaller and require less memory at
13197         runtime.
13198         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
13199         db anymore.
13200         * nss/nss_db/db-netgrp.c: Likewise.
13201         * nss/nss_db/db-open.c: Likewise.
13202         * nss/nss_files/flies-XXX.x: Adjust comments.
13203         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
13204         * nss/nss_files/files-grp.c: Likewise.
13205         * nss/nss_files/files-hosts.c: Likewise.
13206         * nss/nss_files/files-network.c: Likewise.
13207         * nss/nss_files/files-proto.c: Likewise.
13208         * nss/nss_files/files-pwd.c: Likewise.
13209         * nss/nss_files/files-rpc.c: Likewise.
13210         * nss/nss_files/files-service.c: Likewise.
13211         * nss/nss_files/files-sgrp.c: Likewise.
13212         * nss/nss_files/files-spwd.c: Likewise.
13213         * nss/nss_db/db-alias.c: Removed.
13214         * nss/nss_db/dummy-db.h: Removed.
13215
13216 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
13217
13218         * nss/makedb.c: Rewritten to not use database library.
13219         * nss/Makefile: Update to build new makedb program.
13220
13221 2011-06-14  Andreas Jaeger  <aj@suse.de>
13222
13223         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
13224         memset declaration.
13225
13226 2011-06-10  Andreas Schwab  <schwab@redhat.com>
13227
13228         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
13229         tmpbuf.
13230
13231 2011-06-10  Roland McGrath  <roland@hack.frob.com>
13232
13233         * Makerules (shlib.lds): Fail if the linker script comes out empty.
13234         * elf/Makefile ($(objpfx)ld.so): Likewise.
13235
13236         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
13237         Don't list ld.so twice in dependencies.
13238
13239         * posix/bug-regex31.c: Include <stdlib.h>.
13240
13241         * nscd/hstcache.c (cache_addhst): Remove unused variable.
13242
13243         * nis/nss_compat/compat-spwd.c
13244         (getspent_next_nss_netgr): Remove unused variable.
13245         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
13246
13247         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
13248         nonmembers" output to use the right array.
13249
13250         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
13251
13252         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
13253
13254         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
13255         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
13256         * catgets/gencat.c (read_input_file): Likewise.
13257         * locale/programs/locarchive.c (enlarge_archive): Likewise.
13258
13259         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
13260         variable definition inside #if's controlling its use.
13261
13262         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
13263
13264         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
13265
13266         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
13267
13268         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
13269         unreachable code.
13270
13271         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
13272
13273         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
13274         * configure: Regenerated.
13275
13276         * Makerules: Revert last change.
13277         * elf/Makefile: Likewise.
13278
13279 2011-06-09  Roland McGrath  <roland@hack.frob.com>
13280
13281         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
13282         * elf/Makefile ($(objpfx)librtld.os): Likewise.
13283         (reloc-link): Likewise.
13284
13285 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
13286
13287         * elf/Makefile: Add rules to build pldd.
13288         * elf/pldd.c: New file.
13289         * elf/pldd-xx.c: New file.
13290
13291 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
13292
13293         * version.h: Update for 2.15 development version.
13294
13295 2011-06-07  David S. Miller  <davem@davemloft.net>
13296
13297         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
13298         ifuncs.
13299         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
13300         elf_machine_lazy_rel): Likewise.
13301         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
13302         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
13303         elf_machine_lazy_rel): Likewise.
13304         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
13305         dl_hwcap via passed in argument.
13306         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
13307         Likewise.
13308
13309 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13310
13311         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
13312
13313 2011-06-06  Roland McGrath  <roland@hack.frob.com>
13314
13315         [BZ #12849]
13316         * manual/fdl-1.1.texi: New file, verbatim from:
13317         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
13318         * manual/lgpl-2.1.texi: New file, verbatim from:
13319         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
13320         * manual/Makefile (licenses): New variable, list those new file names.
13321         (texis): Use it.
13322         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
13323
13324         * manual/fdl.texi: File removed.
13325         * manual/lesser.texi: File removed.
13326         * manual/libc.texinfo (Copying, Documentation License):
13327         Use new @include file names, put @appendix directive before @include.
13328
13329 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
13330
13331         [BZ #12841]
13332         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
13333         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
13334         (mq_open): Add __NTH.
13335
13336 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
13337
13338         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13339         Assume Intel Core i3/i5/i7 processor if AVX is available.
13340
13341 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
13342
13343         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
13344         typo.
13345
13346 2011-05-31  Andreas Schwab  <schwab@redhat.com>
13347
13348         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
13349         memory.  Use alloca_account.  Fix memory leak when retrying.
13350
13351 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
13352
13353         * version.h (RELEASE): Bump for 2.14 release.
13354         * include/features.h (__GLIBC_MINOR__): Bump to 14.
13355
13356         * config.make.in (RANLIB): Remove entry.
13357
13358 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
13359
13360         * po/Makefile (po-sed-cmd): Add ksh to extensions.
13361         (libc.pot): Work around missing support for .ksh extension in xgettext.
13362
13363         [BZ #12684]
13364         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
13365         if both request failed.
13366         (send_dg): In case of server errors clear resplen or *resplen2.
13367
13368         [BZ #12454]
13369         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
13370         when there are multiple maps.
13371         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
13372         (_dl_fini): Remove test here.
13373
13374         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
13375
13376 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
13377
13378         [BZ #12350]
13379         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
13380         bit from old_res_options.
13381         (gaih_inet): Likewise.
13382
13383         [BZ #11099]
13384         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
13385         as signed.
13386
13387         * resolv/res_init.c (res_setoptions): Make the code more compact.
13388
13389         [BZ #11558]
13390         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
13391         set RES_USEVC.
13392
13393         [BZ #11634]
13394         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
13395
13396         * malloc/malloc.h: Mark malloc hook variables as deprecated.
13397
13398         [BZ #11781]
13399         * malloc/malloc.h: Declare malloc hook variables as volatile.
13400
13401         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
13402         in last patch.
13403
13404         [BZ #11799]
13405         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
13406         raise in the comment.
13407         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13408         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13409         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
13410
13411 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
13412
13413         [BZ #12811]
13414         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
13415         grow the buffers more if it already has to be sufficient.
13416         (build_wcs_upper_buffer): Likewise.
13417         * posix/regexec.c (check_matching): Likewise.
13418         (clean_state_log_if_needed): Likewise.
13419         (extend_buffers): Don't enlarge buffers beyond size of the input
13420         buffer.
13421         Patches mostly by Emil Wojak <emil@wojak.eu>.
13422         * posix/bug-regex32.c: New file.
13423         * posix/Makefile (tests): Add bug-regex32.
13424
13425         * locale/findlocale.c (_nl_find_locale): Return right away if
13426         _nl_explode_name failed.
13427         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
13428
13429         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
13430
13431         * debug/xtrace.sh: Unify messages.
13432         * malloc/memusage.sh: Likewise.
13433
13434         [BZ #12813]
13435         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
13436         time symbol from vDSO.  Substitute with vsyscall if not available.
13437         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
13438         __vdso_time.
13439
13440         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
13441         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
13442         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
13443         Add sendmmsg and internal_sendmmsg.
13444         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
13445         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
13446         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
13447
13448         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
13449         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
13450         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
13451
13452 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
13453
13454         [BZ #12813]
13455         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
13456         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
13457         available.
13458         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
13459         __vdso_getcpu.
13460
13461         [BZ #12814]
13462         * iconvdata/Makefile (tests): Add bug-iconv9.
13463         * iconvdata/bug-iconv9.c: New file.
13464
13465 2011-05-27  Andreas Schwab  <schwab@redhat.com>
13466
13467         [BZ #12814]
13468         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
13469
13470 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
13471
13472         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
13473         (struct user_regs_struct): Change intcs field back to cs.
13474
13475 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
13476
13477         * po/ja.po: Update from translation team.
13478
13479 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
13480
13481         [BZ #12795]
13482         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
13483         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
13484
13485 2011-05-20  Andreas Schwab  <schwab@redhat.com>
13486
13487         * stdlib/longlong.h: Update from GCC.
13488
13489 2011-05-23  Andreas Schwab  <schwab@redhat.com>
13490
13491         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
13492         parameter name.
13493         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
13494         Add parameter name.
13495         (__sysconf): Pass it down.
13496
13497 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
13498
13499         [BZ #12671]
13500         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
13501         some situations.
13502         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
13503         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
13504         add in in __libc_use_alloca calls.  Adjust callers.
13505         (glob): Use malloc in some situations.
13506
13507         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
13508         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
13509         pltexit.
13510
13511 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
13512
13513         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
13514         and CLOCK_BOOTTIME_ALARM.
13515
13516         [BZ #12782]
13517         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
13518         is returned.
13519
13520         * string/_strerror.c (__strerror_r): Print negative errors as signed
13521         numbers.
13522
13523         [BZ #12777]
13524         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
13525         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
13526         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
13527
13528         * configure.in: Fix typo in redirection and correct removal of test
13529         files in two cases.
13530
13531         [BZ #12788]
13532         * locale/setlocale.c (new_composite_name): Fix test to check for
13533         identical name of all categories.
13534
13535         [BZ #12792]
13536         * libio/filedoalloc.c (local_isatty): New function.
13537         (_IO_file_doallocate): Use local_isatty.
13538         * stdio-common/perror.c (perror): In case a new stream is used
13539         forward the stream error.
13540         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
13541         error flag.
13542
13543 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
13544
13545         [BZ #11869]
13546         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
13547         alloca.
13548         * include/alloca.h (extend_alloca_account): Define.
13549
13550         [BZ #11857]
13551         * posix/regex.h: Fix comments with documentation of user-accessible
13552         fields after compilation and describe correct free'ing of pattern
13553         after re_compile_pattern.
13554         Patch by Reuben Thomas <rrt@sc3d.org>.
13555
13556 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
13557
13558         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
13559         and -mno-altivec to prevent the compiler from using Altivec and/or
13560         VSX instructions when the corresponding registers are not available.
13561
13562 2011-05-19  Andreas Schwab  <schwab@redhat.com>
13563
13564         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
13565
13566 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
13567
13568         * libio/freopen.c (freopen): Use __dup2, not dup2.
13569         * libio/freopen64.c (freopen64): Likewise.
13570
13571 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13572
13573         [BZ #12775]
13574         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
13575         * math/Makefile (tests): Add test-powl.
13576         (CFLAGS-test-powl.c): Define.
13577         * math/test-powl.c: New file.
13578
13579 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13580
13581         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
13582
13583 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
13584
13585         [BZ #11837]
13586         * iconvdata/gb18030.c: Update to GB18020-2005.
13587
13588 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
13589
13590         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
13591         RE_SYNTAX_POSIX_AWK): Update to match recent development.
13592         Patch by Aharon Robbins <arnold@skeeve.com>.
13593
13594         [BZ #11892]
13595         * stdlib/putenv.c (putenv): Don't always create copy of the variable
13596         on the stack.
13597
13598         [BZ #11895]
13599         * misc/pselect.c (__pselect): Handle timeout value errors hidden
13600         through underflows.
13601
13602         [BZ #12766]
13603         * misc/error.c (error_at_line): Ensure file_name and old_file_name
13604         point to strings before performing equality test for error_one_per_line
13605         mode.
13606
13607         [BZ #11697]
13608         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
13609
13610         [BZ #11820]
13611         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
13612         (struct user_fpregs_struct): Avoid __uint*_t types.
13613
13614         [BZ #6420]
13615         * malloc/mtrace.c (tr_where): Add additional parameter to point to
13616         symbol info.  Use it instead of calling _dl_addr locally.
13617         (lock_and_info): New function.
13618         (tr_freehook): Call lock_and_info and pass symbol info as additional
13619         parameter to tr_where.
13620         (tr_mallochook): Likewise.
13621         (tr_reallochook): Likewise.
13622         (tr_memalignhook): Likewise.
13623
13624         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
13625         used and couldn't be at all thread-safe.
13626
13627 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
13628
13629         * libio/freopen.c (freopen): Don't close old file descriptor
13630         before the new one is opened.  Instead dup the new file descriptor
13631         to the old one after the new stream is created.
13632         * libio/freopen64.c (freopen64): Likewise.
13633         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
13634         * libio/fileops.c (_IO_new_file_close_it): Handle new
13635         _IO_FLAGS2_NOCLOSE flag.
13636         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
13637         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
13638         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
13639         _IO_FLAGS2_NOCLOSE flag.
13640         * include/unistd.h: Add hidden_proto for dup3.
13641         Define __have_dup3.
13642         * io/dup3.c: Define hidden symbol.
13643         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
13644
13645         [BZ #7101]
13646         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
13647         when an incomplete long option is used.
13648         * posix/tst-getopt_long1.c: New file.
13649         * posix/Makefile (tests): Add tst-getopt_long1.
13650
13651         [BZ #10138]
13652         * scripts/config.guess: Update from autoconf-2.68.
13653         * scripts/config.sub: Likewise.
13654
13655         [BZ #10157]
13656         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
13657         tests into ...
13658         (has_cpuclock): ...this.  New function.
13659         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
13660         macro here based on has_cpuclock code.
13661
13662         [BZ #10149]
13663         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
13664         First byte (not low byte) is now always NUL.
13665         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
13666
13667         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
13668         Use non-cancelable interfaces.
13669
13670         [BZ #9809]
13671         * locale/iso-639.def: Add entry for Sorani.
13672
13673         [BZ #11901]
13674         * include/stdlib.h: Move include protection to the right place.
13675         Define abort_msg_s.  Declare __abort_msg with it.
13676         * stdlib/abort.c (__abort_msg): Adjust type.
13677         * assert/assert.c (__assert_fail_base): New function.  Majority
13678         of code from __assert_fail.  Allocate memory for __abort_msg with
13679         mmap.
13680         (__assert_fail): Now call __assert_fail_base.
13681         * assert/assert-perr.c: Remove bulk of implementation.  Use
13682         __assert_fail_base.
13683         * include/assert.hL Declare __assert_fail_base.
13684         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
13685         mmap.
13686         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
13687
13688 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
13689
13690         [BZ #11952]
13691         [BZ #12453]
13692         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
13693         until all modules are registered in the DTV.
13694         * elf/Makefile: Add rules to build and run tst-tls19.
13695         * elf/tst-tls19.c: New file.
13696         * elf/tst-tls19mod1.c: New file.
13697         * elf/tst-tls19mod2.c: New file.
13698         * elf/tst-tls19mod3.c: New file.
13699         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
13700
13701         [BZ #12083]
13702         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
13703         correctly.
13704
13705         [BZ #12601]
13706         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
13707         two-byte sequence errors.
13708         * iconvdata/Makefile (tests): Add bug-iconv8.
13709         * iconvdata/bug-iconv8.c: New file.
13710
13711         [BZ #12626]
13712         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
13713         buf2 definition.
13714
13715         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
13716
13717         [BZ #12432]
13718         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
13719         (dummy_getcfa): New function.
13720         (init): Get _Unwind_GetCFA address, use dummy if not found.
13721         (backtrace_helper): In recursion check, also check whether CFA changes.
13722         (__backtrace): Completely initialize arg.
13723
13724         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
13725         storing incomplete byte sequence in state object.  Avoid testing for
13726         guaranteed too small input if we know there is enough data available.
13727
13728 2011-05-11  Andreas Schwab  <schwab@redhat.com>
13729
13730         * Makeconfig (+link-pie): Indent.
13731         * Rules (binaries-pie): Define if $(have-fpie) and
13732         $(build-shared).
13733         (binaries-shared): Also filter out $(binaries-pie).
13734         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
13735         * nscd/Makefile (others-pie): Add nscd.
13736         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
13737         ($(objpfx)nscd): Remove command override.
13738         * login/Makefile (others-pie): Add pt_chown.
13739         ($(objpfx)pt_chown): Remove command override.
13740         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
13741         remove command overrides.
13742
13743 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
13744
13745         * libio/tst_putwc.c: Fix error messages.
13746
13747         [BZ #12724]
13748         * libio/fileops.c (_IO_new_file_close_it): Always flush when
13749         currently writing and seek to current position when not.
13750         * libio/Makefile (tests): Add bug-fclose1.
13751         * libio/bug-fclose1.c: New file.
13752
13753 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
13754
13755         [BZ #12511]
13756         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
13757         don't set DF_1_NODELETE here.
13758         (do_lookup_x): When entering new entry test for copy relocation
13759         and if necessary set DF_1_NODELETE flag.
13760         * elf/tst-unique4.cc: New file.
13761         * elf/tst-unique4.h: New file.
13762         * elf/tst-unique4lib.cc: New file.
13763         * elf/Makefile: Add rules to build and run tst-unique4.
13764         Patch by Piotr Bury <pbury@goahead.com>.
13765
13766 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13767
13768         [BZ #12052]
13769         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
13770
13771         [BZ #12625]
13772         * misc/mntent_r.c (addmntent): Flush the stream after the output
13773
13774         [BZ #12393]
13775         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
13776         (is_trusted_path_normalize): Skip initial colon.  Append slash
13777         to empty buffer.  Duplicate is_trusted_path code but allow
13778         constructed patch to be prefix.
13779         (is_dst): Allow $ORIGIN followed by /.
13780         (_dl_dst_substitute): Correct clearing of check_for_trusted.
13781         Correct testing of result of is_trusted_path_normalize
13782         (decompose_rpath): Fix warning.
13783
13784 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
13785
13786         [BZ #11257]
13787         * grp/initgroups.c (internal_getgrouplist): When we found the service
13788         list through the initgroups entry in nsswitch.conf do not always
13789         continue on a successful lookup.  Don't always use the
13790         __nss_group_database value if it is set.
13791         * nss/nsswitch.conf (initgroups): Change action for successful db
13792         lookup to continue for compatibility.
13793
13794 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
13795
13796         [BZ #11532]
13797         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
13798         and CP774 modules.
13799         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
13800         and CP774 modules.
13801         * iconvdata/tst-tables.sh: Likewise.
13802         * iconvdata/cp770.c: New file.
13803         * iconvdata/cp771.c: New file.
13804         * iconvdata/cp772.c: New file.
13805         * iconvdata/cp773.c: New file.
13806         * iconvdata/cp774.c: New file.
13807         * iconvdata/testdata/CP770: New file.
13808         * iconvdata/testdata/CP770..UTF8: New file.
13809         * iconvdata/testdata/CP771: New file.
13810         * iconvdata/testdata/CP771..UTF8: New file.
13811         * iconvdata/testdata/CP772: New file.
13812         * iconvdata/testdata/CP772..UTF8: New file.
13813         * iconvdata/testdata/CP773: New file.
13814         * iconvdata/testdata/CP773..UTF8: New file.
13815         * iconvdata/testdata/CP774: New file.
13816         * iconvdata/testdata/CP774..UTF8: New file.
13817
13818         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
13819         END CHARMAP line.
13820         * iconvdata/gen-8bit-gap.sh: Likewise.
13821         * iconvdata/gen-8bit.sh: Likewise.
13822
13823         * locale/iso-639.def: Add ary entry.
13824
13825         [BZ #11258]
13826         * locale/C-translit.h.in: Add U20A1 transliteration.
13827
13828         [BZ #12178]
13829         * locale/iso-639.def: Add wae entry.
13830         Patch by Kevin Bortis <bortis@translate-wae.ch>.
13831
13832         [BZ #12545]
13833         * locale/programs/localedef.c (construct_output_path): Use ssize_t
13834         for n.
13835
13836         [BZ #12711]
13837         * locale/C-translit.h.in: Add entry for U20B9.
13838         Patch by pravin.d.s@gmail.com.
13839
13840 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
13841
13842         [BZ #12713]
13843         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
13844         ENAMETOOLONG use generic getcwd.
13845         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
13846         in rtld.  Use *stat64.
13847         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
13848         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
13849         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
13850         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
13851         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
13852         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
13853         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
13854         __fstatat64 macros.
13855         * include/dirent.h: Add libc_hidden_proto for rewinddir.
13856         * dirent/rewinddir.c: Add libc_hidden_def.
13857         * sysdeps/mach/hurd/rewinddir.c: Likewise.
13858         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
13859
13860         * include/dirent.h (__alloc_dir): Add flags parameter.
13861         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
13862         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
13863         __alloc_dir.
13864         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
13865         from fdopendir if O_CLOEXEC is already set.
13866
13867 2011-03-15  Alan Modra  <amodra@gmail.com>
13868
13869         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
13870         l_tls_firstbyte_offset non-zero.  Save padding offset in
13871         l_tls_firstbyte_offset for later use.
13872         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
13873         freeing static tls block.
13874
13875 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
13876
13877         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
13878         where #ifdef was intended.  The intent is to prevent ARG_MAX from
13879         being defined by the kernel headers.
13880
13881 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
13882
13883         [BZ #12734]
13884         * resolv/resolv.h: Define RES_NOTLDQUERY.
13885         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
13886         no-tld-query and set RES_NOTLDQUERY.
13887         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
13888         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
13889         modern BIND to search name as TLD unless forbidden.
13890
13891 2011-05-07  Petr Baudis  <pasky@suse.cz>
13892             Ulrich Drepper  <drepper@gmail.com>
13893
13894         [BZ #12393]
13895         * elf/dl-load.c (fillin_rpath): Move trusted path check...
13896         (is_trusted_path): ...to here.
13897         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
13898         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
13899         using is_trusted_path_normalize() in setuid scripts.
13900
13901 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
13902
13903         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
13904         __BEGIN/__END_DECLS.
13905
13906 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
13907
13908         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
13909         NSS_STATUS_NOTFOUND if no record was found.
13910
13911 2011-05-05  Andreas Schwab  <schwab@redhat.com>
13912
13913         * sunrpc/Makefile (headers): Add rpc/netdb.h.
13914         (headers-not-in-tirpc): Remove rpc/netdb.h
13915         * resolv/netdb.h: Revert last change.
13916
13917 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13918
13919         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
13920         circular dependency between libgcc.a and libc.a.
13921
13922 2011-05-05  Andreas Schwab  <schwab@redhat.com>
13923
13924         * resolv/netdb.h: Don't include <rpc/netdb.h>.
13925         * nis/Makefile: Don't install rpcsvc/*.
13926         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
13927         instead of <rpc/types.h>.
13928         (MAXHOSTNAMELEN): Define.
13929
13930 2011-05-03  Andreas Schwab  <schwab@redhat.com>
13931
13932         * elf/ldconfig.c (add_dir): Don't crash on empty path.
13933
13934 2011-04-28  Maciej Babinski  <mbabinski@google.com>
13935
13936         [BZ #12714]
13937         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
13938         gethostbyname4_r when IPv6 results are possible.
13939
13940 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
13941
13942         [BZ #12723]
13943         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
13944         _PC_PIPE_BUF handling.
13945
13946 2011-04-30  Bruno Haible  <bruno@clisp.org>
13947
13948         [BZ #12717]
13949         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
13950         * resolv/netdb.h (getnameinfo): Change type of flags parameter
13951         to 'int'.
13952         * inet/getnameinfo.c (getnameinfo): Likewise.
13953
13954 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
13955
13956         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
13957         to groups setting in database lookup.
13958         * nss/nsswitch.conf: Add initgroups entry.
13959
13960 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
13961
13962         [BZ #12685]
13963         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
13964         mode string.
13965         Patch by Eric Blake <eblake@redhat.com>.
13966
13967 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
13968
13969         * sunrpc/Makefile (need-export-routines): Add svc_run.
13970         (routines): Remove svc_run.
13971         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
13972         * sunrpc/clnt_perr.c (clnt_perrno): Export.
13973         * sunrpc/svc_run.c (svc_run): Likewise.
13974         * sunrpc/svc_udp.c (svcudp_create): Likewise.
13975
13976 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
13977
13978         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
13979         problem in reallocation in last patch.
13980
13981 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
13982
13983         * sunrpc/Makefile: Move inclusion of Rules.
13984
13985 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
13986
13987         * nss/nss_files/files-initgroups.c: New file.
13988         * nss/Makefile (libnss_files-routines): Add files-initgroups.
13989         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
13990         _nss_files_initgroups_dyn.
13991
13992 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
13993
13994         * elf/elf.h (R_ARM_IRELATIVE): Define.
13995
13996 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
13997
13998         * po/ru.po: Update from translation team.
13999
14000 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14001
14002         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
14003         dependencies.
14004
14005 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
14006
14007         [BZ #12653]
14008         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
14009         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
14010         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14011         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14012         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14013
14014 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
14015
14016         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
14017         differing bytes.
14018         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14019         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14020         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14021
14022 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14023
14024         [BZ #12420]
14025         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
14026         storing it.
14027         * stdlib/bug-getcontext.c: New file.
14028         * stdlib/Makefile: Add rules to build and run bug-getcontext.
14029
14030 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14031
14032         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
14033         instructions into .machine "z9-109".
14034         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
14035         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
14036
14037 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14038
14039         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
14040         between environment variables and auxiliary vector.
14041
14042 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
14043
14044         * Makefile: Add rules to build linkobj/libc.so.
14045         * include/libc-symbols.h: Define libc_hidden_nolink.
14046         * include/rpc/auth.h: Mark functions which are to be hidden.
14047         * include/rpc/auth_des.h: Likewise.
14048         * include/rpc/auth_unix.h: Likewise.
14049         * include/rpc/clnt.h: Likewise.
14050         * include/rpc/des_crypt.h: Likewise.
14051         * include/rpc/key_prot.h: Likewise.
14052         * include/rpc/pmap_clnt.h: Likewise.
14053         * include/rpc/pmap_prot.h: Likewise.
14054         * include/rpc/pmap_rmt.h: Likewise.
14055         * include/rpc/rpc_msg.h: Likewise.
14056         * include/rpc/svc.h: Likewise.
14057         * include/rpc/svc_auth.h: Likewise.
14058         * include/rpc/xdr.h: Likewise.
14059         * nis/Makefile: Link all DSOs against linkobj/libc.so.
14060         * nss/Makefile: Likewise.
14061         * sunrpc/Makefile: Don't install headers.  Build library with normal
14062         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
14063         * sunrpc/auth_des.c: Hide exported symbols by default, export some
14064         for the compat linking library.  Remove use of INTDEF/INTUSE.
14065         * sunrpc/auth_none.c: Likewise.
14066         * sunrpc/auth_unix.c: Likewise.
14067         * sunrpc/authdes_prot.c: Likewise.
14068         * sunrpc/authuxprot.c: Likewise.
14069         * sunrpc/clnt_gen.c: Likewise.
14070         * sunrpc/clnt_perr.c: Likewise.
14071         * sunrpc/clnt_raw.c: Likewise.
14072         * sunrpc/clnt_simp.c: Likewise.
14073         * sunrpc/clnt_tcp.c: Likewise.
14074         * sunrpc/clnt_udp.c: Likewise.
14075         * sunrpc/clnt_unix.c: Likewise.
14076         * sunrpc/des_crypt.c: Likewise.
14077         * sunrpc/des_soft.c: Likewise.
14078         * sunrpc/get_myaddr.c: Likewise.
14079         * sunrpc/key_call.c: Likewise.
14080         * sunrpc/key_prot.c: Likewise.
14081         * sunrpc/netname.c: Likewise.
14082         * sunrpc/pm_getmaps.c: Likewise.
14083         * sunrpc/pm_getport.c: Likewise.
14084         * sunrpc/pmap_clnt.c: Likewise.
14085         * sunrpc/pmap_prot.c: Likewise.
14086         * sunrpc/pmap_prot2.c: Likewise.
14087         * sunrpc/pmap_rmt.c: Likewise.
14088         * sunrpc/publickey.c: Likewise.
14089         * sunrpc/rpc_cmsg.c: Likewise.
14090         * sunrpc/rpc_common.c: Likewise.
14091         * sunrpc/rpc_dtable.c: Likewise.
14092         * sunrpc/rpc_prot.c: Likewise.
14093         * sunrpc/rpc_thread.c: Likewise.
14094         * sunrpc/rtime.c: Likewise.
14095         * sunrpc/svc.c: Likewise.
14096         * sunrpc/svc_auth.c: Likewise.
14097         * sunrpc/svc_authux.c: Likewise.
14098         * sunrpc/svc_raw.c: Likewise.
14099         * sunrpc/svc_run.c: Likewise.
14100         * sunrpc/svc_simple.c: Likewise.
14101         * sunrpc/svc_tcp.c: Likewise.
14102         * sunrpc/svc_udp.c: Likewise.
14103         * sunrpc/svc_unix.c: Likewise.
14104         * sunrpc/svcauth_des.c: Likewise.
14105         * sunrpc/xcrypt.c: Likewise.
14106         * sunrpc/xdr.c: Likewise.
14107         * sunrpc/xdr_array.c: Likewise.
14108         * sunrpc/xdr_float.c: Likewise.
14109         * sunrpc/xdr_intXX_t.c: Likewise.
14110         * sunrpc/xdr_mem.c: Likewise.
14111         * sunrpc/xdr_rec.c: Likewise.
14112         * sunrpc/xdr_ref.c: Likewise.
14113         * sunrpc/xdr_sizeof.c: Likewise.
14114         * sunrpc/xdr_stdio.c: Likewise.
14115
14116 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
14117
14118         [BZ #12650]
14119         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
14120         * sysdeps/ia64/dl-tls.h: Likewise.
14121         * sysdeps/powerpc/dl-tls.h: Likewise.
14122         * sysdeps/s390/dl-tls.h: Likewise.
14123         * sysdeps/sh/dl-tls.h: Likewise.
14124         * sysdeps/sparc/dl-tls.h: Likewise.
14125         * sysdeps/x86_64/dl-tls.h: Likewise.
14126         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
14127
14128 2011-03-14  Andreas Schwab  <schwab@redhat.com>
14129
14130         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
14131         rpath element also skip the following colon.
14132         (expand_dynamic_string_token): Add is_path parameter and pass
14133         down to DL_DST_REQUIRED and _dl_dst_substitute.
14134         (decompose_rpath): Call expand_dynamic_string_token with
14135         non-zero is_path.  Ignore empty rpaths.
14136         (_dl_map_object_from_fd): Call expand_dynamic_string_token
14137         with zero is_path.
14138
14139 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
14140
14141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
14142         Make cancelable.
14143
14144 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
14145
14146         [BZ #12655]
14147         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
14148         Patch by Filipe David Manana <fdmanana@apache.org>.
14149
14150 2011-04-07  Andreas Schwab  <schwab@redhat.com>
14151
14152         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
14153         Maintain aligned stack.
14154         (CHECK_RSP): Remove unused macro.
14155
14156 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
14157
14158         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
14159         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
14160
14161 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
14162
14163         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
14164
14165         * include/features.h: Mention __USE_XOPEN2K8 in comment.
14166
14167 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
14168
14169         [BZ #12518]
14170         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
14171         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
14172         * sysdeps/x86_64/memmove.c: New file.
14173         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
14174         (memcpy): Renamed to ...
14175         (__new_memcpy): This.
14176         (memcpy): Provide GLIBC_2_14 memcpy.
14177         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
14178         (memcpy): Provide GLIBC_2_2_5 memcpy.
14179
14180 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14181
14182         [BZ #12631]
14183         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
14184
14185 2011-03-30  Andreas Schwab  <schwab@redhat.com>
14186
14187         * misc/syncfs.c: New file.
14188         * misc/Makefile (routines): Add syncfs.
14189         * posix/unistd.h: Declare syncfs.
14190         * sysdeps/unix/syscalls.list: Add syncfs.
14191
14192 2011-04-01  Andreas Schwab  <schwab@redhat.com>
14193
14194         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
14195         open_by_handle_at.
14196         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14197         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14198         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14199         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14200         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14201         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
14202         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14203
14204 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14205
14206         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
14207         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14208         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14209         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14210         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14211         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14212         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14213
14214         * io/Makefile: Compile fallocate.c, fallocate64.c, and
14215         sync_file_range.c with -fexceptions.
14216         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
14217         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
14218         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
14219         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
14220         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
14221         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
14222         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
14223         sync_file_range as cancellation point
14224         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
14225         now a wrapper around __call_sync_file_range with cancellation handling.
14226         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
14227         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
14228         function name to __call_sync_file_range.
14229         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
14230         Add call_sync_file_range.
14231
14232 2011-04-01  Andreas Schwab  <schwab@redhat.com>
14233
14234         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14235         bits/timex.h.
14236
14237 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14238
14239         * iconv/iconv.h: Fix typo in comment.
14240         * io/fcntl.h: Likewise.
14241         * libio/stdio.h: Likewise.
14242         * posix/spawn.h: Likewise.
14243         * posix/unistd.h: Likewise.
14244         * stdlib/stdlib.h: Likewise.
14245         * time/time.h: Likewise.
14246         * wcsmbs/wchar.h: Likewise.
14247
14248         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
14249         open_by_handle): Add.
14250         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
14251         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
14252         Augment a few comments.
14253         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14254         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14255         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14256         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14257         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14258         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
14259         open_by_handle.
14260
14261         * io/fcntl.h (AT_EMPTY_PATH): Define.
14262
14263 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
14264
14265         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
14266         * sysdeps/unix/sysv/linux/bits/time.h: New file.
14267         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
14268         to...
14269         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
14270         * Versions.def: Add GLIBC_2.14.
14271         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
14272         Export.
14273
14274 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
14275
14276         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
14277         round counter.
14278         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
14279
14280 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
14281
14282         [BZ #12597]
14283         * string/test-strncmp.c (do_page_test): New function.
14284         (check2): Likewise.
14285         (test_main): Call check2.
14286         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
14287
14288 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
14289
14290         [BZ #12587]
14291         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
14292         Handle cache information in CPU leaf 4.
14293         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
14294
14295 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
14296
14297         [BZ #12583]
14298         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
14299         character representation.
14300         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
14301
14302 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
14303
14304         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
14305         END(__isnan) to END(__isnanf) to match function entry point/label
14306         EALIGN(__isnanf,...).
14307
14308 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
14309
14310         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
14311
14312 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
14313
14314         [BZ #12510]
14315         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
14316         copy from the symbol referenced in the relocation to initialize the
14317         used variable.
14318         Patch by Piotr Bury <pbury@goahead.com>.
14319         * elf/Makefile: Add rules to build and tst-unique3.
14320         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
14321         * elf/tst-unique3.cc: New file.
14322         * elf/tst-unique3.h: New file.
14323         * elf/tst-unique3lib.cc: New file.
14324         * elf/tst-unique3lib2.cc: New file.
14325
14326         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
14327
14328 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
14329
14330         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
14331         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
14332         to _start.
14333
14334 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
14335
14336         * elf/dl-load.c (_dl_map_object): If we are looking for the first
14337         to-be-loaded object along a path to loader is ld.so.
14338
14339 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
14340             Ulrich Drepper  <drepper@gmail.com>
14341
14342         * sysdeps/x86_64/memset.S: After aligning destination, code
14343         branches to different locations depending on the value of
14344         misalignment, when multiarch is enabled. Fix this.
14345
14346 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
14347
14348         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
14349         Set _x86_64_preferred_memory_instruction for AMD processsors.
14350         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14351         Set bit_Prefer_SSE_for_memop for AMD processors.
14352
14353 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
14354
14355         * libio/fmemopen.c (fmemopen): Optimize a bit.
14356
14357 2011-03-03  Andreas Schwab  <schwab@redhat.com>
14358
14359         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
14360
14361 2011-03-03  Roland McGrath  <roland@redhat.com>
14362
14363         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
14364
14365 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
14366
14367         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
14368         __bzero_ultra1 instead of __memset_ultra1.
14369
14370 2011-02-23  Andreas Schwab  <schwab@redhat.com>
14371             Ulrich Drepper  <drepper@gmail.com>
14372
14373         [BZ #12509]
14374         * include/link.h (struct link_map): Add l_orig_initfini.
14375         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
14376         returning unsuccessfully.
14377         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
14378         close of a file loaded at startup, restore the original l_initfini
14379         list.
14380         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
14381         list, store the pointer.
14382         * elf/Makefile ($(objpfx)noload-mem): New rule.
14383         (noload-ENV): Define.
14384         (tests): Add $(objpfx)noload-mem.
14385         * elf/noload.c: Include <memcheck.h>.
14386         (main): Call mtrace.  Close all opened handles.
14387
14388 2011-02-17  Andreas Schwab  <schwab@redhat.com>
14389
14390         [BZ #12454]
14391         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
14392         dependencies are missing.
14393
14394 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14395
14396         Fix __if_freereq crash: Unlike the generic version which uses free,
14397         Hurd needs munmap.
14398         * sysdeps/mach/hurd/ifreq.h: New file.
14399
14400 2011-01-27  Petr Baudis  <pasky@suse.cz>
14401             Ulrich Drepper  <drepper@gmail.com>
14402
14403         [BZ 12445]#
14404         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
14405         to extend_alloca().
14406         * stdio-common/bug23.c: New file.
14407         * stdio-common/Makefile (tests): Add bug23.
14408
14409 2010-09-28  Andreas Schwab  <schwab@redhat.com>
14410             Ulrich Drepper  <drepper@gmail.com>
14411
14412         [BZ #12489]
14413         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
14414         before performing relro protection.  At old place add assertion
14415         to make sure nothing changed.
14416
14417 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
14418             Glauber de Oliveira Costa  <glommer@gmail.com>
14419
14420         * elf/elf.h: Add new ARM TLS relocs.
14421
14422 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
14423
14424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
14425         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
14426         cast from r3.
14427         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
14428         'tests' variable.
14429         * sysdeps/wordsize-64/tst-writev.c: New file.
14430
14431 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
14432
14433         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
14434         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
14435         insns in _dl_start to prevent a TOC reference before relocs are
14436         resolved.
14437
14438 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
14439
14440         [BZ #12469]
14441         * Makeconfig: Remove RANLIB definition.
14442         * Makerules: Don't use RANLIB.
14443         * aclocal.m4: Remove ranlib test.
14444         * configure.in: No need to check for ranlib.
14445         * elf/rtld-Rules: Don't use RANLIB.
14446
14447 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14448
14449         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
14450         protection macro.
14451         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
14452         inclusion protection macro.
14453
14454         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
14455         SIGRTMIN and SIGRTMAX and print information in that case only when
14456         SIGRTMIN is defined.
14457
14458 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
14459
14460         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
14461         arginfo fn returning -1.
14462
14463         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
14464         and thousands string is zero terminated.
14465
14466 2011-02-03  Andreas Schwab  <schwab@redhat.com>
14467
14468         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
14469         sysdeps/unix/sysv/linux/bits/socket.h.
14470
14471 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14472
14473         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
14474         (__CPU_COUNT): Remove old macros.
14475         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
14476         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
14477         (__CPU_ALLOC, __CPU_FREE): Add macros.
14478         (__sched_cpualloc, __sched_cpufree): Add declarations.
14479
14480 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
14481
14482         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
14483         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
14484         * nscd/aicache.c (addhstaiX): Return timeout of added value.
14485         (readdhstai): Return value of addhstaiX call.
14486         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
14487         (addgrbyX): Return value returned by cache_addgr.
14488         (readdgrbyname): Return value returned by addgrbyX.
14489         (readdgrbygid): Likewise.
14490         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
14491         (addpwbyX): Return value returned by cache_addpw.
14492         (readdpwbyname): Return value returned by addhstbyX.
14493         (readdpwbyuid): Likewise.
14494         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
14495         (addservbyX): Return value returned by cache_addserv.
14496         (readdservbyname): Return value returned by addservbyX:
14497         (readdservbyport): Likewise.
14498         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
14499         (addhstbyX): Return value returned by cache_addhst.
14500         (readdhstbyname): Return value returned by addhstbyX.
14501         (readdhstbyaddr): Likewise.
14502         (readdhstbynamev6): Likewise.
14503         (readdhstbyaddrv6): Likewise.
14504         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
14505         (readdinitgroups): Return value returned by addinitgroupsX.
14506         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
14507         (prune_cache): Keep track of timeout value of re-added entries.
14508         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
14509         * nscd/nscd.h: Adjust prototypes of readd* functions.
14510
14511 2011-02-04  Roland McGrath  <roland@redhat.com>
14512
14513         * nis/nis_server.c (nis_servstate): Use the right name for 0.
14514         (nis_stats): Likewise.
14515         * nis/nis_modify.c (nis_modify): Likewise.
14516         * nis/nis_remove.c (nis_remove): Likewise.
14517         * nis/nis_add.c (nis_add): Likewise.
14518
14519         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
14520
14521         * posix/fnmatch_loop.c: Add some consts.
14522
14523         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
14524
14525 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
14526
14527         [BZ #12460]
14528         * config.make.in (config-cflags-novzeroupper): Define.
14529         * configure.in: Substitute libc_cv_cc_novzeroupper.
14530         * elf/Makefile (AVX-CFLAGS): Define.
14531         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
14532         (CFLAGS-tst-auditmod4a.c): Likewise.
14533         (CFLAGS-tst-auditmod4b.c): Likewise.
14534         (CFLAGS-tst-auditmod6b.c): Likewise.
14535         (CFLAGS-tst-auditmod6c.c): Likewise.
14536         (CFLAGS-tst-auditmod7b.c): Likewise.
14537         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
14538
14539 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
14540
14541         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
14542         function to the callback.
14543         Patch partly by Jiri Olsa <jolsa@redhat.com>.
14544
14545 2011-02-02  Andreas Schwab  <schwab@redhat.com>
14546
14547         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
14548         of errno.
14549
14550 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
14551
14552         [BZ #11724]
14553         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
14554         of constructors.
14555         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
14556         of destructors.
14557         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
14558
14559         [BZ #11724]
14560         * elf/Makefile: Add rules to build and run new test.
14561         * elf/tst-initorder.c: New file.
14562         * elf/tst-initorder.exp: New file.
14563         * elf/tst-initordera1.c: New file.
14564         * elf/tst-initordera2.c: New file.
14565         * elf/tst-initordera3.c: New file.
14566         * elf/tst-initordera4.c: New file.
14567         * elf/tst-initorderb1.c: New file.
14568         * elf/tst-initorderb2.c: New file.
14569         * elf/tst-order-a1.c: New file.
14570         * elf/tst-order-a2.c: New file.
14571         * elf/tst-order-a3.c: New file.
14572         * elf/tst-order-a4.c: New file.
14573         * elf/tst-order-b1.c: New file.
14574         * elf/tst-order-b2.c: New file.
14575         * elf/tst-order-main.c: New file.
14576         New test case by George Gensure <werkt0@gmail.com>.
14577
14578 2010-10-01  Andreas Schwab  <schwab@redhat.com>
14579
14580         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
14581         decoding ACE if AI_CANONIDN.
14582
14583 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
14584
14585         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
14586
14587 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
14588
14589         * version.h (RELEASE): Bump for 2.13 release.
14590         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
14591
14592         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
14593
14594         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
14595         MADV_NOHUGEPAGE.
14596         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
14597         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
14598         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
14599         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
14600         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
14601         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
14602
14603         * posix/getconf.c: Update copyright year.
14604         * catgets/gencat.c: Likewise.
14605         * csu/version.c: Likewise.
14606         * debug/catchsegv.sh: Likewise.
14607         * debug/xtrace.sh: Likewise.
14608         * elf/ldconfig.c: Likewise.
14609         * elf/ldd.bash.in: Likewise.
14610         * elf/sprof.c (print_version): Likewise.
14611         * iconv/iconv_prog.c: Likewise.
14612         * iconv/iconvconfig.c: Likewise.
14613         * locale/programs/locale.c: Likewise.
14614         * locale/programs/localedef.c: Likewise.
14615         * malloc/memusage.sh: Likewise.
14616         * malloc/mtrace.pl: Likewise.
14617         * nscd/nscd.c (print_version): Likewise.
14618         * nss/getent.c: Likewise.
14619
14620         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
14621         PF_CAIF, and PF_ALG.
14622         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14623
14624 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
14625
14626         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
14627         (modules-names): Use them.
14628         (ifunc-test-modules, ifunc-pie-tests): Define.
14629         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
14630         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
14631         (test-extras): Likewise.
14632         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
14633         $(compile-command.c).
14634         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
14635         (all-built-dso): Define.
14636         (check-textrel.out, check-execstack.out): Depend on it.
14637
14638         * configure.in: Don't override --enable-multi-arch.
14639
14640 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
14641
14642         [BZ #6812]
14643         * nscd/hstcache.c (tryagain): Define.
14644         (cache_addhst): Return tryagain not notfound for temporary errors.
14645         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
14646         failed.
14647
14648 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
14649
14650         [BZ #10563]
14651         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
14652         to make the syscall.
14653         * sysdeps/unix/sysv/linux/setgroups.c: New file.
14654
14655         [BZ #12378]
14656         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
14657         and fall back to matching as normal character if the string ends before
14658         the matching ']' is found.  This is what POSIX requires.
14659         * posix/testfnm.c: Adjust test result.
14660         * posix/globtest.sh: Adjust test result.  Add new test.
14661         * posix/tst-fnmatch.input: Likewise.
14662         * posix/tst-fnmatch2.c: Add new test.
14663
14664 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
14665
14666         * elf/Makefile (check-execstack): Revert last change.  Depend on
14667         check-execstack.h.
14668         (check-execstack.h): New target.
14669         (generated): Add check-execstack.h.
14670         * elf/check-execstack.c: Include "check-execstack.h".
14671         (main): Revert last change.
14672         (handle_file): Return zero if GNU_STACK is absent and
14673         DEFAULT_STACK_PERMS doesn't include PF_X.
14674
14675 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
14676
14677         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
14678         in child fails because the descriptor is already closed.
14679         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
14680         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
14681         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
14682
14683         [BZ #12397]
14684         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
14685         syscall.
14686
14687         [BZ #10484]
14688         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
14689         temporary buffer used to handle multi lookups locally.
14690         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
14691
14692 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
14693
14694         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
14695         loader is ld.so.
14696
14697 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
14698
14699         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
14700         alignment for SSE2.
14701
14702 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
14703
14704         [BZ #12394]
14705         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
14706         characters.  When rounding increased number of integer digits recompute
14707         number of groups.
14708         * stdio-common/tst-grouping.c: New file.
14709         * stdio-common/Makefile: Add rules to build and run tst-grouping.
14710
14711 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
14712
14713         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
14714         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
14715
14716         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
14717         void.
14718         * bits/select.h: Likewise.
14719
14720 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
14721
14722         * po/ja.po: Update from translation team.
14723
14724 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
14725
14726         [BZ #11155]
14727         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
14728         implementation just like for lxstat, fxstatat, et al.
14729
14730 2010-12-27  Jim Meyering  <meyering@redhat.com>
14731
14732         [BZ #12348]
14733         * posix/regexec.c (build_trtable): Return failure indication upon
14734         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
14735
14736 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
14737
14738         [BZ #12201]
14739         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
14740         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
14741         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
14742         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
14743
14744         [BZ #12207]
14745         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
14746
14747         [BZ #12204]
14748         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
14749         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
14750
14751 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
14752
14753         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
14754         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
14755         script has SORT_BY_INIT_PRIORITY.
14756         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
14757         NO_CTORS_DTORS_SECTIONS is defined.
14758         * elf/soinit.c: Likewise.
14759         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
14760         NO_CTORS_DTORS_SECTIONS is defined.
14761         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
14762         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
14763         * sysdeps/sh/init-first.c: Likewise.
14764         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
14765
14766 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
14767
14768         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
14769         always use the slow path.
14770
14771 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
14772
14773         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
14774         similar rule which adds the sysdep directories to the header search in
14775         order to pick up the correct platform stackinfo.h.
14776         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
14777         perform test if it is, otherwise return successfully without testing.
14778         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
14779         DEFAULT_STACK_PERMS define in stackinfo.h.
14780         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
14781         defined in stackinfo.h.
14782         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
14783         DEFAULT_STACK_PERMS defined in stackinfo.h.
14784         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
14785         * sysdeps/ia64/stackinfo.h: Likewise.
14786         * sysdeps/s390/stackinfo.h: Likewise.
14787         * sysdeps/sh/stackinfo.h: Likewise.
14788         * sysdeps/sparc/stackinfo.h: Likewise.
14789         * sysdeps/x86_64/stackinfo.h: Likewise.
14790         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
14791         PF_X for powerpc64.  Retain PF_X for powerpc32.
14792
14793 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
14794
14795         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
14796         accurately.
14797         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
14798         GETDENTS_64BIT_ALIGNED.
14799
14800 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
14801
14802         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
14803
14804 2010-12-10  Andreas Schwab  <schwab@redhat.com>
14805
14806         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
14807         _GNU_SOURCE.
14808
14809         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
14810         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
14811         Remove __restrict.
14812         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
14813         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
14814
14815 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
14816
14817         [BZ #11655]
14818         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
14819         are initialized.
14820
14821 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
14822
14823         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
14824
14825 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
14826
14827         * po/it.po: Update from translation team.
14828
14829 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
14830
14831         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
14832         unused codes.
14833
14834 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
14835
14836         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
14837
14838 2010-11-24  Andreas Schwab  <schwab@redhat.com>
14839
14840         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
14841         specially.
14842         (gaih_getanswer_slice): Likewise.
14843
14844 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
14845
14846         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
14847
14848 2010-05-31  Petr Baudis  <pasky@suse.cz>
14849
14850         [BZ #11149]
14851         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
14852         silently even in the chroot mode.
14853
14854 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
14855
14856         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
14857         last patch a bit.  Pretty printing
14858
14859 2010-05-31  Petr Baudis <pasky@suse.cz>
14860
14861         [BZ #10085]
14862         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
14863         initialization of skip_initgroups_dyn.
14864
14865 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
14866
14867         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
14868         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
14869
14870 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
14871
14872         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
14873
14874 2010-11-11  Andreas Schwab  <schwab@redhat.com>
14875
14876         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
14877         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
14878         (tst-fnmatch-ENV): Set MALLOC_TRACE.
14879         ($(objpfx)tst-fnmatch-mem): New rule.
14880         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
14881         * posix/tst-fnmatch.c (main): Call mtrace.
14882
14883 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
14884
14885         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14886         Support Intel processor model 6 and model 0x2c.
14887
14888 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
14889
14890         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
14891           signed comparison.
14892
14893 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
14894
14895         [BZ #12205]
14896         * string/test-strncasecmp.c (check_result): New function.
14897         (do_one_test): Use it.
14898         (check1): New function.
14899         (test_main): Use it.
14900         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
14901         Support strcasecmp and strncasecmp.
14902
14903 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
14904
14905         [BZ #12194]
14906         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
14907         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14908
14909 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
14910
14911         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
14912         IFUNC support.
14913         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14914         memset-x86-64.
14915         * sysdeps/x86_64/multiarch/bzero.S: New file.
14916         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
14917         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
14918         * sysdeps/x86_64/multiarch/memset.S: New file.
14919         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
14920         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14921         Set bit_Prefer_SSE_for_memop for Intel processors.
14922         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
14923         Define.
14924         (index_Prefer_SSE_for_memop): Define.
14925         (HAS_PREFER_SSE_FOR_MEMOP): Define.
14926
14927 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
14928
14929         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
14930         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
14931
14932 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
14933
14934         [BZ #12191]
14935         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
14936         (__x86_64_raw_data_cache_size_half): Likewise.
14937         (__x86_64_raw_shared_cache_size): Likewise.
14938         (__x86_64_raw_shared_cache_size_half): Likewise.
14939
14940         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
14941         (__x86_64_raw_data_cache_size_half): Likewise.
14942         (__x86_64_raw_shared_cache_size): Likewise.
14943         (__x86_64_raw_shared_cache_size_half): Likewise.
14944         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
14945         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
14946         and __x86_64_raw_shared_cache_size_half.  Round
14947         __x86_64_data_cache_size_half, __x86_64_data_cache_size
14948         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
14949         to multiple of 256 bytes.
14950
14951 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
14952
14953         [BZ #12167]
14954         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
14955         of inacessible symlinks.  Verify result of symlink before returning it.
14956         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
14957         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
14958
14959 2010-10-28  Erich Ritz  <erichritz@gmail.com>
14960
14961         * math/math.h (isinf): Fix typo in comment.
14962
14963 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
14964
14965         * po/da.po: Update from translation team.
14966
14967 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
14968
14969         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
14970         is added to the list.
14971
14972 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14973             Ulrich Drepper  <drepper@gmail.com>
14974
14975         * elf/dl-object.c (_dl_new_object): Don't append the new object to
14976         the global list here.  Move code to...
14977         (_dl_add_to_namespace_list): ...here.  New function.
14978         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
14979         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
14980         * elf/dl-load.c (lose): Don't remove the element from the list.
14981         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
14982         (_dl_map_object): Likewise.
14983
14984 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
14985
14986         [BZ #12159]
14987         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
14988         into all bytes of SSE register.
14989         Patch by Richard Li <richardpku@gmail.com>.
14990
14991 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
14992
14993         [BZ #12140]
14994         * malloc/malloc.c (_int_free): Fill correct number of bytes when
14995         perturbing.
14996
14997 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
14998
14999         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
15000         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
15001         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
15002         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
15003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
15004         submachine.
15005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15006
15007 2010-10-22  Andreas Schwab  <schwab@redhat.com>
15008
15009         * include/dlfcn.h (__RTLD_SECURE): Define.
15010         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
15011         mode & __RTLD_SECURE instead.
15012         (open_path): Rename preloaded parameter to secure.
15013         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
15014         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
15015         * elf/dl-deps.c (openaux): Likewise.
15016         * elf/rtld.c (struct map_args): Remove is_preloaded.
15017         (map_doit): Don't use it.
15018         (dl_main): Likewise.
15019         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
15020         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
15021
15022 2010-09-09  Andreas Schwab  <schwab@redhat.com>
15023
15024         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
15025         (sysd-rules-targets): Remove duplicates.
15026         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
15027         rtld-%.$o dependency.
15028
15029 2010-10-18  Andreas Schwab  <schwab@redhat.com>
15030
15031         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
15032         _dl_map_object do it.
15033
15034 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
15035
15036         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
15037         fast fma builtins, define the macros in the C99 standard.
15038         (FP_FAST_FMAF): Likewise.
15039         (FP_FAST_FMAL): Likewise.
15040         * sysdeps/x86_64/bits/mathdef.h: Likewise.
15041
15042         * bits/mathdef.h: Update copyright year.
15043         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15044
15045 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15046
15047         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
15048         builtins, define the macros in the C99 standard.
15049         (FP_FAST_FMAF): Likewise.
15050         (FP_FAST_FMAL): Likewise.
15051         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
15052         multiply/add.
15053         (FP_FAST_FMAF): Likewise.
15054
15055 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
15056
15057         [BZ #3268]
15058         * math/libm-test.inc (fma_test): Some new testcases.
15059         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
15060         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
15061         y and infinite z.  Do multiplication by C already in long double.
15062         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
15063         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
15064         y and infinite z.  Do bitwise or of inexact bit into u.d.
15065         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
15066         * sysdeps/i386/fpu/s_fmaf.S: Removed.
15067         * sysdeps/i386/fpu/s_fma.S: Removed.
15068         * sysdeps/i386/fpu/s_fmal.S: Removed.
15069
15070 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
15071
15072         [BZ #3268]
15073         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
15074         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
15075         computation is not scheduled after fetestexcept.  Fix value
15076         of minimum denormal long double.
15077
15078 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
15079
15080         [BZ #3268]
15081         * math/libm-test.inc (fma_test): Add some more tests.
15082         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
15083         correctly.
15084
15085 2010-10-15  Andreas Schwab  <schwab@redhat.com>
15086
15087         * scripts/data/localplt-s390-linux-gnu.data: New file.
15088         * scripts/data/localplt-s390x-linux-gnu.data: New file.
15089
15090 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
15091
15092         [BZ #3268]
15093         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
15094         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
15095         instead of dbl-64.
15096         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
15097         inlines.
15098         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
15099         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
15100         if one of x and y is very large and the other is subnormal.
15101         * sysdeps/s390/fpu/s_fmaf.c: New file.
15102         * sysdeps/s390/fpu/s_fma.c: New file.
15103         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
15104         * sysdeps/powerpc/fpu/s_fma.S: New file.
15105         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
15106         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
15107         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
15108
15109 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
15110
15111         [BZ #3268]
15112         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
15113         fma tests.
15114         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
15115         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
15116         * sysdeps/i386/i686/multiarch/s_fma.c: Include
15117         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
15118         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
15119         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
15120         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
15121
15122 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
15123
15124         [BZ #12078]
15125         * posix/regcomp.c (parse_branch): One more memory leak plugged.
15126         * posix/bug-regex31.input: Add test case.
15127
15128 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
15129
15130         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
15131         * posix/bug-regex31.input: New file.
15132
15133         [BZ #12078]
15134         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
15135         (parse_sub_exp): Fix last change, use postorder.
15136
15137         * posix/bug-regex31.c: New file.
15138         * posix/Makefile: Add rules to build and run bug-regex31.
15139
15140         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
15141
15142         [BZ #12078]
15143         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
15144
15145         [BZ #12108]
15146         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
15147         to have entries in sys_siglist.
15148
15149         [BZ #12093]
15150         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
15151         be NULL.
15152
15153 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
15154
15155         [BZ #3268]
15156         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
15157         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
15158         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
15159         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
15160         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15161         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
15162         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
15163         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
15164         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
15165         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
15166         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
15167         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
15168         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
15169         * math/ftestexcept.c (fetestexcept): Likewise.
15170         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
15171         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
15172         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
15173         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
15174         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
15175         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
15176         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
15177
15178 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
15179
15180         [BZ #12107]
15181         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
15182         newline.
15183
15184 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
15185
15186         * string/bug-strstr1.c: New file.
15187         * string/Makefile: Add rules to build and run bug-strstr1.
15188
15189 2010-10-05  Eric Blake  <eblake@redhat.com>
15190
15191         [BZ #12092]
15192         * string/str-two-way.h (two_way_long_needle): Always clear memory
15193         when skipping input due to the shift table.
15194
15195 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
15196
15197         [BZ #12005]
15198         * malloc/mcheck.c: Handle large requests.
15199
15200         [BZ #12077]
15201         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
15202         for strncmp and strncasecmp.
15203         * string/stratcliff.c: Add tests for strcmp and strncmp.
15204         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
15205
15206 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15207
15208         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
15209         __set_fpscr.
15210
15211 2010-09-30  Andreas Jaeger  <aj@suse.de>
15212
15213         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
15214         (CGROUP_SUPER_MAGIC): Define.
15215         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15216         Handle btrfs and cgroup file systems.
15217         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
15218         Likewise.
15219
15220 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
15221
15222         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
15223         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
15224
15225 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15226
15227         [BZ #12067]
15228         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
15229         trying to locate the ELF header.
15230
15231 2010-09-27  Andreas Schwab  <schwab@redhat.com>
15232
15233         [BZ #11611]
15234         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
15235         Mask out sign-bit copies when constructing f_fsid.
15236
15237 2010-09-24  Petr Baudis <pasky@suse.cz>
15238
15239         * debug/stack_chk_fail_local.c: Add missing licence exception.
15240         * debug/warning-nop.c: Likewise.
15241
15242 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
15243
15244         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
15245         implementing getdents64 using getdents syscall, set d_type if
15246         __ASSUME_GETDENTS32_D_TYPE.
15247
15248 2010-09-16  Andreas Schwab  <schwab@redhat.com>
15249
15250         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
15251         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
15252
15253 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
15254
15255         [BZ #12037]
15256         * posix/unistd.h: Undo change of feature selection for ftruncate from
15257         2010-01-11.
15258
15259 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
15260
15261         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
15262         detection.
15263
15264 2010-09-20  Andreas Schwab  <schwab@redhat.com>
15265
15266         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
15267         fanotify_mark.
15268         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
15269
15270 2010-09-14  Andreas Schwab  <schwab@redhat.com>
15271
15272         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
15273         variables after CHECK_SP call.
15274         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
15275
15276 2010-09-13  Andreas Schwab  <schwab@redhat.com>
15277             Ulrich Drepper  <drepper@redhat.com>
15278
15279         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
15280         re-relocationg ld.so.
15281         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
15282         _dl_init_paths call.
15283         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
15284         here anymore.
15285
15286 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
15287
15288         * resolv/res_init.c (__res_vinit): Count the default server we added.
15289
15290 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
15291             Ulrich Drepper  <drepper@redhat.com>
15292
15293         [BZ #11968]
15294         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15295         (____longjmp_chk): Use %ebx for saving value across system call.
15296         Add unwind info.
15297
15298 2010-09-06  Andreas Schwab  <schwab@redhat.com>
15299
15300         * manual/Makefile: Don't mix pattern rules with normal rules.
15301
15302 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15303
15304         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
15305         operation.
15306         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
15307         * libio/iofopncook.c (_IO_cookie_init): Likewise.
15308         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
15309         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
15310         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15311         Likewise.
15312
15313 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
15314
15315         [BZ #11979]
15316         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
15317         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
15318
15319 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
15320
15321         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
15322         * sysdeps/x86_64/addmul_1.S: Likewise.
15323         * sysdeps/x86_64/lshift.S: Likewise.
15324         * sysdeps/x86_64/mul_1.S: Likewise.
15325         * sysdeps/x86_64/rshift.S: Likewise.
15326         * sysdeps/x86_64/sub_n.S: Likewise.
15327         * sysdeps/x86_64/submul_1.S: Likewise.
15328
15329 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15330
15331         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
15332         Define __sched_param instead of SCHED_* and sched_param when
15333         <bits/sched.h> is included with __need_schedparam defined.
15334         * bits/sched.h [__need_schedparam]
15335         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
15336         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
15337         (__defined_schedparam): Define to 1.
15338         (__sched_param): New structure, identical to sched_param.
15339         (__need_schedparam): Undefine.
15340
15341 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
15342
15343         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
15344         (epoll_create1): Declare.
15345
15346         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
15347
15348 2010-08-31  Andreas Schwab  <schwab@redhat.com>
15349
15350         [BZ #7066]
15351         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
15352         shifting retval into place.
15353
15354 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
15355
15356         * nis/rpcsvc/nis.h: Update copyright notice.
15357         * nis/rpcsvc/nis.x: Likewise.
15358         * nis/rpcsvc/nis_callback.h: Likewise.
15359         * nis/rpcsvc/nis_callback.x: Likewise.
15360         * nis/rpcsvc/nis_object.x: Likewise.
15361         * nis/rpcsvc/nis_tags.h: Likewise.
15362         * nis/rpcsvc/yp.h: Likewise.
15363         * nis/rpcsvc/yp.x: Likewise.
15364         * nis/rpcsvc/ypupd.h: Likewise.
15365         * nis/yp_xdr.c: Likewise.
15366         * nis/ypupdate_xdr.c: Likewise.
15367
15368         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
15369         mainly the body of pmap_getport.  Add parameters to specify timeouts.
15370         (pmap_getport): Use __libc_rpc_getport.
15371         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
15372         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
15373         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
15374
15375 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
15376
15377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
15378         fanotify_mark.
15379
15380 2010-08-27  Roland McGrath  <roland@redhat.com>
15381
15382         * sysdeps/i386/i686/multiarch/Makefile
15383         (CFLAGS-varshift.c): New variable.
15384
15385 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
15386
15387         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
15388         * sysdeps/i386/i686/multiarch/varshift.c: New file.
15389
15390         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
15391
15392         * sysdeps/x86_64/strlen.S: Minimal code improvement.
15393
15394 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
15395
15396         * sysdeps/x86_64/strlen.S: Unroll the loop.
15397         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15398         strlen-sse2 strlen-sse2-bsf.
15399         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
15400         __strlen_no_bsf if bit_Slow_BSF is set.
15401         (__strlen_sse42): Removed.
15402         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
15403         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
15404
15405 2010-08-25  Roland McGrath  <roland@redhat.com>
15406
15407         * sysdeps/x86_64/multiarch/varshift.S: File removed.
15408         * sysdeps/x86_64/multiarch/varshift.c: New file.
15409         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
15410         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
15411         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
15412         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
15413
15414 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
15415
15416         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15417         strlen-sse2 strlen-sse2-bsf.
15418         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
15419         __strlen_sse2_bsf if bit_Slow_BSF is unset.
15420         (__strlen_sse2): Removed.
15421         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
15422         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
15423         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
15424         bit_Slow_BSF for Atom.
15425         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
15426         (index_Slow_BSF): Define.
15427         (HAS_SLOW_BSF): Define.
15428
15429 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
15430
15431         [BZ #10851]
15432         * resolv/res_init.c (__res_vinit): When no server address at all
15433         is given default to loopback.
15434
15435 2010-08-24  Roland McGrath  <roland@redhat.com>
15436
15437         * configure.in: Remove config-name.h generation.
15438         * configure: Regenerated.
15439         * config-name.in: File removed.
15440         * scripts/config-uname.sh: New file.
15441         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
15442         ($(objdir)config-name.h): New target.
15443
15444         * sunrpc/rpc_parse.h: Avoid nested comment.
15445
15446 2010-08-24  Richard Henderson  <rth@redhat.com>
15447             Ulrich Drepper  <drepper@redhat.com>
15448             H.J. Lu  <hongjiu.lu@intel.com>
15449
15450         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
15451         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
15452         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
15453         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
15454         _mm_alignr_epi8 with _mm_loadu_si128.
15455         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
15456         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
15457         (__m128i_shift_right): Removed.
15458         * sysdeps/i386/i686/multiarch/varshift.h: New file.
15459         * sysdeps/i386/i686/multiarch/varshift.S: New file.
15460         * sysdeps/x86_64/multiarch/varshift.h: New file.
15461         * sysdeps/x86_64/multiarch/varshift.S: New file.
15462
15463 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
15464
15465         * configure.in: Move assembler checks to before sysdep dir checking.
15466
15467 2010-08-20  Petr Baudis  <pasky@suse.cz>
15468
15469         * LICENSES: Sync the sunrpc license.
15470
15471 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
15472
15473         * sunrpc/auth_des.c: Update copyright notice once again.
15474         * sunrpc/auth_none.c: Likewise.
15475         * sunrpc/auth_unix.c: Likewise.
15476         * sunrpc/authdes_prot.c: Likewise.
15477         * sunrpc/authuxprot.c: Likewise.
15478         * sunrpc/bindrsvprt.c: Likewise.
15479         * sunrpc/clnt_gen.c: Likewise.
15480         * sunrpc/clnt_perr.c: Likewise.
15481         * sunrpc/clnt_raw.c: Likewise.
15482         * sunrpc/clnt_simp.c: Likewise.
15483         * sunrpc/clnt_tcp.c: Likewise.
15484         * sunrpc/clnt_udp.c: Likewise.
15485         * sunrpc/clnt_unix.c: Likewise.
15486         * sunrpc/des_crypt.c: Likewise.
15487         * sunrpc/des_soft.c: Likewise.
15488         * sunrpc/get_myaddr.c: Likewise.
15489         * sunrpc/getrpcport.c: Likewise.
15490         * sunrpc/key_call.c: Likewise.
15491         * sunrpc/key_prot.c: Likewise.
15492         * sunrpc/openchild.c: Likewise.
15493         * sunrpc/pm_getmaps.c: Likewise.
15494         * sunrpc/pm_getport.c: Likewise.
15495         * sunrpc/pmap_clnt.c: Likewise.
15496         * sunrpc/pmap_prot.c: Likewise.
15497         * sunrpc/pmap_prot2.c: Likewise.
15498         * sunrpc/pmap_rmt.c: Likewise.
15499         * sunrpc/rpc/auth.h: Likewise.
15500         * sunrpc/rpc/auth_unix.h: Likewise.
15501         * sunrpc/rpc/clnt.h: Likewise.
15502         * sunrpc/rpc/des_crypt.h: Likewise.
15503         * sunrpc/rpc/key_prot.h: Likewise.
15504         * sunrpc/rpc/netdb.h: Likewise.
15505         * sunrpc/rpc/pmap_clnt.h: Likewise.
15506         * sunrpc/rpc/pmap_prot.h: Likewise.
15507         * sunrpc/rpc/pmap_rmt.h: Likewise.
15508         * sunrpc/rpc/rpc.h: Likewise.
15509         * sunrpc/rpc/rpc_des.h: Likewise.
15510         * sunrpc/rpc/rpc_msg.h: Likewise.
15511         * sunrpc/rpc/svc.h: Likewise.
15512         * sunrpc/rpc/svc_auth.h: Likewise.
15513         * sunrpc/rpc/types.h: Likewise.
15514         * sunrpc/rpc/xdr.h: Likewise.
15515         * sunrpc/rpc_clntout.c: Likewise.
15516         * sunrpc/rpc_cmsg.c: Likewise.
15517         * sunrpc/rpc_common.c: Likewise.
15518         * sunrpc/rpc_cout.c: Likewise.
15519         * sunrpc/rpc_dtable.c: Likewise.
15520         * sunrpc/rpc_hout.c: Likewise.
15521         * sunrpc/rpc_main.c: Likewise.
15522         * sunrpc/rpc_parse.c: Likewise.
15523         * sunrpc/rpc_parse.h: Likewise.
15524         * sunrpc/rpc_prot.c: Likewise.
15525         * sunrpc/rpc_sample.c: Likewise.
15526         * sunrpc/rpc_scan.c: Likewise.
15527         * sunrpc/rpc_scan.h: Likewise.
15528         * sunrpc/rpc_svcout.c: Likewise.
15529         * sunrpc/rpc_tblout.c: Likewise.
15530         * sunrpc/rpc_util.c: Likewise.
15531         * sunrpc/rpc_util.h: Likewise.
15532         * sunrpc/rpcinfo.c: Likewise.
15533         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
15534         * sunrpc/rpcsvc/key_prot.x: Likewise.
15535         * sunrpc/rpcsvc/klm_prot.x: Likewise.
15536         * sunrpc/rpcsvc/mount.x: Likewise.
15537         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
15538         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
15539         * sunrpc/rpcsvc/rex.x: Likewise.
15540         * sunrpc/rpcsvc/rstat.x: Likewise.
15541         * sunrpc/rpcsvc/rusers.x: Likewise.
15542         * sunrpc/rpcsvc/sm_inter.x: Likewise.
15543         * sunrpc/rpcsvc/spray.x: Likewise.
15544         * sunrpc/rpcsvc/yppasswd.x: Likewise.
15545         * sunrpc/rtime.c: Likewise.
15546         * sunrpc/svc.c: Likewise.
15547         * sunrpc/svc_auth.c: Likewise.
15548         * sunrpc/svc_authux.c: Likewise.
15549         * sunrpc/svc_raw.c: Likewise.
15550         * sunrpc/svc_run.c: Likewise.
15551         * sunrpc/svc_simple.c: Likewise.
15552         * sunrpc/svc_tcp.c: Likewise.
15553         * sunrpc/svc_udp.c: Likewise.
15554         * sunrpc/svc_unix.c: Likewise.
15555         * sunrpc/svcauth_des.c: Likewise.
15556         * sunrpc/xcrypt.c: Likewise.
15557         * sunrpc/xdr.c: Likewise.
15558         * sunrpc/xdr_array.c: Likewise.
15559         * sunrpc/xdr_float.c: Likewise.
15560         * sunrpc/xdr_mem.c: Likewise.
15561         * sunrpc/xdr_rec.c: Likewise.
15562         * sunrpc/xdr_ref.c: Likewise.
15563         * sunrpc/xdr_sizeof.c: Likewise.
15564         * sunrpc/xdr_stdio.c: Likewise.
15565
15566         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
15567         handling.
15568
15569 2010-08-19  Andreas Schwab  <schwab@redhat.com>
15570
15571         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
15572
15573 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
15574
15575         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
15576         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
15577         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
15578         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
15579         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
15580         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
15581         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
15582         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
15583         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
15584         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
15585         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
15586         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
15587         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
15588         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
15589
15590 2010-07-26  Anton Blanchard  <anton@samba.org>
15591
15592         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
15593         * malloc/arena.c (heap_trim): Likewise.
15594
15595 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
15596
15597         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
15598         here.  Not...
15599         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
15600         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
15601
15602 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
15603
15604         * sysdeps/i386/elf/Makefile: New file.
15605
15606 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
15607
15608         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
15609         from fanotify_init.
15610         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
15611         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15612
15613 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
15614
15615         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
15616         of strncasecmp_l.
15617         * sysdeps/multiarch/strcmp.S: Likewise.
15618
15619 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
15620
15621         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
15622         strncase_l-nonascii.
15623         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
15624         Add strncase_l-ssse3.
15625         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
15626         * sysdeps/x86_64/strcmp.S: Likewise.
15627         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
15628         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
15629         * sysdeps/x86_64/strncase.S: New file.
15630         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
15631         * sysdeps/x86_64/strncase_l.S: New file.
15632         * string/Makefile (strop-tests): Add strncasecmp.
15633         * string/test-strncasecmp.c: New file.
15634
15635         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
15636         warning.
15637
15638         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
15639         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
15640
15641 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
15642
15643         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
15644
15645 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
15646
15647         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
15648         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
15649         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
15650
15651 2010-05-01  Alan Modra  <amodra@gmail.com>
15652
15653         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
15654         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
15655         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
15656         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
15657         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
15658         tidying.  Don't tail-call __sigjmp_save for static lib.
15659         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
15660         save location.
15661         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
15662         (CALL_MCOUNT): Add eh info, and nop after bl.
15663         (TAIL_CALL_SYSCALL_ERROR): New macro.
15664         (PSEUDO_RET): Use it.
15665         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
15666         Correct save location of integer regs and cr.
15667         (_dl_profile_resolve): Correct cr save location.  Delete nops
15668         after bl when SHARED.  Reduce cfi size a little by better
15669         placement of cfi directives.
15670         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
15671         make a stack frame.  Instead use parm save area as a temp.
15672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
15673         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
15674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
15675         Don't make a stack frame for parent, use parm save area.
15676         Increase child stack frame to 112 bytes.  Don't save unused reg,
15677         and adjust reg usage.  Set up cfi on error recovery and
15678         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
15679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
15680         (__makecontext): Add dummy nop after jump to exit.
15681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
15682         Use correct parm save area and cr save, reduce stack frame.
15683         Correct cfi for possible PSEUDO_RET frame setup.
15684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
15685         Branch to local label emitted by PSEUDO_RET rather than
15686         __syscall_error.
15687
15688 2010-08-12  Andreas Schwab  <schwab@redhat.com>
15689
15690         [BZ #11904]
15691         * locale/programs/locale.c (print_assignment): New function.
15692         (show_locale_vars): Use it.
15693
15694 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
15695
15696         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
15697         field.
15698         (struct statfs64): Likewise.
15699         (_STATFS_F_FLAGS): Define.
15700         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
15701         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15702         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
15703         (ST_VALID): Define locally.
15704         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
15705         __statvfs_getflags, use the provided value.
15706         * sysdeps/unix/sysv/linux/kernel-features.h: Define
15707         __ASSUME_STATFS_F_FLAGS.
15708
15709         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
15710
15711         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
15712         Add sys/fanotify.h.
15713         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
15714         fanotify_mask for GLIBC_2.13.
15715         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
15716         fanotify_init and fanotify_mark.
15717         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15718         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
15719
15720         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
15721         Add prlimit.
15722         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
15723         prlimit64 for GLIBC_2.13.
15724         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
15725         prlimit64.
15726         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
15727         syscall.
15728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
15729         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
15730         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
15731         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
15732         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
15733         add prlimit alias.
15734         * sysdeps/unix/sysv/linux/prlimit.c: New file.
15735
15736         [BZ #11903]
15737         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
15738         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
15739
15740         * nss/Makefile: Add rules to build and run tst-nss-test1.
15741         * shlib-versions: Add entry for libnss_test1.
15742         * nss/nss_test1.c: New file.
15743         * nss/tst-nss-test1.c: New file.
15744
15745         * nss/nsswitch.c (__nss_database_custom): Define new variable.
15746         (__nss_configure_lookup): Set appropriate entry in
15747         __nss_configure_lookup to true.
15748         * nss/nsswitch.h: Define enum with indeces of databases in
15749         databases and __nss_database_custom arrays.  Declare
15750         __nss_database_custom.
15751         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
15752         to avoid using nscd when custom rules are installed.
15753         * nss/getXXbyYY_r.c: Likewise.
15754         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
15755
15756         * nss/nss_files/files-parse.c: Whitespace fixes.
15757
15758 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
15759
15760         [BZ #11883]
15761         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
15762         * posix/fnmatch_loop.c: Likewise.
15763
15764 2010-07-17  Andi Kleen  <ak@linux.intel.com>
15765
15766         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
15767         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
15768         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
15769         * Versions.def [GLIBC_2.13]: Add.
15770
15771 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
15772
15773         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15774         Also fail if tpwd after pwuid call is NULL.
15775
15776 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15777
15778         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
15779         when converting to ms.
15780
15781 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15782
15783         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
15784         EOPNOTSUPP errors with ENOTTY.
15785         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
15786         EOPNOTSUPP errors with ENOTTY.
15787
15788 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
15789
15790         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
15791         Add strcasecmp_l-ssse3.
15792         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
15793         strcasecmp.
15794         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
15795         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
15796         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
15797
15798 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
15799
15800         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
15801
15802         * string/Makefile (strop-tests): Add strcasecmp.
15803         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
15804         strcasecmp_l-nonascii.
15805         (gen-as-const-headers): Add locale-defines.sym.
15806         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
15807         * sysdeps/x86_64/strcasecmp.S: New file.
15808         * sysdeps/x86_64/strcasecmp_l.S: New file.
15809         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
15810         * sysdeps/x86_64/locale-defines.sym: New file.
15811         * string/test-strcasecmp.c: New file.
15812
15813         * string/test-strcasestr.c: Test both ends of the range of characters.
15814         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
15815
15816 2010-07-29  Roland McGrath  <roland@redhat.com>
15817
15818         [BZ #11856]
15819         * manual/locale.texi (Yes-or-No Questions): Fix example code.
15820
15821 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
15822
15823         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
15824         for ld.so.
15825
15826 2010-07-27  Andreas Schwab  <schwab@redhat.com>
15827
15828         * manual/memory.texi (Malloc Tunable Parameters): Document
15829         M_PERTURB.
15830
15831 2010-07-26  Roland McGrath  <roland@redhat.com>
15832
15833         [BZ #11840]
15834         * configure.in (-fgnu89-inline check): Set and substitute
15835         gnu89_inline, not libc_cv_gnu89_inline.
15836         * configure: Regenerated.
15837         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
15838
15839 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
15840
15841         * string/test-strnlen.c: New file.
15842         * string/Makefile (strop-tests): Add strnlen.
15843         * string/tester.c (test_strnlen): Add a few more test cases.
15844         * string/tst-strlen.c: Better error reporting.
15845
15846         * sysdeps/x86_64/strnlen.S: New file.
15847
15848 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
15849
15850         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
15851         lower-latency instructions.
15852
15853 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
15854
15855         * string/test-strcasestr.c: New file.
15856         * string/test-strstr.c: New file.
15857         * string/Makefile (strop-tests): Add strstr and strcasestr.
15858         * string/str-two-way.h: Don't undefine MAX.
15859         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
15860
15861 2010-07-21  Andreas Schwab  <schwab@redhat.com>
15862
15863         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15864         strcasestr-nonascii.
15865         (CFLAGS-strcasestr-nonascii.c): Define.
15866         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
15867         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
15868         Remove unused attribute.
15869
15870 2010-07-20  Roland McGrath  <roland@redhat.com>
15871
15872         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
15873         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
15874         ld.so.cache was broken.  With it, there is no way to disable dsocaps
15875         like LD_HWCAP_MASK can disable hwcaps.
15876
15877 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
15878
15879         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
15880
15881 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
15882
15883         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
15884         call in strcasestr.
15885         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
15886         __strcasestr_sse42_nonascii.
15887         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
15888         strcasestr-nonascii.c.
15889         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
15890
15891 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
15892
15893         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
15894         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
15895         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
15896         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
15897
15898 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
15899
15900         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
15901         fcntl.
15902
15903 2010-07-06  Andreas Schwab  <schwab@redhat.com>
15904
15905         [BZ #11577]
15906         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
15907         dl_signal_cerror.
15908
15909 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
15910
15911         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
15912         _PC_PIPE_BUF using F_GETPIPE_SZ.
15913
15914 2010-07-05  Roland McGrath  <roland@redhat.com>
15915
15916         * manual/arith.texi (Rounding Functions): Fix rint description
15917         implicit in round description.
15918
15919 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
15920
15921         * elf/Makefile: Fix linking for a few tests to make recent linker
15922         happy.
15923
15924 2010-06-30  Andreas Schwab  <schwab@redhat.com>
15925
15926         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15927         $(common-objpfx)libc_nonshared.a.
15928
15929 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
15930
15931         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
15932         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
15933         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
15934         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
15935         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
15936         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
15937         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
15938         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
15939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
15940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
15941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
15942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
15943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
15944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
15945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
15946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
15947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
15948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
15949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
15950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
15951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
15952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
15953         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
15954         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
15955         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
15956         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
15957         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
15958         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
15959         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
15960         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
15961         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
15962         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
15963         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
15964         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
15965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
15966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
15967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
15968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
15969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
15970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
15971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
15972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
15973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
15974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
15975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
15976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
15977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
15978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
15979
15980 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15981
15982         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
15983         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
15984         * string/memmove.c (memmove): Renamed to ...
15985         (MEMMOVE): ...this.  Default to memmove.
15986         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
15987         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
15988         (END_CHK): Define.
15989         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15990         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
15991         mempcpy-ssse3-back memmove-ssse3-back.
15992         * sysdeps/x86_64/multiarch/bcopy.S: New file .
15993         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
15994         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
15995         * sysdeps/x86_64/multiarch/memcpy.S: New file.
15996         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
15997         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
15998         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
15999         * sysdeps/x86_64/multiarch/memmove.c: New file.
16000         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
16001         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
16002         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
16003         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
16004         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
16005         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
16006         Define.
16007         (index_Fast_Copy_Backward): Define.
16008         (HAS_ARCH_FEATURE): Define.
16009         (HAS_FAST_REP_STRING): Define.
16010         (HAS_FAST_COPY_BACKWARD): Define.
16011
16012 2010-06-21  Andreas Schwab  <schwab@redhat.com>
16013
16014         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16015         Restore proper fallback handling.
16016
16017 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
16018
16019         [BZ #11701]
16020         * posix/group_member.c (__group_member): Correct checking loop.
16021
16022         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
16023         OOM in getpwuid_r correctly.  Return error number when the caller
16024         should return, otherwise -1.
16025         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
16026         call returning > 0 value.
16027         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
16028
16029 2010-06-07  Andreas Schwab  <schwab@redhat.com>
16030
16031         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
16032         libc_nonshared.a from targets in modules-names.
16033
16034 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
16035
16036         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
16037         requires it.
16038
16039 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
16040
16041         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
16042         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
16043         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
16044         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
16045
16046 2010-06-02  Andreas Schwab  <schwab@redhat.com>
16047
16048         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
16049
16050 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
16051
16052         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
16053         and F_GETPIPE_SZ.
16054         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
16055         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16056         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16057         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16058         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16059         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
16060
16061 2010-06-14  Roland McGrath  <roland@redhat.com>
16062
16063         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
16064
16065 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
16066
16067         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
16068         __REDIRECT followed by __THROW.
16069         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
16070         * posix/getopt.h (getopt): Likewise.
16071
16072 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16073
16074         * hurd/lookup-at.c (__file_name_lookup_at): Accept
16075         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
16076         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
16077         in AT_FLAGS.
16078         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
16079         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
16080
16081 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
16082
16083         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
16084
16085 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
16086
16087         [BZ #11640]
16088         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16089         Properly check family and model.
16090
16091 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
16092
16093         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
16094
16095 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
16096
16097         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
16098
16099 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
16100
16101         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
16102         symbol reference.
16103
16104 2010-05-19  Andreas Schwab  <schwab@redhat.com>
16105
16106         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
16107         symbol reference.
16108
16109 2010-05-21  Andreas Schwab  <schwab@redhat.com>
16110
16111         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
16112         and internal_recvmmsg.
16113         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
16114         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
16115         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
16116         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
16117
16118         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
16119         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16120         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16121
16122 2010-05-20  Andreas Schwab  <schwab@redhat.com>
16123
16124         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
16125
16126 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
16127
16128         POWER7 optimizations.
16129         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
16130         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
16131
16132 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
16133
16134         * version.h: Update for 2.13 development version.
16135
16136 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
16137
16138         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
16139         exceptions.  Return 0.
16140
16141 2010-05-07  Roland McGrath  <roland@redhat.com>
16142
16143         * elf/ldconfig.c (main): Add a const.
16144
16145 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
16146
16147         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
16148         (args_options): Add no-idn option.
16149         (ahosts_keys_int): Add idn_flags to ai_flags.
16150         (parse_option): Handle 'i' option to clear idn_flags.
16151
16152         * malloc/malloc.c (_int_free): Possible race in the most recently
16153         added check.  Only act on the data if no current modification
16154         happened.
16155
16156 See ChangeLog.17 for earlier changes.