Fix formatting of denormal IBM long double numbers
[platform/upstream/glibc.git] / ChangeLog
1 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
2
3         [BZ #13941]
4         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
5         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
6         LDBL_MIN_EXP.
7         * stdio-common/Makefile (tests): Add tst-sprintf3.
8         * stdio-common/tst-sprintf3.c: New file.
9
10         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
11         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
12
13 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
14
15         * conform/conformtest.pl: Remove duplicate typed-constant
16         handling.
17
18 2012-04-28  David S. Miller  <davem@davemloft.net>
19
20         * Makerules (%.abilist): Add vpath on sysdep_dirs.
21         (check-abi-%): Remove AWK script prerequisite and explicit
22         abilist directory.
23         (check-abi): Rewrite to just diff the symlist with the abilist.
24         (config-tls, config-abi-config): Delete, no longer used.
25         (update-abi-%): Remove AWK script and explicit abilist directory.
26         (update-abi): Rewrite to simply compare and conditionally copy the
27         symlist and the sysdep abilist file.  Remove update-abi-config
28         checks.
29         * abilist/ld.abilist: Remove.
30         * abilist/libBrokenLocale.abilist: Remove.
31         * abilist/libanl.abilist: Remove.
32         * abilist/libcrypt.abilist: Remove.
33         * abilist/libdl.abilist: Remove.
34         * abilist/librt.abilist: Remove.
35         * abilist/libthread_db.abilist: Remove.
36         * abilist/libutil.abilist: Remove.
37         * scripts/extract-abilist.awk: Remove.
38         * scripts/merge-abilist.awk: Remove.
39         * sysdeps/generic/libcidn.abilist: New file.
40         * sysdeps/generic/libnss_compat.abilist: New file.
41         * sysdeps/generic/libnss_db.abilist: New file.
42         * sysdeps/generic/libnss_dns.abilist: New file.
43         * sysdeps/generic/libnss_files.abilist: New file.
44         * sysdeps/generic/libnss_hesiod.abilist: New file.
45         * sysdeps/generic/libnss_nis.abilist: New file.
46         * sysdeps/generic/libnss_nisplus.abilist: New file.
47         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
48         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
49         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
50         file.
51         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
52         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
53         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
54         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
55         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
56         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
57         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
58         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
59         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
60         file.
61         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
62         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
63         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
64         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
65         file.
66         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
67         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
68         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
69         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
70         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
71         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
72         file.
73         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
74         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
75         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
76         file.
77         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
78         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
79         New file.
80         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
81         New file.
82         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
83         New file.
84         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
85         New file.
86         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
87         New file.
88         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
89         New file.
90         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
91         New file.
92         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
93         New file.
94         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
95         New file.
96         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
97         New file.
98         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
99         New file.
100         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
101         New file.
102         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
103         New file.
104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
105         file.
106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
107         New file.
108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
109         New file.
110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
111         file.
112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
113         New file.
114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
115         New file.
116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
117         file.
118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
119         New file.
120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
121         New file.
122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
123         New file.
124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
125         New file.
126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
127         New file.
128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
129         New file.
130         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
131         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
132         file.
133         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
134         New file.
135         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
136         file.
137         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
138         file.
139         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
140         file.
141         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
142         file.
143         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
144         file.
145         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
146         New file.
147         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
148         file.
149         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
150         file.
151         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
152         New file.
153         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
154         file.
155         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
156         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
157         file.
158         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
159         New file.
160         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
161         file.
162         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
163         file.
164         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
165         file.
166         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
167         file.
168         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
169         file.
170         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
171         New file.
172         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
173         file.
174         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
175         file.
176         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
177         New file.
178         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
179         file.
180         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
181         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
182         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
183         file.
184         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
185         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
186         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
187         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
188         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
189         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
190         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
191         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
192         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
193         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
194         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
195         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
196         file.
197         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
198         New file.
199         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
200         file.
201         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
202         file.
203         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
204         file.
205         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
206         file.
207         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
208         file.
209         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
210         New file.
211         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
212         New file.
213         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
214         file.
215         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
216         New file.
217         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
218         file.
219         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
220         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
221         file.
222         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
223         New file.
224         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
225         file.
226         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
227         file.
228         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
229         file.
230         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
231         file.
232         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
233         file.
234         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
235         New file.
236         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
237         New file.
238         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
239         file.
240         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
241         New file.
242         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
243         file.
244
245 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
246
247         * conform/conformtest.pl: Fix typo in handling typed-constant from
248         allow-header.
249
250 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
251
252         * README: Cut down references to pre-2.6 Linux kernels and
253         Linuxthreads.  Update lists of configurations in libc and ports
254         and sort alphabetically.  Say "or newer" with Linux kernel version
255         requirements.
256
257         * config.h.in [IS_IN_build]: Allow compiling without optimization.
258
259 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
260
261         [BZ #887]
262         * math/libm-test.inc (logb_test_downward): New test to expose
263         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
264         rounding mode.
265
266 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
267
268         [BZ #14027]
269         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
270         to be done.
271         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
272         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
273
274 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
275
276         * sysdeps/unix/i386/brk.S: Remove file.
277         * sysdeps/unix/i386/dl-brk.S: Likewise.
278         * sysdeps/unix/i386/pipe.S: Likewise.
279         * sysdeps/unix/i386/sigreturn.S: Likewise.
280         * sysdeps/unix/i386/syscall.S: Likewise.
281         * sysdeps/unix/i386/vfork.S: Likewise.
282         * sysdeps/unix/i386/wait.S: Likewise.
283
284         * sysdeps/unix/common/tcsendbrk.c: Move to ...
285         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
286
287         * configure.in (arm*-none*): Do not allow without
288         --enable-hacker-mode.
289         (netbsd*): Remove case setting base_os.
290         (386bsd*): Likewise.
291         (freebsd*): Likewise.
292         (bsdi*): Likewise.
293         (osf*): Likewise.
294         (sunos*): Likewise.
295         (ultrix*): Likewise.
296         (newsos*): Likewise.
297         (dynix*): Likewise.
298         (*bsd*): Likewise.
299         (sysv*): Likewise.
300         (isc*): Likewise.
301         (esix*): Likewise.
302         (sco*): Likewise.
303         (minix*): Likewise.
304         (irix4*): Likewise.
305         (irix6*): Likewise.
306         (solaris[2-9]*): Likewise.
307         (none): Likewise.
308         * configure: Regenerated.
309
310 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
311
312         [BZ #11521]
313         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
314         overflow or cancellation in calculating denominator.
315         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
316         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
317         down expression to avoid unexpected rounding in newer GCCs.
318         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
319
320 2012-04-26  David S. Miller  <davem@davemloft.net>
321
322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
323         long-double compat symbols.
324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
329         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
330         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
331         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
332         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
333         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
335         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
336         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
337
338 2012-04-25  David S. Miller  <davem@davemloft.net>
339
340         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
341         HWCAP_* values only after the memory barriers have been defined.
342         (atomic_full_barrier): Define.
343         (atomic_read_barrier): Define.
344         (atomic_write_barrier): Define.
345
346 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
347
348         * shlib-versions: Add libgcc_s version information.
349         * sysdeps/generic/libgcc_s.h: Remove.
350         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
351         libgcc_s.h.
352         * sysdeps/gnu/unwind-resume.c: Likewise.
353         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
354
355 2012-04-25  David S. Miller  <davem@davemloft.net>
356
357         * sysdeps/unix/sparc/brk.S: Delete.
358         * sysdeps/unix/sparc/dl-brk.S: Delete.
359         * sysdeps/unix/sparc/pipe.S: Delete.
360         * sysdeps/unix/sparc/sysdep.S: Delete.
361         * sysdeps/unix/sparc/sysdep.h: Delete.
362         * sysdeps/unix/sparc/vfork.S: Delete.
363         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
364         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
365         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
366         ret_ERRVAL, r0, r1, MOVE): Define.
367         (JUMPTARGET): Remove.
368         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
369         sysdeps/unix/sparc/sysdep.h
370         (ENTRY, END): Remove.
371         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
372
373 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
374
375         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
376         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
377         -DIS_IN_build.
378
379         * timezone/README: Update upstream location and email address for
380         tzcode and tzdata.
381         * timezone/zdump.c: Update from tzcode 2012b.
382         * timezone/zic.c: Likewise.
383
384         * configure.in (libc_cv_as_needed): Remove test.
385         * configure: Regenerated.
386         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
387         conditional definition.
388         [$(have-as-needed) != yes] (no-as-needed): Likewise.
389         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
390         * config.make.in (have-as-needed): Remove variable.
391
392 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
393             Paul Pluzhnikov  <ppluzhnikov@google.com>
394
395         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
396         strings correctly.
397
398 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
399
400         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
401         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
402         * sysdeps/sh/strlen.S: Likewise.
403
404 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
405
406         * sysdeps/unix/fork.S: Remove file.
407         * sysdeps/unix/i386/fork.S: Likewise.
408         * sysdeps/unix/sparc/fork.S: Likewise.
409
410         * sysdeps/unix/system.c: Remove file.
411         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
412
413         * sysdeps/unix/getegid.S: Remove file.
414         * sysdeps/unix/geteuid.S: Likewise.
415
416 2012-04-24  Roland McGrath  <roland@hack.frob.com>
417
418         * scripts/check-localplt.awk: New file.
419         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
420         of diff.
421         * scripts/data/localplt-generic.data: Add a comment.
422
423         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
424         NODE when __dir_mkfile failed.
425         * sysdeps/mach/hurd/symlinkat.c: Likewise.
426         Reported by Ludovic Courtès <ludo@gnu.org>.
427
428 2012-04-24  Andreas Jaeger  <aj@suse.de>
429
430         * Makerules (common-clean): Also remove gen-as-const-headers
431         files.
432
433 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
434
435         * Makerules (native-compile): Do not change working directory for
436         build.  Use $(OUTPUT_OPTION) in command.
437         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
438
439 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
440
441         [BZ #13886]
442         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
443         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
444         * math/libm-test.inc (floor_test): Add more tests.
445         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
446
447 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
448
449         * sysdeps/unix/getdents.c: Remove file.
450         * sysdeps/unix/sysv/getdents.c: Likewise.
451         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
452
453         * sysdeps/unix/syscalls.list (madvise): Add syscall from
454         sysdeps/unix/mman/syscalls.list.
455         (mmap): Likewise.
456         (mprotect): Likewise.
457         (msync): Likewise.
458         (munmap): Likewise.
459         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
460         * sysdeps/unix/mman/syscalls.list: Remove.
461         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
462
463         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
464         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
465         * configure: Regenerated.
466         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
467         $(libgcc_s_suffix).
468         * config.make.in (libgcc_s_suffix): Remove variable.
469
470 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
471
472         * sysdeps/unix/sysv/gethostname.c: Move to ...
473         * sysdeps/posix/gethostname.c: ... here.
474
475         * sysdeps/unix/execve.S: Remove file.
476
477         * sysdeps/unix/_exit.S: Remove file.
478
479 2012-04-23  Andreas Jaeger  <aj@suse.de>
480
481         [BZ #13739]
482         * manual/Makefile: Remove make dist support, there's no
483         need for a stand-alone documentation tar ball.
484         (TEXI2DVI): Define always, it's not in Makeconfig.
485         (dist): Removed.
486         (tar-it): Removed.
487         (edition): Removed.
488         (glibc-doc-$(edition).tar): Removed
489         (%.Z): Removed.
490         (%.gz): Removed.
491         (%.uu): Removed.
492         (ETAGS): Remove, it's in Makeconfig.
493         (move-if-change): Remove, it's in Makeconfig.
494
495 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
496
497         [BZ #13970]
498         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
499         (strtod, strtof, strtold, strtol, strtoul, strtoq)
500         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
501         (strtod_l, strtof_l, strtold_l): Remove __wur.
502         It is not necessarily an error to ignore strtol's return value.
503         One can reliably look at the stored endptr to decide whether
504         the number had valid syntax.
505
506 2012-04-21  Andreas Jaeger  <aj@suse.de>
507
508         [BZ #13739]
509         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
510
511 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
512
513         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
514         * sysdeps/unix/sysv/Versions: Remove file.
515
516 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
517
518         [BZ #13927]
519         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
520
521 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
522
523         [BZ #7064]
524         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
525         version from __vm86.
526
527 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
528
529         * sysdeps/unix/common/lxstat.c: Remove file.
530         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
531
532         * sysdeps/unix/sysv/Makefile: Remove file.
533
534         * sysdeps/unix/sysv/direct.h: Remove file.
535
536         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
537         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
538         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
539         * sysdeps/unix/sysv/bits/signum.h: Likewise.
540         * sysdeps/unix/sysv/bits/stat.h: Likewise.
541         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
542         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
543
544         * sysdeps/unix/sysv/setrlimit.c: Remove file.
545
546         * sysdeps/unix/xmknod.c: Remove file.
547         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
548
549         * sysdeps/unix/sysv/settimeofday.c: Remove file.
550
551         * sysdeps/unix/sysv/i386/time.S: Remove file.
552
553         * sysdeps/unix/fxstat.c: Remove file.
554         * sysdeps/unix/xstat.c: Likewise.
555         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
556
557         * sysdeps/unix/sysv/sigaction.c: Remove file.
558
559         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
560         (sysdep_headers): Remove variable.
561         [termio.h not in sysdep_headers] (generated): Likewise.
562         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
563         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
564         * sysdeps/unix/sysv/tcdrain.c: Likewise.
565         * sysdeps/unix/sysv/tcflow.c: Likewise.
566         * sysdeps/unix/sysv/tcflush.c: Likewise.
567         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
568         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
569         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
570         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
571         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
572
573         * sysdeps/unix/siglist.c: Remove file.
574
575         * sysdeps/unix/getppid.S: Remove file.
576
577         * sysdeps/unix/mkdir.c: Remove file.
578         * sysdeps/unix/rmdir.c: Likewise.
579
580 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
581
582         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
583         ERR_MAX value.
584         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
585         errlist-compat value.
586
587 2012-04-18  David S. Miller  <davem@davemloft.net>
588
589         * sysdeps/generic/memcopy.h (reg_char): Delete.
590         * debug/strcat_chk.c: Use char, not reg_char.
591         * debug/strcpy_chk.c: Likewise.
592         * debug/strncat_chk.c: Likewise.
593         * debug/strncpy_chk.c: Likewise.
594         * string/memchr.c: Likewise.
595         * string/memrchr.c: Likewise.
596         * string/rawmemchr.c: Likewise.
597         * string/strcat.c: Likewise.
598         * string/strchr.c: Likewise.
599         * string/strchrnul.c: Likewise.
600         * string/strcmp.c: Likewise.
601         * string/strcpy.c: Likewise.
602         * string/strncat.c: Likewise.
603         * string/strncmp.c: Likewise.
604         * string/strncpy.c: Likewise.
605
606 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
607
608         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
609         __builtin_memcopy is called when src and dest ranges are known to not
610         overlap.
611
612 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
613
614         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
615         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
616         fwd_align_merge macro call.
617         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
618         bwd_align_merge macro call.
619         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
620
621 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
622
623         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
624         bwd_align_merge macros.
625         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
626         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
627         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
628
629 2012-04-18  David S. Miller  <davem@davemloft.net>
630
631         * sysdeps/sparc/sparc64/memcopy.h: Delete.
632
633 2012-04-18  Andreas Jaeger  <aj@suse.de>
634
635         [BZ# 6794]
636         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
637         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
638         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
639
640         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
641         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
642         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
643
644         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
645         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
646         Adjust for changed ldbl-128 files.
647
648         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
649         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
650         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
651
652 2012-04-17  David S. Miller  <davem@davemloft.net>
653
654         * sysdeps/sparc/sparc32/memcopy.h: Delete.
655
656 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
657
658         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
659         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
660         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
661         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
662         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
663         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
664
665 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
666
667         [BZ #6794]
668         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
669         * math/libm-test.inc: Add ilogb errno and exception tests.
670         * math/w_ilogb.c: New file: ilogb wrapper.
671         * math/w_ilogbf.c: New file: ilogbf wrapper.
672         * math/w_ilogbl.c: New file: ilogbl wrapper.
673         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
674         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
675         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
676         exception being thrown with 0.0 as argument.
677         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
678         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
679         exception being thrown with 0.0 as argument.
680         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
681         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
682         exception being thrown with 0.0 as argument.
683         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
684         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
685         exception being thrown with 0.0 as argument.
686         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
687         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
688         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
689         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
690         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
691         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
692         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
693         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
694         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
695
696 2012-04-17  Petr Baudis  <pasky@ucw.cz>
697
698         * include/sys/uio.h: Change __vector to __iovec to avoid clash
699         with altivec.
700
701 2012-04-16  Marek Polacek  <polacek@redhat.com>
702
703         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
704
705 2012-04-16  Marek Polacek  <polacek@redhat.com>
706
707         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
708         operands of fdivp instruction.
709
710 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
711
712         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
713         * elf/tst-auditmod3b.c: Likewise.
714         * elf/tst-auditmod4b.c: Likewise.
715         * elf/tst-auditmod5b.c: Likewise.
716         * elf/tst-auditmod6b.c: Likewise.
717         * elf/tst-auditmod6c.c: Likewise.
718         * elf/tst-auditmod7b.c: Likewise.
719         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
720         * sysdeps/x86_64/preconfigure.in: Likewise.
721         * sysdeps/x86_64/preconfigure: Regenerated.
722
723 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
724
725         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
726         __ILP32__.
727
728 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
729
730         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
731         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
732
733 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
734
735         [BZ #13973]
736         * locale/iso-639.def: Fix gl language name. Spotted by
737         Yaron Shahrabani.
738
739 2012-04-12  Roland McGrath  <roland@hack.frob.com>
740
741         [BZ #2074]
742         * libio/libio.h (__io_write_fn): Update comment.
743
744 2012-04-12  Petr Baudis  <pasky@ucw.cz>
745
746         [BZ #2074]
747         * stdio.texi (Hook Functions): The user provided writer function
748         is not allowed to return -1.
749
750 2012-04-11  David S. Miller  <davem@davemloft.net>
751
752         * sysdeps/sparc/fpu/libm-test-ulps: Update.
753
754 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
755
756         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
757         Add a leading slash to rtkaio.
758
759 2012-04-11  Jim Meyering  <meyering@redhat.com>
760
761         [BZ #11959]
762         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
763         It is not necessarily an error to ignore fwrite's return
764         value.  One can reliably use ferror to test for errors after
765         the fact.
766
767 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
768
769         * bits/types.h (__snseconds_t): New type.
770         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
771
772         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
773         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
774         (__SNSECONDS_T_TYPE): Likewise.
775         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
776         (__SNSECONDS_T_TYPE): Likewise.
777         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
778         (__SNSECONDS_T_TYPE): Likewise.
779
780 2012-04-10  Andreas Jaeger  <aj@suse.de>
781
782         [BZ #2636]
783         * manual/time.texi (Processor Time): Return type of times is
784         elapsed real time since an arbitrary point in the past.
785         (CPU Time): Move CLK_TCK from here...
786         (Processor Time): ...to here.  Correct description.
787         * manual/conf.texi (Constants for Sysconf): Correct description of
788         _SC_CLK_TCK.
789
790 2012-04-10  David S. Miller  <davem@davemloft.net>
791
792         [BZ #13967]
793         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
794         where the is a gap between DT_REL(A) and DT_JMPREL.
795
796 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
797
798         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
799         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
800         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
801
802 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
803
804         * elf/dl-support.c (_dl_inhibit_cache): New variable.
805         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
806         (dl_main): Handle --inhibit-cache.
807         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
808         _dl_inhibit_cache.
809         * elf/dl-load.c (_dl_map_object): Use it.
810         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
811
812 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
813
814         [BZ #13872]
815         * sysdeps/i386/fpu/e_powl.S (p78): New object.
816         (__ieee754_powl): Saturate large exponents rather than testing for
817         overflow of y*log2(x).
818         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
819         * math/libm-test.inc (pow_test): Do not permit spurious overflow
820         exceptions.
821
822         [BZ #11521]
823         * math/s_ctan.c: Include <float.h>.
824         (__ctan): Avoid internal overflow or cancellation in calculating
825         denominator.
826         * math/s_ctanf.c: Likewise.
827         * math/s_ctanl.c: Likewise.
828         * math/s_ctanh.c: Likewise.
829         * math/s_ctanhf.c: Likewise.
830         * math/s_ctanhl.c: Likewise.
831         * math/libm-test.inc (ctan_test): Add more tests.
832         (ctanh_test): Likewise.
833         * sysdeps/i386/fpu/libm-test-ulps: Update.
834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
835
836 2012-04-09  Andreas Jaeger  <aj@suse.de>
837
838         [BZ #6894]
839         * manual/filesys.texi (Directory Entries): Mention that d_namlen
840         is an optional BSD extension.
841
842         [BZ #10254]
843         * manual/stdio.texi (Opening Streams): Document additional fopen
844         parameters.
845
846 2012-04-09  Roland McGrath  <roland@hack.frob.com>
847
848         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
849         %eax without telling the compiler.
850
851 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
852
853         [BZ # 13963]
854         * manual/install.texi: Use sourceware.org.
855
856 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
857
858         [BZ #13873]
859         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
860         (__ieee754_pow): Generate overflow and underflow using huge*huge
861         and tiny*tiny rather than just returning constant infinity or zero
862         for large exponents.
863         * math/libm-test.inc (pow_test): Require overflow exceptions for
864         applicable cases of large exponents.
865
866         [BZ #706]
867         * sysdeps/i386/fpu/e_pow.S (p10): New object.
868         (__ieee754_pow): Use iterative multiplication algorithm only for
869         integer exponents with absolute value below 1024.  Check for odd
870         integer exponents when using algorithm for real exponents.
871         * math/libm-test.inc (pow_test): Add more tests.
872         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
873
874 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
875
876         [BZ #13705]
877         * math/libm-test.inc (exp_test): Do not allow overflow exception
878         on underflow test.
879
880 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
881
882         [BZ #13705]
883         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
884         instead of __kernel_standard_f.
885
886 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
887
888         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
889         * sysdeps/x86_64/memset_chk.S: Likewise.
890
891 2012-04-08  Andreas Jaeger  <aj@suse.de>
892
893         [BZ #10153]
894         * manual/startup.texi (Environment Access): Describe return value
895         for putenv and setenv.
896
897         [BZ #6895]
898         * manual/filesys.texi (Directory Entries): Add description for
899         DT_LNK.
900
901         [BZ #6890]
902         * manual/filesys.texi (Directory Entries): Clarify that it's file
903         system not operating system in the description of DT_UNKNOWN.
904
905         [BZ #6578]
906         * manual/syslog.texi (closelog): Fix reference, it's openlog.
907
908 2012-04-08  Stephen Compall  <s11@member.fsf.org>
909
910         [BZ #6649]
911         * manual/llio.texi (Opening and Closing Files): Add cross
912         reference to explain mode argument.
913
914 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
915
916         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
917         * sysdeps/x86_64/memset_chk.S: Likewise.
918
919 2012-04-07  David S. Miller  <davem@davemloft.net>
920
921         * elf/elf.h (R_SPARC_WDISP10): Define.
922         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
923         R_SPARC_SIZE32.
924         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
925         R_SPARC_SIZE64 and R_SPARC_H34.
926
927 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
928
929         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
930         conditions and remove no longer applicable assertion.
931
932 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
933
934         * bits/byteswap.h: Include <features.h>.
935         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
936         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
937
938 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
939
940         * bits/byteswap.h (__bswap_16): Removed.
941         Include <bits/byteswap-16.h> to get __bswap_16.
942         * sysdeps/i386/bits/byteswap.h: Likewise.
943         * sysdeps/s390/bits/byteswap.h: Likewise.
944         * sysdeps/x86_64/bits/byteswap.h: Likewise.
945         * bits/byteswap-16.h: New file.
946         * sysdeps/i386/bits/byteswap-16.h: Likewise.
947         * sysdeps/s390/bits/byteswap-16.h: Likewise.
948         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
949         * string/Makefile (headers): Add bits/byteswap-16.h.
950
951 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
952
953         [BZ #13895]
954         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
955         extra indirection.
956         * nss/Makefile (tests-static, tests): Add tst-nss-static.
957         * nss/tst-nss-static.c: New.
958
959 2012-04-06  Robert Millan  <rmh@gnu.org>
960
961         [BZ #6486]
962         * manual/llio.texi (File Position Primitive): lseek
963         refers to WHENCE when it really means OFFSET.
964
965 2012-04-06  Andreas Jaeger  <aj@suse.de>
966
967         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
968         strncmp declarations.
969
970         * abilist/libc.abilist: Add __poll and __ppoll.
971
972 2012-04-05  David S. Miller  <davem@davemloft.net>
973
974         * scripts/check-local-headers.sh: Accept a host triplet in the
975         path matched by the exclude regexp.
976
977         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
978         definition.
979         * sysdeps/powerpc/powerpc32/dl-machine.h
980         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
981         * sysdeps/s390/s390-32/dl-machine.h
982         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
983         * sysdeps/sparc/sparc32/dl-machine.h
984         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
985         * sysdeps/sparc/sparc64/dl-machine.h
986         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
987
988         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
989         lazy binding.
990         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
991         undefined symbol errors.
992
993         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
994         DT_NEEDED entries.
995
996 2012-04-05  Michael Matz  <matz@suse.de>
997
998         [BZ #13592]
999         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
1000
1001 2012-04-05  Andreas Jaeger  <aj@suse.de>
1002
1003         [BZ #13908]
1004         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
1005         comment.
1006
1007 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1008
1009         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
1010         which ROUND is no valid rounding mode.
1011
1012 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1013
1014         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
1015         read again.
1016         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
1017
1018 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1019
1020         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
1021         an exception using FPU order intentionally.
1022
1023 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1024
1025         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
1026         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
1027         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
1028         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
1029
1030 2012-04-05  Simon Josefsson  <simon@josefsson.org>
1031
1032         [BZ #12340]
1033         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
1034         EINVAL when BUFLEN is too smal.
1035
1036 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
1037
1038         [BZ #13553]
1039         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
1040         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
1041
1042 2012-04-03  Andreas Jaeger  <aj@suse.de>
1043
1044         [BZ #13938]
1045         * manual/setjmp.texi (System V contexts): Fix sentence.
1046
1047         [BZ #13926]
1048         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
1049         New macro for this case.
1050         [!__GNUC__] (__bswap_64): New inline function for this case.
1051         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1052         * bits/byteswap.h: Likewise.
1053         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
1054         ull, guard with __GLIBC_HAVE_LONG_LONG.
1055
1056         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
1057         __GLIBC_HAVE_LONG_LONG.
1058
1059         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
1060         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
1061
1062 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1063
1064         [BZ #13691]
1065         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
1066         inptr and inend, rather than using last_ch.
1067
1068 2012-04-02  David S. Miller  <davem@davemloft.net>
1069
1070         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
1071         * stdio-common/printf-parse.h (read_int): Change return type to
1072         'int', return -1 on INT_MAX overflow.
1073         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
1074         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
1075         overflows INT_MAX.  Check for overflow of in-format-string precision
1076         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
1077         SIZE_MAX not INT_MAX for integer overflow test.
1078         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
1079         skip the construct in the format string but do not record anything.
1080         * stdio-common/bug22.c: Adjust to test both width/prevision
1081         INT_MAX overflow as well as total length INT_MAX overflow.  Check
1082         explicitly for proper errno values.
1083
1084 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
1085
1086         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
1087         CHAR_MAX.
1088         * string/test-strcmp.c [! WIDE]: Likewise.
1089         * time/tst-mktime2.c: Likewise for INT_MAX.
1090         * string/test-string.h: #include <sys/param.h> for MIN.
1091
1092         * csu/init-first.c (__libc_init_first): Call __ctype_init.
1093         * sysdeps/i386/init-first.c (init): Likewise.
1094         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
1095         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
1096         * sysdeps/sh/init-first.c (init): Likewise.
1097
1098 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
1099
1100         * po/ru.po: Update from translation team.
1101         * po/vi.po: Likewise.
1102
1103 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
1104
1105         * resolv/nss_dns/dns-host.c: Merge copyright years.
1106
1107 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1108
1109         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
1110         Optimize memcpy with prefetch if
1111         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
1112         src, dst pointers have unequal 16 byte alignments.
1113
1114 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1115
1116         [BZ #13928]
1117         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
1118         from a CNAME entry and return the minimum ttl for the query.
1119         (gaih_getanswer_slice): Likewise.
1120
1121 2012-03-30  Jeff Law  <law@redhat.com>
1122
1123         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
1124         due to long keys.
1125         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
1126         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
1127
1128         * resolv/nss_dns/dns-host.c: Update copyright year.
1129
1130 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
1131
1132         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
1133         requests to save a system call.  Fix check that all bytes are sent.
1134
1135         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
1136         comments for sendmmsg.
1137
1138 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1139
1140         [BZ #13691]
1141         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
1142         with only 1 character between 0x0041 and 0x01b0.
1143         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
1144         * wcsmbs/tst-mbsnrtowcs.c: New file.
1145
1146 2012-03-29  David S. Miller  <davem@davemloft.net>
1147
1148         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
1149         small copies by hand.
1150
1151 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1152
1153         [BZ #13761]
1154         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
1155         _nss_compat_initgroups_dyn): Fall back to malloc/free
1156         for large group memberships.
1157
1158 2012-03-28  David S. Miller  <davem@davemloft.net>
1159
1160         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
1161         that branches into memcpy.
1162         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1163         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
1164         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
1165         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
1166         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
1167         bits.
1168         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
1169         implementation too.
1170         * sysdeps/sparc/mempcpy.S: New file.
1171
1172         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
1173         the IFUNC routine in the libc case.
1174         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
1175
1176         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
1177         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
1178         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
1179         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
1180         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
1181         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
1182         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
1183         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
1184
1185         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
1186         loop to 256 bytes instead of 64 bytes and fix test signedness.
1187
1188         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
1189         * sysdeps/sparc/sparc32/Makefile: rather than here...
1190         * sysdeps/sparc/sparc64/Makefile: and here.
1191
1192 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
1193
1194         * malloc/mallocbug.c: Avoid warnings about unused variables.
1195
1196 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1197
1198         [BZ #13760]
1199         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
1200         in the right place. Discard and retry query if response is
1201         larger than input buffer size.
1202
1203 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
1204
1205         [BZ #369]
1206         [BZ #2678]
1207         [BZ #3866]
1208         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
1209         x for large integer exponent.
1210         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
1211         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
1212         sign of result as needed afterwards.
1213         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1214         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
1215         result for underflowing pow the same as for overflow.
1216         (__kernel_standard_l): Handle powl overflow and underflow here
1217         rather than calling __kernel_standard.
1218         * math/libm-test.inc (pow_test): Add more tests.
1219
1220         [BZ #3868]
1221         [BZ #13879]
1222         [BZ #13910]
1223         [BZ #13911]
1224         [BZ #13912]
1225         [BZ #13913]
1226         [BZ #13915]
1227         [BZ #13916]
1228         [BZ #13917]
1229         [BZ #13918]
1230         [BZ #13919]
1231         [BZ #13920]
1232         [BZ #13921]
1233         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
1234         * sysdeps/ieee754/k_standard.c: Include <float.h>.
1235         (__kernel_standard_l): New function.
1236         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
1237         __kernel_standard.
1238         * math/w_acosl.c (__acosl): Likewise.
1239         * math/w_asinl.c (__asinl): Likewise.
1240         * math/w_atan2l.c (__atan2l): Likewise.
1241         * math/w_atanhl.c (__atanhl): Likewise.
1242         * math/w_coshl.c (__coshl): Likewise.
1243         * math/w_exp10l.c (__exp10l): Likewise.
1244         * math/w_exp2l.c (__exp2l): Likewise.
1245         * math/w_fmodl.c (__fmodl): Likewise.
1246         * math/w_hypotl.c (__hypotl): Likewise.
1247         * math/w_j0l.c (__j0l, __y0l): Likewise.
1248         * math/w_j1l.c (__j1l, __y1l): Likewise.
1249         * math/w_jnl.c (__jnl, __ynl): Likewise.
1250         * math/w_lgammal.c (__lgammal): Likewise.
1251         * math/w_log10l.c (__log10l): Likewise.
1252         * math/w_log2l.c (__log2l): Likewise.
1253         * math/w_logl.c (__logl): Likewise.
1254         * math/w_powl.c (__powl): Likewise.
1255         * math/w_remainderl.c (__remainderl): Likewise.
1256         * math/w_scalbl.c (sysv_scalbl): Likewise.
1257         * math/w_sinhl.c (__sinhl): Likewise.
1258         * math/w_sqrtl.c (__sqrtl): Likewise.
1259         * math/w_tgammal.c (__tgammal): Likewise.
1260         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
1261         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
1262         * math/libm-test.inc (acos_test): Add more tests.
1263         (acosh_test): Likewise.
1264         (asin_test): Likewise.
1265         (atanh_test): Likewise.
1266         (exp_test): Likewise.
1267         (exp10_test): Likewise.
1268         (exp2_test): Likewise.
1269         (expm1_test): Likewise.
1270         (lgamma_test): Likewise.
1271         (log_test): Likewise.
1272         (log10_test): Likewise.
1273         (log1p_test): Likewise.
1274         (log2_test): Likewise.
1275         (pow_test): Do not allow some spurious overflow exceptions.
1276         (sqrt_test): Add more tests.
1277         (tgamma_test): Likewise.
1278         (y0_test): Likewise.
1279         (y1_test): Likewise.
1280         (yn_test): Likewise.
1281
1282 2012-03-27  Anton Blanchard  <anton@samba.org>
1283
1284         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
1285         MAP_HUGETLB.
1286         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1287         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1288         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1289
1290 2012-03-27  David S. Miller  <davem@davemloft.net>
1291
1292         * conform/Makefile: Run run-conformtest.sh using $(BASH).
1293
1294         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
1295         have-as-vis3 check.
1296
1297 2012-03-27  Andreas Jaeger  <aj@suse.de>
1298
1299         * sysdeps/x86_64/elf/configure.in: Moved to ...
1300         * sysdeps/x86_64/configure.in: ... here.
1301         * sysdeps/x86_64/elf/start.S: Moved to ...
1302         * sysdeps/x86_64/start.S: ... here.
1303         * sysdeps/x86_64/elf/configure: Delete.
1304
1305         * sysdeps/x86_64/configure.in: Merge contents from
1306         sysdeps/i386/configure.in (without i686 check).
1307
1308         * sysdeps/i386/elf/Versions: Merge into ...
1309         * sysdeps/i386/Versions: ... this.
1310         * sysdeps/i386/elf/Versions: Delete file.
1311         * sysdeps/i386/elf/start.S: Moved to ...
1312         * sysdeps/i386/start.S: ...here.
1313         * sysdeps/i386/elf/configure.in: Merge into...
1314         * sysdeps/i386/configure.in: ...here.
1315         * sysdeps/i386/elf/configure.in: Delete file.
1316         * sysdeps/i386/elf/configure: Delete file.
1317
1318         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
1319         * debug/backtracesyms.c: ... here.
1320         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
1321         * debug/backtracesymsfd.c: ... here.
1322         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
1323         * sysdeps/generic/ifunc-sel.h: ... here.
1324
1325         * sysdeps/unix/i386/start.c: Delete file.
1326         * sysdeps/unix/sparc/start.c: Delete file.
1327         * sysdeps/unix/start.c: Delete file.
1328
1329         * sysdeps/sh/elf/configure.in: Moved to ...
1330         * sysdeps/sh/configure.in: ... here.
1331         * sysdeps/sh/elf/start.S: Moved to ...
1332         * sysdeps/sh/start.S: ... here.
1333         * sysdeps/sh/elf/configure: Delete file.
1334
1335         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
1336         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
1337         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
1338         * sysdeps/powerpc/powerpc64/entry.h: ... here.
1339         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
1340         * sysdeps/powerpc/powerpc64/start.S: here.
1341         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
1342         * sysdeps/powerpc/powerpc64/Makefile: ... this.
1343         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
1344         * sysdeps/powerpc/powerpc64/configure.in: ... this.
1345         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
1346
1347         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
1348         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
1349         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
1350         * sysdeps/powerpc/powerpc32/start.S: ... here.
1351         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
1352         * sysdeps/powerpc/powerpc32/configure.in: ... this.
1353         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
1354
1355         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
1356         * sysdeps/powerpc/ifunc-sel.h: ... here.
1357         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
1358         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
1359
1360         * sysdeps/sparc/elf/configure.in: Moved to ...
1361         * sysdeps/sparc/configure.in: ... here.
1362         * sysdeps/sparc/elf/configure: Delete file.
1363         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
1364         * sysdeps/sparc/sparc32/start.S: ... here.
1365         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
1366         * sysdeps/sparc/sparc64/start.S: ... here.
1367         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
1368         * sysdeps/sparc/sparc32/Makefile: ... this.
1369         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
1370         * sysdeps/sparc/sparc64/Makefile: ... this.
1371
1372         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
1373         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
1374         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
1375         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
1376         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
1377         * sysdeps/s390/s390-32/setjmp.S: ... here.
1378         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
1379         * sysdeps/s390/s390-32/configure.in: ... here.
1380         * sysdeps/s390/s390-32/elf/configure: Delete file.
1381         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
1382         * sysdeps/s390/s390-32/start.S: ... here.
1383
1384         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
1385         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
1386         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
1387         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
1388         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
1389         * sysdeps/s390/s390-64/setjmp.S: ... here.
1390         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
1391         * sysdeps/s390/s390-64/configure.in: ... here
1392         * sysdeps/s390/s390-64/elf/configure: Delete file.
1393         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
1394         * sysdeps/s390/s390-64/start.S: ... here.
1395         * sysdeps/s390/s390-64/elf/configure: Delete.
1396
1397         * configure.in: Remove support for elf directories in sysdeps.
1398
1399         * configure: Regenerated.
1400         * sysdeps/i386/configure: Regenerated.
1401         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1402         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1403         * sysdeps/s390/s390-32/configure: Regenerated.
1404         * sysdeps/s390/s390-64/configure: Regenerated.
1405         * sysdeps/sh/configure: Regenerated.
1406         * sysdeps/sparc/configure: Regenerated.
1407         * sysdeps/x86_64/configure: Regenerated.
1408
1409 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
1410
1411         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1412
1413         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
1414         denormal result into account.
1415
1416 2012-03-25  Roland McGrath  <roland@hack.frob.com>
1417
1418         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
1419         Reported by Allan McRae <allan@archlinux.org>.
1420
1421 2012-03-23  Jeff Law  <law@redhat.com>
1422
1423         * nss/getnssent.c (__nss_getent): Fix typo.
1424
1425 2012-03-23  David S. Miller  <davem@davemloft.net>
1426
1427         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1428
1429 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
1430
1431         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
1432         to pad to uint64_t for each field.
1433         (dl_tls_index): Replace unsigned long with uint64_t.
1434
1435 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
1436         Paul Pluzhnikov  <ppluzhnikov@google.com>
1437
1438         [BZ #6528]
1439         * grp/Makefile (otherlibs): Don't set it.
1440         * inet/Makefile (otherlibs): Likewise.
1441         * login/Makefile (otherlibs): Likewise.
1442         * nscd/Makefile (otherlibs): Likewise.
1443         * posix/Makefile (otherlibs): Likewise.
1444         * pwd/Makefile (otherlibs): Likewise.
1445         * rt/Makefile (otherlibs): Likewise.
1446         * sunrpc/Makefile (otherlibs): Likewise.
1447         * nss/Makefile (otherlibs): Likewise.
1448         Add libnss_files to routines and static-only-routines.
1449         ($(objpfx)getent): Remove rule.
1450         * resolv/Makefile: Add libnss_dns and libresolv to routines and
1451         static-only-routines.
1452
1453 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
1454
1455         [BZ #13892]
1456         * math/s_cexp.c: Include <float.h>.
1457         (__cexp): Handle exp result overflowing not necessarily
1458         overflowing both real and imaginary parts of result.
1459         * math/s_cexpf.c: Likewise.
1460         * math/s_cexpl.c: Likewise.
1461         * math/libm-test.inc (cexp_test): Add more tests.
1462         * sysdeps/i386/fpu/libm-test-ulps: Update.
1463         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1464
1465 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1466
1467         * include/link.h (ELFW): New macro.
1468         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
1469         Replace ELF64_R_TYPE with ELFW(R_TYPE).
1470
1471 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1472
1473         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
1474         with uint64_t.
1475
1476 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1477
1478         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
1479         declaration.
1480         (struct La_x32_retval): Likewise.
1481
1482 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1483
1484         * sysdeps/x86_64/preconfigure.in: New file.
1485         * sysdeps/x86_64/preconfigure: New generated file.
1486
1487 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
1488
1489         [BZ #13824]
1490         * math/e_exp2l.c: Include <float.h>.
1491         (__ieee754_exp2l): Handle overflow and underflow cases
1492         separately.  Only pass fractional part of argument to
1493         __ieee754_expl.
1494         * math/libm-test.inc (exp2_test): Add more tests.
1495
1496         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
1497         negating x to take absolute value.
1498         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
1499         Likewise.
1500         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
1501         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
1502         Likewise.
1503         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
1504         computing low part if x was negated.
1505         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
1506
1507 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1508
1509         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
1510         la_x32_gnu_pltexit.
1511         (pltexit): Cast int_retval to ptrdiff_t.
1512         * elf/tst-auditmod3b.c: Likewise.
1513         * elf/tst-auditmod4b.c: Likewise.
1514         * elf/tst-auditmod5b.c: Likewise.
1515         * elf/tst-auditmod6b.c: Likewise.
1516         * elf/tst-auditmod6c.c: Likewise.
1517         * elf/tst-auditmod7b.c: Likewise.
1518
1519         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
1520         and x32_gnu_pltexit.
1521
1522         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
1523         __ELF_NATIVE_CLASS.
1524         (La_x32_regs): New macro.
1525         (La_x32_retval): Likewise.
1526         (la_x32_gnu_pltenter): New function prototype.
1527         (la_x32_gnu_pltexit): Likewise.
1528
1529 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
1530
1531         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
1532         exponent.
1533
1534         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1535
1536         * configure.in (libc_cv_cc_nofma): Check for option to disable
1537         generation of FMA instructions.
1538         * configure: Regenerate.
1539         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
1540         * sysdeps/ieee754/dbl-64/Makefile: New file.
1541         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1542         Remove brandred-fma4.
1543         (CFLAGS-brandred-fma4.c): Remove.
1544         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
1545         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
1546         define.
1547         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
1548         define.
1549
1550 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1551
1552         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
1553         LLONG_MAX != LONG_MAX.
1554         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1555         (_fitoa_word): Likewise.
1556         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
1557         LLONG_MAX != LONG_MAX.
1558         * stdio-common/_itowa.h: Include <_itoa.h>.
1559         (_itowa_word): Use _ITOA_WORD_TYPE on value.
1560         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
1561         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
1562         only if not defined.
1563         (_ITOA_WORD_TYPE): Likewise.
1564         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1565         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
1566
1567 2012-03-21  David S. Miller  <davem@davemloft.net>
1568
1569         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1570
1571 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1572
1573         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
1574         of x86_64 when setting libc_cv_slibdir, libdir and
1575         libc_cv_localedir.
1576         * sysdeps/unix/sysv/linux/configure: Regenerated.
1577
1578 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1579
1580         * manual/lang.texi (Old Varargs): Remove section.
1581         (How Variadic): Update menu.
1582         (va_start): Do not mention varargs.h.
1583
1584 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1585             Joseph Myers  <joseph@codesourcery.com>
1586
1587         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
1588         link test.
1589         * configure: Regenerated.
1590
1591 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1592
1593         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
1594         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
1595         conformtest.pl
1596
1597 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1598
1599         * NOTES: Remove.
1600         * Makefile (files-for-dist): Remove NOTES.
1601         (NOTES): Remove rule.
1602         * README: Don't refer to NOTES.
1603         * manual/creature.texi: Don't include macros.texi.
1604         * manual/intro.texi (creature.texi): Remove comment referring to
1605         NOTES.
1606
1607         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
1608         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
1609         * configure: Regenerated.
1610         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
1611         LIBC_TRY_CC_OPTION.
1612         (libc_cv_as_i686): Likewise.
1613         (libc_cv_cc_avx): Likewise.
1614         (libc_cv_cc_sse2avx): Likewise.
1615         (libc_cv_cc_fma4): Likewise.
1616         (libc_cv_cc_novzeroupper): Likewise.
1617         * sysdeps/i386/configure: Regenerated.
1618
1619         [BZ #13883]
1620         * sysdeps/i386/fpu/s_cexp.S: Remove.
1621         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1622         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1623         * math/libm-test.inc (cexp_test): Add more tests.
1624         * sysdeps/i386/fpu/libm-test-ulps: Update.
1625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1626
1627 2012-03-21  Allan McRae  <allan@archlinux.org>
1628
1629         * timezone/Makefile: Do not install iso3166.tab and zone.tab
1630
1631 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1632
1633         [BZ #13871]
1634         * math/w_exp2.c: Do not include <float.h>.
1635         (o_threshold, u_threshold): Remove.
1636         (__exp2): Calculate result before checking finiteness and calling
1637         __kernel_standard.
1638         * math/w_exp2f.c: Likewise.
1639         * math/w_exp2l.c: Likewise.
1640         * math/libm-test.inc (exp2_test): Require overflow exception for
1641         1e6 input.
1642
1643         [BZ #3866]
1644         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
1645         range of signed 64-bit integers before using fistpll.  Remove
1646         checks for whether integers fit in mantissa bits.
1647         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
1648         the range of signed 32-bit integers before using fistpl.  Remove
1649         checks for whether integers fit in mantissa bits.
1650         * sysdeps/i386/fpu/e_powl.S (p64): New object.
1651         (__ieee754_powl): Test for y outside the range of signed 64-bit
1652         integers before using fistpll.  Reduce 64-bit values to 63-bit
1653         ones as needed.
1654         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
1655         divide-by-zero is raised for zero to large negative powers.
1656         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
1657         (__ieee754_powl): Test for y outside the range of signed 64-bit
1658         integers before using fistpll.  Reduce 64-bit values to 63-bit
1659         ones as needed.
1660         * math/libm-test.inc (pow_test): Add more tests.
1661
1662 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1663
1664         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
1665         <stdio-common/_itoa.h>.
1666         * debug/segfault.c: Likewise.
1667         * elf/dl-cache.c: Likewise.
1668         * elf/dl-minimal.c: Likewise.
1669         * elf/dl-misc.c: Likewise.
1670         * elf/dl-sysdep.c: Likewise.
1671         * elf/dl-version.c: Likewise.
1672         * elf/rtld.c: Likewise.
1673         * hurd/hurdsock.c: Likewise.
1674         * hurd/lookup-retry.c: Likewise.
1675         * malloc/malloc.c: Likewise.
1676         * malloc/mtrace.c: Likewise.
1677         * nscd/nscd_getgr_r.c: Likewise.
1678         * nscd/nscd_getpw_r.c: Likewise.
1679         * nscd/nscd_getserv_r.c: Likewise.
1680         * posix/getopt_init.c: Likewise.
1681         * posix/wordexp.c: Likewise.
1682         * stdio-common/_itoa.c: Likewise.
1683         * stdio-common/printf_fphex.c: Likewise.
1684         * stdio-common/vfprintf.c: Likewise.
1685         * string/_strerror.c: Likewise.
1686         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1687         * sysdeps/i386/i686/hp-timing.h: Likewise.
1688         * sysdeps/mach/_strerror.c: Likewise.
1689         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
1690         * sysdeps/mach/hurd/sethostid.c: Likewise.
1691         * sysdeps/mach/hurd/xmknodat.c: Likewise.
1692         * sysdeps/mach/xpg-strerror.c: Likewise.
1693         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1694         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
1695         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
1696         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
1697         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
1698         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
1699         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
1700         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1701         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
1702         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
1703         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1704         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1705         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1706         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1707         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1708         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1709         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1710         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1711         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1712         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1713         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
1714
1715         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
1716
1717         * stdio-common/_itoa.h: Moved to ...
1718         * sysdeps/generic/_itoa.h: Here.
1719
1720         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
1721
1722         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
1723         instead of "_itoa.h" and "_itowa.h".
1724         * stdio-common/vfprintf.: Likewise.
1725
1726 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1727
1728         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
1729         <bits/wordsize.h>.
1730         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
1731         (__signbit): Likwise.
1732         (llrintf): Likwise.
1733         (llrint): Likwise.
1734
1735 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1736
1737         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
1738         __WORDSIZE != 64.
1739
1740 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
1741
1742         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
1743         OVERFLOW_EXCEPTION_OK.
1744         * math/libm-test.inc ("Philosophy"): Update comment about
1745         exception testing.
1746         (OVERFLOW_EXCEPTION): Define.
1747         (OVERFLOW_EXCEPTION_OK): Likewise.
1748         (INVALID_EXCEPTION_OK): Renumber.
1749         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1750         (IGNORE_ZERO_INF_SIGN): Likewise.
1751         (test_exceptions): Handle FE_OVERFLOW.
1752         (exp10_test): Expect overflow exceptions.
1753         (exp2_test): Likewise.
1754         (expm1_test): Likewise.
1755         (nextafter_test): Likewise.
1756         (pow_test): Likewise.
1757         (scalbn_test): Likewise.
1758         (scalbln_test): Likewise.
1759
1760 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1761
1762         * sysdeps/x86_64/bits/atomic.h
1763         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
1764         64bit integer.
1765         (atomic_exchange_acq): Likewise.
1766         (__arch_exchange_and_add_body): Likewise.
1767         (__arch_add_body): Likewise.
1768         (atomic_add_negative): Likewise.
1769         (atomic_add_zero): Likewise.
1770
1771 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1772
1773         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
1774         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
1775
1776 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1777
1778         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
1779         Check __x86_64__ instead of __WORDSIZE.
1780
1781 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1782
1783         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
1784
1785 2012-03-19  David S. Miller  <davem@davemloft.net>
1786
1787         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1788
1789         * sysdeps/sparc/fpu/fenv_private.h: New file.
1790         * sysdeps/sparc/fpu/math_private.h: Use it.
1791         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
1792         Remove.
1793         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
1794         (libc_feholdexcept_setroundl): Remove.
1795         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
1796         Remove.
1797         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
1798         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
1799
1800 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1801
1802         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
1803         int64_t instead of long int.
1804         (INSERT_WORDS64): Likwise.
1805
1806 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1807
1808         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
1809         _Unwind_GetCFA return to _Unwind_Ptr first.
1810
1811 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
1812
1813         [BZ #13629]
1814         * math/s_clog.c: Include <float.h>.
1815         (__clog): Scale large or subnormal inputs.
1816         * math/s_clogf.c: Likewise.
1817         * math/s_clogl.c: Likewise.
1818         * math/s_clog10.c: Include <float.h>.
1819         (M_LOG10_2): Define.
1820         (__clog10): Scale large or subnormal inputs.
1821         * math/s_clog10f.c: Likewise.
1822         * math/s_clog10l.c: Likewise.
1823         * math/libm-test.inc (clog_test): Add more tests.
1824         (clog10_test): Likewise.
1825         * sysdeps/i386/fpu/libm-test-ulps: Update.
1826         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1827
1828         [BZ #11451]
1829         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
1830         x and y.
1831         * math/libm-test.inc (atan2_test): Add another test.
1832
1833         * Makerules (common-objdir-compile): Remove.
1834         * sysdeps/unix/Makefile (config-generated): Do not add
1835         $(unix-generated) to variable.
1836         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
1837         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
1838         Remove rule.
1839         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
1840         Likewise.
1841         [generic bits/local_lim.h] (before-compile): Do not append to
1842         variable.
1843         [generic bits/local_lim.h] (common-generated): Likewise.
1844         [generic sys/param.h] (before-compile): Do not append to variable.
1845         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
1846         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
1847         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
1848         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
1849         include.
1850         [generic sys/param.h] (sys/param.h-includes): Remove variable.
1851         [generic sys/param.h] (sys/param.h-includes): Remove rule.
1852         [generic sys/param.h] ($(addprefix
1853         $(common-objpfx),$(sys/param.h-includes))): Likewise.
1854         [generic sys/param.h] (common-generated): Do not append to
1855         variable.
1856         [generic sys/param.h] (sysdep_headers): Likewise.
1857         [generic bits/errno.h] (before-compile): Do not append to
1858         variable.
1859         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
1860         rule.
1861         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
1862         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
1863         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
1864         [generic bits/errno.h] (common-generated): Do not append to
1865         variable.
1866         [generic bits/ioctls.h] (before-compile): Do not append to
1867         variable.
1868         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
1869         rule.
1870         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
1871         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
1872         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
1873         rule.
1874         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
1875         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
1876         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
1877         [generic bits/ioctls.h] (common-generated): Do not append to
1878         variable.
1879         [generic sys/syscall.h] (syscall.h): Remove variable.
1880         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
1881         rule.
1882         [generic sys/syscall.h] (before-compile): Do not append to
1883         variable.
1884         [generic sys/syscall.h] (common-generated): Likewise.
1885         * sysdeps/unix/errnos-tmpl.c: Remove file.
1886         * sysdeps/unix/errnos.awk: Likewise.
1887         * sysdeps/unix/ioctls-tmpl.c: Likewise.
1888         * sysdeps/unix/ioctls.awk: Likewise.
1889         * sysdeps/unix/mk-local_lim.c: Likewise.
1890         * sysdeps/unix/snarf-ioctls: Likewise.
1891
1892 2012-03-19  Richard Henderson  <rth@twiddle.net>
1893
1894         * sysdeps/i386/fpu/fenv_private.h: New file.
1895         * sysdeps/i386/fpu/math_private.h: Use it.
1896         (math_opt_barrier, math_force_eval): Remove.
1897         (libc_feholdexcept_setround_53bit): Remove.
1898         (libc_feupdateenv_53bit): Remove.
1899         * sysdeps/x86_64/fpu/math_private.h: Likewise.
1900         (math_opt_barrier, math_force_eval): Remove.
1901         (libc_feholdexcept): Remove.
1902         (libc_feholdexcept_setround): Remove.
1903         (libc_fetestexcept, libc_fesetenv): Remove.
1904         (libc_feupdateenv_test): Remove.
1905         (libc_feupdateenv, libc_feholdsetround): Remove.
1906         (libc_feresetround): Remove.
1907
1908         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
1909         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
1910
1911         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
1912         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
1913         (libc_feupdateenv_testl): New.
1914         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
1915         (libc_feupdateenv_testf): New.
1916         (libc_feupdateenv): Use libc_feupdateenv_test.
1917         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
1918         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
1919
1920         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
1921         (libc_feholdsetroundf, libc_feholdsetroundl): New.
1922         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
1923         (libc_feresetround_noex): New.
1924         (libc_feresetround_noexf): New.
1925         (libc_feresetround_noexl): New.
1926         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
1927         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
1928         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
1929         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
1930         SET_RESTORE_ROUND.
1931         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1932         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
1933         (__cos): Likewise.
1934         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
1935         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
1936         SET_RESTORE_ROUND_NOEX.
1937         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
1938         SET_RESTORE_ROUND_NOEXF.
1939         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
1940         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
1941         (libc_feholdsetroundf): New.
1942         (libc_feresetround, libc_feresetroundf): New.
1943
1944         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
1945         (libc_feholdexcept_setround_53bit): Convert from macro to function.
1946         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
1947
1948         * sysdeps/generic/math_private.h: Include <fenv.h>.
1949         (default_libc_feholdexcept): New.
1950         (default_libc_feholdexcept_setround): New.
1951         (default_libc_fesetenv, default_libc_feupdateenv): New.
1952         (libc_feholdexcept): Only define if undefined.
1953         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
1954         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
1955         (libc_feholdexcept_setroundl): Likewise.
1956         (libc_feholdexcept_setround_53bit): Likewise.
1957         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
1958         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
1959         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
1960         (libc_feupdateenv_53bit): Likewise.
1961         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
1962         (libc_feholdexcept): Convert from macro to inline function.
1963         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
1964         (libc_fesetenv, libc_feupdateenv): Likewise.
1965
1966         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
1967         not previously defined.
1968         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
1969         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
1970         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
1971         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
1972         * sysdeps/ieee754/flt-32/math_private.h: New file.
1973         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
1974         math_private.h below SET_FLOAT_WORD.
1975         (__isnan, __isinf_ns, __finite): Remove.
1976         (__isnanf, __isinf_nsf, __finitef): Remove.
1977
1978 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
1979
1980         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1981
1982 2012-03-17  David S. Miller  <davem@davemloft.net>
1983
1984         [BZ #6471]
1985         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
1986         for 2.16.
1987
1988 2012-03-16  David S. Miller  <davem@davemloft.net>
1989
1990         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
1991         warnings.
1992
1993         [BZ #6471]
1994         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
1995         properly.
1996         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
1997         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
1998         sysdep_routines when subdir is sysvipc.
1999         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
2000         __getshmlba helper.
2001
2002         * sysdeps/sparc/fpu/libm-test/ulps: Update.
2003
2004 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2005
2006         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
2007         [__LP64__].
2008
2009 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2010
2011         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
2012         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
2013         (__lround): Renamed to ...
2014         (__llround): This.  Replace long int with long long int.
2015         Define lround functions as aliases of llround functions.
2016         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
2017
2018 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2019
2020         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2021         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
2022         adresses to uintptr_t.  Replace "long int" and "unsigned long
2023         int" with "greg_t" on va_arg.
2024
2025 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2026
2027         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
2028         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
2029
2030         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
2031         Move e_machine check before EI_CLASS check.  Handle x32
2032         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
2033         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
2034         SKIP_EM_IA_64 and include
2035         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
2036
2037         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
2038         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
2039         (add_system_dir): New macro.
2040
2041         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
2042         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
2043
2044 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
2045
2046         [BZ #2551]
2047         [BZ #2552]
2048         [BZ #2553]
2049         [BZ #2554]
2050         [BZ #2562]
2051         [BZ #2563]
2052         [BZ #2565]
2053         [BZ #2566]
2054         [BZ #2576]
2055         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
2056         (y0): Likewise.
2057         * math/w_j0f.c (j0f): Likewise.
2058         (y0f): Likewise.
2059         * math/w_j0l.c (__j0l): Likewise.
2060         (__y0l): Likewise.
2061         * math/w_j1.c (j1): Likewise.
2062         (y1): Likewise.
2063         * math/w_j1f.c (j1f): Likewise.
2064         (y1f): Likewise.
2065         * math/w_j1l.c (__j1l): Likewise.
2066         (__y1l): Likewise.
2067         * math/w_jn.c (jn): Likewise.
2068         (yn): Likewise.
2069         * math/w_jnf.c (jnf): Likewise.
2070         (ynf): Likewise.
2071         * math/w_jnl.c (__jnl): Likewise.
2072         (__ynl): Likewise.
2073         * math/libm-test.inc (j0_test): Add more tests.
2074         (j1_test): Likewise.
2075         (jn_test): Likewise.  Add trailing semicolon to existing test.
2076         (y0_test): Likewise.
2077         (y1_test): Likewise.
2078         * sysdeps/i386/fpu/libm-test-ulps: Update.
2079         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2080
2081         [BZ #13851]
2082         [BZ #13854]
2083         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
2084         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
2085         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
2086         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
2087         (__tanl): Set errno for infinite argument.
2088         * sysdeps/i386/fpu/mptan.c: Remove.
2089         * sysdeps/i386/fpu/s_tan.S: Likewise.
2090         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2091         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
2092         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2093         * math/libm-test.inc (tan_test): Add more tests and enable more
2094         tests for double and long double.
2095         * sysdeps/i386/fpu/libm-test-ulps: Update.
2096         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2097
2098 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2099
2100         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
2101         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
2102
2103 2012-03-16  Roland McGrath  <roland@hack.frob.com>
2104
2105         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
2106         * configure.in: Use it for both main tree and add-ons.
2107         * configure: Regenerated.
2108
2109 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2110
2111         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
2112
2113 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
2114
2115         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
2116         in comment.
2117
2118         [BZ #13851]
2119         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
2120         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
2121         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
2122         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
2123         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
2124         infinite argument.
2125         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
2126         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
2127         != 0 for prec == 2.
2128         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
2129         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
2130         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2131         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2132         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2133         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
2134         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
2135         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
2136         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2137         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
2138         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2139         * math/libm-test.inc (cos_test): Add more tests and enable more
2140         tests for long double.
2141         (sin_test): Likewise.
2142         (sincos_test): Likewise.
2143         * sysdeps/i386/fpu/libm-test-ulps: Update.
2144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2145
2146 2012-03-16  David S. Miller  <davem@davemloft.net>
2147
2148         * sysdeps/sparc/fpu/math_private.h: New file.
2149
2150 2012-03-15  David S. Miller  <davem@davemloft.net>
2151
2152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
2153         file.
2154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
2155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
2156         file.
2157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
2158         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
2159         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
2160         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
2161         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
2162         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
2163         sysdep routines.
2164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
2165
2166         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
2167         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
2168
2169         * sysdeps/sparc/sparc-ifunc.h: New file.
2170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
2171         sparc-ifunc.h
2172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
2173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
2174         Likewise.
2175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
2176         Likewise.
2177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
2178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
2179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
2180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
2181         Likewise.
2182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
2183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
2184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
2185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
2186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
2187         Likewise.
2188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
2189         Likewise.
2190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
2191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
2192         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
2193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
2194         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
2195         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
2196         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
2197         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
2198         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
2199         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
2200         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
2201         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
2202         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
2203         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
2204         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
2205         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
2206         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
2207         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
2208         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
2209         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
2210         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
2211         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
2212         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
2213         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
2214
2215 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
2216
2217         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
2218         scaling.
2219         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2220
2221 2012-03-15  Andreas Jaeger  <aj@suse.de>
2222
2223         [BZ #13852]
2224         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
2225         ieee754/flt-32 implementation for sin, cos and sincos.
2226         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
2227         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2228         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2229         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2230         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
2231         ieee754/flt-32 implementation for tan.
2232
2233         * math/libm-test.inc (cos_test): Enable some large input tests for
2234         float as well
2235         (sin_test): Likewise.
2236         (sincos_test): Likewise.
2237         (tan_test): Add tests for large input.
2238
2239         * sysdeps/i386/fpu/libm-test-ulps: Update.
2240
2241 2012-03-15  Andreas Jaeger  <aj@suse.de>
2242
2243         [BZ #13658]
2244         * math/libm-test.inc (cos_test): Add more test cases.
2245         (sin_test): Likewise.
2246         (sincos_test): Likewise.
2247
2248 2012-03-15  Andreas Jaeger  <aj@suse.de>
2249
2250         [BZ #13837]
2251         * math/libm-test.inc (cos_test): Add a test case for large input
2252         value.
2253         (sin_test): Likewise.
2254         (sincos_test): Likewise.
2255
2256 2012-03-15  Andreas Jaeger  <aj@suse.de>,
2257         Joseph Myers  <joseph@codesourcery.com>
2258
2259         [BZ #13658]
2260         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
2261         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
2262         * sysdeps/i386/fpu/branred.c: Likewise.
2263         * sysdeps/i386/fpu/dosincos.c: Likewise.
2264         * sysdeps/i386/fpu/mpa.c: Likewise.
2265         * sysdeps/i386/fpu/s_cos.S: Likewise.
2266         * sysdeps/i386/fpu/s_sin.S: Likewise.
2267         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2268         * sysdeps/i386/fpu/sincos32.c: Likewise.
2269
2270         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
2271         Define.
2272         (libc_feupdateenv_53bit): Define.
2273         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
2274         Define.
2275         (libc_feupdateenv_53bit): Define.
2276
2277         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
2278         53 bit (without extend i386 double precision).
2279
2280         * math/libm-test.inc (sincos_test): Add tests for large input.
2281         (sin): Likewise.
2282         (cos): Likewise.
2283
2284         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
2285
2286 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
2287
2288         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2289
2290 2012-03-15  David S. Miller  <davem@davemloft.net>
2291
2292         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
2293         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
2294         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
2295         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
2296         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
2297         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
2298         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
2299         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
2300         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
2301         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
2302         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
2303         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
2304         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
2305         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
2306         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
2307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
2308         file.
2309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
2310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
2311         file.
2312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
2313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
2314         file.
2315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
2316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
2317         file.
2318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
2319         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
2320         fmin/fmax sysdep routines.
2321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
2322
2323 2012-03-14  David S. Miller  <davem@davemloft.net>
2324
2325         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
2326         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
2327         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
2328         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
2329         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
2330         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
2331         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
2332         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
2333         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
2334         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
2335         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
2336         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
2337         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
2338         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
2339         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
2340         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
2341         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
2342         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
2343         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
2344         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
2345         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
2346         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
2347         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
2348         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
2349         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
2350         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
2351         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
2352         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
2353         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
2354         routines.
2355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
2356         file.
2357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
2358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
2359         file.
2360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
2361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
2362         file.
2363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
2364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
2365         file.
2366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
2367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
2368         file.
2369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
2370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
2371         file.
2372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
2373         file.
2374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
2375         file.
2376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
2377         file.
2378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
2379         New file.
2380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
2381         file.
2382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
2383         file.
2384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
2385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
2386         file.
2387         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
2388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
2389         file.
2390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
2391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
2392         file.
2393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
2394         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
2395         VIS3 routines.
2396
2397         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
2398         New file.
2399
2400         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2401
2402         * sysdeps/sparc/configure.in: New file.
2403         * sysdeps/sparc/configure: Generate.
2404         * configure.in (libc_cv_sparc_as_vis3): Substitute.
2405         * configure: Regenerate.
2406         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
2407         * config.make.in (have-as-vis3): New.
2408         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
2409         available use -Av9d instead of -Av9a.
2410         * sysdeps/sparc/sparc64/Makefile: Likewise.
2411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
2412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
2413         New file.
2414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
2415         file.
2416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
2417         New file.
2418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
2419         file.
2420         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
2421         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
2422         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
2423         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
2424         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
2425
2426         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
2427         fzeros/fnegs to load 0x80000000 into a float register instead of
2428         using the stack.
2429         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
2430
2431 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
2432
2433         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2434         bits/syscall.h.
2435         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
2436         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
2437         ($(inst_includedir)/bits/syscall.h): Remove rule.
2438         ($(objpfx)bits/syscall.d): Include instead of
2439         $(objpfx)syscall-list.d.
2440         (generated): Change syscall-list.h and syscall-list.d to
2441         bits/syscall.h and bits/syscall.d.
2442
2443 2012-03-14  Roland McGrath  <roland@hack.frob.com>
2444
2445         [BZ #13846]
2446         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
2447
2448 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
2449
2450         [BZ #13841]
2451         * math/s_csqrt.c: Include <float.h>.
2452         (__csqrt): Scale large or subnormal inputs.
2453         * math/s_csqrtf.c: Likewise.
2454         * math/s_csqrtl.c: Likewise.
2455         * math/libm-test.inc (csqrt_test): Add more tests.
2456         * sysdeps/i386/fpu/libm-test-ulps: Update.
2457         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2458
2459         [BZ #13840]
2460         * math/libm-test.inc (hypot_test): Add more tests.
2461
2462 2012-03-13  David S. Miller  <davem@davemloft.net>
2463
2464         [BZ #13840]
2465         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
2466         double-precision for the calculation instead of scaling.
2467
2468 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
2469
2470         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
2471         manipulate bits before adding and subtracting TWO52[sx].
2472         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
2473         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2474         Likewise.
2475         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
2476
2477 2012-03-13  David S. Miller  <davem@davemloft.net>
2478
2479         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
2480         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
2481         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
2482         rtld-global-offsets.h
2483         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2484
2485         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
2486         large parameters.
2487
2488         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
2489
2490         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
2491         'err' in the ifdef scope in which it is actually used.
2492
2493         * nss/nss_db/db-init.c: Include string.h
2494
2495 2012-03-12  David S. Miller  <davem@davemloft.net>
2496
2497         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
2498         masking out of the most significant byte of random value used.
2499         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2500         Fix coding style in previous change.
2501
2502         * sysdeps/unix/sysv/linux/kernel-features.h
2503         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
2504         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
2505         expression.
2506         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
2507         later.
2508
2509 2012-03-11  David S. Miller  <davem@davemloft.net>
2510
2511         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
2512         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
2513         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
2514         for 'resultvar' otherwise things get truncated on 64-bit.
2515
2516         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2517         Fix masking out of the most significant byte of random value used.
2518
2519         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2520
2521 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
2522
2523         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2524
2525 2012-03-09  David S. Miller  <davem@davemloft.net>
2526
2527         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
2528         variables with appropriate CPP guards.
2529         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
2530         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
2531         on resulting framesize and the management of the outregs buffer for pltexit.
2532         Preserve floating point return values across _dl_call_pltexit call.
2533         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
2534         framesize and the management of the outregs buffer for pltexit.
2535         Preserve floating point return values across _dl_call_pltexit
2536         call.
2537         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
2538         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
2539         (print_exit): Fix format string for return register value.
2540
2541 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
2542
2543         * sunrpc/Makefile (others): Add rpcgen.
2544         ($(objpfx)rpcgen): Remove special build rule and dependency on
2545         libc.
2546         * sunrpc/rpcgen.c: New file.
2547
2548 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
2549
2550         [BZ #13673]
2551         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
2552         * stdio-common/bug-vfprintf-nargs.c: Likewise.
2553         * sysdeps/i386/crti.S: Likewise.
2554         * sysdeps/i386/crtn.S: Likewise.
2555         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
2556         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
2557         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
2558         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
2559         * sysdeps/sh/crti.S: Likewise.
2560         * sysdeps/sh/crtn.S: Likewise.
2561         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2562
2563         [BZ #13673]
2564         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
2565         with URL.
2566         * locale/programs/locfile-kw.gperf: Likewise.
2567         * locale/programs/charmap-kw.h: Regenerated.
2568         * locale/programs/locfile-kw.h: Likewise.
2569
2570         [BZ #13673]
2571         * intl/plural.y: Replace FSF snail mail address with URL.
2572         * intl/plural.c: Regenerated.
2573
2574 2012-03-09  Richard Henderson  <rth@twiddle.net>
2575
2576         * include/math_private.h: Remove file.
2577         * math/math_private.h: Move file ...
2578         * sysdeps/generic/math_private.h: ... here.
2579
2580         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
2581         * sysdeps/powerpc/fpu/math_private.h: Likewise.
2582         * sysdeps/x86_64/fpu/math_private.h: Likewise.
2583
2584         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
2585         and <math_private.h>.
2586         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
2587         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2588         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
2589         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
2590         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
2591         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2592         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2593         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2594         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
2595         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2596         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2597         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
2598         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
2599         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2600         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
2601         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
2602         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
2603         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
2604         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
2605         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
2606         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2607         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
2608         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
2609         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2610         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
2611         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2612         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
2613         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2614         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2615         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2616         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
2617         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2618         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2619         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
2620         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2621         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
2622         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2623         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
2624         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2625         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2626         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
2627         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
2628         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
2629         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2630         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
2631         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2632         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
2633         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2634         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2635         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
2636         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2637         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
2638         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
2639         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
2640         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
2641         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
2642         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2643         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
2644         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
2645         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
2646         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2647         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
2648         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2649         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
2650         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
2651         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2652         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2653         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2654         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
2655         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
2656         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
2657         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
2658         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
2659         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2660         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
2661         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
2662         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
2663         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
2664         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
2665         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
2666         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
2667         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
2668         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
2669         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
2670         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2671         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
2672         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
2673         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2674         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
2675         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
2676         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
2677         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
2678         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
2679         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
2680         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
2681         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
2682         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
2683         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
2684         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2685         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
2686         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
2687         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
2688         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
2689         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
2690         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
2691         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
2692         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
2693         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
2694         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
2695         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
2696         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
2697         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
2698         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
2699         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
2700         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
2701         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
2702         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2703         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2704         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
2705         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2706         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
2707         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2708         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
2709         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
2710         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
2711         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
2712         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
2713         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2714         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2715         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
2716         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
2717         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
2718         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
2719         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
2720         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
2721         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
2722         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
2723         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2724         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
2725         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
2726         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2727         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
2728         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
2729         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
2730         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
2731         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2732         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2733         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
2734         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2735         * sysdeps/ieee754/k_standard.c: Likewise.
2736         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
2737         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2738         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2739         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
2740         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
2741         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2742         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
2743         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
2744         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
2745         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2746         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2747         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2748         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2749         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2750         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2751         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2752         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
2753         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
2754         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2755         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
2756         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
2757         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
2758         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2759         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
2760         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2761         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2762         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
2763         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2764         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
2765         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2766         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2767         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
2768         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2769         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
2770         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
2771         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
2772         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
2773         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
2774         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2775         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2776         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2777         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2778         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2779         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
2780         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2781         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2782         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
2783         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2784         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
2785         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2786         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
2787         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
2788         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
2789         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2790         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2791         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
2792         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
2793         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
2794         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
2795         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
2796         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
2797         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2798         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
2799         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
2800         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
2801         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
2802         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
2803         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
2804         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
2805         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
2806         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
2807         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2808         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
2809         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
2810         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
2811         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
2812         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
2813         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
2814         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2815         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
2816         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
2817         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
2818         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
2819         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
2820         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
2821         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2822         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2823         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
2824         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2825         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
2826         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
2827         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
2828         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
2829         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
2830         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
2831         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
2832         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
2833         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
2834         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
2835         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
2836         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
2837         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
2838         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
2839         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
2840         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
2841         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
2842         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
2843         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
2844         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
2845         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
2846         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
2847         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2848         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
2849         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2850         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
2851         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
2852         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
2853         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
2854         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2855         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2856         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2857         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2858         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2859         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
2860         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
2861         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
2862         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2863         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
2864         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2865         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2866         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2867         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2868         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2869         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2870         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
2871         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
2872         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
2873         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2874         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2875         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
2876         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
2877         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2878         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
2879         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
2880         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
2881         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2882         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2883         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
2884         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
2885         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
2886         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2887         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2888         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
2889         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2890         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
2891         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
2892         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2893         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
2894         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
2895         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2896         * sysdeps/ieee754/s_lib_version.c: Likewise.
2897         * sysdeps/ieee754/s_matherr.c: Likewise.
2898         * sysdeps/ieee754/s_signgam.c: Likewise.
2899         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
2900         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
2901         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
2902         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
2903         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
2904         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2905         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
2906         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
2907         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2908         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
2909         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2910         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
2911         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
2912         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
2913         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
2914         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
2915         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2916         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
2917         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2918         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
2919         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
2920
2921 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2922
2923         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
2924         * sunrpc/rpc_main.c: Likewise.
2925         * sunrpc/rpc_svcout.c: Likewise.
2926
2927 2012-03-09  David S. Miller  <davem@davemloft.net>
2928
2929         * include/math_private.h: New file.
2930
2931 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2932
2933         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
2934         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
2935         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
2936         from <bits/socket_type.h>.
2937         (enum __socket_type): Don't define here.
2938         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
2939         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2940         bits/socket_type.h.
2941
2942         [BZ #13566]
2943         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
2944         checking __USE_GNU.
2945
2946         * Makerules ($(inst_includedir)/%.h): New rule.
2947         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
2948         (install-others): Remove variable setting.
2949         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
2950
2951 2012-03-08  Richard Henderson  <rth@twiddle.net>
2952
2953         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
2954         from macro to inline function; merge with the
2955         !__LIBC_INTERNAL_MATH_INLINES version.
2956         (__ieee754_sqrtf): Likewise.
2957
2958         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
2959         to inline function.
2960         (__rintf, __floor, __floorf): Likewise.
2961
2962         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
2963         macro to inline function.
2964         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
2965
2966         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
2967         not <math/math_private.h>.
2968
2969 2012-03-08  David S. Miller  <davem@davemloft.net>
2970
2971         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
2972         copyright year.
2973         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2974
2975 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
2976
2977         * resolv/gai_misc.c (handle_requests): Fix struct timespec
2978         normalization.
2979         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
2980         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
2981
2982 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
2983
2984         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
2985         be defined individually, they must be defined as a block.  Define
2986         S for printing a string instead of hidint the different by using a
2987         macro for adding the 'l'.
2988         * stdio-common/tst-fphex-wide.c: Adjust.
2989
2990 2012-03-07  Marek Polacek  <polacek@redhat.com>
2991
2992         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
2993
2994 2012-03-08  Marek Polacek  <polacek@redhat.com>
2995
2996         [BZ #13806]
2997         * stdio-common/Makefile (tests): Add tst-fphex-wide.
2998         * stdio-common/tst-fphex.c: Define a few macros to make the
2999         test reusable.  Use them.
3000         * stdio-common/tst-fphex-wide.c: New file.
3001
3002 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
3003
3004         [BZ #6911]
3005         * manual/macros.texi (gnusystems): New macro.
3006         (nongnusystems): Likewise.
3007         (gnulinuxhurdsystems): Likewise.
3008         (gnuhurdsystems): Likewise..
3009         (gnulinuxsystems): Likewise.
3010         * manual/charset.texi: Use new macros or @theglibc{} to refer to
3011         variants of the GNU system, not "GNU system".
3012         * manual/conf.texi: Likewise.
3013         * manual/errno.texi: Likewise.  Update example of errno macro
3014         expansion.
3015         * manual/filesys.texi: Likewise.
3016         (getumask): Document as specific to GNU/Hurd.
3017         * manual/install.texi: Likewise.  Reword some references to
3018         GNU/Linux.
3019         * manual/intro.texi: Likewise.
3020         * manual/io.texi: Likewise.
3021         (File Name Portability): Detail which constraints are inapplicable
3022         to all GNU systems and which are only inapplicable to GNU/Hurd.
3023         * manual/job.texi: Likewise.
3024         * manual/llio.texi: Likewise.
3025         (O_NOCTTY): Document as present on GNU/Linux.
3026         * manual/maint.texi: Likewise.
3027         * manual/memory.texi: Likewise.
3028         * manual/pattern.texi: Likewise.
3029         * manual/pipe.texi: Likewise.
3030         * manual/process.texi: Likewise.
3031         * manual/resource.texi: Likewise.
3032         (RUSAGE_CHILDREN): Remove statement about specifying a particular
3033         child on GNU/Hurd.
3034         * manual/setjmp.texi: Likewise.
3035         * manual/signal.texi: Likewise.
3036         * manual/startup.texi: Likewise.
3037         * manual/stdio.texi: Likewise.
3038         * manual/terminal.texi: Likewise.
3039         (ONLCR): Document as POSIX.
3040         (OXTABS): Document availability on GNU/Linux as XTABS.
3041         (ONOEOT): Document availability separately from other bits.
3042         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
3043         * manual/time.texi: Likewise.
3044         * manual/users.texi: Likewise.
3045         * INSTALL: Regenerated.
3046         * sysdeps/gnu/errlist.c: Regenerated.
3047
3048         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
3049         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
3050         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
3051         puts.
3052         * configure: Regenerated.
3053
3054 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
3055
3056         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
3057         default includes instead of AC_HEADER_CHECK.
3058         * sysdeps/i386/configure: Regenerated.
3059
3060         [BZ #10716]
3061         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
3062         * math/s_cacoshf.c (__cacoshf): Likewise.
3063         * math/s_cacoshl.c (__cacoshl): Likewise.
3064         * math/s_casinh.c (__casinh): Set signs of result from argument.
3065         * math/s_casinhf.c (__casinhf): Likewise.
3066         * math/s_casinhl.c (__casinhl): Likewise.
3067         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
3068         (casinh_test): Add more tests.
3069         * sysdeps/i386/fpu/libm-test-ulps: Update.
3070         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3071
3072 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
3073
3074         * po/zh_TW.po: Update from translation team.
3075
3076         * login/Makefile (distribute): Remove variable.
3077         * catgets/Makefile: Likewise.
3078         * mach/Makefile: Likewise.
3079         * malloc/Makefile: Likewise.
3080         * misc/Makefile: Likewise.
3081         * iconv/Makefile: Likewise.
3082         * nscd/Makefile: Likewise.
3083         * hurd/Makefile: Likewise.
3084         * manual/Makefile: Likewise.
3085         * locale/Makefile: Likewise.
3086         * intl/Makefile: Likewise.
3087         * conform/Makefile: Likewise.
3088         * nss/Makefile: Likewise.
3089         * time/Makefile: Likewise.
3090         * soft-fp/Makefile: Likewise.
3091         * dirent/Makefile: Likewise.
3092         * gmon/Makefile: Likewise.
3093         * po/Makefile: Likewise.
3094         * rt/Makefile: Likewise.
3095         * socket/Makefile: Likewise.
3096         * math/Makefile: Likewise.
3097         * signal/Makefile: Likewise.
3098         * debug/Makefile: Likewise.
3099         * elf/Makefile: Likewise.
3100         * timezone/Makefile: Likewise.
3101         * stdlib/Makefile: Likewise.
3102         * iconvdata/Makefile: Likewise.
3103         * sunrpc/Makefile: Likewise.
3104         * io/Makefile: Likewise.
3105         * argp/Makefile: Likewise.
3106         * inet/Makefile: Likewise.
3107         * hesiod/Makefile: Likewise.
3108         * grp/Makefile: Likewise.
3109         * csu/Makefile: Likewise.
3110         * wctype/Makefile: Likewise.
3111         * crypt/Makefile: Likewise.
3112         * libio/Makefile: Likewise.
3113         * string/Makefile: Likewise.
3114         * nis/Makefile: Likewise.
3115         * resolv/Makefile: Likewise.
3116         * stdio-common/Makefile: Likewise.
3117         * wcsmbs/Makefile: Likewise.
3118         * dlfcn/Makefile: Likewise.
3119         * posix/Makefile: Likewise.
3120
3121         * timezone/Makefile: Don't install timezone files, just the programs
3122         and scripts.
3123
3124 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
3125
3126         * nss/databases.def: Add missing gshadow entry.
3127
3128         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
3129
3130 2012-03-06  Marek Polacek  <polacek@redhat.com>
3131
3132         [BZ #13726]
3133         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
3134         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
3135         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
3136         * stdio-common/tst-long-dbl-fphex.c: New file.
3137
3138 2012-03-06  David S. Miller  <davem@davemloft.net>
3139
3140         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3141         (set_obp_int): New function.
3142         (get_obp_int): New function.
3143         (__get_clockfreq_via_dev_openprom): Likewise.
3144         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3145         Avoid unused variable warnings on 'val' and use builtin_expect.
3146         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
3147         __builtin_expect.
3148         (INLINE_CLONE_SYSCALL): Likewise.
3149
3150 2012-03-05  David S. Miller  <davem@davemloft.net>
3151
3152         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3153
3154 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
3155
3156         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3157
3158         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
3159         only for |x| >= 40.
3160         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
3161
3162 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
3163
3164         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
3165         Replace gettimeofday with __vdso_gettimeofday.
3166
3167         * sysdeps/unix/sysv/linux/x86_64/init-first.c
3168         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
3169         __vdso_clock_gettime and __vdso_getcpu.
3170
3171         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
3172         time with __vdso_time.
3173
3174 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
3175
3176         * manual/lang.texi (size_t): Note types to which size_t may be
3177         equivalent with the GNU C Library, but do not describe when
3178         differences between them are significant.
3179
3180 2012-03-05  Andreas Jaeger  <aj@suse.de>
3181
3182         * sysdeps/i386/fpu/libm-test-ulps: Update.
3183
3184 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
3185
3186         [BZ #3976]
3187         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
3188         (__ieee754_pow): Save and restore rounding mode and use
3189         round-to-nearest for main computations.
3190         * math/libm-test.inc (pow_test_tonearest): New function.
3191         (pow_test_towardzero): Likewise.
3192         (pow_test_downward): Likewise.
3193         (pow_test_upward): Likewise.
3194         (main): Call the new functions.
3195         * sysdeps/i386/fpu/libm-test-ulps: Update.
3196         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3197
3198         [BZ #3976]
3199         * math/libm-test.inc (cosh_test_tonearest): New function.
3200         (cosh_test_towardzero): Likewise.
3201         (cosh_test_downward): Likewise.
3202         (cosh_test_upward): Likewise.
3203         (sinh_test_tonearest): Likewise.
3204         (sinh_test_towardzero): Likewise.
3205         (sinh_test_downward): Likewise.
3206         (sinh_test_upward): Likewise.
3207         (main): Call the new functions.
3208         * sysdeps/i386/fpu/libm-test-ulps: Update.
3209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3210
3211 2012-03-05  Tom de Vries  <tom@codesourcery.com>
3212
3213         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
3214         default stack guard is set in last bytes.
3215         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
3216
3217 2012-03-05  Kees Cook  <keescook@chromium.org>
3218
3219         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
3220
3221         [BZ #13656]
3222         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
3223         possibly allocate from heap instead of stack.
3224         * stdio-common/bug-vfprintf-nargs.c: New file.
3225         * stdio-common/Makefile (tests): Add nargs overflow test.
3226
3227 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
3228
3229         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3230
3231 2012-03-03  Marek Polacek  <polacek@redhat.com>
3232
3233         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
3234         * math/math_private.h: Likewise.
3235         * stdlib/tst-strtod.c: Likewise.
3236         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3237         * sysdeps/x86_64/bits/atomic.h: Likewise.
3238
3239 2012-03-02  David S. Miller  <davem@davemloft.net>
3240
3241         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
3242         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
3243         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
3244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
3245         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
3246         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
3247         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
3248         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
3249
3250 2012-03-02  Roland McGrath  <roland@hack.frob.com>
3251
3252         [BZ #13792]
3253         * manual/examples/README: New file, says the example source files
3254         can be used under GPL>=2.
3255         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
3256         line containing just "*/".
3257         * manual/examples/add.c: Add copyright header (GPL>=2).
3258         * manual/examples/argp-ex1.c: Likewise.
3259         * manual/examples/argp-ex2.c: Likewise.
3260         * manual/examples/argp-ex3.c: Likewise.
3261         * manual/examples/argp-ex4.c: Likewise.
3262         * manual/examples/atexit.c: Likewise.
3263         * manual/examples/db.c: Likewise.
3264         * manual/examples/dir.c: Likewise.
3265         * manual/examples/dir2.c: Likewise.
3266         * manual/examples/execinfo.c: Likewise.
3267         * manual/examples/filecli.c: Likewise.
3268         * manual/examples/filesrv.c: Likewise.
3269         * manual/examples/fmtmsgexpl.c: Likewise.
3270         * manual/examples/genpass.c: Likewise.
3271         * manual/examples/inetcli.c: Likewise.
3272         * manual/examples/inetsrv.c: Likewise.
3273         * manual/examples/isockad.c: Likewise.
3274         * manual/examples/longopt.c: Likewise.
3275         * manual/examples/memopen.c: Likewise.
3276         * manual/examples/memstrm.c: Likewise.
3277         * manual/examples/mkfsock.c: Likewise.
3278         * manual/examples/mkisock.c: Likewise.
3279         * manual/examples/mygetpass.c: Likewise.
3280         * manual/examples/pipe.c: Likewise.
3281         * manual/examples/popen.c: Likewise.
3282         * manual/examples/rprintf.c: Likewise.
3283         * manual/examples/search.c: Likewise.
3284         * manual/examples/select.c: Likewise.
3285         * manual/examples/setjmp.c: Likewise.
3286         * manual/examples/sigh1.c: Likewise.
3287         * manual/examples/sigusr.c: Likewise.
3288         * manual/examples/stpcpy.c: Likewise.
3289         * manual/examples/strdupa.c: Likewise.
3290         * manual/examples/strftim.c: Likewise.
3291         * manual/examples/strncat.c: Likewise.
3292         * manual/examples/subopt.c: Likewise.
3293         * manual/examples/swapcontext.c: Likewise.
3294         * manual/examples/termios.c: Likewise.
3295         * manual/examples/testopt.c: Likewise.
3296         * manual/examples/testpass.c: Likewise.
3297         * manual/examples/timeval_subtract.c: Likewise.
3298
3299         [BZ #13792]
3300         * manual/time.texi (Elapsed Time): Move timeval_subtract example
3301         function to ...
3302         * manual/timeval_subtract.c.texi: ... here, new file.
3303
3304 2012-03-02  David S. Miller  <davem@davemloft.net>
3305
3306         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
3307
3308 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
3309
3310         [BZ #3976]
3311         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
3312         (__sin): Save and restore rounding mode and use round-to-nearest
3313         for all computations.
3314         (__cos): Save and restore rounding mode and use round-to-nearest
3315         for all computations.
3316         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
3317         <fenv.h>.
3318         (tan): Save and restore rounding mode and use round-to-nearest for
3319         all computations.
3320         * math/libm-test.inc (cos_test_tonearest): New function.
3321         (cos_test_towardzero): Likewise.
3322         (cos_test_downward): Likewise.
3323         (cos_test_upward): Likewise.
3324         (sin_test_tonearest): Likewise.
3325         (sin_test_towardzero): Likewise.
3326         (sin_test_downward): Likewise.
3327         (sin_test_upward): Likewise.
3328         (tan_test_tonearest): Likewise.
3329         (tan_test_towardzero): Likewise.
3330         (tan_test_downward): Likewise.
3331         (tan_test_upward): Likewise.
3332         (main): Call the new functions.
3333         * sysdeps/i386/fpu/libm-test-ulps: Update.
3334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3335
3336         [BZ #10135]
3337         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
3338         small n, then large n, before computing and testing k+n.
3339         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
3340         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
3341         Likewise.
3342         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
3343         Likewise.
3344         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
3345         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
3346         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
3347         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
3348         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
3349         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
3350         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
3351         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
3352         * math/libm-test.inc (scalbn_test): Add more tests.
3353         (scalbln_test): Likewise.
3354
3355         * manual/filesys.texi (mode_t): Describe constraints on size and
3356         signedness, not exact equivalence to a particular type.
3357         (ino_t): Likewise.
3358         (ino64_t): Likewise.
3359         (dev_t): Likewise.
3360         (nlink_t): Likewise.
3361         (blkcnt_t): Likewise.
3362         (blkcnt64_t): Likewise.
3363         * manual/llio.texi (off_t): Likewise.
3364
3365         [BZ #3976]
3366         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
3367         (__ieee754_exp): Save and restore rounding mode and use
3368         round-to-nearest for all computations.
3369         * math/libm-test.inc (exp_test_tonearest): New function.
3370         (exp_test_towardzero): Likewise.
3371         (exp_test_downward): Likewise.
3372         (exp_test_upward): Likewise.
3373         (main): Call the new functions.
3374         * sysdeps/i386/fpu/libm-test-ulps: Update.
3375         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3376
3377 2012-03-01  Chris Demetriou  <cgd@google.com>
3378
3379         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
3380         have predictable order.
3381
3382 2012-03-01  David S. Miller  <davem@davemloft.net>
3383
3384         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
3385
3386         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
3387         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
3388         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
3389         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
3390
3391         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
3392         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
3393         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
3394         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
3395         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
3396         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
3397         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
3398         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
3399         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
3400
3401         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3402
3403         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
3404         * sysdeps/sparc/fpu/libm-test-ulps: to here.
3405         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
3406
3407         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
3408         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3409         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3410         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
3411         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
3412         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
3413         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
3414         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3415         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3416         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
3417         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
3418         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3419         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3420         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3421         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3422         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3423         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
3424         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
3425         * sysdeps/sparc/elf/configure: Regenerated.
3426
3427 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
3428
3429         * configure.in (AS, LD): Require binutils 2.20 or later.
3430         * configure: Regenerated.
3431         * manual/install.texi (Tools for Compilation): Give binutils 2.20
3432         as required minimum version.
3433         * INSTALL: Regenerated.
3434
3435         [BZ #2541]
3436         [BZ #4108]
3437         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
3438         before squaring exponent.
3439         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
3440         bottom long double and 27 bits of top long double before squaring
3441         exponent.
3442         * math/libm-test.inc (erfc_test): Add more tests.
3443         * sysdeps/i386/fpu/libm-test-ulps: Update.
3444         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3446
3447 2012-03-01  Kai Tietz  <ktietz@redhat.com>
3448
3449         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
3450         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
3451         containing bit-fields.
3452         * soft-fp/extended.h (_FP_UNION_E): Likewise.
3453         * soft-fp/single.h (_FP_UNION_S): Likewise.
3454         * soft-fp/double.h (_FP_UNION_D): Likewise.
3455
3456 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
3457
3458         [BZ #13786]
3459         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
3460         not include ../strcmp.S.
3461         [USE_AS_STRNCASECMP_L]: Likewise.
3462         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
3463         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
3464         * sysdeps/i386/i686/multiarch/strncase_l-c.c
3465         (__strncasecmp_l_ia32): Define as alias to
3466         __strncasecmp_l_nonascii.
3467
3468         [BZ #5794]
3469         * math/libm-test.inc (expm1_test): Add test for bug 5794.
3470         * sysdeps/i386/fpu/libm-test-ulps: Update.
3471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3472
3473         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
3474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3475
3476 2012-02-29  Jeff Law  <law@redhat.com>
3477
3478         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
3479         out of bounds read.
3480
3481 2012-02-29  Marek Polacek  <polacek@redhat.com>
3482
3483         [BZ #13706]
3484         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
3485         * elf/Makefile: Add rules to run tst-unused-dep.out.
3486
3487 2012-02-28  David S. Miller  <davem@davemloft.net>
3488
3489         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
3490         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
3491         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
3492         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
3493         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
3494         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
3495
3496 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
3497
3498         * math/libm-test.inc (llround_test): Move one test from
3499         lround_test.  Use TEST_f_L in moved test.
3500         (lround_test): Move misplaced test to llround_test.  Add testcase
3501         from bug 2561.
3502
3503 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
3504
3505         * sysdeps/x86_64/fpu/e_expf.S: New file.
3506         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
3507
3508 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
3509
3510         [BZ #13637]
3511         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
3512         of remain_len that may cause incomplete multi-byte character and
3513         false match.
3514         * posix/bug-regex33.c: New file.
3515         * posix/Makefile (tests): Add bug-regex33.
3516
3517 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
3518
3519         * manual/macros.texi: New file.
3520         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
3521         * manual/libc.texinfo: Include macros.texi.
3522         * manual/creatute.texi: Likewise.
3523         * manual/install.texi: Likewise.
3524         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
3525         @glibcadj{} in references to the GNU C Library.
3526         * manual/charset.texi: Likewise.
3527         * manual/conf.texi: Likewise.
3528         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
3529         when not using those macros.
3530         * manual/creature.texi: Likewise.
3531         * manual/crypt.texi: Likewise.
3532         * manual/errno.texi: Likewise.
3533         * manual/filesys.texi: Likewise.
3534         * manual/header.texi: Likewise.
3535         * manual/install.texi: Likewise.
3536         * manual/intro.texi: Likewise.
3537         * manual/io.texi: Likewise.
3538         * manual/job.texi: Likewise.
3539         * manual/lang.texi: Likewise.
3540         * manual/libc.texiinfo: Likewise.
3541         * manual/llio.texi: Likewise.
3542         * manual/locale.texi: Likewise.
3543         * manual/maint.texi: Likewise.
3544         * manual/math.texi: Likewise.
3545         * manual/memory.texi: Likewise.
3546         * manual/message.texi: Likewise.
3547         * manual/nss.texi: Likewise.
3548         * manual/pattern.texi: Likewise.
3549         * manual/process.texi: Likewise.
3550         * manual/resource.texi: Likewise.
3551         * manual/search.texi: Likewise.
3552         * manual/setjmp.texi: Likewise.
3553         * manual/signal.texi: Likewise.
3554         * manual/socket.texi: Likewise.
3555         * manual/startup.texi: Likewise.
3556         * manual/stdio.texi: Likewise.
3557         * manual/string.texi: Likewise.
3558         * manual/sysinfo.texi: Likewise.
3559         * manual/syslog.texi: Likewise.
3560         * manual/terminal.texi: Likewise.
3561         * manual/time.texi: Likewise.
3562         * manual/users.texi: Likewise.
3563         * INSTALL: Regenerated.
3564         * NOTES: Regenerated.
3565         * sysdeps/gnu/errlist.c: Regenerated.
3566
3567 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
3568
3569         * include/dirent.h: Include <dirstream.h> before
3570         <dirent/dirent.h>.
3571
3572 2012-02-28  David S. Miller  <davem@davemloft.net>
3573
3574         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
3575         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
3576         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
3577         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
3578
3579 2012-02-27  David S. Miller  <davem@davemloft.net>
3580
3581         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
3582         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
3583         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
3584         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
3585
3586         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
3587         frame pointer instead of stack pointer relative arg slot.
3588         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3589         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3590         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3591
3592 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
3593
3594         [BZ #3992]
3595         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
3596
3597 2012-02-27  David S. Miller  <davem@davemloft.net>
3598
3599         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
3600         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3601         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3602         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
3603         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3604         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3605         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
3606         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
3607
3608 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3609
3610         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
3611         later.  Allow versions 5-9.
3612         * configure: Regenerated.
3613         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
3614         required minimum version and 4.6 as recommended version.  Do not
3615         mention bugs in GCC 2.7 and 2.8.
3616         * INSTALL: Regenerated.
3617
3618 2012-02-27  David S. Miller  <davem@davemloft.net>
3619
3620         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
3621         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
3622         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
3623         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
3624         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
3625         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
3626         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
3627         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
3628
3629         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
3630         manipulate bits before adding and subtracting TWO112[sx].
3631         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3632
3633 2012-02-27  Roland McGrath  <roland@hack.frob.com>
3634
3635         [BZ #13775]
3636         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
3637         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
3638         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
3639         being in POSIX, because they are in 1003.1-2008.
3640
3641         * rt/tst-aio.c: Include <fcntl.h>.
3642         * rt/tst-aio7.c: Likewise.
3643         * rt/tst-aio64.c: Likewise.
3644
3645         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
3646
3647 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3648
3649         * manual/install.texi (--with-headers): Describe headers as
3650         interface headers, not private headers.
3651         (Specific advice for GNU/Linux systems): Describe use of headers
3652         from "make headers_install", not private headers from older
3653         kernels.
3654         * INSTALL: Regenerated.
3655         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
3656         Change to 2.6.19.
3657         * sysdeps/unix/sysv/linux/configure: Regenerated.
3658
3659         * manual/llio.texi (fclean): Remove documentation.
3660
3661         * manual/Makefile (libc-texi-generated): New variable.  Include
3662         version.texi.
3663         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
3664         $(libc-texi-generated), not duplicated list of files.
3665         (version.texi, stamp-version): New rules.
3666         (realclean): Remove $(libc-texi-generated), not individual files
3667         from that list.  Do not remove dir-add.texinfo.
3668         * manual/libc.texinfo: Comment out uses of edition numbers and
3669         references to printed manual.  Remove last-updated dates.
3670         (EDITION): Comment out.
3671         (ISBN): Likewise.
3672         (VERSION, UPDATED): Remove.
3673         (version.texi): Include.
3674
3675 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
3676
3677         * sysdeps/posix/spawni.c: Include <signal.h>.
3678         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
3679         * sysdeps/pthread/aio_fsync.c: Likewise.
3680
3681 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
3682
3683         * conform/Makefile (tests): Run only when not cross-compiling and
3684         when fast-check is not defined.
3685
3686         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
3687         * conform/data/limits.h-data: Fixes for POSIX2008.
3688         * conform/run-conformtest.sh: Run all tests.
3689         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
3690         headers.
3691         * include/bits/dlfcn.h: Likewise.
3692         * include/langinfo.h: Likewise.
3693         * include/monetary.h: Likewise.
3694         * include/sys/poll.h: Likewise.
3695
3696         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
3697         for __USE_GNU.
3698         * posix/spawn.h: Define __need_sigset_t.
3699         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
3700         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
3701         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
3702         to get sigevent_t only.
3703         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
3704         only for __USE_GNU.
3705         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3706         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
3707         process_vm_writev only for __USE_GNU.
3708         * termios/termios.h: Declare tcgetsid also for POSIX2008.
3709
3710         * conform/Makefile: For now ignore errors from run-conformtest.
3711         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
3712         POSIX to avoid namespace pollution.  Don't prepend headers.
3713         * conform/data/aio.h-data: Fixes for POSIX testing.
3714         * conform/data/fcntl.h-data: Likewise.
3715         * conform/data/glob.h-data: Likewise.
3716         * conform/data/grp.h-data: Likewise.
3717         * conform/data/pthread.h-data: Likewise.
3718         * conform/data/pwd.h-data: Likewise.
3719         * conform/data/signal.h-data: Likewise.
3720         * conform/data/spawn.h-data: Likewise.
3721         * conform/data/stdio.h-data: Likewise.
3722         * conform/data/stdlib.h-data: Likewise.
3723         * conform/data/stropts.h-data: Likewise.
3724         * conform/data/sys/mman.h-data: Likewise.
3725         * conform/data/sys/stat.h-data: Likewise.
3726         * conform/data/sys/types.h-data: Likewise.
3727         * conform/data/sys/wait.h-data: Likewise.
3728         * conform/data/time.h-data: Likewise.
3729         * conform/data/unistd.h-data: Likewise.
3730         * conform/data/utime.h-data: Likewise.
3731
3732         * io/sys/stat.h: fchmod was always in POSIX.
3733         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
3734         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
3735         * rt/aio.h: Define __need_timespec before including <time.h>.
3736         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
3737         struct.  Add forward declaration of pthread_attr_t and use it in
3738         sigevent.
3739         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3740         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3741         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
3742         always remove CLK_TCK definition.
3743
3744 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
3745
3746         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
3747
3748 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
3749
3750         * conform/run-conformtest.sh: New file.
3751         * conform/Makefile: Run run-conformtest for tests.
3752         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
3753         support.
3754
3755         * conform/data/uchar.h-data: New file.
3756         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
3757         * conform/data/arpa/inet.h-data: Likewise.
3758         * conform/data/assert.h-data: Likewise.
3759         * conform/data/complex.h-data: Likewise.
3760         * conform/data/cpio.h-data: Likewise.
3761         * conform/data/ctype.h-data: Likewise.
3762         * conform/data/dirent.h-data: Likewise.
3763         * conform/data/dlfcn.h-data: Likewise.
3764         * conform/data/errno.h-data: Likewise.
3765         * conform/data/fcntl.h-data: Likewise.
3766         * conform/data/float.h-data: Likewise.
3767         * conform/data/fmtmsg.h-data: Likewise.
3768         * conform/data/fnmatch.h-data: Likewise.
3769         * conform/data/ftw.h-data: Likewise.
3770         * conform/data/glob.h-data: Likewise.
3771         * conform/data/grp.h-data: Likewise.
3772         * conform/data/iconv.h-data: Likewise.
3773         * conform/data/inttypes.h-data: Likewise.
3774         * conform/data/langinfo.h-data: Likewise.
3775         * conform/data/libgen.h-data: Likewise.
3776         * conform/data/limits.h-data: Likewise.
3777         * conform/data/locale.h-data: Likewise.
3778         * conform/data/math.h-data: Likewise.
3779         * conform/data/monetary.h-data: Likewise.
3780         * conform/data/mqueue.h-data: Likewise.
3781         * conform/data/ndbm.h-data: Likewise.
3782         * conform/data/net/if.h-data: Likewise.
3783         * conform/data/netdb.h-data: Likewise.
3784         * conform/data/netinet/in.h-data: Likewise.
3785         * conform/data/nl_types.h-data: Likewise.
3786         * conform/data/poll.h-data: Likewise.
3787         * conform/data/pthread.h-data: Likewise.
3788         * conform/data/pwd.h-data: Likewise.
3789         * conform/data/regex.h-data: Likewise.
3790         * conform/data/sched.h-data: Likewise.
3791         * conform/data/search.h-data: Likewise.
3792         * conform/data/semaphore.h-data: Likewise.
3793         * conform/data/setjmp.h-data: Likewise.
3794         * conform/data/signal.h-data: Likewise.
3795         * conform/data/spawn.h-data: Likewise.
3796         * conform/data/stdarg.h-data: Likewise.
3797         * conform/data/stdio.h-data: Likewise.
3798         * conform/data/stdlib.h-data: Likewise.
3799         * conform/data/string.h-data: Likewise.
3800         * conform/data/strings.h-data: Likewise.
3801         * conform/data/stropts.h-data: Likewise.
3802         * conform/data/sys/ipc.h-data: Likewise.
3803         * conform/data/sys/mman.h-data: Likewise.
3804         * conform/data/sys/msg.h-data: Likewise.
3805         * conform/data/sys/resource.h-data: Likewise.
3806         * conform/data/sys/select.h-data: Likewise.
3807         * conform/data/sys/sem.h-data: Likewise.
3808         * conform/data/sys/shm.h-data: Likewise.
3809         * conform/data/sys/socket.h-data: Likewise.
3810         * conform/data/sys/stat.h-data: Likewise.
3811         * conform/data/sys/statvfs.h-data: Likewise.
3812         * conform/data/sys/time.h-data: Likewise.
3813         * conform/data/sys/timeb.h-data: Likewise.
3814         * conform/data/sys/times.h-data: Likewise.
3815         * conform/data/sys/types.h-data: Likewise.
3816         * conform/data/sys/uio.h-data: Likewise.
3817         * conform/data/sys/un.h-data: Likewise.
3818         * conform/data/sys/utsname.h-data: Likewise.
3819         * conform/data/sys/wait.h-data: Likewise.
3820         * conform/data/syslog.h-data: Likewise.
3821         * conform/data/tar.h-data: Likewise.
3822         * conform/data/termios.h-data: Likewise.
3823         * conform/data/utime.h-data: Likewise.
3824         * conform/data/utmpx.h-data: Likewise.
3825         * conform/data/varargs.h-data: Likewise.
3826         * conform/data/wchar.h-data: Likewise.
3827         * conform/data/wctype.h-data: Likewise.
3828         * conform/data/wordexp.h-data: Likewise.
3829
3830         * include/stropts.h: New file.
3831         * include/uchar.h: New file.
3832         * include/aio.h: Changes to allow conformtest.pl to use the headers.
3833         * include/assert.h: Likewise.
3834         * include/ctype.h: Likewise.
3835         * include/dirent.h: Likewise.
3836         * include/dlfcn.h: Likewise.
3837         * include/fcntl.h: Likewise.
3838         * include/fnmatch.h: Likewise.
3839         * include/glob.h: Likewise.
3840         * include/grp.h: Likewise.
3841         * include/libio.h: Likewise.
3842         * include/locale.h: Likewise.
3843         * include/math.h: Likewise.
3844         * include/net/if.h: Likewise.
3845         * include/netdb.h: Likewise.
3846         * include/netinet/in.h: Likewise.
3847         * include/pthread.h: Likewise.
3848         * include/pwd.h: Likewise.
3849         * include/regex.h: Likewise.
3850         * include/sched.h: Likewise.
3851         * include/search.h: Likewise.
3852         * include/setjmp.h: Likewise.
3853         * include/signal.h: Likewise.
3854         * include/stdio.h: Likewise.
3855         * include/stdlib.h: Likewise.
3856         * include/string.h: Likewise.
3857         * include/sys/cdefs.h: Likewise.
3858         * include/sys/mman.h: Likewise.
3859         * include/sys/msg.h: Likewise.
3860         * include/sys/resource.h: Likewise.
3861         * include/sys/select.h: Likewise.
3862         * include/sys/socket.h: Likewise.
3863         * include/sys/stat.h: Likewise.
3864         * include/sys/statvfs.h: Likewise.
3865         * include/sys/time.h: Likewise.
3866         * include/sys/times.h: Likewise.
3867         * include/sys/uio.h: Likewise.
3868         * include/sys/utsname.h: Likewise.
3869         * include/sys/wait.h: Likewise.
3870         * include/termios.h: Likewise.
3871         * include/time.h: Likewise.
3872         * include/ulimit.h: Likewise.
3873         * include/unistd.h: Likewise.
3874         * include/utime.h: Likewise.
3875         * include/wchar.h: Likewise.
3876         * include/wctype.h: Likewise.
3877         * include/wordexp.h: Likewise.
3878
3879         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
3880
3881         * time/time.h: TIME_UTC must be a macro.
3882         Make timespec_get available for ISO C11 only as well.
3883
3884 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
3885
3886         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
3887         Reported by Peng Haitao <penght@cn.fujitsu.com>.
3888
3889 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3890
3891         * configure.in: Use -o not -a in test for unsupported multi-arch.
3892
3893 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3894
3895         * manual/texinfo.tex: Update to version 2012-01-19.16.
3896
3897 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3898
3899         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
3900
3901 2012-02-24  Roland McGrath  <roland@hack.frob.com>
3902
3903         [BZ #13738]
3904         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
3905         * manual/fdl-1.3.texi: New file.
3906         * manual/fdl-1.1.texi: File removed.
3907
3908         [BZ #13738]
3909         * manual/libc.texinfo (FDL_VERSION): New @set.
3910         Use it for mention of FDL in cover text.
3911         (Documentation License): Use it in @include file name.
3912
3913 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3914             Roland McGrath  <roland@hack.frob.com>
3915
3916         [BZ #5461]
3917         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
3918         not LONG_LONG_MAX and LONG_LONG_MIN.
3919         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
3920         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
3921         name.
3922         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
3923
3924 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3925
3926         [BZ #2547]
3927         [BZ #11365]
3928         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
3929         manipulate bits before adding and subtracting TWO23[sx].
3930         * math/libm-test.inc (nearbyint_test): Add more tests.
3931
3932 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3933
3934         [BZ #2548]
3935         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
3936         bits before adding and subtracting TWO23[sx].
3937         * math/libm-test.inc (rint_test): Add more tests.
3938         (rint_test_tonearest): Likewise.
3939         (rint_test_towardzero): Likewise.
3940         (rint_test_downward): Likewise.
3941         (rint_test_upward: Likewise.
3942
3943 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3944
3945         [BZ #10110]
3946         * include/stdc-predef.h: New file.  Extracted from features.h.
3947         * include/features.h: Include stdc-predef.h.
3948         * Makefile (headers): Add stdc-predef.h.
3949         * CONFORMANCE (Compiler limitations): Update.
3950
3951 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3952
3953         * manual/libc.texinfo (VERSION, UPDATED): Revert.
3954
3955 2012-02-21  David S. Miller  <davem@davemloft.net>
3956
3957         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
3958         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3959
3960 2012-02-20  David S. Miller  <davem@davemloft.net>
3961
3962         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
3963         using a normal save/restore sequence, rather than allocating a
3964         dummy stack frame just to store a frame pointer and restore.
3965         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3966
3967 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3968
3969         * manual/install.texi: Fix stray word in line-wrapped comment.
3970
3971 2012-02-20  David S. Miller  <davem@davemloft.net>
3972
3973         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
3974         both binutils and gcc support GOTDATA.
3975
3976         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
3977         "rd %pc" in the PIC register setup sequences.
3978
3979         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
3980         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
3981         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3982         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
3983         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3984         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3985         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3986         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3987         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3988         (SYSCALL_ERROR_HANDLER): Likewise.
3989         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3990         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3991         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3992         (SYSCALL_ERROR_HANDLER): Likewise.
3993
3994         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
3995         (HAVE_GCC_GOTDATA): New.
3996         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
3997         relocation support in both binutils and gcc.
3998         * sysdeps/sparc/elf/configure: Regenerate.
3999
4000         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
4001         * sysdeps/sparc/sparc32/elf/configure: Delete.
4002         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
4003         * sysdeps/sparc/sparc64/elf/configure: Delete.
4004         * sysdeps/sparc/elf/configure.in: New file.
4005         * sysdeps/sparc/elf/configure: Generate.
4006
4007         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
4008         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
4009         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
4010         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
4011         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
4012
4013 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4014
4015         * manual/install.texi: Do not mention specific glibc version
4016         numbers.
4017         * manual/libc.texinfo (VERSION, UPDATED): Update.
4018         (@copying): Use @copyright{} and range of years.
4019
4020 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4021
4022         [BZ #13695]
4023         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
4024         [crti.S not in sysdirs] (generated): Do not append.
4025         [crti.S not in sysdirs] (omit-deps): Likewise.
4026         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
4027         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
4028         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
4029         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
4030         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
4031         Likewise.
4032         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
4033         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
4034         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
4035         * csu/defs.awk: Remove file.
4036         * sysdeps/generic/initfini.c: Likewise.
4037         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
4038         variable.
4039         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
4040         Likewise.
4041
4042 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4043
4044         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
4045         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
4046         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
4047         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
4048         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4049         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
4050         <bits/epoll.h>.
4051         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
4052         (__EPOLL_PACKED): Define to empty if not defined by
4053         <bits/epoll.h>.
4054         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
4055         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4056         bits/epoll.h.
4057
4058 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4059
4060         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
4061         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
4062         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
4063         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
4064         <bits/timerfd.h>.
4065         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
4066         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4067         bits/timerfd.h.
4068
4069 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4070
4071         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
4072         in C locale.
4073         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4074         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4075         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
4076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4077
4078 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
4079
4080         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
4081         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
4082
4083 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
4084
4085         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
4086         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
4087         defined.
4088         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
4089         Likewise.
4090         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
4091         entry for 2.16.
4092
4093 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
4094
4095         * math/w_acos.c: Use non-signaling floating-point comparisons.
4096         * math/w_acosf.c: Likewise.
4097         * math/w_acosh.c: Likewise.
4098         * math/w_acoshf.c: Likewise.
4099         * math/w_acoshl.c: Likewise.
4100         * math/w_acosl.c: Likewise.
4101         * math/w_asin.c: Likewise.
4102         * math/w_asinf.c: Likewise.
4103         * math/w_asinl.c: Likewise.
4104         * math/w_atanh.c: Likewise.
4105         * math/w_atanhf.c: Likewise.
4106         * math/w_atanhl.c: Likewise.
4107         * math/w_exp2.c: Likewise.
4108         * math/w_exp2f.c: Likewise.
4109         * math/w_exp2l.c: Likewise.
4110         * math/w_j0.c: Likewise.
4111         * math/w_j0f.c: Likewise.
4112         * math/w_j0l.c: Likewise.
4113         * math/w_j1.c: Likewise.
4114         * math/w_j1f.c: Likewise.
4115         * math/w_j1l.c: Likewise.
4116         * math/w_jn.c: Likewise.
4117         * math/w_jnf.c: Likewise.
4118         * math/w_log.c: Likewise.
4119         * math/w_log10.c: Likewise.
4120         * math/w_log10f.c: Likewise.
4121         * math/w_log10l.c: Likewise.
4122         * math/w_log2.c: Likewise.
4123         * math/w_log2f.c: Likewise.
4124         * math/w_log2l.c: Likewise.
4125         * math/w_logf.c: Likewise.
4126         * math/w_logl.c: Likewise.
4127         * math/w_sqrt.c: Likewise.
4128         * math/w_sqrtf.c: Likewise.
4129         * math/w_sqrtl.c: Likewise.
4130         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
4131         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
4132         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
4133         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
4134         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
4135
4136 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
4137
4138         [BZ #9739]
4139         * manual/string.texi (strnlen): Use correct parameter name in
4140         equivalent expression.
4141
4142 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
4143
4144         [BZ #11174]
4145         * manual/users.texi (seteuid): Consistently use neweuid for
4146         argument name.
4147
4148 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
4149
4150         [BZ #13704]
4151         * manual/nss.texi (Services in the NSS configuration): Correct
4152         list of services in example configuration file.
4153
4154 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
4155
4156         [BZ #11322]
4157         * manual/arith.texi: Remove statements about negative zero
4158         behaving identically to zero.
4159
4160 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
4161
4162         [BZ #5993]
4163         * manual/install.texi: Do not document upgrading from libc5.
4164
4165 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
4166
4167         [BZ #4596]
4168         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
4169
4170 2012-02-18  David S. Miller  <davem@davemloft.net>
4171
4172         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
4173         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
4174         %o7 across the call.
4175         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
4176         instead.
4177         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
4178         SETUP_PIC_REG_LEAF.
4179         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4180         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
4181         * sysdeps/sparc/crtn.S: Likewise.
4182
4183 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
4184
4185         * aout/Makefile: Remove.
4186
4187 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
4188
4189         [BZ #13058]
4190         * manual/examples/argp-ex1.c (main): Format definition in GNU
4191         style.
4192         * manual/examples/argp-ex2.c (main): Likewise.
4193         * manual/examples/argp-ex3.c (main): Likewise.
4194         * manual/examples/argp-ex4.c (main): Likewise.
4195         * manual/examples/longopt.c (main): Use new-style prototype
4196         definition.
4197         * manual/examples/strncat.c (main): Specify return type and use
4198         (void) for arguments.
4199         * manual/examples/subopt.c (main): Use char **argv argument.
4200
4201 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4202
4203         [BZ #5077]
4204         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
4205         rounding modes.
4206
4207 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
4208
4209         [BZ #6907]
4210         * manual/string.texi (strchr): Change when strchrnul is
4211         recommended.
4212
4213 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
4214
4215         [BZ #174]
4216         * manual/locale.texi (setlocale): Document LOCPATH.
4217
4218 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4219
4220         [BZ #10210]
4221         * manual/process.texi (execle): Move @dots{} before last argument.
4222
4223 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
4224
4225         [BZ #12047]
4226         * manual/charset.texi (Generic Charset Conversion): Fix typo
4227         (LC_TYPE -> LC_CTYPE).
4228
4229 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
4230
4231         [BZ #5805]
4232         * manual/arith.texi (scalbn): Use @var{} on parameter names.
4233         (scalbnf): Likewise.
4234         (scalbnl): Likewise.
4235         (scalbln): Likewise.
4236         (scalblnf): Likewise.
4237         (scalblnl): Likewise.
4238         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
4239         (vwarnx): Likewise.
4240         (verr): Likewise.
4241         (verrx): Likewise.
4242         * manual/filesys.texi (telldir): Use braces around return type.
4243         * manual/llio.texi (mmap): Add space after comma.
4244         (mmap64): Likewise.
4245         * manual/math.texi (jn): Use @var{} on parameter names.
4246         (jnf): Likewise.
4247         (jnl): Likewise.
4248         (yn): Likewise.
4249         (ynf): Likewise.
4250         (ynl): Likewise.
4251         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
4252         line.
4253         * manual/resource.texi (ulimit): Use @dots{} instead of literal
4254         "...".
4255         (sched_get_priority_min): Remove semicolon on @deftypefun line.
4256         (sched_get_priority_max): Likewise.
4257         * manual/signal.texi (sigvec): Add space after comma.
4258         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
4259         names.
4260         (if_indextoname): Likewise.
4261         (if_freenameindex): Likewise.
4262         (sendto): Use ',' instead of '.' in prototype.
4263         * manual/startup.texi (syscall): Use @dots{} instead of literal
4264         "...".
4265         * manual/stdio.texi (__fpending): Separate initial words of
4266         paragraph from @deftypefun line.
4267         * manual/syslog.texi (syslog): Use @dots{} instead of literal
4268         "...".
4269         (vsyslog): Use @var{} on parameter names.
4270         * manual/terminal.texi (stty): Use @var{} on parameter names.
4271         * manual/users.texi (getutmp): Use @var{} on parameter names.
4272         (getutmpx): Likewise.
4273
4274 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4275
4276         [BZ #6884]
4277         * manual/stdio.texi (fopen): Fix typos in description of
4278         ",ccs=STRING".
4279
4280 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
4281
4282         [BZ #4026]
4283         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
4284         get clock_id definition.
4285
4286 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
4287
4288         [BZ #4822]
4289         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
4290         (madvise): Cast every argument to void on its own.
4291
4292 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4293
4294         [BZ #9902]
4295         * manual/startup.texi (Exit Status): Fix typo.
4296
4297 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4298
4299         [BZ #10140]
4300         * manual/examples/argp-ex1.c: Include <stdlib.h>.
4301         * manual/examples/argp-ex2.c: Likewise.
4302         * manual/examples/argp-ex3.c: Likewise.
4303
4304 2012-02-16  Richard Henderson  <rth@redhat.com>
4305
4306         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
4307         * sysdeps/s390/s390-32/initfini.c: Remove.
4308         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
4309         * sysdeps/s390/s390-64/initfini.c: Remove.
4310
4311 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4312
4313         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
4314         compiler output for sysdeps/generic/initfini.c.
4315         * sysdeps/sh/elf/initfini.c: Remove file.
4316
4317 2012-02-16  David S. Miller  <davem@davemloft.net>
4318
4319         [BZ #11494]
4320         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
4321
4322         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
4323         * sysdeps/sparc/crti.S: New file.
4324         * sysdeps/sparc/crtn.S: New file.
4325         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
4326         * sysdeps/sparc/sparc64/Makefile: Likewise.
4327
4328 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
4329
4330         [BZ #3335]
4331         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
4332
4333 2012-02-15  Roland McGrath  <roland@hack.frob.com>
4334
4335         [BZ #4822]
4336         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
4337
4338         * mach/devstream.c (cookie_io_functions_t): Macro removed.
4339         (write, read, close): Likewise.
4340         Patch by Aurelien Jarno <aurelien@aurel32.net>.
4341
4342 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
4343
4344         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
4345         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
4346         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
4347         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
4348         <bits/signalfd.h>.
4349         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
4350         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4351         bits/signalfd.h.
4352
4353 2012-02-14  Marek Polacek  <polacek@redhat.com>
4354
4355         * sysdeps/x86_64/crti.S: New file.
4356         * sysdeps/x86_64/crtn.S: New file.
4357         * sysdeps/x86_64/elf/initfini.c: Remove file.
4358
4359 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
4360
4361         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
4362         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
4363         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
4364         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
4365         <bits/inotify.h>.
4366         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
4367         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4368         bits/inotify.h.
4369
4370 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
4371
4372         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
4373         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
4374         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
4375         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
4376         <bits/eventfd.h>.
4377         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
4378         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4379         bits/eventfd.h.
4380
4381 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
4382
4383         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
4384         __feraiseexcept instead of feraiseexcept.
4385
4386         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
4387         nanosleep invocations.
4388         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
4389         strings, and add error checking for a nanosleep invocations.
4390
4391 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4392
4393         Replace FSF snail mail address with URLs, as per GNU coding standards.
4394         Most of the snail mail addresses were wrong anyway, and omitting
4395         them makes the source code easier to maintain.  Almost all of the
4396         changes are to license notices and to locale LC_IDENTIFICATION
4397         addresses, except for this one:
4398         * manual/libc.texinfo: In "Published by", give the FSF's URL,
4399         not its snail mail address.
4400
4401 2012-02-09  Richard Henderson  <rth@twiddle.net>
4402
4403         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
4404         of kernel-features.h.
4405
4406         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
4407
4408 2012-02-08  Marek Polacek  <polacek@redhat.com>
4409
4410         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
4411         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
4412         * sysdeps/gnu/_G_config.h: Likewise.
4413         * sysdeps/generic/_G_config.h: Likewise.
4414
4415 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
4416
4417         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
4418         tests.
4419         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4420
4421         * sysdeps/powerpc/powerpc32/crti.S: New file.
4422         * sysdeps/powerpc/powerpc32/crtn.S: New file.
4423         * sysdeps/powerpc/powerpc64/crti.S: New file.
4424         * sysdeps/powerpc/powerpc64/crtn.S: New file.
4425
4426         * Makeconfig (have-initfini): Don't set.
4427         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
4428         * configure.in (nopic_initfini): Don't substitute.
4429         * config.h.in (HAVE_INITFINI): Don't #undef.
4430         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
4431         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
4432
4433 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
4434
4435         Support crti.S and crtn.S provided directly by architectures.
4436         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
4437         [crti.S in sysdirs] (omit-deps): Likewise.
4438         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
4439         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
4440         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
4441         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
4442         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
4443         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
4444         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
4445         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
4446         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
4447         compiler output for sysdeps/generic/initfini.c.
4448         * sysdeps/i386/elf/Makefile: Remove file.
4449         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
4450
4451 2012-02-07  Marek Polacek  <polacek@redhat.com>
4452
4453         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
4454         * sysdeps/gnu/_G_config.h: Likewise.
4455         * sysdeps/mach/hurd/_G_config.h: Likewise.
4456
4457 2012-02-07  Marek Polacek  <polacek@redhat.com>
4458
4459         * math/Makefile (tests): Add tst-CMPLX2.
4460         * math/tst-CMPLX2.c: New file.
4461
4462 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
4463
4464         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
4465
4466         * math/libm-test.inc (jn_test): Add missing L suffix.
4467
4468 2012-02-06  Marek Polacek  <polacek@redhat.com>
4469
4470         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
4471         * sysdeps/i386/fpu/e_powf.S: Likewise.
4472         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4473         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4474         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4475         * sysdeps/i386/fpu/e_pow.S: Likewise.
4476         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4477         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4478         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4479         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4480         * sysdeps/i386/fpu/e_log2.S: Likewise.
4481         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4482         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4483         * sysdeps/i386/fpu/e_powl.S: Likewise.
4484         * sysdeps/i386/fpu/s_log1p.S: Likewise.
4485         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4486         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4487         * sysdeps/i386/fpu/e_logl.S: Likewise.
4488         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4489         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
4490         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4491         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4492         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4493         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4494         * sysdeps/i386/fpu/e_log.S: Likewise.
4495         * sysdeps/i386/fpu/s_cexp.S: Likewise.
4496         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4497         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
4498         * sysdeps/i386/fpu/e_logf.S: Likewise.
4499         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4500         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4501         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
4502         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4503         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4504         * sysdeps/i386/fpu/e_log10.S: Likewise.
4505         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4506         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4507         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4508         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4509         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4510         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4511         * sysdeps/i386/asm-syntax.h: Likewise.
4512         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4513         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4514         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4515         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4516         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
4517         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4518         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4519         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4520         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4521         * sysdeps/powerpc/sysdep.h: Likewise.
4522         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4523         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4524
4525 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4526
4527         [BZ #411]
4528         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
4529
4530 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4531
4532         * sysdeps/i386/sysdep.h: Include <features.h>.
4533         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
4534         version.
4535
4536 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
4537
4538         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
4539         Define.
4540         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
4541         LOAD_PIC_REG_STR.
4542
4543 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4544
4545         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
4546         (SETUP_PIC_REG): Use GET_PC_THUNK.
4547         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
4548         macro.
4549
4550 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4551
4552         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
4553         for non-PIC compilation.
4554         (SETUP_PIC_REG): Add .p2align directive.
4555         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
4556         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
4557         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
4558         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
4559         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
4560         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
4561         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
4562         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
4563         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
4564         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
4565         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
4566         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
4567         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
4568         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
4569         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
4570         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
4571         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
4572         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
4573         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
4574         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
4575         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
4576         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
4577         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
4578         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
4579         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
4580         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
4581         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
4582         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
4583         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
4584         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
4585         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
4586         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4587         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
4588         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
4589         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
4590         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
4591         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
4592         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
4593         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
4594         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
4595         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
4596
4597 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4598
4599         * math/tst-CMPLX.c: Include <stdio.h>.
4600
4601 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
4602
4603         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
4604         float.
4605         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4606         * sysdeps/sparc/bits/mathdef.h: Likewise.
4607
4608 2012-01-31  Marek Polacek  <polacek@redhat.com>
4609
4610         * libio/libio.h: Don't define _PARAMS.
4611         * locale/programs/config.h: Don't define PARAMS.
4612         * stdlib/strtol_l.c: Likewise.
4613         (__strtol_l): Remove PARAMS from the prototype.
4614
4615 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
4616
4617         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
4618         names.  Just use the correct names.  Remove unnecessary wrapper
4619         functions.
4620         * malloc/arena.c: Likewise.
4621         * malloc/hooks.c: Likewise.
4622
4623         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
4624         ARENA_TEST says not to.  Simplify test for creation of a new arena.
4625         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
4626
4627 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
4628
4629         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
4630         into tail calls.
4631         (update_get_addr): New function.
4632         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
4633         GET_ADDR_MODULE parameter.
4634
4635 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4636
4637         * crypt/cert.c: Remove __STDC__ conditionals.
4638         * crypt/crypt-entry.c: Likewise.
4639         * crypt/crypt_util.c: Likewise.
4640         * libio/filedoalloc.c: Likewise.
4641         * libio/fileops.c: Likewise.
4642         * libio/genops.c: Likewise.
4643         * libio/iofclose.c: Likewise.
4644         * libio/iofdopen.c: Likewise.
4645         * libio/iofopen.c: Likewise.
4646         * libio/iofopen64.c: Likewise.
4647         * libio/iogetdelim.c: Likewise.
4648         * libio/iopopen.c: Likewise.
4649         * libio/obprintf.c: Likewise.
4650         * libio/oldfileops.c: Likewise.
4651         * libio/oldiofclose.c: Likewise.
4652         * libio/oldiofdopen.c: Likewise.
4653         * libio/oldiofopen.c: Likewise.
4654         * libio/oldiopopen.c: Likewise.
4655         * libio/wfiledoalloc.c: Likewise.
4656         * libio/wgenops.c: Likewise.
4657         * locale/programs/xmalloc.c: Likewise.
4658         * misc/syslog.c: Likewise.
4659         * stdio-common/xbug.c: Likewise.
4660         * string/memchr.c: Likewise.
4661         * string/memcmp.c: Likewise.
4662         * string/memrchr.c: Likewise.
4663         * string/rawmemchr.c: Likewise.
4664         * sysdeps/posix/getcwd.c: Likewise.
4665         * time/strftime_l.c: Likewise.
4666
4667 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4668
4669         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
4670         * config.make.in (config-cflags-sse2avx): Define.
4671         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
4672         Fix typo.
4673
4674 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
4675
4676         * scripts/config.guess: Update from upstream config git repository.
4677         * scripts/config.sub: Likewise.
4678
4679 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
4680
4681         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
4682         (EM_NUM): Update.
4683         (R_TILEPRO_*, R_TILEGX_*): New macros.
4684
4685         * scripts/firstversions.awk: Fix bug in version range handling.
4686
4687         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
4688
4689         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
4690
4691         * include/sys/epoll.h: New file.
4692         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
4693         libc_hidden_def.
4694
4695 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
4696
4697         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
4698         Avoid unnecessary __WORDSIZE == 64 test.
4699         (fmaxf): Use VEX format if possible.
4700         (fmax): Likewise.
4701         (fminf): Likewise.
4702         (fmin): Likewise.
4703
4704         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
4705         * math/math_private.h: Remove libc_fegetround* and
4706         libc_fesetround*.
4707         * sysdeps/i386/configure.in: Check for -msse2avx.
4708         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
4709         also if SSE2AVX is defined.
4710         Remove libc_fegetround* and libc_fesetround*.
4711         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
4712         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
4713         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
4714         of HAS_YMM_USABLE.
4715         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4716         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4717         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4718         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4719         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4720
4721         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
4722
4723 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4724
4725         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
4726         size is not set.
4727         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
4728
4729 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
4730
4731         [BZ #13618]
4732         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
4733         relocation.
4734         * Makeconfig (libm): Define.
4735         * elf/Makefile: Add rules to build and run tst-relsort1.
4736         * elf/tst-relsort1.c: New file.
4737         * elf/tst-relsort1mod1.c: New file.
4738         * elf/tst-relsort1mod2.c: New file.
4739
4740 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
4741
4742         * math/s_ldexp.c: Remove __STDC__ conditionals.
4743         * math/s_ldexpf.c: Likewise.
4744         * math/s_ldexpl.c: Likewise.
4745         * math/s_nextafter.c: Likewise.
4746         * math/s_nexttowardf.c: Likewise.
4747         * math/s_significand.c: Likewise.
4748         * math/s_significandf.c: Likewise.
4749         * math/s_significandl.c: Likewise.
4750         * math/w_jnl.c: Likewise.
4751         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4752         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4753         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4754         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4755         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4756         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4757         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
4758         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4759         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4760         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4761         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4762         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4763         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4764         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4765         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4766         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4767         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4768         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4769         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4770         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4771         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4772         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4773         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4774         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4775         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4776         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4777         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4778         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4779         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4780         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4781         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4782         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4783         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4784         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4785         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4786         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4787         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4788         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4789         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4790         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4791         * sysdeps/ieee754/k_standard.c: Likewise.
4792         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4793         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4794         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4795         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4796         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4797         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4798         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4799         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4800         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4801         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4802         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4803         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
4804         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4805         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4806         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4807         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4808         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4809         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4810         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4811         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4812         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4813         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4814         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4815         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4816         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4817         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
4818         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
4819         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4820         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4821         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4822         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4823         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
4824         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4825         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4826         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4827         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4828         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4829         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4830         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4831         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4832         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4833         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4834         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4835         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4836         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4837         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4838         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4839         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4840         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4841         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4842         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4843         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4844         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4845         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4846         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4847         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4848         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4849         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4850         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4851         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4852         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4853         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4854         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4855         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4856         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
4857         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4858         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
4859         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
4860         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
4861         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
4862         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
4863         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
4864         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
4865         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4866         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4867         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
4868         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4869         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4870         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
4871         * sysdeps/ieee754/s_matherr.c: Likewise.
4872         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
4873         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
4874         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4875         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4876
4877 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4878
4879         * crypt/md5.h: Remove __STDC__ conditionals.
4880         * libio/libioP.h: Likewise.
4881         * locale/programs/config.h: Likewise.
4882         * sysdeps/generic/sysdep.h: Likewise.
4883         * sysdeps/i386/asm-syntax.h: Likewise.
4884         * sysdeps/s390/asm-syntax.h: Likewise.
4885         * sysdeps/unix/sysdep.h: Likewise.
4886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4888
4889 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4890
4891         * libio/libio.h: Remove __STDC__ conditionals.
4892         * malloc/obstack.h: Likewise.
4893         * math/complex.h: Likewise.
4894         * math/math.h: Likewise.
4895         * sysdeps/generic/_G_config.h: Likewise.
4896         * sysdeps/gnu/_G_config.h: Likewise.
4897         * sysdeps/mach/hurd/_G_config.h: Likewise.
4898         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4899         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4900         * sysdeps/sparc/bits/mathdef.h: Likewise.
4901
4902 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
4903
4904         [BZ #13583]
4905         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
4906         Clean up HAS_* macros.
4907         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
4908         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
4909         possible.
4910         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
4911         HAS_AVX.
4912         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4913         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4914         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4915         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4916         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4917
4918 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
4919
4920         * elf/tst-unique3.cc (gets): Remove declaration.
4921         * elf/tst-unique3lib.cc (gets): Likewise.
4922         * elf/tst-unique3lib2.cc (gets): Likewise.
4923         * elf/tst-unique4.cc (gets): Likewise.
4924
4925 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
4926
4927         * include/stdio.h: Add C++ protection.  Add gets declarations and
4928         definitions.
4929         * debug/tst-chk1.c: Don't declare gets here.
4930         * stdio-common/tst-gets.c: Likewise.
4931
4932 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4933
4934         * posix/glob: Remove directory.
4935
4936 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4937
4938         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
4939
4940 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
4941
4942         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
4943         of the non-standard EPFNOSUPPORT.
4944
4945 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4946
4947         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
4948         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
4949         ANYWHERE set to 1 only on KERN_NO_SPACE error.
4950
4951 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
4952
4953         * wcsmbs/uchar.h: Test __STDC_VERSION__.
4954
4955 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
4956
4957         * nscd/aicache.c (addhstaiX): Do not cache negative results of
4958         transient errors.
4959         * nscd/grpcache.c (cache_addgr): Likewise.
4960         * nscd/hstcache.c (cache_addhst): Likewise.
4961         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4962         * nscd/pwdcache.c (cache_addpw): Likewise.
4963         * nscd/servicescache.c (cache_addserv): Likewise.
4964
4965 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
4966
4967         * malloc/malloc.c: Various cleanups.
4968         * malloc/hooks.c: Likewise.
4969
4970         * stdlib/Makefile (tests): Add bug-fmtmsg1.
4971         * stdlib/bug-fmtmsg1.c: New file.
4972
4973         * stdlib/fmtmsg.c (init): Add missing unlock.
4974         Patch by Peng Haitao <penght@cn.fujitsu.com>.
4975
4976 2012-01-12  Marek Polacek  <polacek@redhat.com>
4977
4978         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
4979         and _GNU_SOURCE.
4980
4981 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
4982
4983         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
4984         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
4985         macro to ensure uniqueness of label name.
4986         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
4987         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
4988
4989 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
4990
4991         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
4992
4993         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
4994         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
4995         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
4996         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
4997
4998 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
4999
5000         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
5001
5002         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
5003         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5004         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5005
5006         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
5007
5008         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
5009         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5010         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5011         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
5012
5013         * math/bits/math-finite.h: Add ldexp support.
5014
5015 2012-01-10  Marek Polacek  <polacek@redhat.com>
5016
5017         * locale/programs/localedef.h (show_archive_content): Add noreturn
5018         attribute.
5019
5020 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
5021
5022         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
5023
5024 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5025
5026         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
5027
5028         * io/Makefile (headers): Add bits/poll2.h.
5029
5030 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
5031
5032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
5033         typo #include statement.
5034
5035 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5036
5037         * include/sys/cdefs.h: Define __attribute_alloc_size.
5038         * catgets/gencat.c: Add alloc_size attribute and apply consistently
5039         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
5040         * elf/pldd.c: Likewise.
5041         * iconv/iconv_charmap.c: Likewise.
5042         * iconv/iconvconfig.c: Likewise.
5043         * iconv/strtab.c: Likewise.
5044         * locale/programs/locale.c: Likewise.
5045         * locale/programs/localedef.h: Likewise.
5046         * locale/programs/simple-hash.c: Likewise.
5047         * nscd/nscd.h: Likewise.
5048         * nss/makedb.c: Likewise.
5049         * sysdeps/generic/ldconfig.h: Likewise.
5050         * locale/programs/localedef.c: Remove xmalloc prototype.
5051         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
5052
5053 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
5054
5055         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
5056         appropriate.
5057
5058 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5059
5060         * math/Makefile (tests): Add tst-CMPLX.
5061         * math/tst-CMPLX.c: New file.
5062
5063         * math/complex.h (CMPLXL): Fix typo.
5064
5065         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
5066         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
5067         GLIBC_2.16.
5068         * debug/tst-chk1.c: Add poll and ppoll tests.
5069         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
5070         * include/sys/poll.h: Add hidden proto for ppoll.
5071         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
5072         * sysdeps/mach/hurd/ppoll.c: Likewise.
5073         * io/ppoll.c: Likewise.
5074         * debug/poll_chk.c: New file.
5075         * debug/ppoll_chk.c: New file.
5076         * include/bits/poll2.h: New file.
5077         * io/bits/poll2.h: New file.
5078
5079         [BZ #1350]
5080         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
5081
5082         * configure.in: static is always set to yes.  Remove.
5083         * config.make.in: Don't set build-static.
5084         * Makeconfig: Remove use of build-static.
5085         * dlfcn/Makefile: Likewise.
5086         * elf/Makefile: Likewise.
5087         * math/Makefile: Likewise.
5088         * misc/Makefile: Likewise.
5089         * nptl/Makefile: Likewise.
5090         * sysdeps/mach/hurd/Makefile: Likewise.
5091
5092         * configure.in: PWD_P is not used anymore.
5093         * config.make.in: Remove PWD_P entry.
5094
5095         * configure.in: Remove last remnants of RANLIB.
5096         No need to check for signed size_t anymore.
5097         Don't set libc_commonpagesize and libc_relro_required here for Alpha
5098         and IA-64.
5099         Remove __builtin_expect test because we require at least gcc 3.4.
5100         * aclocal.m4: Likewise.
5101
5102         * wcsmbs/mbrtoc16.c: Implement using towc function.
5103         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
5104         * wcsmbs/wcsmbsload.c: Likewise.
5105         * iconv/gconv_simple.c: Likewise.
5106         * iconv/gconv_int.h: Likewise.
5107         * iconv/gconv_builtin.h: Likewise.
5108         * iconv/iconv_prog.c: Remove CHAR16 handling.
5109
5110         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
5111
5112         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
5113
5114         * configure.in: Remove --with-elf and --enable-bounded options.
5115         Dont set base_machine for ia64.  More non-ELF conditions removed.
5116         Remove testing and setting of leading underscore information.
5117         * config.make.in (build-bounded): Set to no.
5118         * config.h.in: Remove NO_UNDERSCORES entry.
5119         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
5120         them.
5121         * csu/start.c: Remove !NO_UNDERSCORE code.
5122         * locale/localeinfo.h: Likewise.
5123         * sysdeps/generic/machine-gmon.h: Likewise.
5124         * sysdeps/generic/sysdep.h: Likewise.
5125         * sysdeps/i386/sysdep.h: Likewise.
5126         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
5127         * sysdeps/mach/sysdep.h: Likewise.
5128         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5129         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5130         * sysdeps/sh/sysdep.h: Likewise.
5131         * sysdeps/sparc/sparc32/alloca.S: Likewise.
5132         * sysdeps/unix/i386/sysdep.S: Likewise.
5133         * sysdeps/unix/sparc/start.c: Likewise.
5134         * sysdeps/unix/sparc/sysdep.S: Likewise.
5135         * sysdeps/unix/sparc/sysdep.h: Likewise.
5136         * sysdeps/unix/start.c: Likewise.
5137         * sysdeps/unix/x86_64/sysdep.S: Likewise.
5138         * sysdeps/x86_64/sysdep.h: Likewise.
5139
5140 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
5141
5142         [BZ #13553]
5143         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
5144         for non-gcc.
5145         * argp/argp-fmtstream.h: Use const instead __const.
5146         * argp/argp.h: Likewise.
5147         * assert/assert.h: Likewise.
5148         * bits/fenv.h: Likewise.
5149         * bits/sched.h: Likewise.
5150         * bits/sigset.h: Likewise.
5151         * bits/sigthread.h: Likewise.
5152         * catgets/nl_types.h: Likewise.
5153         * conform/data/pthread.h-data: Likewise.
5154         * crypt/crypt-private.h: Likewise.
5155         * crypt/crypt.h: Likewise.
5156         * crypt/crypt_util.c: Likewise.
5157         * ctype/ctype.h: Likewise.
5158         * debug/execinfo.h: Likewise.
5159         * debug/mbsnrtowcs_chk.c: Likewise.
5160         * debug/mbsrtowcs_chk.c: Likewise.
5161         * debug/wcsnrtombs_chk.c: Likewise.
5162         * debug/wcsrtombs_chk.c: Likewise.
5163         * debug/wcstombs_chk.c: Likewise.
5164         * dirent/dirent.h: Likewise.
5165         * dlfcn/dlfcn.h: Likewise.
5166         * elf/neededtest4.c: Likewise.
5167         * grp/grp.h: Likewise.
5168         * gshadow/gshadow.h: Likewise.
5169         * iconv/gconv.h: Likewise.
5170         * iconv/gconv_int.h: Likewise.
5171         * iconv/gconv_simple.c: Likewise.
5172         * iconv/iconv.h: Likewise.
5173         * iconv/loop.c: Likewise.
5174         * iconv/skeleton.c: Likewise.
5175         * include/aio.h: Likewise.
5176         * include/aliases.h: Likewise.
5177         * include/argz.h: Likewise.
5178         * include/arpa/inet.h: Likewise.
5179         * include/assert.h: Likewise.
5180         * include/dirent.h: Likewise.
5181         * include/dlfcn.h: Likewise.
5182         * include/execinfo.h: Likewise.
5183         * include/fcntl.h: Likewise.
5184         * include/fenv.h: Likewise.
5185         * include/glob.h: Likewise.
5186         * include/grp.h: Likewise.
5187         * include/libintl.h: Likewise.
5188         * include/mntent.h: Likewise.
5189         * include/netdb.h: Likewise.
5190         * include/pwd.h: Likewise.
5191         * include/rpc/netdb.h: Likewise.
5192         * include/sched.h: Likewise.
5193         * include/search.h: Likewise.
5194         * include/shadow.h: Likewise.
5195         * include/signal.h: Likewise.
5196         * include/stdio.h: Likewise.
5197         * include/stdlib.h: Likewise.
5198         * include/string.h: Likewise.
5199         * include/sys/socket.h: Likewise.
5200         * include/sys/stat.h: Likewise.
5201         * include/sys/statfs.h: Likewise.
5202         * include/sys/statvfs.h: Likewise.
5203         * include/sys/syslog.h: Likewise.
5204         * include/sys/time.h: Likewise.
5205         * include/sys/uio.h: Likewise.
5206         * include/time.h: Likewise.
5207         * include/unistd.h: Likewise.
5208         * include/utmp.h: Likewise.
5209         * include/wchar.h: Likewise.
5210         * include/wctype.h: Likewise.
5211         * inet/aliases.h: Likewise.
5212         * inet/arpa/inet.h: Likewise.
5213         * inet/netinet/ether.h: Likewise.
5214         * inet/netinet/in.h: Likewise.
5215         * intl/libintl.h: Likewise.
5216         * io/bits/fcntl2.h: Likewise.
5217         * io/fcntl.h: Likewise.
5218         * io/ftw.h: Likewise.
5219         * io/sys/poll.h: Likewise.
5220         * io/sys/stat.h: Likewise.
5221         * io/sys/statfs.h: Likewise.
5222         * io/sys/statvfs.h: Likewise.
5223         * io/utime.h: Likewise.
5224         * libio/bits/stdio.h: Likewise.
5225         * libio/bits/stdio2.h: Likewise.
5226         * libio/libio.h: Likewise.
5227         * libio/libioP.h: Likewise.
5228         * libio/stdio.h: Likewise.
5229         * locale/lc-ctype.c: Likewise.
5230         * locale/locale.h: Likewise.
5231         * login/utmp.h: Likewise.
5232         * malloc/arena.c: Likewise.
5233         * malloc/malloc.c: Likewise.
5234         * malloc/malloc.h: Likewise.
5235         * malloc/mcheck.c: Likewise.
5236         * malloc/mtrace.c: Likewise.
5237         * math/bits/mathcalls.h: Likewise.
5238         * math/fenv.h: Likewise.
5239         * math/math_private.h: Likewise.
5240         * misc/bits/error.h: Likewise.
5241         * misc/bits/syslog.h: Likewise.
5242         * misc/err.h: Likewise.
5243         * misc/error.h: Likewise.
5244         * misc/fstab.h: Likewise.
5245         * misc/mntent.h: Likewise.
5246         * misc/regexp.h: Likewise.
5247         * misc/search.h: Likewise.
5248         * misc/sgtty.h: Likewise.
5249         * misc/sys/mman.h: Likewise.
5250         * misc/sys/syslog.h: Likewise.
5251         * misc/sys/uio.h: Likewise.
5252         * misc/sys/xattr.h: Likewise.
5253         * misc/ttyent.h: Likewise.
5254         * nis/rpcsvc/ypclnt.h: Likewise.
5255         * nss/nss.h: Likewise.
5256         * posix/bits/unistd.h: Likewise.
5257         * posix/fnmatch.h: Likewise.
5258         * posix/glob.h: Likewise.
5259         * posix/sched.h: Likewise.
5260         * posix/spawn.h: Likewise.
5261         * posix/sys/wait.h: Likewise.
5262         * posix/unistd.h: Likewise.
5263         * posix/wordexp.h: Likewise.
5264         * pwd/pwd.h: Likewise.
5265         * resolv/netdb.h: Likewise.
5266         * resource/sys/resource.h: Likewise.
5267         * rt/aio.h: Likewise.
5268         * rt/bits/mqueue2.h: Likewise.
5269         * rt/mqueue.h: Likewise.
5270         * shadow/shadow.h: Likewise.
5271         * signal/signal.h: Likewise.
5272         * socket/send.c: Likewise.
5273         * socket/sendto.c: Likewise.
5274         * socket/sys/socket.h: Likewise.
5275         * stdio-common/printf.h: Likewise.
5276         * stdlib/bits/stdlib.h: Likewise.
5277         * stdlib/fmtmsg.h: Likewise.
5278         * stdlib/monetary.h: Likewise.
5279         * stdlib/stdlib.h: Likewise.
5280         * stdlib/ucontext.h: Likewise.
5281         * streams/stropts.h: Likewise.
5282         * string/argz.h: Likewise.
5283         * string/bits/string2.h: Likewise.
5284         * string/string.h: Likewise.
5285         * string/strings.h: Likewise.
5286         * sunrpc/rpc/auth.h: Likewise.
5287         * sunrpc/rpc/auth_des.h: Likewise.
5288         * sunrpc/rpc/clnt.h: Likewise.
5289         * sunrpc/rpc/netdb.h: Likewise.
5290         * sunrpc/rpc/pmap_clnt.h: Likewise.
5291         * sunrpc/rpc/xdr.h: Likewise.
5292         * sysdeps/generic/inttypes.h: Likewise.
5293         * sysdeps/generic/net/if.h: Likewise.
5294         * sysdeps/generic/sys/swap.h: Likewise.
5295         * sysdeps/gnu/net/if.h: Likewise.
5296         * sysdeps/gnu/utmpx.h: Likewise.
5297         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
5298         * sysdeps/i386/i486/bits/string.h: Likewise.
5299         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
5300         * sysdeps/s390/bits/string.h: Likewise.
5301         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
5302         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
5303         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5304         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
5305         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5306         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
5307         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5308         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
5309         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
5310         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
5311         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
5312         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
5313         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
5314         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
5315         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5316         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
5317         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
5318         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5319         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5320         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5321         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5322         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
5323         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
5324         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5325         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
5326         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
5327         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
5328         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5329         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
5330         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
5331         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
5332         * sysvipc/sys/ipc.h: Likewise.
5333         * sysvipc/sys/msg.h: Likewise.
5334         * sysvipc/sys/sem.h: Likewise.
5335         * sysvipc/sys/shm.h: Likewise.
5336         * termios/termios.h: Likewise.
5337         * time/sys/time.h: Likewise.
5338         * time/time.h: Likewise.
5339         * wcsmbs/bits/wchar2.h: Likewise.
5340         * wcsmbs/uchar.h: Likewise.
5341         * wcsmbs/wchar.h: Likewise.
5342         * wctype/wctype.h: Likewise.
5343
5344         [BZ #13551]
5345         * Makeconfig: Remove all but ELF support including AIX support.
5346         * Makerules: Likewise.
5347         * config.h.in: Likewise.
5348         * config.make.in: Likewise.
5349         * configure: Likewise.
5350         * configure.in: Likewise.
5351         * csu/Makefile: Likewise.
5352         * csu/version.c: Likewise.
5353         * debug/Makefile: Likewise.
5354         * dlfcn/Makefile: Likewise.
5355         * elf/Makefile: Likewise.
5356         * extra-lib.mk: Likewise.
5357         * iconv/Makefile: Likewise.
5358         * include/libc-symbols.h: Likewise.
5359         * include/shlib-compat.h: Likewise.
5360         * resolv/Makefile: Likewise.
5361         * resolv/res_libc.c: Likewise.
5362         * rt/Makefile: Likewise.
5363         * sysdeps/i386/asm-syntax.h: Likewise.
5364         * sysdeps/i386/sysdep.h: Likewise.
5365         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
5366         * sysdeps/mach/sysdep.h: Likewise.
5367         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
5368         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
5369         * sysdeps/s390/asm-syntax.h: Likewise.
5370         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5371         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5372         * sysdeps/sh/sysdep.h: Likewise.
5373         * sysdeps/unix/sparc/sysdep.h: Likewise.
5374         * sysdeps/wordsize-32/divdi3.c: Likewise.
5375         * sysdeps/x86_64/sysdep.h: Likewise.
5376
5377         * argp/Versions: Remove _argp_unlock_xxx.
5378
5379         [BZ #13559]
5380         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
5381         * abilist/libBrokenLocale.abilist: Likewise.
5382         * abilist/libanl.abilist: Likewise.
5383         * abilist/libc.abilist: Likewise.
5384         * abilist/libcrypt.abilist: Likewise.
5385         * abilist/libdl.abilist: Likewise.
5386         * abilist/libm.abilist: Likewise.
5387         * abilist/libnsl.abilist: Likewise.
5388         * abilist/libpthread.abilist: Likewise.
5389         * abilist/libresolv.abilist: Likewise.
5390         * abilist/librt.abilist: Likewise.
5391         * abilist/libthread_db.abilist: Likewise.
5392         * abilist/libutil.abilist: Likewise.
5393         * abilist/libnss_db.abilist: New file.
5394
5395         * scripts/abilist.awk: Add support for indirect functions.
5396
5397         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
5398
5399         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
5400
5401         * shlib-versions: Remove entries for ports architectures.
5402
5403         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
5404         files in ports.
5405         * elf/stackguard-macros.h: Remove support for IA-64.
5406         * elf/tst-auditmod1.c: Likewise.
5407         * sysdeps/generic/ldsodefs.h: Likewise.
5408
5409         * sysdeps/unix/sysv/linux/configure.in: Ports should define
5410         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
5411         configure files.
5412
5413         [BZ #13552]
5414         * configure.in: Remove --enable-omitfp support.
5415         * FAQ.in: Adjust.
5416         * config.make.in: Likewise.
5417         * Makeconfig: Likewise.
5418         * manual/install.texi: Likewise.
5419
5420         In case anyone cares, the IA-64 architecture could move to ports.
5421         * sysdeps/ia64/*: Removed.
5422         * sysdeps/unix/sysv/linux/ia64/*: Removed.
5423         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
5424
5425         [BZ #13555]
5426         * configure.in: Remove entries for unsupported architectures.
5427
5428         [BZ #13533]
5429         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
5430         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
5431         routines.
5432         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
5433         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
5434         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
5435         fall back to using wcrtomb.
5436         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
5437         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
5438         renaming.
5439         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
5440         * wcsmbs/tst-c16c32-1.c: New file.
5441
5442         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
5443         local variable.
5444
5445         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
5446
5447         * elf/tst-unique3.cc: Add explicit declaration of gets.
5448         * elf/tst-unique3lib.cc: Likewise.
5449         * elf/tst-unique3lib2.cc: Likewise.
5450         * elf/tst-unique4.cc: Likewise.
5451
5452         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
5453
5454 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
5455
5456         [BZ #13566]
5457         * assert/assert.h (static_assert): Don't define for C++.
5458         * libio/stdio.h (gets): Do declare for C++ <= C++11.
5459         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
5460
5461 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
5462
5463         * iconv/loop.c (single loop): Fix assertion in storing of
5464         remaining bytes.
5465
5466         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
5467
5468 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
5469
5470         * posix/getconf.c: Update copyright year.
5471         * nss/getent.c: Likewise.
5472         * nss/makedb.c: Likewise.
5473         * iconv/iconvconfig.c: Likewise.
5474         * iconv/iconv_prog.c: Likewise.
5475         * elf/ldconfig.c: Likewise.
5476         * elf/pldd.c: Likewise.
5477         * elf/sotruss.ksh: Likewise.
5478         * catgets/gencat.c: Likewise.
5479         * csu/version.c: Likewise.
5480         * elf/ldd.bash.in: Likewise.
5481         * elf/sprof.c (print_version): Likewise.
5482         * locale/programs/locale.c: Likewise.
5483         * locale/programs/localedef.c: Likewise.
5484         * login/programs/pt_chown.c: Likewise.
5485         * nscd/nscd.c (print_version): Likewise.
5486         * debug/xtrace.sh: Likewise.
5487         * malloc/memusage.sh: Likewise.
5488         * malloc/mtrace.pl: Likewise.
5489         * debug/catchsegv.sh: Likewise.
5490
5491 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
5492
5493         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
5494         pure attribute.
5495
5496 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
5497
5498         [BZ #13533]
5499         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
5500         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
5501         transformations.
5502         * iconv/gconv_int.h: Likewise.
5503         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
5504         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
5505         from libc for GLIBC_2.16.
5506         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
5507         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
5508         * wcsmbs/uchar.h: Really define mbstate_t.
5509         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
5510         * wcsmbs/c16rtomb.c: New file.
5511         * wcsmbs/mbrtoc16.c: New file.
5512         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
5513         for C/POSIX locale.
5514         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
5515         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
5516
5517         * wcsmbs/wchar.h: Add missing __restrict.
5518
5519 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5520
5521         [BZ #13532]
5522         * time/Makefile (routines): Add timespec_get.
5523         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
5524         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
5525         timespec for ISO C11.
5526         * time/timespec_get.c: New file.
5527         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
5528         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
5529
5530         [BZ #13531]
5531         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
5532         * stdlib/stdlib.h: Declare aligned_alloc.
5533         * Versions.def: Add GLIBC_2.16 for libc.
5534         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
5535
5536         [BZ 13527]
5537         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
5538         ISO C11.
5539
5540         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
5541         code.
5542
5543         [BZ #13528]
5544         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
5545
5546         [BZ #13529]
5547         * assert/assert.h (static_assert): Define.
5548
5549         * version.h: Update for 2.16 development version.
5550
5551         [BZ #13526]
5552         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
5553         _ISOC11_SOURCE.
5554
5555         * version.h (RELEASE): Bump for 2.15 release.
5556         * include/features.h (__GLIBC_MINOR__): Bump to 15.
5557
5558         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
5559         Patch by Marek Polacek <mpolacek@redhat.com>.
5560
5561         * bits/byteswap.h: Protect long long constants with __extension__.
5562         * sysdeps/i386/bits/byteswap.h: Likewise.
5563         * sysdeps/ia64/bits/byteswap.h: Likewise.
5564         * sysdeps/s390/bits/byteswap.h: Likewise.
5565         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5566
5567 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5568
5569         [BZ #13540]
5570         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
5571         destination buffer.
5572         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
5573
5574 2011-12-23  Marek Polacek  <polacek@redhat.com>
5575
5576         * elf/dl-addr.c (determine_info): Add inline keyword.
5577         * elf/tst-auditmod4b.c (check_avx): Likewise.
5578         * elf/tst-auditmod6b.c (check_avx): Likewise.
5579         * elf/tst-auditmod6c.c (check_avx): Likewise.
5580         * elf/tst-auditmod7b.c (check_avx): Likewise.
5581
5582 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5583
5584         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
5585         !__SSE_MATH__.
5586
5587 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5588
5589         [BZ #13540]
5590         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
5591         processing for last bytes.
5592
5593 2011-08-06  Bruno Haible  <bruno@clisp.org>
5594
5595         [BZ #13061]
5596         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
5597         U+0385, not to U+1FEE.
5598
5599         [BZ #13062]
5600         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
5601         entry for U+00A5 U+0301.
5602
5603 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5604
5605         [BZ #13166]
5606         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
5607         buffer for the output is too small.
5608
5609         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
5610         optimization.
5611
5612         [BZ #13185]
5613         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
5614         SSE flags if possible.
5615
5616 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5617
5618         [BZ #13540]
5619         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
5620         processing for last bytes.
5621
5622 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
5623
5624         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
5625         (syscall-list-default-options, syscall-list-default-condition)
5626         (syscall-list-includes): Define.
5627         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
5628         list of ABIs and options and #if conditions for each ABI.  Do not
5629         handle common syscalls between ABIs specially.
5630         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
5631         Remove.
5632         (syscall-list-variants, syscall-list-32bit-options)
5633         (syscall-list-32bit-condition, syscall-list-64bit-options)
5634         (syscall-list-64bit-condition): Define.
5635         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
5636         (syscall-list-variants, syscall-list-32bit-options)
5637         (syscall-list-32bit-condition, syscall-list-64bit-options)
5638         (syscall-list-64bit-condition): Define.
5639         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
5640         Remove.
5641         (syscall-list-variants, syscall-list-32bit-options)
5642         (syscall-list-32bit-condition, syscall-list-64bit-options)
5643         (syscall-list-64bit-condition): Define.
5644         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
5645         Remove.
5646         (syscall-list-variants, syscall-list-32bit-options)
5647         (syscall-list-32bit-condition, syscall-list-64bit-options)
5648         (syscall-list-64bit-condition): Define.
5649
5650 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5651
5652         * locale/iso-639.def: Add brx entry.
5653
5654         [BZ #13328]
5655         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
5656         Proposed by Mariusz_Cukr <marcukr@op.pl>.
5657
5658         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
5659         __feraiseexcept_renamed.
5660
5661 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5662
5663         [BZ #13538]
5664         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
5665         EPOLLET with unsigned values.
5666         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5667         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5668
5669         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
5670         to large cancellation.
5671         * math/s_cacoshf.c: Likewise.
5672         * math/s_cacoshl.c: Likewise.
5673
5674 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
5675
5676         [BZ #13305]
5677         [BZ #12786]
5678         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
5679         * math/s_cacoshf.c: Likewise.
5680         * math/s_cacoshl.c: Likewise.
5681
5682 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5683
5684         [BZ #13439]
5685         * iconv/gconv.h: Define __GCONV_SWAP.
5686         * iconvdata/unicode.c: The swap bit must be stored in __flags.
5687         * iconvdata/utf-16.c: Likewise.
5688         * iconvdata/utf-32.c: Likewise.
5689
5690 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
5691
5692         [BZ #13524]
5693         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
5694         numerator after shifting it by one limb.
5695
5696 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
5697
5698         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
5699         under [__USE_EXTERN_INLINES].
5700
5701 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5702
5703         [BZ #13446]
5704         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
5705
5706 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5707
5708         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
5709         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
5710         optimized code.
5711         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
5712         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
5713         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
5714         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
5715         for strncasecmp/strncasecmp_l compilation.
5716         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
5717         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
5718
5719 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
5720
5721         [BZ #13484]
5722         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
5723         of __asm__.
5724
5725 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5726
5727         [BZ #13506]
5728         * time/tzfile.c (__tzfile_read): Check values from file header.
5729
5730 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
5731
5732         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
5733         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
5734         * powerpc/powerpc32/dl-start.S: Likewise.
5735         * powerpc/powerpc32/elf/start.S: Likewise.
5736         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
5737         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
5738         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5739         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
5740         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
5741         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
5742         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
5743         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
5744         * powerpc/powerpc32/fpu/s_round.S: Likewise.
5745         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
5746         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
5747         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
5748         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5749         * powerpc/powerpc32/memset.S: Likewise.
5750         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
5751         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5752         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5753         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5754         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5755         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5756         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5757         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5758         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
5759         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
5760         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
5761         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5762         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5763
5764 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5765
5766         * math/libm-test.inc: Added more nearbyint tests.
5767         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
5768         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
5769         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
5770         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
5771
5772 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
5773
5774         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
5775         FD_CLOEXEC.
5776
5777 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5778
5779         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
5780         Add wcscpy-ssse3 wcscpy-c.
5781         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
5782         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
5783         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
5784         * sysdeps/x86_64/wcschr.S: New file.
5785         * sysdeps/x86_64/wcsrchr.S: New file.
5786         * string/test-strcmp.c: Remove checking of wcscmp function for
5787         wrong alignments.
5788         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
5789         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
5790         wcsrchr-sse2 wcsrchr-c.
5791         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
5792         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
5793         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
5794         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
5795         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
5796         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
5797         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
5798         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
5799         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
5800         * wcsmbc/wcschr.c (WCSCHR): New macro.
5801
5802 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5803
5804         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
5805         * wcsmbs/test-wcsrchr.c: New file.
5806         * string/test-strrchr.c: Add wcsrchr support.
5807         (WIDE): New macro.
5808         * wcsmbs/test-wcscpy.c: New file.
5809         * string/test-strcpy.c: Add wcscpy support.
5810         (WIDE): New macro.
5811
5812 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
5813
5814         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
5815         the inner loop.
5816
5817 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
5818
5819         [BZ #13472]
5820         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
5821
5822 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
5823
5824         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
5825         Minor optimizations.
5826
5827         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
5828         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
5829         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
5830
5831 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
5832
5833         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
5834         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
5835         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
5836         for gcc to avoid warnings.
5837         * inet/Makefile (tests): Add tst-checks.
5838         * inet/tst-checks.c: New file.
5839
5840         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
5841         warning.
5842
5843         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
5844         __wmemcmp_sse2.
5845
5846         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
5847         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
5848
5849         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
5850
5851 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
5852
5853         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
5854         problem.
5855
5856         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
5857
5858 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
5859
5860         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
5861         conditional on GCC version.
5862         (__arch_compare_and_exchange_val_8_acq)
5863         (__arch_compare_and_exchange_val_16_acq)
5864         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
5865         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
5866         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
5867
5868 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
5869
5870         * sysdeps/sh/backtrace.c: New file.
5871
5872 2011-12-02  Andreas Schwab  <schwab@redhat.com>
5873
5874         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
5875         parenthesis.
5876
5877 2011-12-01  Andreas Schwab  <schwab@redhat.com>
5878
5879         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
5880         falling back to utime.
5881
5882 2011-11-30  Andreas Schwab  <schwab@redhat.com>
5883
5884         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
5885         expectations for float.
5886
5887 2011-11-29  Andreas Schwab  <schwab@redhat.com>
5888
5889         * locale/weight.h (findidx): Add parameter len.
5890         * locale/weightwc.h (findidx): Likewise.
5891         * posix/fnmatch_loop.c (FCT): Adjust caller.
5892         * posix/regcomp.c (build_equiv_class): Likewise.
5893         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
5894         * posix/regexec.c (check_node_accept_bytes): Likewise.
5895         * string/strcoll_l.c (STRCOLL): Likewise.
5896         * string/strxfrm_l.c (STRXFRM): Likewise.
5897
5898 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
5899
5900         * Makefile.in: Remove CVSOPT handling.
5901         * configure.in: Remove use of AC_REVISION.
5902         * iconvdata/Makefile (distribute): No need to filter out CVS.
5903         * scripts/list-sources.sh: Remove CVS, subversion and monotone
5904         handling.
5905
5906 2011-11-16  Andreas Schwab  <schwab@redhat.com>
5907
5908         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
5909         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
5910         [USE_AS_STRNCASECMP_L]: Likewise.
5911         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
5912         NO_TLS_DIRECT_SEG_REFS.
5913         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
5914         Fix argument offsets for non-PIC.
5915         [USE_AS_STRNCASECMP_L]: Likewise.
5916         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
5917         NO_TLS_DIRECT_SEG_REFS.
5918
5919 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5920
5921         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
5922         O_CLOEXEC.
5923         * locale/loadlocale.c (_nl_load_locale): Likewise.
5924
5925 2011-11-15  Andreas Schwab  <schwab@redhat.com>
5926
5927         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
5928         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
5929         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
5930         (SYSCALL_GETTIME): Set errno on error.
5931
5932         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
5933         count references to noai6ai_cached.
5934
5935 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5936
5937         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
5938
5939         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
5940         FD_CLOEXEC for /proc/self/maps.
5941
5942         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
5943         FD_CLOEXEC for /proc/meminfo.
5944
5945         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
5946         gai.conf.
5947
5948         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
5949         FD_CLOEXEC for given file.
5950
5951         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
5952
5953         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
5954         FD_CLOEXEC for /etc/hosts.
5955         (_gethtent): Likewise.
5956
5957         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
5958
5959         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
5960         cancellation and set FD_CLOEXEC for /etc/netgroup.
5961
5962         * nss/nss_files/files-key.c (search): Don't allow cancellation when
5963         reading /etc/publickey.
5964
5965         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
5966         allow cancellation when reading /etc/group.
5967
5968         * nss/nss_files/files-alias.c (internal_setent): Don't allow
5969         cancellation.
5970         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
5971
5972         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
5973         when using data file.
5974
5975         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
5976
5977         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
5978         (write_nis_obj): Use "c" and "e" in fopen.
5979
5980         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
5981
5982         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
5983
5984         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
5985
5986         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
5987
5988         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
5989         locale.alias.
5990
5991         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
5992
5993         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
5994
5995         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
5996
5997         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
5998         file parsing and set FD_CLOEXEC.
5999
6000 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
6001
6002         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
6003
6004 2011-11-14  Andreas Schwab  <schwab@redhat.com>
6005
6006         * malloc/arena.c (arena_get2): Don't call reused_arena when
6007         _int_new_arena failed.
6008
6009 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
6010
6011         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
6012         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
6013         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
6014         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6015         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6016         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
6017         to compile strcasecmp and strncasecmp.
6018         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
6019         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
6020
6021         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
6022
6023 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
6024
6025         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
6026         locale-defines.sym to gen-as-const-headers.
6027         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
6028         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
6029         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
6030         to compile strcasecmp and strncasecmp.
6031         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
6032         strcasecmp_l and strncasecmp_l.
6033         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
6034         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
6035         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
6036         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
6037         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
6038         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
6039         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
6040         * sysdeps/i386/i686/multiarch/strncase.S: New file.
6041         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
6042         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
6043         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
6044
6045 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
6046
6047         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
6048         result of SYSDEP_GETTIME_CPU to retval.
6049         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
6050         parameter list to macro.  Remove trailing semicolon.  Adjust users.
6051
6052         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
6053         variable.
6054
6055         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
6056         mantissa words.
6057         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
6058
6059         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
6060         from unused variable.
6061
6062         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
6063         DWARF definitions.
6064         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
6065         for assembling.
6066
6067         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
6068         over namespaces.
6069
6070         * sunrpc/rpc_prot.c (rejected): Fix case value.
6071
6072         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
6073         unsigned long long int to avoid warnings in shift.
6074
6075         * posix/regex_internal.c (re_string_reconstruct): Actually use result
6076         of use of trans.
6077         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
6078         variable tmp.
6079
6080         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
6081         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
6082         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
6083
6084         * nis/nis_table.c (nis_list): Use variable of correct type for
6085         result of __follow_path call.
6086
6087 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6088
6089         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
6090         of math functions ceil, trunc, floor, round, and sqrt, when
6091         avaliable on the platform.
6092         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
6093         name clash.
6094         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6095         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
6096         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
6097
6098 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
6099
6100         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
6101         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
6102
6103 2011-11-11  Roland McGrath  <roland@hack.frob.com>
6104
6105         * include/unistd.h: Fix __readlink return type.
6106         Reported by Chris Metcalf <cmetcalf@tilera.com>.
6107
6108 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
6109
6110         * stdlib/ucontext.h: Undo last change for makecontext.
6111
6112 2011-11-11  Andreas Schwab  <schwab@redhat.com>
6113
6114         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
6115
6116         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
6117         * setjmp/setjmp.h: Mark functions as non-leaf.
6118         * setjmp/bits/setjmp2.h: Likewise.
6119         * stdlib/ucontext.h: Likewise.
6120
6121 2011-11-10  Andreas Schwab  <schwab@redhat.com>
6122
6123         * malloc/arena.c (_int_new_arena): Don't increment narenas.
6124         (reused_arena): Don't check arena limit.
6125         (arena_get2): Atomically check arena limit.
6126
6127 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
6128
6129         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
6130         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
6131
6132         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
6133         instructions.
6134
6135 2011-11-07  Andreas Schwab  <schwab@redhat.com>
6136
6137         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
6138         handler when locking.
6139
6140         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
6141         Fix size of allocated buffer.
6142
6143 2011-11-04  Andreas Schwab  <schwab@redhat.com>
6144
6145         [BZ #10103]
6146         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
6147         declarations for long double functions.
6148         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
6149
6150         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
6151
6152 2011-11-03  Andreas Schwab  <schwab@redhat.com>
6153
6154         * nscd/nscd.c (main): Don't start AVC thread until credentials are
6155         installed.
6156
6157         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
6158         is disabled.
6159
6160 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6161
6162         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
6163
6164 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
6165
6166         * include/alloca.h (stackinfo_alloca_round): Define.
6167         (extend_alloca): Use it.
6168         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
6169         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
6170         here.
6171
6172         * scripts/check-local-headers.sh: Ignore libaudit.h.
6173
6174         * nscd/Makefile (extra-objs): Make recursively expanded.
6175
6176 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
6177
6178         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
6179         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6180
6181         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
6182         * posix/tst-rfc3484-2.c: Likewise.
6183         * posix/tst-rfc3484-3.c: Likewise.
6184
6185         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
6186         process_vm_writev.
6187         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
6188         process_vm_writev.
6189         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
6190         process_vm_writev from libc using GLIBC_2.15 version.
6191
6192         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
6193
6194 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
6195
6196         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
6197         stack usage.
6198
6199 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
6200
6201         [BZ #13367]
6202         * nss/getent.c (initgroups_keys): Show error message in case no group
6203         names are given.
6204
6205         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
6206         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
6207         __bump_nl_timestamp.
6208         * nscd/connections (nscd_init): When host database is served open
6209         netlink socket and request notification about configuration changes.
6210         (main_loop_poll): Track netlink file descriptor and bump timestamp
6211         in case data becomes available.
6212         (main_loop_epoll): Likewise.
6213         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
6214         (database_pers_head): Add extra_data fileds.
6215         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
6216         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
6217         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
6218         Adjust caller.
6219         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
6220         in6ai data, call __free_in6ai.
6221         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
6222         Add -DHAVE_NETLINK.
6223         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
6224         interface information.  Reuse previous data if netlink timestamp
6225         is not changed.
6226         (__bump_nl_timestamp): New function.
6227         (__free_in6ai): New function.
6228
6229 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
6230
6231         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
6232         close_not_cancel_no_status here.
6233         (__check_pf): Reorganize code a bit to not call close twice if OOM.
6234
6235 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
6236
6237         [BZ #13276]
6238         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
6239         return value.
6240
6241         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
6242         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
6243         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
6244
6245 2011-07-03  Andreas Jaeger  <aj@suse.de>
6246
6247         [BZ #10709]
6248         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
6249         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
6250         * math/libm-test.inc (sin_test): Add test case.
6251
6252 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
6253
6254         [BZ #13337]
6255         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
6256         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
6257
6258         * elf/chroot_canon.c (chroot_canon): Cleanups.
6259
6260         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
6261
6262         [BZ #13335]
6263         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
6264         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
6265
6266         * string/test-strchr.c: Make usable for strchrnul testing.
6267         * string/test-strchrnul.c: New file.
6268         * string/Makefile (strop-tests): Add strchrnul.
6269
6270         * po/it.po: Update from translation team.
6271         * po/es.po: Likewise.
6272
6273 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
6274
6275         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
6276         the three constants needed as parameters.  Drop the others.
6277         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
6278         __m128i_strloadu_tolower.
6279         Create and initialize variable zero and use it in all the places
6280         where _mm_setzero_si128 was used.
6281
6282         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
6283         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
6284         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
6285         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
6286         anymore.
6287         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
6288         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
6289         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
6290         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
6291         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
6292         __mpranred, __mptan.
6293         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
6294         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
6295         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
6296         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
6297         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
6298         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
6299         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
6300         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
6301         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
6302
6303 2011-10-28  Andreas Schwab  <schwab@redhat.com>
6304
6305         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
6306         redefine if SHARED.
6307         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
6308
6309         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
6310         wide char related routines to wcsmbs subdir.
6311
6312 2011-10-27  Andreas Schwab  <schwab@redhat.com>
6313
6314         [BZ #13344]
6315         * misc/sys/cdefs.h (__THROWNL): Define.
6316         * posix/unistd.h: Use __THREADNL instead of __THREAD
6317         for memory synchronization functions.
6318
6319 2011-10-26  Roland McGrath  <roland@hack.frob.com>
6320
6321         [BZ #13349]
6322         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
6323         doesn't exist.
6324         * manual/stdio.texi (Obstack Streams): Node removed.
6325
6326 2011-10-26  Andreas Schwab  <schwab@redhat.com>
6327
6328         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
6329         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6330         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6331
6332         * math/math_private.h (math_force_eval): Allow non-addressable
6333         arguments.
6334         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
6335
6336 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6337
6338         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
6339         file is not needed.
6340
6341         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
6342         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
6343         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6344         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6345         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6346         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6347         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6348         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
6349         Add AVX variants.
6350         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
6351         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
6352         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
6353         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
6354         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
6355         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
6356         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
6357         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
6358         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
6359         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
6360         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
6361         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
6362         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
6363         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
6364         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
6365         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
6366         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
6367         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
6368         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
6369
6370         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
6371         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
6372
6373         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
6374         place.  Use VEX encoding when compiling for AVX.
6375
6376 2011-10-25  Andreas Schwab  <schwab@redhat.com>
6377
6378         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
6379         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
6380
6381         * string/test-strchr.c (do_test): Don't generate NUL bytes.
6382
6383 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6384
6385         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
6386         useless if() expression.
6387         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6388         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6389         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6390         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6391         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6392         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6393         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6394         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6395         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6396         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6397         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6398         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6399         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
6400         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6401         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
6402         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6403         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6404         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6405         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6406
6407         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
6408
6409 2011-10-25  Andreas Schwab  <schwab@redhat.com>
6410
6411         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
6412         condition.
6413         * elf/dl-fini.c (_dl_sort_fini): Likewise.
6414
6415 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6416
6417         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
6418         .text section.  Avoid duplicate constants.
6419         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6420         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6421         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6422         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6423         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6424         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6425         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6426         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6427         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
6428         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
6429         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
6430         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6431         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
6432         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
6433         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
6434         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
6435         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
6436         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
6437         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6438         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6439         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6440         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6441         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6442         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
6443         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
6444         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
6445         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
6446         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
6447         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
6448         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
6449         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
6450         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
6451         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
6452         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
6453         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
6454         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
6455         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
6456         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
6457         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
6458         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
6459         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
6460         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
6461         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
6462         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
6463         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
6464
6465 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
6466
6467         * sysdeps/x86_64/dla.h: Move to ...
6468         * sysdeps/x86_64/fpu/dla.h: ...here.
6469         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
6470         situations.  Use __builtin_fma only for gcc 4.6 and up.
6471
6472         * config.make.in: Add have-mfma4 entry.
6473         * configure.in: Substitute libc_cv_cc_fma4.
6474         * math/Makefile (dbl-only-routines): Add sincostab.
6475         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
6476         Use __sincostab not sincos.
6477         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
6478         name is a macro.
6479         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6480         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6481         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6482         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
6483         using __copysign.
6484         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
6485         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
6486         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
6487         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
6488         and __inv.
6489         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
6490         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
6491         __copysign.
6492         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
6493         define aliases when function name is a macro.
6494         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
6495         sysdeps/ieee754/dbl-64/sincos.tbl.
6496         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
6497         fma4-enabled routines.
6498         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
6499         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
6500         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
6501         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
6502         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
6503         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
6504         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
6505         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
6506         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
6507         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
6508         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
6509         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
6510         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
6511         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
6512         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
6513         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
6514         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
6515         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
6516         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
6517         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
6518         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
6519         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
6520         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
6521         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
6522         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
6523         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
6524         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
6525         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
6526         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
6527         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
6528
6529         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
6530         rename.
6531         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6532         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6533         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6534         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6535         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6536         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6537         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6538         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6539
6540 2011-10-24  Andreas Schwab  <schwab@redhat.com>
6541
6542         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
6543
6544 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6545
6546         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
6547
6548         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
6549         prediction.
6550         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
6551
6552         * string/strnlen.c: Don't define STRNLEN, reverse logic.
6553         Remove unused variable magic_bits.
6554         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
6555
6556         * string/strnlen.c: Define and use STRNLEN macro.
6557         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
6558         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
6559         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
6560         * wcsmbs/wcslen.c: Define and use WCSLEN.
6561         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
6562         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
6563         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
6564         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
6565         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
6566         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
6567         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6568
6569 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6570
6571         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6572         strnlen-sse2-no-bsf.
6573         Rename strlen-no-bsf to strlen-sse2-no-bsf.
6574         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
6575         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
6576         Add strnlen support.
6577         (USE_AS_STRNLEN): New macro.
6578         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
6579         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
6580         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
6581         * sysdeps/x86_64/wcslen.S: New file.
6582
6583 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
6584
6585         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
6586         XMM-moves are used for copying on small sizes.
6587
6588 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6589
6590         * wcsmbs/Makefile (strop-tests): Add wcschr.
6591         * wcsmbs/test-wcschr.c: New file.
6592         * string/test-strchr.c: Update.
6593         Add wcschr support.
6594         (WIDE): New macro.
6595
6596 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6597
6598         * wcsmbs/Makefile (strop-tests): Add wcslen.
6599         * wcsmbs/test-wcslen.c: New file.
6600         * string/test-strlen.c: Update.
6601         Add wcslen support.
6602         (WIDE): New macro.
6603
6604 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6605
6606         * po/it.po: Update from translation team.
6607
6608 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6609
6610         * sysdeps/x86_64/wcscmp.S: Update.
6611         Fix wrong comparison semantics.
6612         wcscmp shall use signed comparison not unsigned.
6613         Don't use substraction to avoid overflow bug.
6614         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
6615         * wcsmbc/wcscmp.c: Likewise.
6616         * string/test-strcmp.c: Likewise.
6617         Add new tests to check cases with negative values.
6618
6619 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6620
6621         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
6622         * sysdeps/x86_64/dla.h: ...here.  New file.
6623         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
6624         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6625         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6626         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6627         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6628         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6629         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6630         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6631         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6632
6633 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
6634
6635         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
6636         __ynl_finite aliases.
6637
6638 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6639
6640         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6641
6642         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
6643         define DLA_FMA.
6644         [DLA_FMA] (EMULV): Use DLA_FMA.
6645         [DLA_FMA] (MUL12): Use EMULV.
6646         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
6647         that are not needed.
6648         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6649         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6650         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6651         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6652         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6653         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6654         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6655
6656 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
6657
6658         * math/s_nan.c: Undef __nan.
6659         * math/s_nanf.c: Undef __nanf.
6660         * math/s_nanl.c: Undef __nanl.
6661         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
6662         "math_private.h".
6663
6664 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6665
6666         * math/s_catan.c: Add branch predictions.
6667         * math/s_catanf.c: Likewise.
6668         * math/s_catanh.c: Likewise.
6669         * math/s_catanhf.c: Likewise.
6670         * math/s_catanhl.c: Likewise.
6671         * math/s_catanl.c: Likewise.
6672         * math/s_cexp.c: Likewise.
6673         * math/s_cexpf.c: Likewise.
6674         * math/s_cexpl.c: Likewise.
6675         * math/s_clog.c: Likewise.
6676         * math/s_clog10.c: Likewise.
6677         * math/s_clog10f.c: Likewise.
6678         * math/s_clog10l.c: Likewise.
6679         * math/s_clogf.c: Likewise.
6680         * math/s_clogl.c: Likewise.
6681         * math/s_csqrt.c: Likewise.
6682         * math/s_csqrtf.c: Likewise.
6683         * math/s_csqrtl.c: Likewise.
6684         * math/s_ctanf.c: Likewise.
6685         * math/s_ctanh.c: Likewise.
6686         * math/s_ctanhf.c: Likewise.
6687         * math/s_ctanhl.c: Likewise.
6688         * math/s_ctanl.c: Likewise.
6689
6690         * math/math_private.h: Define __nan, __nanf, __nanl.
6691         * math/s_cacosh.c: Include <math_private.h>.
6692         * math/s_cacoshl.c: Likewise.
6693         * math/s_casinh.c: Likewise.
6694         * math/s_casinhf.c: Likewise.
6695         * math/s_casinhl.c: Likewise.
6696         * math/s_ccos.c: Rely entire on ccosh.
6697         * math/s_ccosf.c: Rely entire on ccoshf.
6698         * math/s_ccosl.c: Rely entirely on ccoshl.
6699         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
6700         Remove tests for FE_INVALID.
6701         * math/s_ccoshf.c: Likewise.
6702         * math/s_ccoshl.c: Likewise.
6703         * math/s_csin.c: Likewise.
6704         * math/s_csinf.c: Likewise.
6705         * math/s_csinh.c Likewise.
6706         * math/s_csinhf.c: Likewise.
6707         * math/s_csinhl.c: Likewise.
6708         * math/s_csinl.c: Likewise.
6709         * math/s_ctan.c: Likewise.
6710         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
6711         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
6712         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
6713
6714 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
6715
6716         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
6717         compilation problems.
6718
6719         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
6720         __builtin_expect.
6721
6722 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
6723
6724         * sysdeps/i386/configure.in: Test for -mfma4 option.
6725         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
6726         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
6727         COMMON_CPUID_INDEX_80000001.
6728         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
6729         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
6730         use it if FMA3 is not supported.
6731         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
6732
6733         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
6734         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
6735
6736 2011-10-20  Andreas Schwab  <schwab@redhat.com>
6737
6738         [BZ #12892]
6739         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
6740         it would create a cycle with a link time dependency.
6741
6742 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
6743
6744         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
6745         instruction.
6746         * string/Makefile (strop-tests): Add rawmemchr.
6747         * string/test-rawmemchr.c: New file.
6748
6749         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
6750         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
6751         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
6752         when compiling str{,n}casecmp and when AVX is available.  Hook up
6753         new optimized code in initializers.
6754
6755 2011-10-19  Andreas Schwab  <schwab@redhat.com>
6756
6757         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
6758         __feraiseexcept instead of feraiseexcept.
6759
6760 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
6761
6762         * math/math_private.h: Define defaults for libc_fetestexcept and
6763         libc_feupdateenv.
6764         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
6765         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6766         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6767         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6768         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6769         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6770         libc_fetestexcept and libc_feupdateenv.
6771
6772         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
6773         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
6774         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
6775         * sysdeps/x86_64/fpu/math_private.h: Define special version of
6776         libc_feholdexcept_setround.
6777
6778         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
6779         Add s_nearbyint-c and s_nearbyintf-c.
6780         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
6781         nearbyintf inlines.
6782         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
6783         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
6784         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
6785         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
6786
6787         * math/math_private.h: Define defaults for libc_fegetround,
6788         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
6789         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
6790         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
6791         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
6792         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
6793         standard functions.
6794         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6795         Remove comments and hacks for old compiler versions.
6796         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6797         libc_fegetround, libc_fesetround, libc_feholdexcept, and
6798         libc_feholdexceptl.
6799
6800 2011-10-18  Andreas Schwab  <schwab@redhat.com>
6801
6802         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
6803         (__feraiseexcept_renamed): Add __NTH.
6804         (feraiseexcept): Add __NTH.  Rename local variables to fix
6805         namespace violations.
6806
6807 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
6808
6809         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
6810
6811         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
6812
6813         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
6814         recently added interfaces.
6815         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6816
6817         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
6818         about macro parameter expansion.
6819
6820         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
6821         __NO_MATH_INLINES is defined.  Cleanups.
6822
6823         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
6824         and __floorf is target has SSE4.1.
6825         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
6826         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
6827         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
6828         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
6829
6830         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
6831         name.
6832         (floorf): Likewise.
6833
6834         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
6835
6836 2011-10-17  Andreas Schwab  <schwab@redhat.com>
6837
6838         * misc/sys/cdefs.h: Fix last change.
6839
6840         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
6841         database lookup.
6842
6843 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
6844
6845         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
6846
6847         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
6848         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6849         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6850         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6851         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6852         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6853         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6854         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6855         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6856         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
6857         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
6858         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
6859         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
6860         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
6861         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
6862         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
6863         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
6864         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
6865         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
6866         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
6867         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
6868         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
6869
6870         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
6871         ceil, ceilf, floor, floorf.
6872
6873         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
6874         Perform IRELATIVE relocations last.
6875
6876         * elf/do-rel.h: Add another parameter nrelative, replacing the
6877         local variable with the same name.  Change name of the function
6878         to end in Rel or Rela (uppercase).
6879         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
6880         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
6881         elf_dynamic_do_##reloc function.
6882
6883 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6884
6885         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
6886         is sufficient, at least on modern CPUs.
6887
6888         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
6889
6890         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
6891         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
6892
6893         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
6894         __expl_finite.
6895         * math/bits/math-finite.h: Add entries for exp.
6896         * math/e_expl.c: Add __*_finite alias.
6897         * sysdeps/i386/fpu/e_exp.S: Likewise.
6898         * sysdeps/i386/fpu/e_expf.S: Likewise.
6899         * sysdeps/i386/fpu/e_expl.c: Likewise.
6900         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6901         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6902         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6903         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6904         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
6905         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6906         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6907
6908         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
6909         is sufficient, at least on modern CPUs.
6910
6911         * ctype/ctype-info.c (__ctype_init): Define.
6912         * include/ctype.h (__ctype_init): Declare.
6913         (__ctype_b_loc): The variable is always initialized.
6914         (__ctype_toupper_loc): Likewise.
6915         (__ctype_tolower_loc): Likewise.
6916         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
6917         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
6918
6919 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
6920
6921         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
6922
6923         * configure.in: Also look in $cxxmachine/include for C++ system
6924         headers.
6925
6926 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6927
6928         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
6929         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
6930         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
6931         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
6932         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
6933         (USE_AS_WMEMCMP): New macro.
6934         Fixing indents.
6935         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
6936         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
6937         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
6938         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
6939         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6940         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
6941         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
6942         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
6943         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
6944         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
6945         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
6946         (USE_AS_WMEMCMP): New macro.
6947         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
6948         * sysdeps/string/test-memcmp.c: Update.
6949         Fix simple_wmemcmp.
6950         Add new tests.
6951         * wcsmbs/wmemcmp.c: Update.
6952         (WMEMCMP): New macro.
6953         Fix overflow bug.
6954
6955 2011-10-12  Andreas Jaeger  <aj@suse.de>
6956
6957         [BZ #13268]
6958         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
6959
6960 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6961
6962         * libio/iofwide.c (do_length): Avoid warning.
6963
6964         * ctype/ctype.h (__isctype_f): Add missing __THROW.
6965
6966 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
6967
6968         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
6969
6970         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
6971         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
6972         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
6973         * sysdeps/i386/i686/fpu/e_log.S: New file.
6974         * sysdeps/i386/i686/fpu/e_logf.S: New file.
6975         * sysdeps/i386/i686/fpu/e_logl.S: New file.
6976
6977         * ctype/ctype.h: Add support for inlined isXXX functions when
6978         compiling C++ code.
6979
6980 2011-10-14  Andreas Schwab  <schwab@redhat.com>
6981
6982         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6983
6984         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
6985
6986 2011-10-13  Roland McGrath  <roland@hack.frob.com>
6987
6988         [BZ #13291]
6989         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
6990
6991 2011-10-13  Andreas Schwab  <schwab@redhat.com>
6992
6993         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
6994         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
6995         feraiseexcept.
6996
6997         * sysdeps/x86_64/memrchr.S: Check for zero size.
6998
6999         * string/stratcliff.c: Add memrchr tests.
7000
7001 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7002
7003         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7004         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
7005         rawmemchr-sse2 rawmemchr-sse2-bsf.
7006         * sysdeps/i386/i686/multiarch/memchr.S: New file.
7007         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
7008         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
7009         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
7010         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
7011         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
7012         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
7013         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
7014         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
7015         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
7016         * string/memrchr.c (MEMRCHR): New macro.
7017
7018 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
7019
7020         Add integration with gcc's -ffinite-math-only and optimize wrapper
7021         functions in libm.
7022         * Versions.def: Define GLIBC_2.15 version for libm.
7023         * math/Makefile (headers): Add bits/math-finite.h.
7024         * math/bits/math-finite.h: New file.
7025         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
7026         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
7027         * math/e_acoshl.c: Add __*_finite alias.
7028         * math/e_acosl.c: Likewise.
7029         * math/e_asinl.c: Likewise.
7030         * math/e_atan2l.c: Likewise.
7031         * math/e_atanhl.c: Likewise.
7032         * math/e_coshl.c: Likewise.
7033         * math/e_exp10.c: Likewise.
7034         * math/e_exp10f.c: Likewise.
7035         * math/e_exp10l.c: Likewise.
7036         * math/e_exp2l.c: Likewise.
7037         * math/e_fmodl.c: Likewise.
7038         * math/e_gammal_r.c: Likewise.
7039         * math/e_hypotl.c: Likewise.
7040         * math/e_j0l.c: Likewise.
7041         * math/e_j1l.c: Likewise.
7042         * math/e_jnl.c: Likewise.
7043         * math/e_lgammal_r.c: Likewise.
7044         * math/e_log10l.c: Likewise.
7045         * math/e_log2l.c: Likewise.
7046         * math/e_logl.c: Likewise.
7047         * math/e_powl.c: Likewise.
7048         * math/e_sinhl.c: Likewise.
7049         * math/e_sqrtl.c: Likewise.
7050         * math/e_scalb.c: Completely rewritten and optimized.
7051         * math/e_scalbf.c: Likewise.
7052         * math/e_scalbl.c: Likewise.
7053         * math/w_acos.c: Likewise.
7054         * math/w_acosf.c: Likewise.
7055         * math/w_acosl.c: Likewise.
7056         * math/w_acosh.c: Likewise.
7057         * math/w_acoshf.c: Likewise.
7058         * math/w_acoshl.c: Likewise.
7059         * math/w_asin.c: Likewise.
7060         * math/w_asinf.c: Likewise.
7061         * math/w_asinl.c: Likewise.
7062         * math/w_atan2.c: Likewise.
7063         * math/w_atan2f.c: Likewise.
7064         * math/w_atan2l.c: Likewise.
7065         * math/w_atanh.c: Likewise.
7066         * math/w_atanhf.c: Likewise.
7067         * math/w_atanhl.c: Likewise.
7068         * math/w_exp10.c: Likewise.
7069         * math/w_exp10f.c: Likewise.
7070         * math/w_exp10l.c: Likewise.
7071         * math/w_fmod.c: Likewise.
7072         * math/w_fmodf.c: Likewise.
7073         * math/w_fmodl.c: Likewise.
7074         * math/w_j0.c: Likewise.
7075         * math/w_j0f.c: Likewise.
7076         * math/w_j0l.c: Likewise.
7077         * math/w_j1.c: Likewise.
7078         * math/w_j1f.c: Likewise.
7079         * math/w_j1l.c: Likewise.
7080         * math/w_jn.c: Likewise.
7081         * math/w_jnf.c: Likewise.
7082         * math/w_log.c: Likewise.
7083         * math/w_logf.c: Likewise.
7084         * math/w_logl.c: Likewise.
7085         * math/w_log10.c: Likewise.
7086         * math/w_log10f.c: Likewise.
7087         * math/w_log10l.c: Likewise.
7088         * math/w_log2.c: Likewise.
7089         * math/w_log2f.c: Likewise.
7090         * math/w_log2l.c: Likewise.
7091         * math/w_pow.c: Likewise.
7092         * math/w_powf.c: Likewise.
7093         * math/w_powl.c: Likewise.
7094         * math/w_remainder.c: Likewise.
7095         * math/w_remainderf.c: Likewise.
7096         * math/w_remainderl.c: Likewise.
7097         * math/w_scalb.c: Likewise.
7098         * math/w_scalbf.c: Likewise.
7099         * math/w_scalbl.c: Likewise.
7100         * math/w_sqrt.c: Likewise.
7101         * math/w_sqrtf.c: Likewise.
7102         * math/w_sqrtl.c: Likewise.
7103         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
7104         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
7105         used.
7106         * math/math_private.h: Declare __kernel_standard_f.
7107         * math/w_cosh.c: Remove cruft and optimize a bit.
7108         * math/w_coshf.c: Likewise.
7109         * math/w_coshl.c: Likewise.
7110         * math/w_exp2.c: Likewise.
7111         * math/w_exp2f.c: Likewise.
7112         * math/w_exp2l.c: Likewise.
7113         * math/w_hypot.c: Likewise.
7114         * math/w_hypotf.c: Likewise.
7115         * math/w_hypotl.c: Likewise.
7116         * math/w_lgamma.c: Likewise.
7117         * math/w_lgamma_r.c: Likewise.
7118         * math/w_lgammaf.c: Likewise.
7119         * math/w_lgammaf_r.c: Likewise.
7120         * math/w_lgammal.c: Likewise.
7121         * math/w_lgammal_r.c: Likewise.
7122         * math/w_sinh.c: Likewise.
7123         * math/w_sinhf.c: Likewise.
7124         * math/w_sinhl.c: Likewise.
7125         * math/w_tgamma.c: Likewise.
7126         * math/w_tgammaf.c: Likewise.
7127         * math/w_tgammal.c: Likewise.
7128         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
7129         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7130         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
7131         Minor optimizations.  Pretty printing.  Remove cruft.
7132         * sysdeps/i386/fpu/e_acosf.S: Likewise.
7133         * sysdeps/i386/fpu/e_acosh.S: Likewise.
7134         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
7135         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
7136         * sysdeps/i386/fpu/e_acosl.c: Likewise.
7137         * sysdeps/i386/fpu/e_asin.S: Likewise.
7138         * sysdeps/i386/fpu/e_asinf.S: Likewise.
7139         * sysdeps/i386/fpu/e_atan2.S: Likewise.
7140         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
7141         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
7142         * sysdeps/i386/fpu/e_atanh.S: Likewise.
7143         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
7144         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
7145         * sysdeps/i386/fpu/e_exp10.S: Likewise.
7146         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
7147         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
7148         * sysdeps/i386/fpu/e_exp2.S: Likewise.
7149         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
7150         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
7151         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7152         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
7153         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7154         * sysdeps/i386/fpu/e_hypot.S: Likewise.
7155         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
7156         * sysdeps/i386/fpu/e_log.S: Likewise.
7157         * sysdeps/i386/fpu/e_log10.S: Likewise.
7158         * sysdeps/i386/fpu/e_log10f.S: Likewise.
7159         * sysdeps/i386/fpu/e_log10l.S: Likewise.
7160         * sysdeps/i386/fpu/e_log2.S: Likewise.
7161         * sysdeps/i386/fpu/e_log2f.S: Likewise.
7162         * sysdeps/i386/fpu/e_log2l.S: Likewise.
7163         * sysdeps/i386/fpu/e_logf.S: Likewise.
7164         * sysdeps/i386/fpu/e_logl.S: Likewise.
7165         * sysdeps/i386/fpu/e_pow.S: Likewise.
7166         * sysdeps/i386/fpu/e_powf.S: Likewise.
7167         * sysdeps/i386/fpu/e_powl.S: Likewise.
7168         * sysdeps/i386/fpu/e_remainder.S: Likewise.
7169         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
7170         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
7171         * sysdeps/i386/fpu/e_scalb.S: Likewise.
7172         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
7173         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
7174         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
7175         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
7176         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
7177         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
7178         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7179         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7180         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
7181         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7182         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
7183         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7184         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
7185         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7186         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
7187         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7188         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
7189         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7190         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
7191         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
7192         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7193         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7194         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
7195         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7196         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7197         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
7198         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
7199         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7200         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7201         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
7202         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
7203         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
7204         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
7205         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7206         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
7207         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7208         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7209         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7210         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7211         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
7212         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
7213         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
7214         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
7215         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
7216         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
7217         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
7218         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
7219         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
7220         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
7221         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7222         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
7223         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
7224         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
7225         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
7226         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7227         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
7228         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
7229         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7230         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7231         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
7232         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
7233         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
7234         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
7235         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
7236         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
7237         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
7238         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
7239         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7240         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7241         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
7242         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
7243         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
7244         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
7245         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7246         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
7247         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
7248         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
7249         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
7250         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
7251         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
7252         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7253         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
7254         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
7255         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7256         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
7257         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7258         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
7259         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7260         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7261         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7262         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
7263         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7264         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7265         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
7266         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
7267         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7268         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
7269         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
7270         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7271         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7272         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
7273         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
7274         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7275         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7276         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7277         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
7278         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
7279         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
7280         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
7281         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7282         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7283         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7284         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7285         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
7286         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7287         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
7288         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
7289         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
7290         (__isnanf): Likewise.
7291         (__isinf_ns): Likewise.
7292         (__isinf_nsf): Likewise.
7293         (__finite): Likewise.
7294         (__finitef): Likewise.
7295         (__ieee754_sqrt): Define as macro.
7296         (__ieee754_sqrtf): Define as macro.
7297         (__ieee754_sqrtl): Define as macro.
7298         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
7299         inlined copy.
7300         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
7301         __FINITE_MATH_ONLY__ consistent.
7302         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
7303
7304 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
7305
7306         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
7307         of rawmemchr.
7308
7309         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
7310
7311 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
7312
7313         * po/ja.po: Update from translation team.
7314
7315 2011-10-08  Roland McGrath  <roland@hack.frob.com>
7316
7317         * locale/programs/locarchive.c (prepare_address_space): New function.
7318         (create_archive, enlarge_archive, open_archive): Use it.
7319
7320         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
7321         inside [SHARED], where it is used.
7322
7323         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
7324
7325         * nss/getent.c (netgroup_keys): Remove unused variable.
7326         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
7327
7328 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
7329
7330         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
7331         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
7332         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
7333         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
7334         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
7335         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
7336         * math/Makefile (libm-calls): Add s_isinf_ns.
7337         * math/divtc3.c: Use __isinf_nsl instead of isinf.
7338         * math/multc3.c: Likewise.
7339         * math/s_casin.c: Likewise.
7340         * math/s_casinf.c: Likewise.
7341         * math/s_casinl.c: Likewise.
7342         * math/s_ccos.c: Likewise.
7343         * math/s_ccosf.c: Likewise.
7344         * math/s_ccosl.c: Likewise.
7345         * math/s_ctan.c: Likewise.
7346         * math/s_ctanf.c: Likewise.
7347         * math/s_ctanh.c: Likewise.
7348         * math/s_ctanhf.c: Likewise.
7349         * math/s_ctanhl.c: Likewise.
7350         * math/s_ctanl.c: Likewise.
7351         * math/w_fmod.c: Likewise.
7352         * math/w_fmodf.c: Likewise.
7353         * math/w_fmodl.c: Likewise.
7354         * math/w_remainder.c: Likewise.
7355         * math/w_remainderf.c: Likewise.
7356         * math/w_remainderl.c: Likewise.
7357         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
7358         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
7359         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
7360         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
7361         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
7362         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
7363         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
7364         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
7365
7366         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
7367         of the number.
7368         * stdio-common/printf_fphex.c: Likewise.
7369         * stdio-common/printf_size.c: Likewise.
7370
7371         * math/e_exp10.c: Include math_private.h using <...> not "...".
7372         * math/e_exp10f.c: Likewise.
7373         * math/e_exp10l.c: Likewise.
7374         * math/e_exp2l.c: Likewise.
7375         * math/e_j0l.c: Likewise.
7376         * math/e_j1l.c: Likewise.
7377         * math/e_jnl.c: Likewise.
7378         * math/e_lgammal_r.c: Likewise.
7379         * math/e_rem_pio2l.c: Likewise.
7380         * math/e_scalb.c: Likewise.
7381         * math/e_scalbf.c: Likewise.
7382         * math/e_scalbl.c: Likewise.
7383         * math/k_cosl.c: Likewise.
7384         * math/k_sinl.c: Likewise.
7385         * math/k_tanl.c: Likewise.
7386         * math/s_cacoshf.c: Likewise.
7387         * math/s_catan.c: Likewise.
7388         * math/s_catanf.c: Likewise.
7389         * math/s_catanh.c: Likewise.
7390         * math/s_catanhf.c: Likewise.
7391         * math/s_catanhl.c: Likewise.
7392         * math/s_catanl.c: Likewise.
7393         * math/s_ccosh.c: Likewise.
7394         * math/s_ccoshf.c: Likewise.
7395         * math/s_ccoshl.c: Likewise.
7396         * math/s_cexp.c: Likewise.
7397         * math/s_cexpf.c: Likewise.
7398         * math/s_cexpl.c: Likewise.
7399         * math/s_clog.c: Likewise.
7400         * math/s_clog10.c: Likewise.
7401         * math/s_clog10f.c: Likewise.
7402         * math/s_clog10l.c: Likewise.
7403         * math/s_clogf.c: Likewise.
7404         * math/s_clogl.c: Likewise.
7405         * math/s_csin.c: Likewise.
7406         * math/s_csinf.c: Likewise.
7407         * math/s_csinh.c: Likewise.
7408         * math/s_csinhf.c: Likewise.
7409         * math/s_csinhl.c: Likewise.
7410         * math/s_csinl.c: Likewise.
7411         * math/s_csqrt.c: Likewise.
7412         * math/s_csqrtf.c: Likewise.
7413         * math/s_csqrtl.c: Likewise.
7414         * math/s_ctan.c: Likewise.
7415         * math/s_ctanf.c: Likewise.
7416         * math/s_ctanh.c: Likewise.
7417         * math/s_ctanhf.c: Likewise.
7418         * math/s_ctanhl.c: Likewise.
7419         * math/s_ctanl.c: Likewise.
7420         * math/s_ldexp.c: Likewise.
7421         * math/s_ldexpf.c: Likewise.
7422         * math/s_ldexpl.c: Likewise.
7423         * math/s_significand.c: Likewise.
7424         * math/s_significandf.c: Likewise.
7425         * math/s_significandl.c: Likewise.
7426         * math/w_acos.c: Likewise.
7427         * math/w_acosf.c: Likewise.
7428         * math/w_acosh.c: Likewise.
7429         * math/w_acoshf.c: Likewise.
7430         * math/w_acoshl.c: Likewise.
7431         * math/w_acosl.c: Likewise.
7432         * math/w_asin.c: Likewise.
7433         * math/w_asinf.c: Likewise.
7434         * math/w_asinl.c: Likewise.
7435         * math/w_atan2.c: Likewise.
7436         * math/w_atan2f.c: Likewise.
7437         * math/w_atan2l.c: Likewise.
7438         * math/w_atanh.c: Likewise.
7439         * math/w_atanhf.c: Likewise.
7440         * math/w_atanhl.c: Likewise.
7441         * math/w_cosh.c: Likewise.
7442         * math/w_coshf.c: Likewise.
7443         * math/w_coshl.c: Likewise.
7444         * math/w_dremf.c: Likewise.
7445         * math/w_exp10.c: Likewise.
7446         * math/w_exp10f.c: Likewise.
7447         * math/w_exp10l.c: Likewise.
7448         * math/w_exp2.c: Likewise.
7449         * math/w_exp2f.c: Likewise.
7450         * math/w_fmod.c: Likewise.
7451         * math/w_fmodf.c: Likewise.
7452         * math/w_fmodl.c: Likewise.
7453         * math/w_hypot.c: Likewise.
7454         * math/w_hypotf.c: Likewise.
7455         * math/w_hypotl.c: Likewise.
7456         * math/w_j0.c: Likewise.
7457         * math/w_j0f.c: Likewise.
7458         * math/w_j0l.c: Likewise.
7459         * math/w_j1.c: Likewise.
7460         * math/w_j1f.c: Likewise.
7461         * math/w_j1l.c: Likewise.
7462         * math/w_jn.c: Likewise.
7463         * math/w_jnf.c: Likewise.
7464         * math/w_jnl.c: Likewise.
7465         * math/w_lgamma.c: Likewise.
7466         * math/w_lgamma_r.c: Likewise.
7467         * math/w_lgammaf.c: Likewise.
7468         * math/w_lgammaf_r.c: Likewise.
7469         * math/w_lgammal.c: Likewise.
7470         * math/w_lgammal_r.c: Likewise.
7471         * math/w_log.c: Likewise.
7472         * math/w_log10.c: Likewise.
7473         * math/w_log10f.c: Likewise.
7474         * math/w_log10l.c: Likewise.
7475         * math/w_log2.c: Likewise.
7476         * math/w_log2f.c: Likewise.
7477         * math/w_log2l.c: Likewise.
7478         * math/w_logf.c: Likewise.
7479         * math/w_logl.c: Likewise.
7480         * math/w_pow.c: Likewise.
7481         * math/w_powf.c: Likewise.
7482         * math/w_powl.c: Likewise.
7483         * math/w_remainder.c: Likewise.
7484         * math/w_remainderf.c: Likewise.
7485         * math/w_remainderl.c: Likewise.
7486         * math/w_scalb.c: Likewise.
7487         * math/w_scalbf.c: Likewise.
7488         * math/w_scalbl.c: Likewise.
7489         * math/w_sinh.c: Likewise.
7490         * math/w_sinhf.c: Likewise.
7491         * math/w_sinhl.c: Likewise.
7492         * math/w_sqrt.c: Likewise.
7493         * math/w_sqrtf.c: Likewise.
7494         * math/w_sqrtl.c: Likewise.
7495         * math/w_tgamma.c: Likewise.
7496         * math/w_tgammaf.c: Likewise.
7497         * math/w_tgammal.c: Likewise.
7498
7499         * po/ja.po: Update from translation team.
7500
7501 2011-09-29  Andreas Jaeger  <aj@suse.de>
7502
7503         [BZ #13179]
7504         * sunrpc/netname.c (netname2host): Fix logic.
7505
7506         [BZ #6779]
7507         [BZ #6783]
7508         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
7509         correctly.
7510         * math/w_remainder.c (__remainder): Likewise.
7511         * math/w_remainderf.c (__remainderf): Likewise.
7512         * math/libm-test.inc (remainder_test): Add test cases.
7513
7514 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7515
7516         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
7517         sdiv_qrnnd.
7518
7519 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7520
7521         * string/test-memcmp.c: Avoid unncessary #defines.
7522         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
7523
7524 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7525
7526         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
7527         Use new sse2 version for core i3 - i7 as it's faster
7528         than sse42 version.
7529         (bit_Prefer_PMINUB_for_stringop): New.
7530         * sysdeps/x86_64/rawmemchr.S: Update.
7531         Replace with faster SSE2 version.
7532         * sysdeps/x86_64/memrchr.S: New file.
7533         * sysdeps/x86_64/memchr.S: Update.
7534         Replace with faster SSE2 version.
7535
7536 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
7537
7538         * elf/dl-load.c (lose): Add cast to avoid warning.
7539
7540 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7541
7542         * po/ca.po: Update from translation team.
7543
7544         * inet/getnetgrent_r.c: Hook up nscd.
7545         * nscd/Makefile (routines): Add nscd_netgroup.
7546         (nscd-modules): Add netgroupcache.
7547         (CFLAGS-netgroupcache.c): Define.
7548         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
7549         (cache_search): Add const to second parameter.
7550         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
7551         INNETGR.
7552         (dbs): Add netgrdb entry.
7553         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
7554         (verify_persistent_db): Handle netgrdb.
7555         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
7556         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
7557         GETFDNETGR.
7558         (netgroup_response_header): Define.
7559         (innetgroup_response_header): Define.
7560         (datahead): Add netgroup_response_header and innetgroup_response_header
7561         elements.
7562         * nscd/nscd.conf: Add entries for netgroup cache.
7563         * nscd/nscd.h (dbtype): Add netgrdb.
7564         (_PATH_NSCD_NETGROUP_DB): Define.
7565         (netgroup_iov_disabled): Declare.
7566         (xmalloc, xcalloc, xrealloc): Move declarations here.
7567         (cache_search): Adjust prototype.
7568         Add netgroup-related prototypes.
7569         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
7570         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
7571         (__nscd_innetgr): Declare.
7572         * nscd/selinux.c (perms): Use access_vector_t as element type and
7573         add netgroup-related initializers.
7574         * nscd/netgroupcache.c: New file.
7575         * nscd/nscd_netgroup.c: New file.
7576         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
7577         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
7578         For four parameters use innetgr.
7579         * nss/nss_files/files-init.c: Add definition and callback for netgr.
7580         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
7581         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
7582         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
7583
7584         * nscd/connections.c (register_traced_file): Don't register file
7585         for disabled databases.
7586
7587 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
7588
7589         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
7590
7591         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
7592         from tree and freeing node.
7593
7594 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
7595
7596         * nss/nsswitch.c (__nss_database_lookup): Handle
7597         nss_parse_service_list out of memory case.
7598
7599 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
7600
7601         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
7602         out of memory case.
7603
7604 2011-10-04  Andreas Schwab  <schwab@redhat.com>
7605
7606         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
7607         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
7608         pass it down.
7609         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
7610         elf_machine_rela, elf_machine_lazy_rel.
7611         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
7612         (ELF_DYNAMIC_DO_REL): Likewise.
7613         (ELF_DYNAMIC_DO_RELA): Likewise.
7614         (ELF_DYNAMIC_RELOCATE): Likewise.
7615         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
7616         to ELF_DYNAMIC_DO_REL.
7617         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
7618         (dl_main): In trace mode always set __RTLD_NOIFUNC.
7619         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
7620         elf_machine_rela.
7621         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
7622         skip_ifunc, don't call ifunc function if non-zero.
7623         (elf_machine_rela): Likewise.
7624         (elf_machine_lazy_rel): Likewise.
7625         (elf_machine_lazy_rela): Likewise.
7626         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
7627         (elf_machine_lazy_rel): Likewise.
7628         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
7629         Likewise.
7630         (elf_machine_lazy_rel): Likewise.
7631         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7632         Likewise.
7633         (elf_machine_lazy_rel): Likewise.
7634         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
7635         (elf_machine_lazy_rel): Likewise.
7636         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
7637         (elf_machine_lazy_rel): Likewise.
7638         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7639         (elf_machine_lazy_rel): Likewise.
7640         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7641         (elf_machine_lazy_rel): Likewise.
7642         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7643         (elf_machine_lazy_rel): Likewise.
7644         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7645         (elf_machine_lazy_rel): Likewise.
7646
7647 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
7648
7649         * nss/nss_files/files-init.c (_nss_files_init): Use static
7650         initialization for all the *_traced_file variables.
7651
7652 2011-09-28  Andreas Schwab  <schwab@redhat.com>
7653
7654         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7655
7656 2011-09-27  Roland McGrath  <roland@hack.frob.com>
7657
7658         [BZ #13226]
7659         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
7660
7661 2011-09-27  Andreas Schwab  <schwab@redhat.com>
7662
7663         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7664         Reread the line before reparsing it.
7665
7666 2011-09-26  Andreas Schwab  <schwab@redhat.com>
7667
7668         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
7669
7670 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
7671             Maxim Kuvyrkov  <maxim@codesourcery.com>
7672             Joseph Myers  <joseph@codesourcery.com>
7673
7674         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
7675         if needed for __stack_chk_guard.
7676
7677 2011-09-19  Roland McGrath  <roland@hack.frob.com>
7678
7679         * sysdeps/posix/spawni.c (script_execute): Always define it.
7680         It will be optimized away if unused.
7681         (maybe_script_execute): New function.
7682         (__spawni): Call it.
7683
7684         * Makerules: Don't include tls.make.
7685         (config-tls): Always set to thread.
7686         * tls.make.c: File removed.
7687
7688 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
7689
7690         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
7691         * config.make.in (CPPFLAGS-config): New substituted variable.
7692
7693 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7694
7695         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
7696
7697         [BZ #13192]
7698         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
7699         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
7700
7701 2011-09-15  Roland McGrath  <roland@hack.frob.com>
7702
7703         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
7704         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
7705         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
7706         (CALL_FAIL): Likewise.
7707         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
7708         (CALL_FAIL): Macro removed.
7709         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
7710
7711 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7712
7713         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
7714         for __FINITE_MATH_ONLY__ == 1.
7715
7716 2011-09-15  Andreas Schwab  <schwab@redhat.com>
7717
7718         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
7719         __ieee754_sqrt instead of sqrt.
7720         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
7721         __ieee754_sqrtf instead of sqrtf.
7722         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
7723         __floorf instead of floorf.
7724         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
7725         __floorf, __truncf instead of floorf, truncf.
7726
7727 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
7728
7729         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
7730
7731         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
7732         __extern_always_inline.
7733         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
7734         32-bit.
7735
7736 2011-09-14  Andreas Schwab  <schwab@redhat.com>
7737
7738         * elf/rtld.c (dl_main): Also relocate in dependency order when
7739         doing symbol dependency testing.
7740
7741 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
7742
7743         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7744         Always define `refsym'.
7745
7746 2011-09-13  Andreas Schwab  <schwab@redhat.com>
7747
7748         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
7749         (__FD_ELT): Renamed from __FDELT.
7750         * misc/bits/select2.h (__FD_ELT): Likewise.
7751         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
7752         __FD_MASK instead of __FDELT, __FDMASK.
7753         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7754         Likewise.
7755         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7756         Likewise.
7757
7758         * elf/Makefile (gen-ldd): Fix pattern.
7759
7760         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
7761         (init_tls): Likewise.
7762
7763 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
7764
7765         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
7766
7767 2011-09-12  Andreas Schwab  <schwab@redhat.com>
7768
7769         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
7770         `struct cmsghdr *' instead of `void *'.
7771         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
7772         Likewise.
7773
7774 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
7775
7776         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
7777         if non-absolute.
7778         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
7779         ldd_rewrite_script.
7780
7781 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
7782
7783         * configure.in: Remove --with-tls option.
7784         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
7785         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
7786         out in case it is missing.
7787         * sysdeps/ia64/elf/configure.in: Likewise.
7788         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
7789         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
7790         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
7791         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
7792         * sysdeps/sh/elf/configure.in: Likewise.
7793         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
7794         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
7795         * sysdeps/x86_64/elf/configure.in: Likewise.
7796         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
7797         * sysdeps/mach/hurd/tls.h: Likewise.
7798
7799         [BZ #13067]
7800         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
7801
7802         [BZ #13090]
7803         * configure.in: Fix use of AC_INIT.
7804
7805         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
7806
7807 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
7808
7809         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
7810         __set_errno.
7811         * malloc/hooks.c: Likewise.
7812
7813         [BZ #11929]
7814         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
7815         variables statically.
7816         (narenas): Initialize.
7817         (list_lock): Initialize.
7818         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
7819         initializtion of main_arena and list_lock.  Small cleanups.
7820         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
7821         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
7822         Add initializers to main_arena and mp_.
7823         (malloc_state): Remove pagesize member.  Change all users to use
7824         GLRO(dl_pagesize).
7825
7826         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
7827         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
7828         is always initialized.
7829
7830         * malloc/malloc.c: Removed unused configurations and dead code.
7831         * malloc/arena.c: Likewise.
7832         * malloc/hooks.c: Likewise.
7833         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
7834
7835         * include/tls.h: Removed.  USE___THREAD must always be defined.
7836         * bits/libc-tsd.h: Don't handle !USE___THREAD.
7837         * elf/dl-libc.c: Likewise.
7838         * elf/dl-tsd.c: Likewise.
7839         * include/errno.h: Likewise.
7840         * include/netdb.h: Likewise.
7841         * include/resolv.h: Likewise.
7842         * inet/herrno-loc.c: Likewise.
7843         * inet/herrno.c: Likewise.
7844         * malloc/arena.c: Likewise.
7845         * malloc/hooks.c: Likewise.
7846         * malloc/malloc.c: Likewise.
7847         * resolv/res-state.c: Likewise.
7848         * resolv/res_libc.c: Likewise.
7849         * sysdeps/i386/dl-machine.h: Likewise.
7850         * sysdeps/ia64/dl-machine.h: Likewise.
7851         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7852         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7853         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7854         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7855         * sysdeps/sh/dl-machine.h: Likewise.
7856         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7857         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7858         * sysdeps/unix/i386/sysdep.S: Likewise.
7859         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7860         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
7861         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
7862         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7863         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
7864         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7865         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7866         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7867         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7868         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7869         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7870         * sysdeps/x86_64/dl-machine.h: Likewise.
7871         * tls.make.c: Likewise.
7872
7873         * configure.in: Remove --with-__thread option.  Make tests for
7874         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
7875         tls_model attribute fail if no support is available.  Remove
7876         USE_IN_LIBIO.
7877         * Makeconfig: Adjust for dropped configure option.  All features are
7878         now mandatory.
7879         * Makerules: Likewise.
7880         * Versions.def: Likewise.
7881         * argp/argp-fmtstream.c: Likewise.
7882         * argp/argp-fmtstream.h: Likewise.
7883         * argp/argp-help.c: Likewise.
7884         * assert/assert.c: Likewise.
7885         * config.h.in: Likewise.
7886         * config.make.in: Likewise.
7887         * configure: Likewise.
7888         * configure.in: Likewise.
7889         * csu/Versions: Likewise.
7890         * csu/init.c: Likewise.
7891         * elf/tst-audit2.c: Likewise.
7892         * elf/tst-tls10.c: Likewise.
7893         * elf/tst-tls10.h: Likewise.
7894         * elf/tst-tls11.c: Likewise.
7895         * elf/tst-tls12.c: Likewise.
7896         * elf/tst-tls14.c: Likewise.
7897         * elf/tst-tlsmod11.c: Likewise.
7898         * elf/tst-tlsmod12.c: Likewise.
7899         * elf/tst-tlsmod13.c: Likewise.
7900         * elf/tst-tlsmod13a.c: Likewise.
7901         * elf/tst-tlsmod14a.c: Likewise.
7902         * elf/tst-tlsmod15b.c: Likewise.
7903         * elf/tst-tlsmod16a.c: Likewise.
7904         * elf/tst-tlsmod16b.c: Likewise.
7905         * elf/tst-tlsmod7.c: Likewise.
7906         * elf/tst-tlsmod8.c: Likewise.
7907         * elf/tst-tlsmod9.c: Likewise.
7908         * gmon/gmon.c: Likewise.
7909         * grp/fgetgrent_r.c: Likewise.
7910         * grp/putgrent.c: Likewise.
7911         * hurd/fopenport.c: Likewise.
7912         * include/libc-symbols.h: Likewise.
7913         * include/tls.h: Likewise.
7914         * intl/gettextP.h: Likewise.
7915         * intl/loadinfo.h: Likewise.
7916         * locale/global-locale.c: Likewise.
7917         * locale/localeinfo.h: Likewise.
7918         * mach/devstream.c: Likewise.
7919         * malloc/arena.c: Likewise.
7920         * malloc/set-freeres.c: Likewise.
7921         * misc/err.c: Likewise.
7922         * misc/getttyent.c: Likewise.
7923         * misc/mntent_r.c: Likewise.
7924         * posix/getopt.c: Likewise.
7925         * posix/wordexp.c: Likewise.
7926         * pwd/fgetpwent_r.c: Likewise.
7927         * resolv/Versions: Likewise.
7928         * resolv/res_hconf.c: Likewise.
7929         * shadow/fgetspent_r.c: Likewise.
7930         * shadow/putspent.c: Likewise.
7931         * stdio-common/printf_fphex.c: Likewise.
7932         * stdio-common/tmpfile.c: Likewise.
7933         * stdlib/abort.c: Likewise.
7934         * stdlib/fmtmsg.c: Likewise.
7935         * sunrpc/auth_unix.c: Likewise.
7936         * sunrpc/clnt_perr.c: Likewise.
7937         * sunrpc/clnt_tcp.c: Likewise.
7938         * sunrpc/clnt_udp.c: Likewise.
7939         * sunrpc/clnt_unix.c: Likewise.
7940         * sunrpc/openchild.c: Likewise.
7941         * sunrpc/svc_simple.c: Likewise.
7942         * sunrpc/svc_tcp.c: Likewise.
7943         * sunrpc/svc_udp.c: Likewise.
7944         * sunrpc/svc_unix.c: Likewise.
7945         * sunrpc/xdr.c: Likewise.
7946         * sunrpc/xdr_array.c: Likewise.
7947         * sunrpc/xdr_rec.c: Likewise.
7948         * sunrpc/xdr_ref.c: Likewise.
7949         * sunrpc/xdr_stdio.c: Likewise.
7950
7951 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7952
7953         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7954
7955 2011-07-03  Andreas Jaeger  <aj@suse.de>
7956
7957         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
7958         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
7959         regenerate with gen-libm-tests.pl.
7960
7961 2010-05-12  Petr Baudis  <pasky@suse.cz>
7962
7963         [BZ #11589]
7964         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
7965         around j0() zero points by switching to j1().
7966         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7967         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7968         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7969         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7970
7971 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7972
7973         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
7974         instead of 0.
7975         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
7976         instead of 0.                              .
7977         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7978         Patch in part by Pavel Roskin <proski@gnu.org>.
7979
7980         [BZ #13138]
7981         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
7982         realloc.
7983         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
7984         Free memory block if necessary.
7985
7986         [BZ #12847]
7987         * libio/genops.c (INTDEF): For string streams the _lock pointer can
7988         be NULL.  Don't lock in this case.
7989
7990 2011-09-09  Roland McGrath  <roland@hack.frob.com>
7991
7992         * elf/elf.h (ELFOSABI_GNU): New macro.
7993         (ELFOSABI_LINUX): Define to that.
7994
7995 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
7996
7997         * string/strncat.c (strncat): Undef the symbol in case it has been
7998         defined in bits/string.h.
7999
8000 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8001
8002         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
8003
8004         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
8005         link map.
8006
8007 2011-08-17  Andreas Jaeger  <aj@suse.de>
8008
8009         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
8010
8011 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
8012             Ian Lance Taylor  <iant@google.com>
8013
8014         * math/libm-test.inc (lround_test): New testcase.
8015         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
8016
8017 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
8018
8019         * Makefile: Remove support for automatic cvs check-ins.
8020         * Makerules: Likewise.
8021         * config.make.in: Likewise.
8022         * configure.in: Likewise.
8023         * intl/Makefile: Likewise.
8024         * locale/Makefile: Likewise.
8025         * po/Makefile: Likewise.
8026         * posix/Makefile: Likewise.
8027         * sysdeps/gnu/Makefile: Likewise.
8028         * sysdeps/mach/hurd/Makefile: Likewise.
8029         * sysdeps/sparc/sparc32/Makefile: Likewise.
8030
8031         [BZ #13118]
8032         * posix/Makefile (bug-regex32-ENV): Define.
8033         Patch by John Stanley <jpsinthemix@verizon.net>.
8034
8035         * misc/Makefile (headers): Add bits/select2.h.
8036         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
8037         * misc/bits/select2.h: New file.
8038         * include/bits/select2.h: New file.
8039         * debug/Makefile (routines): Add fdelt_chk.
8040         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
8041         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
8042         FD_ISSET.
8043         * debug/fdelt_chk.c: New file.
8044
8045         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
8046         * wcsmbs/test-wmemcmp.c: Likewise.
8047         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
8048         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
8049
8050 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8051
8052         * string/Makefile (strop-tests): Add memcmp.
8053         * string/test-wmemcmp.c: New file.
8054         * string/test-memcmp.c: Add wmemcmp support.
8055
8056 2011-09-08  Roland McGrath  <roland@hack.frob.com>
8057
8058         [BZ #13153]
8059         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
8060         2011-07-19 change.
8061
8062         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
8063         garbage value in a __mach_port_mod_refs call in the cases of the
8064         task-self and thread-self ports.
8065
8066 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8067
8068         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
8069
8070 2011-09-08  Andreas Schwab  <schwab@redhat.com>
8071
8072         * elf/dl-load.c (lose): Check for non-null L.
8073
8074 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
8075
8076         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
8077
8078         * elf/dl-libc.c (dlerror_run): Pass back error code from
8079         dl_catch_error.
8080
8081         [BZ #13123]
8082         * elf/dl-load.c (lose): Free l_origin if it is valid.
8083
8084         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
8085         names.
8086         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
8087         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
8088         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8089         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
8090         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
8091         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
8092
8093 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8094
8095         * sysdeps/powerpc/fpu/e_hypot.c: New file.
8096         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
8097         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
8098         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
8099         * sysdeps/powerpc/fpu/k_cosf.c: New file.
8100         * sysdeps/powerpc/fpu/k_sinf.c: New file.
8101         * sysdeps/powerpc/fpu/s_cosf.c: New file.
8102         * sysdeps/powerpc/fpu/s_sinf.c: New file.
8103         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
8104         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
8105
8106 2011-08-15  Alan Modra  <amodra@gmail.com>
8107
8108         [BZ #13092]
8109         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
8110         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
8111         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
8112         ppc_mcount to static-only-routines.
8113         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
8114         __mcount_internal.
8115         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
8116         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
8117
8118 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
8119
8120         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
8121         for finite and infinity parameters.
8122
8123 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
8124
8125         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
8126         and add nop instructions for throughput optimization.
8127         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
8128
8129 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
8130
8131         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
8132         aligned copy for power7 with vector-scalar instructions.
8133         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
8134
8135 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
8136
8137         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
8138         AVX check.
8139
8140 2011-09-07  Andreas Schwab  <schwab@redhat.com>
8141
8142         [BZ #13144]
8143         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
8144         last change.
8145
8146 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
8147
8148         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8149         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
8150         syscall wrapper around clock_gettime in __vdso_clock_gettime.
8151         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
8152         clock_gettime.
8153
8154 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
8155
8156         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
8157         Forgot to demangle the pointer.
8158
8159         * sysdeps/i386/sysdep.h: Define atom_text_section.
8160         * sysdeps/x86_64/sysdep.h: Likewise.
8161         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
8162         section with atom_text_section.
8163         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
8164         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
8165         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
8166         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8167         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
8168
8169         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
8170         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
8171         already be defined.  Change to take two parameters and don't assign
8172         result to variable.  Adjust all users.
8173         Define INTERNAL_GETTIME if not already defined.
8174         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
8175         call.
8176         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
8177         HAVE_CLOCK_GETTIME_VSYSCALL.
8178         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
8179
8180         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
8181         gettimeofday vsyscall, just use time.
8182
8183 2011-09-06  Andreas Schwab  <schwab@redhat.com>
8184
8185         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
8186         <errno.h>.
8187
8188 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
8189
8190         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
8191         syscall on x86-64.
8192         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
8193         syscall.
8194         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
8195         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
8196         syscall if possible.
8197
8198 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
8199
8200         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
8201         e_ident.  Don't pass to find_mapsXX.
8202         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
8203
8204 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8205
8206         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8207         strchr-sse2-no-bsf strrchr-sse2-no-bsf
8208         * sysdeps/x86_64/multiarch/strchr.S: Update.
8209         Check bit_slow_BSF bit.
8210         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
8211         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
8212         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
8213
8214 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
8215
8216         [BZ #13134]
8217         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
8218         before glibc 2.15.
8219         (tryshell): Define.
8220         (__spawni): Change last parameter to be flag.  Test
8221         SPAWN_XFLAGS_USE_PATH flag to use path or not.
8222         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
8223         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
8224         * posix/spawni.c: Likewise.
8225         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
8226         * posix/spawnp.c: Likewise.  Change normal version to use
8227         SPAWN_XFLAGS_USE_PATH.
8228         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
8229         SPAWN_XFLAGS_TRY_SHELL.
8230
8231         [BZ #13150]
8232         * posix/glob.h: Remove gcc 1.x support.
8233
8234         [BZ #13068]
8235         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
8236
8237 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8238
8239         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8240         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
8241         strrchr-sse2-bsf
8242         * sysdeps/i386/i686/multiarch/strchr.S: New file.
8243         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
8244         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
8245         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
8246         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
8247         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
8248
8249 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8250
8251         * sysdeps/x86_64/wcscmp.S: New file.
8252
8253         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
8254         wcscmp-c wcscmp-sse2
8255         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
8256         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
8257         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
8258         * wcsmbs/wcscmp.c: Allow renaming.
8259
8260 2011-09-05  David S. Miller  <davem@davemloft.net>
8261
8262         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
8263         stack slot, rather than the struct return pointer slot.
8264         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
8265         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
8266         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
8267         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
8268
8269 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
8270
8271         * po/ja.po: Update from translation team.
8272
8273         [BZ #13144]
8274         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
8275         kernel in 64-bit binaries.
8276
8277 2011-09-01  David S. Miller  <davem@davemloft.net>
8278
8279         * elf/elf.h (HWCAP_SPARC_*): Move to..
8280         * sysdeps/sparc/sysdep.h: this new file and add new values.
8281         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
8282         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
8283         _DL_HWCAP_COUNT to 24.
8284         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
8285         entries.
8286         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
8287         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
8288         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
8289         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
8290         instead of magic constants.
8291         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8292
8293 2011-08-31  David S. Miller  <davem@davemloft.net>
8294
8295         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
8296         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
8297         Reimplement to do errno handling inline.
8298         (SYSCALL_ERROR_HANDLER): New macro.
8299         (__SYSCALL_STRING): Do not do errno handling in asm.
8300         (__CLONE_SYSCALL_STRING): Delete.
8301         (__INTERNAL_SYSCALL_STRING): Delete.
8302         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
8303         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
8304         (PSEUDO): Reimplement to do errno handling inline.
8305         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
8306         (SYSCALL_ERROR_HANDLER): New macro.
8307         (__SYSCALL_STRING): Do not do errno handling in asm.
8308         (__CLONE_SYSCALL_STRING): Delete.
8309         (__INTERNAL_SYSCALL_STRING): Delete.
8310         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
8311         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
8312         i386.
8313         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
8314         (inline_syscall*): Add 'err' argument.
8315         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
8316         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
8317         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
8318         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
8319
8320         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
8321         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8322
8323 2011-08-30  Andreas Schwab  <schwab@redhat.com>
8324
8325         * elf/rtld.c (dl_main): Relocate objects in dependency order.
8326
8327 2011-08-29  Jiri Olsa <jolsa@redhat.com>
8328
8329         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
8330         directive.
8331
8332 2011-08-24  David S. Miller  <davem@davemloft.net>
8333
8334         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
8335
8336 2011-08-24  Andreas Schwab  <schwab@redhat.com>
8337
8338         * elf/Makefile: Add rules to build and run unload8 test.
8339         * elf/unload8.c: New file.
8340         * elf/unload8mod1.c: New file.
8341         * elf/unload8mod1x.c: New file.
8342         * elf/unload8mod2.c: New file.
8343         * elf/unload8mod3.c: New file.
8344
8345         * elf/dl-close.c (_dl_close_worker): Reset private search list if
8346         it wasn't used.
8347
8348 2011-08-23  David S. Miller  <davem@davemloft.net>
8349
8350         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
8351         subtract stack bias.
8352         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
8353         %sp not %fp in calculations.
8354         (_JMPBUF_UNWINDS_ADJ): Likewise.
8355
8356         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
8357         (aio_suspend): Call it to force an exception region around the
8358         AIO_MISC_WAIT() invocation.
8359
8360 2011-08-23  Andreas Schwab  <schwab@redhat.com>
8361
8362         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
8363         backslash.
8364
8365 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
8366
8367         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
8368         protection macro.
8369         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
8370         and <dl-machine.h>.
8371         (Elf64_FuncDesc): Remove.
8372
8373 2011-08-22  David S. Miller  <davem@davemloft.net>
8374
8375         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
8376         sigaltstack check, add missing cfi directives.
8377         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
8378         missing cfi directives, and sigaltstack handling.
8379
8380 2011-08-16  Andreas Schwab  <schwab@redhat.com>
8381
8382         [BZ #11724]
8383         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
8384         object is seen twice.
8385         * elf/dl-fini.c (_dl_sort_fini): Likewise.
8386
8387         * elf/Makefile (distribute): Add tst-initorder2.c.
8388         (tests): Add tst-initorder2.
8389         (modules-names): Add tst-initorder2a tst-initorder2b
8390         tst-initorder2c tst-initorder2d.  Add rules to build them.
8391         ($(objpfx)tst-initorder2.out): New rule.
8392         * elf/tst-initorder2.c: New file.
8393         * elf/tst-initorder2.exp: New file.
8394
8395 2011-08-22  Andreas Schwab  <schwab@redhat.com>
8396
8397         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
8398
8399         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
8400         dependencies back to end of function.
8401
8402         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
8403         $(elfobjdir)/ld.so.
8404
8405 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
8406
8407         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
8408         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
8409         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
8410         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
8411         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
8412         of __vdso_gettimeofday.
8413         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
8414         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
8415         attribute_hidden.
8416         (_libc_vdso_platform_setup): Remove initialization of
8417         __vdso_gettimeofday and __vdso_time.
8418
8419 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
8420
8421         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
8422         and fgetc_unlocked.
8423         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
8424         getc_unlocked.
8425
8426         * elf/dl-open.c (add_to_global): Report additions to the global scope
8427         for LD_DEBUG=scopes.
8428         (dl_open_worker): Also print scope of newly loaded dependencies.
8429         (_dl_show_scope): Indicate if there is no scope.
8430
8431         [BZ #13114]
8432         * stdio-common/Makefile (tests): Add bug24.
8433         * stdio-common/bug24.c: New file.
8434
8435 2011-08-19  Andreas Jaeger  <aj@suse.de>
8436
8437         [BZ #13114]
8438         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
8439         non-existant file when using close-on-exec mode.
8440
8441 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
8442
8443         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
8444         the very first instruction.
8445
8446         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
8447         the CFI state in the end.
8448         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
8449         inclusion of dl-trampoline.h.
8450         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
8451
8452 2011-08-19  Andreas Schwab  <schwab@redhat.com>
8453
8454         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
8455         expectations for long double.
8456
8457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
8458         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
8459
8460 2011-08-14  David S. Miller  <davem@davemloft.net>
8461
8462         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
8463         artificual limit depends upon the system page size.
8464
8465 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
8466
8467         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
8468         * resolv/Makefile: Define CFLAGS-libresolv.
8469
8470 2011-08-17  Andreas Schwab  <schwab@redhat.com>
8471
8472         * nss/makedb.c (compute_tables): Make variables used in nested
8473         function static.
8474
8475 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
8476
8477         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
8478         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
8479         if buffer was too small.
8480
8481         * elf/pldd.c (main): Attach to all threads in the process.
8482         Rewrite /proc handling to use *at functions.
8483
8484 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
8485
8486         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
8487         specifies first scope to show.
8488         (dl_open_worker): Update callers.  Move printing scope of new
8489         object to before the relocation.
8490         * elf/rtld.c (dl_main): Update _dl_show_scope call.
8491         * sysdeps/generic/ldsodefs.h: Update declaration.
8492
8493         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
8494         string for the scope number.
8495
8496 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
8497
8498         * nscd/servicescache.c (cache_addserv): Make sure written is always
8499         initialized.
8500
8501 2011-08-14  Roland McGrath  <roland@hack.frob.com>
8502
8503         * sysdeps/i386/i486/bits/atomic.h
8504         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
8505         statement expression, so as to suppress "set but not used" warning.
8506         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
8507
8508         * string/strncat.c (STRNCAT): Use prototype definition.
8509
8510         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
8511         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
8512         -Iprograms here.
8513         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
8514         (localedef-modules): Add localedef.
8515         (locale-modules): Add locale.
8516
8517         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
8518         * elf/rtld.c (dl_main): Invert order of assignment in last change,
8519         to avoid a warning.
8520
8521 2011-08-14  David S. Miller  <davem@davemloft.net>
8522
8523         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
8524         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
8525
8526 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
8527
8528         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
8529         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
8530         * elf/rtld.c (dl_main): Set l_name of vDSO.
8531         Call _dl_show_scope when DL_DEBUG_SCOPES.
8532         (process_dl_debug): Recognize scopes flag and also set it for all.
8533         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
8534         Declare _dl_show_scope.
8535
8536         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
8537         (do_dlopen): Pass caller_dlopen to dl_open.
8538         (__libc_dlopen_mode): Initialize caller_dlopen.
8539
8540         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
8541         of libc.  Make tolower call locale-independent.  Optimize a bit by
8542         using isdigit instead of isalnum.
8543         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
8544
8545 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
8546
8547         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
8548         was a dependency or dynamically loaded.
8549
8550 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
8551
8552         * intl/l10nflist.c: Allow architecture-specific pop function.
8553         * sysdeps/x86_64/l10nflist.c: New file.
8554
8555         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
8556         classification.
8557
8558 2011-08-10  Andreas Schwab  <schwab@redhat.com>
8559
8560         * include/dirent.h: Add libc_hidden_proto for scandirat and
8561         scandirat64.  Don't declare __scandirat64.
8562         * dirent/scandirat.c: Add libc_hidden_def.
8563         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
8564         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
8565
8566 2011-08-10  David S. Miller  <davem@davemloft.net>
8567
8568         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
8569         enum.
8570         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8571         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8572         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8573
8574 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
8575
8576         * Versions.def [libc]: Add GLIBC_2.15.
8577         * dirent/Makefile (routines): Add scandirat and scandirat64.
8578         * dirent/Versions [libc]: Export scandirat and scandirat64 for
8579         GLIBC_2.15.
8580         * dirent/dirent.h: Declare scandirat and scandirat64.
8581         * dirent/scandirat.c: New file.
8582         * dirent/scandirat64.c: New file.
8583         * sysdeps/wordsize-64/scandirat.c: New file.
8584         * sysdeps/wordsize-64/scandirat64.c: New file.
8585         * dirent/opendir.c: Define opendirat.
8586         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
8587         using scandirat.
8588         * dirent/scandir64.c: Adjust for scandir.c change.
8589         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
8590         __scandirat64, and __scandir_cancel_handler.
8591         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
8592         additional parameter and use openat instead of open (outside of ld.so).
8593         Add new __opendir as wrapper around __opendirat.
8594         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
8595         here without requiring old scandirat implementation.
8596
8597 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
8598
8599         * dirent/scandir.c (cancel_handler): Renamed to
8600         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
8601         defined.  Adjust users.
8602         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
8603         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
8604
8605 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
8606
8607         * string/test-string.h (IMPL): Use __STRING to expand name and then
8608         stringify it.
8609
8610         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
8611         of cleanups.
8612
8613 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8614
8615         * string/Makefile: Update.
8616         (strop-tests): Append strncat.
8617         * string/test-wcscmp.c: New file.
8618         New comprehensive test for wcscmp.
8619         * string/test-strcmp.c: Update.
8620         (WIDE): New define.
8621
8622 2011-07-22  Andreas Schwab  <schwab@redhat.com>
8623
8624         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
8625         line.
8626
8627 2011-07-26  Andreas Schwab  <schwab@redhat.com>
8628
8629         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
8630         encoding to ACE if AI_IDN.
8631
8632 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
8633
8634         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
8635         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
8636
8637 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8638
8639         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
8640         Fix overflow bug in strncat.
8641         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
8642
8643         * string/test-strncat.c: Update.
8644         Add new tests for checking overflow bugs.
8645
8646 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8647
8648         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8649         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
8650         * sysdeps/i386/i686/multiarch/strcat.S: New file.
8651         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
8652         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
8653         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
8654         * sysdeps/i386/i686/multiarch/strncat.S: New file.
8655         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
8656         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
8657
8658         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
8659         (USE_AS_STRCAT): Define.
8660         Add strcat and strncat support.
8661         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8662
8663 2011-07-25  Andreas Schwab  <schwab@redhat.com>
8664
8665         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
8666         __n bigger than INT_MAX+1.
8667         (__strncmp_g): Likewise.
8668
8669 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
8670
8671         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
8672         * libio/stido.h: Likewise.
8673
8674         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
8675         (AF_NFC): Define.
8676         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
8677         (AF_NFC): Define.
8678
8679         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
8680         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8681         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8682         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8683         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8684
8685         [BZ #13021]
8686         * scripts/test-installation.pl: Don't expect libnss_test1 to be
8687         installed.
8688
8689         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
8690         typo.
8691         (_dl_x86_64_save_sse): Likewise.
8692
8693 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
8694
8695         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
8696         OSXSAVE.
8697         (_dl_x86_64_save_sse): Likewise.
8698
8699         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
8700
8701         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
8702
8703 2011-07-21  Andreas Schwab  <schwab@redhat.com>
8704
8705         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
8706         change.
8707         (_dl_x86_64_save_sse): Use correct AVX check.
8708
8709 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8710
8711         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
8712         bug in strncpy/strncat.
8713         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
8714
8715 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
8716
8717         * string/tester.c (test_strcat): Add tests for different alignments
8718         of source and destination.
8719         (test_strncat): Likewise.
8720
8721 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8722
8723         [BZ #12852]
8724         * posix/glob.c (glob): Check passed in values before using them in
8725         expressions to avoid some overflows.
8726         (glob_in_dir): Likewise.
8727
8728         [BZ #13007]
8729         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
8730         check for AVX enablement so that we don't crash with old kernels and
8731         new hardware.
8732         * elf/tst-audit4.c: Add same checks here.
8733         * elf/tst-audit6.c: Likewise.
8734
8735         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
8736
8737 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
8738
8739         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
8740
8741 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8742
8743         * po/cs.po: Update from translation team.
8744         * po/bg.po: Likewise.
8745
8746 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
8747
8748         * misc/sys/cdefs.h: Add support for const attribute.
8749         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
8750         to gnu_dev_{major,minor,makedev} functions.
8751
8752 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
8753
8754         * intl/dcigettext.c (get_output_charset): Add missing bracket.
8755
8756 2011-07-20  Andreas Schwab  <schwab@redhat.com>
8757
8758         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
8759         strlen results.
8760
8761 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8762
8763         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
8764         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
8765         register in order to avoid conflicts with the soft frame pointer
8766         being held in r11 when necessary.
8767         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8768         (INTERNAL_VSYSCALL_NCS): Likewise.
8769
8770 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
8771
8772         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
8773         * elf/dl-fini.c (_dl_fini): Adjust caller.
8774         * elf/dl-close.c (_dl_close_worker): Likewise.
8775         * sysdeps/generic/ldsodefs.h: Adjust declaration.
8776
8777 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8778
8779         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
8780         "aux_cache->nlibs < 0".
8781
8782         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
8783         in the reload-count case.
8784
8785 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8786
8787         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8788         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
8789         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
8790         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
8791         * sysdeps/x86_64/multiarch/strcat.S: New file.
8792         * sysdeps/x86_64/multiarch/strncat.S: New file.
8793         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
8794         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
8795         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
8796         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
8797         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
8798         (USE_AS_STRCAT): Define.
8799         Add strcat and strncat support.
8800         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8801         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
8802         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
8803         * string/strncat.c: Update.
8804         (USE_AS_STRNCAT): Define.
8805         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8806         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
8807         and i7.
8808         * sysdeps/x86_64/multiarch/init-arch.h
8809         (bit_Prefer_PMINUB_for_stringop): New.
8810         (index_Prefer_PMINUB_for_stringop): Likewise.
8811         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
8812         bit_Prefer_PMINUB_for_stringop.
8813
8814 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8815
8816         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
8817         buffer64.
8818         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
8819         of casting of buffer.
8820         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
8821         buffer32 and buffer64.
8822         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
8823         writes instead of casting of buffer.
8824         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
8825         buffer32.
8826         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
8827         casting of buffer.
8828
8829 2011-07-19  Andreas Schwab  <schwab@redhat.com>
8830
8831         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
8832
8833 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8834
8835         * nscd/nscd.c (termination_handler): Don't do anything for a database
8836         if it has not yet been initialized.
8837
8838 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8839
8840         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8841
8842 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8843
8844         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8845
8846 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8847
8848         * po/nl.po: Update from translation team.
8849         * po/sv.po: Likewise.
8850
8851 2011-07-16  Roland McGrath  <roland@hack.frob.com>
8852
8853         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
8854         now disallowed by GCC.
8855
8856         * configure.in (use-default-link): Default to yes if a test -shared
8857         link meets our qualifications.
8858         * configure: Regenerated.
8859
8860         * config.make.in (output-format): New variable.
8861         * configure.in: Check for ld --print-output-format support.
8862         * configure: Regenerated.
8863         * Makerules ($(common-objpfx)format.lds)
8864         [$(output-format) != unknown]: Just use $(output-format),
8865         instead of the linker-script munging.
8866
8867 2011-07-14  Roland McGrath  <roland@hack.frob.com>
8868
8869         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
8870         of $(common-objpfx)shlib.lds.
8871         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
8872
8873         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
8874         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
8875
8876         * configure.in (-z relro check): Adjust test code to add a large
8877         writable data section after it.
8878         * configure: Regenerated.
8879
8880 2011-07-11  Roland McGrath  <roland@hack.frob.com>
8881
8882         * configure.in (-z relro check): Fix test code to make the variable
8883         truly const.
8884         * configure: Regenerated.
8885
8886 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
8887
8888         * nscd/nscd.h (struct traced_file): Define.
8889         (struct database_dyn): Remove inotify_descr, reset_res, and filename
8890         elements.  Add traced_files.
8891         (inotify_fd): Declare.
8892         (register_traced_file): Declare.
8893         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
8894         (inotify_fd): Export.
8895         (resolv_conf_descr): Remove.
8896         (nscd_init): Move inotify descriptor creation to main.
8897         Don't register files for notification here.
8898         (register_traced_file): New function.
8899         (invalidate_cache): Don't use reset_res to determine whether to call
8900         res_init, go through the list of registered files.
8901         (main_loop_poll): The inotify descriptors are now stored in the
8902         structures for the traced files.
8903         (main_loop_epoll): Likewise
8904         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
8905         to __nss_disable_nscd.
8906         * nscd/cache.c (prune_cache): There is no single inotify descriptor
8907         for a database anymore.  Check the records for all the registered
8908         files instead.
8909         * nss/Makefile (libnss_files-routines): Add files-init.
8910         (libnss_db-routines): Add db-init.
8911         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
8912         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
8913         * nss/nss_db/db-init.c: New file.
8914         * nss/nss_files/files-init.c: New file.
8915         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
8916         __nss_lookup_function.
8917         (__nss_lookup_function): Call nss_load_library.
8918         (nss_load_all_libraries): New function.
8919         (__nss_disable_nscd): Take parameter with callback function for files
8920         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
8921         used for the cached services.
8922         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
8923         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
8924         options for features to all the files in nscd.
8925
8926         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
8927
8928 2011-07-10  Roland McGrath  <roland@hack.frob.com>
8929
8930         * csu/elf-init.c (__libc_csu_init): Comment typo.
8931
8932 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
8933
8934         * po/pl.po: Update from translation team.
8935         * po/ja.po: Likewise.
8936         * po/ru.po: Likewise.
8937         * po/ko.po: Likewise.
8938         * po/fr.po: Likewise.
8939
8940 2011-07-09  Roland McGrath  <roland@hack.frob.com>
8941
8942         * configure.in (.ctors/.dtors header and trailer check):
8943         Use an empirical test on a built program.
8944         * configure: Regenerated.
8945
8946         * configure.in (-z relro check): Use an empirical test on a built DSO.
8947         Detect, but do not require, on ia64.
8948         * configure: Regenerated.
8949
8950         * configure.in (READELF): Find it with AC_CHECK_TOOL.
8951         Update tests that use readelf to use $READELF instead.
8952         * configure: Regenerated.
8953
8954 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
8955
8956         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
8957         if the result is not used.
8958
8959 2011-07-05  Andreas Jaeger  <aj@suse.de>
8960
8961         [BZ#9696]
8962         * stdlib/tst-strtod.c: Add testcase.
8963
8964 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8965
8966         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
8967         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
8968         The latter has a higher limit.  Take additional parameter to pass to
8969         the new function.
8970         (__pathconf): Pass file to __statfs_link_max.
8971         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
8972         __statfs_link_max.
8973         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
8974         __statfs_link_max.
8975
8976         [BZ #12868]
8977         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
8978         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8979         Handle Lustre.
8980         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
8981         (__statfs_filesize_max): Likewise.
8982         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
8983
8984 2011-07-05  Andreas Jaeger  <aj@suse.de>
8985
8986         * resolv/res_comp.c (dn_skipname): Remove unused variable.
8987
8988 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
8989
8990         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
8991         `status' variable.
8992         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
8993         Likewise.
8994
8995 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8996
8997         * Makefile (strop-tests): Add strncat.
8998         * string/test-strncat.c: New file.
8999
9000 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
9001
9002         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
9003
9004 2011-06-21  Andreas Jaeger  <aj@suse.de>
9005
9006         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
9007         Copy rule from iconvdata/Makefile.
9008
9009 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
9010
9011         [BZ #12922]
9012         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
9013         but no long options are defined, just return 'W'.
9014
9015 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
9016
9017         [BZ #9696]
9018         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
9019
9020 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
9021
9022         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
9023         netgroups to read.
9024         (innetgr): Likewise.
9025
9026 2011-07-05  Roland McGrath  <roland@hack.frob.com>
9027
9028         * config.make.in (install_root): Default to $(DESTDIR).
9029
9030 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
9031
9032         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
9033
9034 2011-07-02  Roland McGrath  <roland@hack.frob.com>
9035
9036         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
9037
9038         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
9039         containing directory rather than embedding absolute directory names.
9040
9041         * scripts/check-local-headers.sh: Rewritten using awk.
9042         Match by word, not by line.  Print error messages for matches.
9043         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
9044
9045         * Makerules [shlib-lds-flags empty]:
9046         ($(common-objpfx)libc_pic.opts): New target.
9047         ($(common-objpfx)libc_pic.os.clean): New target.
9048         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
9049
9050         * config.make.in (OBJCOPY): New variable.
9051         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
9052         * configure: Regenerated.
9053
9054         * config.make.in (use-default-link): New variable.
9055         * configure.in (use_default_link): Grok --with-default-link to set it.
9056         * configure: Regenerated.
9057         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
9058         (shlib-lds, shlib-lds-flags): Define to empty.
9059
9060         * Makerules (shlib-lds): New variable.
9061         (shlib-lds-flags): New variable.
9062         (build-shlib, build-moduile, build-module-asneeded): Use it.
9063         ($(common-objpfx)libc.so): Use $(shlib-lds).
9064         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
9065         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
9066
9067         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
9068         DT_FLAGS/DT_FLAGS_1 with zero flags.
9069
9070         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
9071         linker script munging.
9072
9073 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
9074
9075         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
9076         as 128-bit value.
9077         * crypt/sha512.c (sha512_process_block): Perform total addition using
9078         128-bit if possible.
9079         (__sha512_finish_ctx): Likewise.
9080         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
9081         as 64-bit value.
9082         * crypt/sha256.c (SWAP64): Define.
9083         (sha256_process_block): Perform total addition using 64-bit if
9084         possible.
9085         (__sha256_finish_ctx): Likewise.
9086
9087 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
9088
9089         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
9090         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9091         * nscd/hstcache.c (cache_addhst): Likewise.
9092         * nscd/grpcache.c (cache_addgr): Likewise.
9093         * nscd/aicache.c (addhstaiX): Likewise
9094         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
9095
9096 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
9097
9098         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
9099         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9100         * nscd/hstcache.c (cache_addhst): Likewise.
9101         * nscd/grpcache.c (cache_addgr): Likewise.
9102         * nscd/aicache.c (addhstaiX): Likewise
9103
9104 2011-07-01  Andreas Schwab  <schwab@redhat.com>
9105
9106         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
9107         domain only when needed.
9108
9109 2011-06-30  Andreas Schwab  <schwab@redhat.com>
9110
9111         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
9112         is always restored.
9113
9114 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
9115
9116         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
9117         are re-adding the entry.
9118         * nscd/servicescache.c (cache_addserv): Likewise.
9119
9120 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
9121
9122         * sysdeps/generic/dl-irel.h: fix protection against multiple
9123         inclusions.
9124         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
9125
9126 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
9127
9128         [BZ #12935]
9129         * malloc/memusage.sh: Fix quoting in message.
9130         * debug/xtrace.sh: Likewise.
9131
9132         * configure.in: Remove support for --experimental-malloc option, make
9133         it the default.
9134         * config.make.in: Likewise.
9135         * malloc/Makefile: Likewise.
9136
9137 2011-06-27  Andreas Schwab  <schwab@redhat.com>
9138
9139         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
9140         two-byte characters.
9141
9142 2011-06-27  Roland McGrath  <roland@hack.frob.com>
9143
9144         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
9145         AC_CACHE_CHECK invocation.
9146         * configure: Regenerated.
9147
9148         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
9149
9150 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
9151
9152         [BZ #12350]
9153         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
9154         bit from old_res_options.
9155
9156         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
9157
9158         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
9159         value type for setfct.
9160
9161 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
9162
9163         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
9164         __gettimeofday instead of gettimeofday.
9165
9166 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
9167
9168         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
9169
9170 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
9171
9172         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
9173
9174         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
9175         info.
9176
9177 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
9178
9179         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9180         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
9181         strcpy-sse2-unaligned strncpy-sse2-unaligned
9182         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
9183         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
9184         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
9185         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
9186         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
9187         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
9188         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
9189         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
9190         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
9191         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
9192         (STRCPY): Support SSE2 and SSSE3 versions.
9193
9194 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
9195
9196         [BZ #12874]
9197         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
9198         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
9199         kernels which artificially limit size of requests.
9200
9201 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
9202
9203         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9204         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
9205         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
9206         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
9207         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
9208         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
9209         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
9210         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
9211         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
9212         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
9213         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
9214         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
9215         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
9216         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
9217         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
9218         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9219         Enable unaligned load optimization for Intel Core i3, i5 and i7
9220         processors.
9221         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
9222         Define.
9223         (index_Fast_Unaligned_Load): Define.
9224         (HAS_FAST_UNALIGNED_LOAD): Define.
9225
9226 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
9227
9228         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
9229
9230 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
9231
9232         [BZ #12907]
9233         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
9234         until it is clear that the information is realy needed.
9235         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
9236
9237 2011-06-22  Andreas Schwab  <schwab@redhat.com>
9238
9239         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
9240
9241 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
9242
9243         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
9244         /sys/devices/system/cpu/online if it is usable.
9245
9246         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
9247         reading the information from the /proc filesystem to once a second.
9248
9249 2011-06-21  Andreas Jaeger  <aj@suse.de>
9250
9251         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
9252         NULL after inclusion of kernel headers.
9253
9254 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
9255
9256         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
9257         calls to internal_setent.
9258
9259         [BZ #12885]
9260         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
9261         addresses using gethostbyname4_r ignore IPv4 addresses.
9262
9263         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
9264         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
9265
9266         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
9267
9268 2011-06-20  David S. Miller  <davem@davemloft.net>
9269
9270         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
9271         inclusions.
9272         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
9273
9274         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
9275         (elf_irel): Use it.
9276         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
9277         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
9278         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
9279         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
9280         * sysdeps/x86_64/dl-irel.h: Likewise.
9281
9282         * elf/dl-runtime.c: Use elf_ifunc_invoke.
9283         * elf/dl-sym.c: Likewise.
9284
9285 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
9286
9287         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
9288         need to dereference resplen2.
9289
9290 2011-06-14  Andreas Schwab  <schwab@redhat.com>
9291
9292         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
9293
9294 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
9295
9296         * Makeconfig: Define vardbdir and inst_vardbdir.
9297         * nss/Makefile: Add rules to install db-Makefile.
9298
9299         * nss/nss_db/db-XXX.c: Cleanup.
9300
9301         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
9302         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
9303         GLIBC_PRIVATE.
9304         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
9305         * nss/makedb.c: Implement -g option to specify that value strings
9306         are generated and should not be added to table iterated over for
9307         get*ent calls.
9308         * nss/nss_db/db-initgroups.c: New file.
9309
9310         * nss/getent.c: Add support for initgroups lookups through getgrouplist
9311         interface.
9312
9313         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
9314         (internal_getgrouplist): Adjust to name change.
9315         Update use_initgroups_entry if this is not the first call.
9316         * nss/databases.def: Add initgroups entry.
9317
9318         * nss/makedb.c (compute_tables): Check result of multiple hash table
9319         sizes to minimize maximum chain length.
9320
9321 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
9322
9323         * Versions.def: Add entry for libnss_db.
9324         * shlib-versions: Likewise.
9325         * nss/Makefile: Add rules to build libnss_db.
9326         * nss/Versions: Add libnss_db information.  Organize libnss_files
9327         entries better.
9328         * nss/db-Makefile: Add gshadow support.  Change rules for the new
9329         makedb progra.  Some minor improvements to generate smaller files.
9330         * nss/nss_db/nss_db.h: Move NSS database header data structures to
9331         here from...
9332         * nss/makedb.c: ...here.
9333         Improve database format to be smaller and require less memory at
9334         runtime.
9335         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
9336         db anymore.
9337         * nss/nss_db/db-netgrp.c: Likewise.
9338         * nss/nss_db/db-open.c: Likewise.
9339         * nss/nss_files/flies-XXX.x: Adjust comments.
9340         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
9341         * nss/nss_files/files-grp.c: Likewise.
9342         * nss/nss_files/files-hosts.c: Likewise.
9343         * nss/nss_files/files-network.c: Likewise.
9344         * nss/nss_files/files-proto.c: Likewise.
9345         * nss/nss_files/files-pwd.c: Likewise.
9346         * nss/nss_files/files-rpc.c: Likewise.
9347         * nss/nss_files/files-service.c: Likewise.
9348         * nss/nss_files/files-sgrp.c: Likewise.
9349         * nss/nss_files/files-spwd.c: Likewise.
9350         * nss/nss_db/db-alias.c: Removed.
9351         * nss/nss_db/dummy-db.h: Removed.
9352
9353 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
9354
9355         * nss/makedb.c: Rewritten to not use database library.
9356         * nss/Makefile: Update to build new makedb program.
9357
9358 2011-06-14  Andreas Jaeger  <aj@suse.de>
9359
9360         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
9361         memset declaration.
9362
9363 2011-06-10  Andreas Schwab  <schwab@redhat.com>
9364
9365         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
9366         tmpbuf.
9367
9368 2011-06-10  Roland McGrath  <roland@hack.frob.com>
9369
9370         * Makerules (shlib.lds): Fail if the linker script comes out empty.
9371         * elf/Makefile ($(objpfx)ld.so): Likewise.
9372
9373         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
9374         Don't list ld.so twice in dependencies.
9375
9376         * posix/bug-regex31.c: Include <stdlib.h>.
9377
9378         * nscd/hstcache.c (cache_addhst): Remove unused variable.
9379
9380         * nis/nss_compat/compat-spwd.c
9381         (getspent_next_nss_netgr): Remove unused variable.
9382         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
9383
9384         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
9385         nonmembers" output to use the right array.
9386
9387         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
9388
9389         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
9390
9391         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
9392         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
9393         * catgets/gencat.c (read_input_file): Likewise.
9394         * locale/programs/locarchive.c (enlarge_archive): Likewise.
9395
9396         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
9397         variable definition inside #if's controlling its use.
9398
9399         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
9400
9401         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
9402
9403         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
9404
9405         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
9406         unreachable code.
9407
9408         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
9409
9410         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
9411         * configure: Regenerated.
9412
9413         * Makerules: Revert last change.
9414         * elf/Makefile: Likewise.
9415
9416 2011-06-09  Roland McGrath  <roland@hack.frob.com>
9417
9418         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
9419         * elf/Makefile ($(objpfx)librtld.os): Likewise.
9420         (reloc-link): Likewise.
9421
9422 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
9423
9424         * elf/Makefile: Add rules to build pldd.
9425         * elf/pldd.c: New file.
9426         * elf/pldd-xx.c: New file.
9427
9428 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
9429
9430         * version.h: Update for 2.15 development version.
9431
9432 2011-06-07  David S. Miller  <davem@davemloft.net>
9433
9434         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
9435         ifuncs.
9436         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
9437         elf_machine_lazy_rel): Likewise.
9438         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
9439         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
9440         elf_machine_lazy_rel): Likewise.
9441         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
9442         dl_hwcap via passed in argument.
9443         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
9444         Likewise.
9445
9446 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9447
9448         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
9449
9450 2011-06-06  Roland McGrath  <roland@hack.frob.com>
9451
9452         [BZ #12849]
9453         * manual/fdl-1.1.texi: New file, verbatim from:
9454         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
9455         * manual/lgpl-2.1.texi: New file, verbatim from:
9456         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
9457         * manual/Makefile (licenses): New variable, list those new file names.
9458         (texis): Use it.
9459         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
9460
9461         * manual/fdl.texi: File removed.
9462         * manual/lesser.texi: File removed.
9463         * manual/libc.texinfo (Copying, Documentation License):
9464         Use new @include file names, put @appendix directive before @include.
9465
9466 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
9467
9468         [BZ #12841]
9469         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
9470         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
9471         (mq_open): Add __NTH.
9472
9473 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
9474
9475         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9476         Assume Intel Core i3/i5/i7 processor if AVX is available.
9477
9478 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
9479
9480         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9481         typo.
9482
9483 2011-05-31  Andreas Schwab  <schwab@redhat.com>
9484
9485         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
9486         memory.  Use alloca_account.  Fix memory leak when retrying.
9487
9488 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
9489
9490         * version.h (RELEASE): Bump for 2.14 release.
9491         * include/features.h (__GLIBC_MINOR__): Bump to 14.
9492
9493         * config.make.in (RANLIB): Remove entry.
9494
9495 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
9496
9497         * po/Makefile (po-sed-cmd): Add ksh to extensions.
9498         (libc.pot): Work around missing support for .ksh extension in xgettext.
9499
9500         [BZ #12684]
9501         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
9502         if both request failed.
9503         (send_dg): In case of server errors clear resplen or *resplen2.
9504
9505         [BZ #12454]
9506         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
9507         when there are multiple maps.
9508         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
9509         (_dl_fini): Remove test here.
9510
9511         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
9512
9513 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
9514
9515         [BZ #12350]
9516         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
9517         bit from old_res_options.
9518         (gaih_inet): Likewise.
9519
9520         [BZ #11099]
9521         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
9522         as signed.
9523
9524         * resolv/res_init.c (res_setoptions): Make the code more compact.
9525
9526         [BZ #11558]
9527         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
9528         set RES_USEVC.
9529
9530         [BZ #11634]
9531         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
9532
9533         * malloc/malloc.h: Mark malloc hook variables as deprecated.
9534
9535         [BZ #11781]
9536         * malloc/malloc.h: Declare malloc hook variables as volatile.
9537
9538         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
9539         in last patch.
9540
9541         [BZ #11799]
9542         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
9543         raise in the comment.
9544         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9545         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9546         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9547
9548 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
9549
9550         [BZ #12811]
9551         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
9552         grow the buffers more if it already has to be sufficient.
9553         (build_wcs_upper_buffer): Likewise.
9554         * posix/regexec.c (check_matching): Likewise.
9555         (clean_state_log_if_needed): Likewise.
9556         (extend_buffers): Don't enlarge buffers beyond size of the input
9557         buffer.
9558         Patches mostly by Emil Wojak <emil@wojak.eu>.
9559         * posix/bug-regex32.c: New file.
9560         * posix/Makefile (tests): Add bug-regex32.
9561
9562         * locale/findlocale.c (_nl_find_locale): Return right away if
9563         _nl_explode_name failed.
9564         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
9565
9566         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
9567
9568         * debug/xtrace.sh: Unify messages.
9569         * malloc/memusage.sh: Likewise.
9570
9571         [BZ #12813]
9572         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
9573         time symbol from vDSO.  Substitute with vsyscall if not available.
9574         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
9575         __vdso_time.
9576
9577         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
9578         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
9579         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
9580         Add sendmmsg and internal_sendmmsg.
9581         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
9582         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
9583         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
9584
9585         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
9586         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
9587         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
9588
9589 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
9590
9591         [BZ #12813]
9592         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
9593         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
9594         available.
9595         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
9596         __vdso_getcpu.
9597
9598         [BZ #12814]
9599         * iconvdata/Makefile (tests): Add bug-iconv9.
9600         * iconvdata/bug-iconv9.c: New file.
9601
9602 2011-05-27  Andreas Schwab  <schwab@redhat.com>
9603
9604         [BZ #12814]
9605         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
9606
9607 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
9608
9609         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9610         (struct user_regs_struct): Change intcs field back to cs.
9611
9612 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
9613
9614         * po/ja.po: Update from translation team.
9615
9616 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
9617
9618         [BZ #12795]
9619         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
9620         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
9621
9622 2011-05-20  Andreas Schwab  <schwab@redhat.com>
9623
9624         * stdlib/longlong.h: Update from GCC.
9625
9626 2011-05-23  Andreas Schwab  <schwab@redhat.com>
9627
9628         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
9629         parameter name.
9630         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
9631         Add parameter name.
9632         (__sysconf): Pass it down.
9633
9634 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
9635
9636         [BZ #12671]
9637         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
9638         some situations.
9639         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9640         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
9641         add in in __libc_use_alloca calls.  Adjust callers.
9642         (glob): Use malloc in some situations.
9643
9644         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
9645         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
9646         pltexit.
9647
9648 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
9649
9650         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
9651         and CLOCK_BOOTTIME_ALARM.
9652
9653         [BZ #12782]
9654         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
9655         is returned.
9656
9657         * string/_strerror.c (__strerror_r): Print negative errors as signed
9658         numbers.
9659
9660         [BZ #12777]
9661         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
9662         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
9663         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
9664
9665         * configure.in: Fix typo in redirection and correct removal of test
9666         files in two cases.
9667
9668         [BZ #12788]
9669         * locale/setlocale.c (new_composite_name): Fix test to check for
9670         identical name of all categories.
9671
9672         [BZ #12792]
9673         * libio/filedoalloc.c (local_isatty): New function.
9674         (_IO_file_doallocate): Use local_isatty.
9675         * stdio-common/perror.c (perror): In case a new stream is used
9676         forward the stream error.
9677         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
9678         error flag.
9679
9680 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
9681
9682         [BZ #11869]
9683         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
9684         alloca.
9685         * include/alloca.h (extend_alloca_account): Define.
9686
9687         [BZ #11857]
9688         * posix/regex.h: Fix comments with documentation of user-accessible
9689         fields after compilation and describe correct free'ing of pattern
9690         after re_compile_pattern.
9691         Patch by Reuben Thomas <rrt@sc3d.org>.
9692
9693 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
9694
9695         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
9696         and -mno-altivec to prevent the compiler from using Altivec and/or
9697         VSX instructions when the corresponding registers are not available.
9698
9699 2011-05-19  Andreas Schwab  <schwab@redhat.com>
9700
9701         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
9702
9703 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
9704
9705         * libio/freopen.c (freopen): Use __dup2, not dup2.
9706         * libio/freopen64.c (freopen64): Likewise.
9707
9708 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9709
9710         [BZ #12775]
9711         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
9712         * math/Makefile (tests): Add test-powl.
9713         (CFLAGS-test-powl.c): Define.
9714         * math/test-powl.c: New file.
9715
9716 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9717
9718         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
9719
9720 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
9721
9722         [BZ #11837]
9723         * iconvdata/gb18030.c: Update to GB18020-2005.
9724
9725 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
9726
9727         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
9728         RE_SYNTAX_POSIX_AWK): Update to match recent development.
9729         Patch by Aharon Robbins <arnold@skeeve.com>.
9730
9731         [BZ #11892]
9732         * stdlib/putenv.c (putenv): Don't always create copy of the variable
9733         on the stack.
9734
9735         [BZ #11895]
9736         * misc/pselect.c (__pselect): Handle timeout value errors hidden
9737         through underflows.
9738
9739         [BZ #12766]
9740         * misc/error.c (error_at_line): Ensure file_name and old_file_name
9741         point to strings before performing equality test for error_one_per_line
9742         mode.
9743
9744         [BZ #11697]
9745         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
9746
9747         [BZ #11820]
9748         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9749         (struct user_fpregs_struct): Avoid __uint*_t types.
9750
9751         [BZ #6420]
9752         * malloc/mtrace.c (tr_where): Add additional parameter to point to
9753         symbol info.  Use it instead of calling _dl_addr locally.
9754         (lock_and_info): New function.
9755         (tr_freehook): Call lock_and_info and pass symbol info as additional
9756         parameter to tr_where.
9757         (tr_mallochook): Likewise.
9758         (tr_reallochook): Likewise.
9759         (tr_memalignhook): Likewise.
9760
9761         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
9762         used and couldn't be at all thread-safe.
9763
9764 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
9765
9766         * libio/freopen.c (freopen): Don't close old file descriptor
9767         before the new one is opened.  Instead dup the new file descriptor
9768         to the old one after the new stream is created.
9769         * libio/freopen64.c (freopen64): Likewise.
9770         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
9771         * libio/fileops.c (_IO_new_file_close_it): Handle new
9772         _IO_FLAGS2_NOCLOSE flag.
9773         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
9774         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
9775         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
9776         _IO_FLAGS2_NOCLOSE flag.
9777         * include/unistd.h: Add hidden_proto for dup3.
9778         Define __have_dup3.
9779         * io/dup3.c: Define hidden symbol.
9780         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
9781
9782         [BZ #7101]
9783         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
9784         when an incomplete long option is used.
9785         * posix/tst-getopt_long1.c: New file.
9786         * posix/Makefile (tests): Add tst-getopt_long1.
9787
9788         [BZ #10138]
9789         * scripts/config.guess: Update from autoconf-2.68.
9790         * scripts/config.sub: Likewise.
9791
9792         [BZ #10157]
9793         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
9794         tests into ...
9795         (has_cpuclock): ...this.  New function.
9796         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
9797         macro here based on has_cpuclock code.
9798
9799         [BZ #10149]
9800         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9801         First byte (not low byte) is now always NUL.
9802         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
9803
9804         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9805         Use non-cancelable interfaces.
9806
9807         [BZ #9809]
9808         * locale/iso-639.def: Add entry for Sorani.
9809
9810         [BZ #11901]
9811         * include/stdlib.h: Move include protection to the right place.
9812         Define abort_msg_s.  Declare __abort_msg with it.
9813         * stdlib/abort.c (__abort_msg): Adjust type.
9814         * assert/assert.c (__assert_fail_base): New function.  Majority
9815         of code from __assert_fail.  Allocate memory for __abort_msg with
9816         mmap.
9817         (__assert_fail): Now call __assert_fail_base.
9818         * assert/assert-perr.c: Remove bulk of implementation.  Use
9819         __assert_fail_base.
9820         * include/assert.hL Declare __assert_fail_base.
9821         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
9822         mmap.
9823         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
9824
9825 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
9826
9827         [BZ #11952]
9828         [BZ #12453]
9829         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
9830         until all modules are registered in the DTV.
9831         * elf/Makefile: Add rules to build and run tst-tls19.
9832         * elf/tst-tls19.c: New file.
9833         * elf/tst-tls19mod1.c: New file.
9834         * elf/tst-tls19mod2.c: New file.
9835         * elf/tst-tls19mod3.c: New file.
9836         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
9837
9838         [BZ #12083]
9839         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
9840         correctly.
9841
9842         [BZ #12601]
9843         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
9844         two-byte sequence errors.
9845         * iconvdata/Makefile (tests): Add bug-iconv8.
9846         * iconvdata/bug-iconv8.c: New file.
9847
9848         [BZ #12626]
9849         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
9850         buf2 definition.
9851
9852         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
9853
9854         [BZ #12432]
9855         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
9856         (dummy_getcfa): New function.
9857         (init): Get _Unwind_GetCFA address, use dummy if not found.
9858         (backtrace_helper): In recursion check, also check whether CFA changes.
9859         (__backtrace): Completely initialize arg.
9860
9861         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
9862         storing incomplete byte sequence in state object.  Avoid testing for
9863         guaranteed too small input if we know there is enough data available.
9864
9865 2011-05-11  Andreas Schwab  <schwab@redhat.com>
9866
9867         * Makeconfig (+link-pie): Indent.
9868         * Rules (binaries-pie): Define if $(have-fpie) and
9869         $(build-shared).
9870         (binaries-shared): Also filter out $(binaries-pie).
9871         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
9872         * nscd/Makefile (others-pie): Add nscd.
9873         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
9874         ($(objpfx)nscd): Remove command override.
9875         * login/Makefile (others-pie): Add pt_chown.
9876         ($(objpfx)pt_chown): Remove command override.
9877         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
9878         remove command overrides.
9879
9880 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
9881
9882         * libio/tst_putwc.c: Fix error messages.
9883
9884         [BZ #12724]
9885         * libio/fileops.c (_IO_new_file_close_it): Always flush when
9886         currently writing and seek to current position when not.
9887         * libio/Makefile (tests): Add bug-fclose1.
9888         * libio/bug-fclose1.c: New file.
9889
9890 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
9891
9892         [BZ #12511]
9893         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
9894         don't set DF_1_NODELETE here.
9895         (do_lookup_x): When entering new entry test for copy relocation
9896         and if necessary set DF_1_NODELETE flag.
9897         * elf/tst-unique4.cc: New file.
9898         * elf/tst-unique4.h: New file.
9899         * elf/tst-unique4lib.cc: New file.
9900         * elf/Makefile: Add rules to build and run tst-unique4.
9901         Patch by Piotr Bury <pbury@goahead.com>.
9902
9903 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9904
9905         [BZ #12052]
9906         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
9907
9908         [BZ #12625]
9909         * misc/mntent_r.c (addmntent): Flush the stream after the output
9910
9911         [BZ #12393]
9912         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
9913         (is_trusted_path_normalize): Skip initial colon.  Append slash
9914         to empty buffer.  Duplicate is_trusted_path code but allow
9915         constructed patch to be prefix.
9916         (is_dst): Allow $ORIGIN followed by /.
9917         (_dl_dst_substitute): Correct clearing of check_for_trusted.
9918         Correct testing of result of is_trusted_path_normalize
9919         (decompose_rpath): Fix warning.
9920
9921 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
9922
9923         [BZ #11257]
9924         * grp/initgroups.c (internal_getgrouplist): When we found the service
9925         list through the initgroups entry in nsswitch.conf do not always
9926         continue on a successful lookup.  Don't always use the
9927         __nss_group_database value if it is set.
9928         * nss/nsswitch.conf (initgroups): Change action for successful db
9929         lookup to continue for compatibility.
9930
9931 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
9932
9933         [BZ #11532]
9934         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
9935         and CP774 modules.
9936         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
9937         and CP774 modules.
9938         * iconvdata/tst-tables.sh: Likewise.
9939         * iconvdata/cp770.c: New file.
9940         * iconvdata/cp771.c: New file.
9941         * iconvdata/cp772.c: New file.
9942         * iconvdata/cp773.c: New file.
9943         * iconvdata/cp774.c: New file.
9944         * iconvdata/testdata/CP770: New file.
9945         * iconvdata/testdata/CP770..UTF8: New file.
9946         * iconvdata/testdata/CP771: New file.
9947         * iconvdata/testdata/CP771..UTF8: New file.
9948         * iconvdata/testdata/CP772: New file.
9949         * iconvdata/testdata/CP772..UTF8: New file.
9950         * iconvdata/testdata/CP773: New file.
9951         * iconvdata/testdata/CP773..UTF8: New file.
9952         * iconvdata/testdata/CP774: New file.
9953         * iconvdata/testdata/CP774..UTF8: New file.
9954
9955         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
9956         END CHARMAP line.
9957         * iconvdata/gen-8bit-gap.sh: Likewise.
9958         * iconvdata/gen-8bit.sh: Likewise.
9959
9960         * locale/iso-639.def: Add ary entry.
9961
9962         [BZ #11258]
9963         * locale/C-translit.h.in: Add U20A1 transliteration.
9964
9965         [BZ #12178]
9966         * locale/iso-639.def: Add wae entry.
9967         Patch by Kevin Bortis <bortis@translate-wae.ch>.
9968
9969         [BZ #12545]
9970         * locale/programs/localedef.c (construct_output_path): Use ssize_t
9971         for n.
9972
9973         [BZ #12711]
9974         * locale/C-translit.h.in: Add entry for U20B9.
9975         Patch by pravin.d.s@gmail.com.
9976
9977 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
9978
9979         [BZ #12713]
9980         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
9981         ENAMETOOLONG use generic getcwd.
9982         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
9983         in rtld.  Use *stat64.
9984         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
9985         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
9986         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
9987         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
9988         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
9989         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
9990         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
9991         __fstatat64 macros.
9992         * include/dirent.h: Add libc_hidden_proto for rewinddir.
9993         * dirent/rewinddir.c: Add libc_hidden_def.
9994         * sysdeps/mach/hurd/rewinddir.c: Likewise.
9995         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
9996
9997         * include/dirent.h (__alloc_dir): Add flags parameter.
9998         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
9999         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
10000         __alloc_dir.
10001         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
10002         from fdopendir if O_CLOEXEC is already set.
10003
10004 2011-03-15  Alan Modra  <amodra@gmail.com>
10005
10006         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
10007         l_tls_firstbyte_offset non-zero.  Save padding offset in
10008         l_tls_firstbyte_offset for later use.
10009         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
10010         freeing static tls block.
10011
10012 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
10013
10014         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
10015         where #ifdef was intended.  The intent is to prevent ARG_MAX from
10016         being defined by the kernel headers.
10017
10018 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
10019
10020         [BZ #12734]
10021         * resolv/resolv.h: Define RES_NOTLDQUERY.
10022         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
10023         no-tld-query and set RES_NOTLDQUERY.
10024         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
10025         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
10026         modern BIND to search name as TLD unless forbidden.
10027
10028 2011-05-07  Petr Baudis  <pasky@suse.cz>
10029             Ulrich Drepper  <drepper@gmail.com>
10030
10031         [BZ #12393]
10032         * elf/dl-load.c (fillin_rpath): Move trusted path check...
10033         (is_trusted_path): ...to here.
10034         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
10035         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
10036         using is_trusted_path_normalize() in setuid scripts.
10037
10038 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10039
10040         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
10041         __BEGIN/__END_DECLS.
10042
10043 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
10044
10045         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
10046         NSS_STATUS_NOTFOUND if no record was found.
10047
10048 2011-05-05  Andreas Schwab  <schwab@redhat.com>
10049
10050         * sunrpc/Makefile (headers): Add rpc/netdb.h.
10051         (headers-not-in-tirpc): Remove rpc/netdb.h
10052         * resolv/netdb.h: Revert last change.
10053
10054 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10055
10056         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
10057         circular dependency between libgcc.a and libc.a.
10058
10059 2011-05-05  Andreas Schwab  <schwab@redhat.com>
10060
10061         * resolv/netdb.h: Don't include <rpc/netdb.h>.
10062         * nis/Makefile: Don't install rpcsvc/*.
10063         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
10064         instead of <rpc/types.h>.
10065         (MAXHOSTNAMELEN): Define.
10066
10067 2011-05-03  Andreas Schwab  <schwab@redhat.com>
10068
10069         * elf/ldconfig.c (add_dir): Don't crash on empty path.
10070
10071 2011-04-28  Maciej Babinski  <mbabinski@google.com>
10072
10073         [BZ #12714]
10074         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
10075         gethostbyname4_r when IPv6 results are possible.
10076
10077 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
10078
10079         [BZ #12723]
10080         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
10081         _PC_PIPE_BUF handling.
10082
10083 2011-04-30  Bruno Haible  <bruno@clisp.org>
10084
10085         [BZ #12717]
10086         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
10087         * resolv/netdb.h (getnameinfo): Change type of flags parameter
10088         to 'int'.
10089         * inet/getnameinfo.c (getnameinfo): Likewise.
10090
10091 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
10092
10093         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
10094         to groups setting in database lookup.
10095         * nss/nsswitch.conf: Add initgroups entry.
10096
10097 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
10098
10099         [BZ #12685]
10100         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
10101         mode string.
10102         Patch by Eric Blake <eblake@redhat.com>.
10103
10104 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
10105
10106         * sunrpc/Makefile (need-export-routines): Add svc_run.
10107         (routines): Remove svc_run.
10108         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
10109         * sunrpc/clnt_perr.c (clnt_perrno): Export.
10110         * sunrpc/svc_run.c (svc_run): Likewise.
10111         * sunrpc/svc_udp.c (svcudp_create): Likewise.
10112
10113 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
10114
10115         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
10116         problem in reallocation in last patch.
10117
10118 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
10119
10120         * sunrpc/Makefile: Move inclusion of Rules.
10121
10122 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
10123
10124         * nss/nss_files/files-initgroups.c: New file.
10125         * nss/Makefile (libnss_files-routines): Add files-initgroups.
10126         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
10127         _nss_files_initgroups_dyn.
10128
10129 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
10130
10131         * elf/elf.h (R_ARM_IRELATIVE): Define.
10132
10133 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
10134
10135         * po/ru.po: Update from translation team.
10136
10137 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
10138
10139         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
10140         dependencies.
10141
10142 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
10143
10144         [BZ #12653]
10145         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
10146         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
10147         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10148         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10149         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
10150
10151 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
10152
10153         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
10154         differing bytes.
10155         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
10156         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
10157         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10158
10159 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
10160
10161         [BZ #12420]
10162         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
10163         storing it.
10164         * stdlib/bug-getcontext.c: New file.
10165         * stdlib/Makefile: Add rules to build and run bug-getcontext.
10166
10167 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10168
10169         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
10170         instructions into .machine "z9-109".
10171         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
10172         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
10173
10174 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10175
10176         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
10177         between environment variables and auxiliary vector.
10178
10179 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
10180
10181         * Makefile: Add rules to build linkobj/libc.so.
10182         * include/libc-symbols.h: Define libc_hidden_nolink.
10183         * include/rpc/auth.h: Mark functions which are to be hidden.
10184         * include/rpc/auth_des.h: Likewise.
10185         * include/rpc/auth_unix.h: Likewise.
10186         * include/rpc/clnt.h: Likewise.
10187         * include/rpc/des_crypt.h: Likewise.
10188         * include/rpc/key_prot.h: Likewise.
10189         * include/rpc/pmap_clnt.h: Likewise.
10190         * include/rpc/pmap_prot.h: Likewise.
10191         * include/rpc/pmap_rmt.h: Likewise.
10192         * include/rpc/rpc_msg.h: Likewise.
10193         * include/rpc/svc.h: Likewise.
10194         * include/rpc/svc_auth.h: Likewise.
10195         * include/rpc/xdr.h: Likewise.
10196         * nis/Makefile: Link all DSOs against linkobj/libc.so.
10197         * nss/Makefile: Likewise.
10198         * sunrpc/Makefile: Don't install headers.  Build library with normal
10199         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
10200         * sunrpc/auth_des.c: Hide exported symbols by default, export some
10201         for the compat linking library.  Remove use of INTDEF/INTUSE.
10202         * sunrpc/auth_none.c: Likewise.
10203         * sunrpc/auth_unix.c: Likewise.
10204         * sunrpc/authdes_prot.c: Likewise.
10205         * sunrpc/authuxprot.c: Likewise.
10206         * sunrpc/clnt_gen.c: Likewise.
10207         * sunrpc/clnt_perr.c: Likewise.
10208         * sunrpc/clnt_raw.c: Likewise.
10209         * sunrpc/clnt_simp.c: Likewise.
10210         * sunrpc/clnt_tcp.c: Likewise.
10211         * sunrpc/clnt_udp.c: Likewise.
10212         * sunrpc/clnt_unix.c: Likewise.
10213         * sunrpc/des_crypt.c: Likewise.
10214         * sunrpc/des_soft.c: Likewise.
10215         * sunrpc/get_myaddr.c: Likewise.
10216         * sunrpc/key_call.c: Likewise.
10217         * sunrpc/key_prot.c: Likewise.
10218         * sunrpc/netname.c: Likewise.
10219         * sunrpc/pm_getmaps.c: Likewise.
10220         * sunrpc/pm_getport.c: Likewise.
10221         * sunrpc/pmap_clnt.c: Likewise.
10222         * sunrpc/pmap_prot.c: Likewise.
10223         * sunrpc/pmap_prot2.c: Likewise.
10224         * sunrpc/pmap_rmt.c: Likewise.
10225         * sunrpc/publickey.c: Likewise.
10226         * sunrpc/rpc_cmsg.c: Likewise.
10227         * sunrpc/rpc_common.c: Likewise.
10228         * sunrpc/rpc_dtable.c: Likewise.
10229         * sunrpc/rpc_prot.c: Likewise.
10230         * sunrpc/rpc_thread.c: Likewise.
10231         * sunrpc/rtime.c: Likewise.
10232         * sunrpc/svc.c: Likewise.
10233         * sunrpc/svc_auth.c: Likewise.
10234         * sunrpc/svc_authux.c: Likewise.
10235         * sunrpc/svc_raw.c: Likewise.
10236         * sunrpc/svc_run.c: Likewise.
10237         * sunrpc/svc_simple.c: Likewise.
10238         * sunrpc/svc_tcp.c: Likewise.
10239         * sunrpc/svc_udp.c: Likewise.
10240         * sunrpc/svc_unix.c: Likewise.
10241         * sunrpc/svcauth_des.c: Likewise.
10242         * sunrpc/xcrypt.c: Likewise.
10243         * sunrpc/xdr.c: Likewise.
10244         * sunrpc/xdr_array.c: Likewise.
10245         * sunrpc/xdr_float.c: Likewise.
10246         * sunrpc/xdr_intXX_t.c: Likewise.
10247         * sunrpc/xdr_mem.c: Likewise.
10248         * sunrpc/xdr_rec.c: Likewise.
10249         * sunrpc/xdr_ref.c: Likewise.
10250         * sunrpc/xdr_sizeof.c: Likewise.
10251         * sunrpc/xdr_stdio.c: Likewise.
10252
10253 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
10254
10255         [BZ #12650]
10256         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
10257         * sysdeps/ia64/dl-tls.h: Likewise.
10258         * sysdeps/powerpc/dl-tls.h: Likewise.
10259         * sysdeps/s390/dl-tls.h: Likewise.
10260         * sysdeps/sh/dl-tls.h: Likewise.
10261         * sysdeps/sparc/dl-tls.h: Likewise.
10262         * sysdeps/x86_64/dl-tls.h: Likewise.
10263         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
10264
10265 2011-03-14  Andreas Schwab  <schwab@redhat.com>
10266
10267         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
10268         rpath element also skip the following colon.
10269         (expand_dynamic_string_token): Add is_path parameter and pass
10270         down to DL_DST_REQUIRED and _dl_dst_substitute.
10271         (decompose_rpath): Call expand_dynamic_string_token with
10272         non-zero is_path.  Ignore empty rpaths.
10273         (_dl_map_object_from_fd): Call expand_dynamic_string_token
10274         with zero is_path.
10275
10276 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
10277
10278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
10279         Make cancelable.
10280
10281 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
10282
10283         [BZ #12655]
10284         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
10285         Patch by Filipe David Manana <fdmanana@apache.org>.
10286
10287 2011-04-07  Andreas Schwab  <schwab@redhat.com>
10288
10289         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
10290         Maintain aligned stack.
10291         (CHECK_RSP): Remove unused macro.
10292
10293 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
10294
10295         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
10296         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10297
10298 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
10299
10300         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
10301
10302         * include/features.h: Mention __USE_XOPEN2K8 in comment.
10303
10304 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
10305
10306         [BZ #12518]
10307         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
10308         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
10309         * sysdeps/x86_64/memmove.c: New file.
10310         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
10311         (memcpy): Renamed to ...
10312         (__new_memcpy): This.
10313         (memcpy): Provide GLIBC_2_14 memcpy.
10314         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
10315         (memcpy): Provide GLIBC_2_2_5 memcpy.
10316
10317 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10318
10319         [BZ #12631]
10320         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
10321
10322 2011-03-30  Andreas Schwab  <schwab@redhat.com>
10323
10324         * misc/syncfs.c: New file.
10325         * misc/Makefile (routines): Add syncfs.
10326         * posix/unistd.h: Declare syncfs.
10327         * sysdeps/unix/syscalls.list: Add syncfs.
10328
10329 2011-04-01  Andreas Schwab  <schwab@redhat.com>
10330
10331         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
10332         open_by_handle_at.
10333         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10334         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10335         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10336         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10337         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10338         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10339         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10340
10341 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10342
10343         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
10344         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10345         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10346         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10347         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10348         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10349         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10350
10351         * io/Makefile: Compile fallocate.c, fallocate64.c, and
10352         sync_file_range.c with -fexceptions.
10353         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
10354         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
10355         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
10356         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
10357         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10358         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
10359         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
10360         sync_file_range as cancellation point
10361         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
10362         now a wrapper around __call_sync_file_range with cancellation handling.
10363         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
10364         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
10365         function name to __call_sync_file_range.
10366         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
10367         Add call_sync_file_range.
10368
10369 2011-04-01  Andreas Schwab  <schwab@redhat.com>
10370
10371         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10372         bits/timex.h.
10373
10374 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10375
10376         * iconv/iconv.h: Fix typo in comment.
10377         * io/fcntl.h: Likewise.
10378         * libio/stdio.h: Likewise.
10379         * posix/spawn.h: Likewise.
10380         * posix/unistd.h: Likewise.
10381         * stdlib/stdlib.h: Likewise.
10382         * time/time.h: Likewise.
10383         * wcsmbs/wchar.h: Likewise.
10384
10385         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
10386         open_by_handle): Add.
10387         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
10388         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
10389         Augment a few comments.
10390         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10391         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10392         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10393         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10394         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10395         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
10396         open_by_handle.
10397
10398         * io/fcntl.h (AT_EMPTY_PATH): Define.
10399
10400 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
10401
10402         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
10403         * sysdeps/unix/sysv/linux/bits/time.h: New file.
10404         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
10405         to...
10406         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
10407         * Versions.def: Add GLIBC_2.14.
10408         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
10409         Export.
10410
10411 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
10412
10413         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
10414         round counter.
10415         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
10416
10417 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10418
10419         [BZ #12597]
10420         * string/test-strncmp.c (do_page_test): New function.
10421         (check2): Likewise.
10422         (test_main): Call check2.
10423         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
10424
10425 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
10426
10427         [BZ #12587]
10428         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10429         Handle cache information in CPU leaf 4.
10430         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
10431
10432 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
10433
10434         [BZ #12583]
10435         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
10436         character representation.
10437         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
10438
10439 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
10440
10441         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
10442         END(__isnan) to END(__isnanf) to match function entry point/label
10443         EALIGN(__isnanf,...).
10444
10445 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10446
10447         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
10448
10449 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
10450
10451         [BZ #12510]
10452         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
10453         copy from the symbol referenced in the relocation to initialize the
10454         used variable.
10455         Patch by Piotr Bury <pbury@goahead.com>.
10456         * elf/Makefile: Add rules to build and tst-unique3.
10457         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
10458         * elf/tst-unique3.cc: New file.
10459         * elf/tst-unique3.h: New file.
10460         * elf/tst-unique3lib.cc: New file.
10461         * elf/tst-unique3lib2.cc: New file.
10462
10463         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
10464
10465 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
10466
10467         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
10468         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
10469         to _start.
10470
10471 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
10472
10473         * elf/dl-load.c (_dl_map_object): If we are looking for the first
10474         to-be-loaded object along a path to loader is ld.so.
10475
10476 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
10477             Ulrich Drepper  <drepper@gmail.com>
10478
10479         * sysdeps/x86_64/memset.S: After aligning destination, code
10480         branches to different locations depending on the value of
10481         misalignment, when multiarch is enabled. Fix this.
10482
10483 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
10484
10485         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
10486         Set _x86_64_preferred_memory_instruction for AMD processsors.
10487         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10488         Set bit_Prefer_SSE_for_memop for AMD processors.
10489
10490 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
10491
10492         * libio/fmemopen.c (fmemopen): Optimize a bit.
10493
10494 2011-03-03  Andreas Schwab  <schwab@redhat.com>
10495
10496         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
10497
10498 2011-03-03  Roland McGrath  <roland@redhat.com>
10499
10500         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
10501
10502 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
10503
10504         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
10505         __bzero_ultra1 instead of __memset_ultra1.
10506
10507 2011-02-23  Andreas Schwab  <schwab@redhat.com>
10508             Ulrich Drepper  <drepper@gmail.com>
10509
10510         [BZ #12509]
10511         * include/link.h (struct link_map): Add l_orig_initfini.
10512         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
10513         returning unsuccessfully.
10514         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
10515         close of a file loaded at startup, restore the original l_initfini
10516         list.
10517         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
10518         list, store the pointer.
10519         * elf/Makefile ($(objpfx)noload-mem): New rule.
10520         (noload-ENV): Define.
10521         (tests): Add $(objpfx)noload-mem.
10522         * elf/noload.c: Include <memcheck.h>.
10523         (main): Call mtrace.  Close all opened handles.
10524
10525 2011-02-17  Andreas Schwab  <schwab@redhat.com>
10526
10527         [BZ #12454]
10528         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
10529         dependencies are missing.
10530
10531 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10532
10533         Fix __if_freereq crash: Unlike the generic version which uses free,
10534         Hurd needs munmap.
10535         * sysdeps/mach/hurd/ifreq.h: New file.
10536
10537 2011-01-27  Petr Baudis  <pasky@suse.cz>
10538             Ulrich Drepper  <drepper@gmail.com>
10539
10540         [BZ 12445]#
10541         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
10542         to extend_alloca().
10543         * stdio-common/bug23.c: New file.
10544         * stdio-common/Makefile (tests): Add bug23.
10545
10546 2010-09-28  Andreas Schwab  <schwab@redhat.com>
10547             Ulrich Drepper  <drepper@gmail.com>
10548
10549         [BZ #12489]
10550         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
10551         before performing relro protection.  At old place add assertion
10552         to make sure nothing changed.
10553
10554 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
10555             Glauber de Oliveira Costa  <glommer@gmail.com>
10556
10557         * elf/elf.h: Add new ARM TLS relocs.
10558
10559 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
10560
10561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10562         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
10563         cast from r3.
10564         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
10565         'tests' variable.
10566         * sysdeps/wordsize-64/tst-writev.c: New file.
10567
10568 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
10569
10570         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
10571         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
10572         insns in _dl_start to prevent a TOC reference before relocs are
10573         resolved.
10574
10575 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
10576
10577         [BZ #12469]
10578         * Makeconfig: Remove RANLIB definition.
10579         * Makerules: Don't use RANLIB.
10580         * aclocal.m4: Remove ranlib test.
10581         * configure.in: No need to check for ranlib.
10582         * elf/rtld-Rules: Don't use RANLIB.
10583
10584 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10585
10586         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
10587         protection macro.
10588         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
10589         inclusion protection macro.
10590
10591         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
10592         SIGRTMIN and SIGRTMAX and print information in that case only when
10593         SIGRTMIN is defined.
10594
10595 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10596
10597         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
10598         arginfo fn returning -1.
10599
10600         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
10601         and thousands string is zero terminated.
10602
10603 2011-02-03  Andreas Schwab  <schwab@redhat.com>
10604
10605         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
10606         sysdeps/unix/sysv/linux/bits/socket.h.
10607
10608 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10609
10610         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
10611         (__CPU_COUNT): Remove old macros.
10612         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
10613         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
10614         (__CPU_ALLOC, __CPU_FREE): Add macros.
10615         (__sched_cpualloc, __sched_cpufree): Add declarations.
10616
10617 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
10618
10619         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
10620         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
10621         * nscd/aicache.c (addhstaiX): Return timeout of added value.
10622         (readdhstai): Return value of addhstaiX call.
10623         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
10624         (addgrbyX): Return value returned by cache_addgr.
10625         (readdgrbyname): Return value returned by addgrbyX.
10626         (readdgrbygid): Likewise.
10627         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
10628         (addpwbyX): Return value returned by cache_addpw.
10629         (readdpwbyname): Return value returned by addhstbyX.
10630         (readdpwbyuid): Likewise.
10631         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
10632         (addservbyX): Return value returned by cache_addserv.
10633         (readdservbyname): Return value returned by addservbyX:
10634         (readdservbyport): Likewise.
10635         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
10636         (addhstbyX): Return value returned by cache_addhst.
10637         (readdhstbyname): Return value returned by addhstbyX.
10638         (readdhstbyaddr): Likewise.
10639         (readdhstbynamev6): Likewise.
10640         (readdhstbyaddrv6): Likewise.
10641         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
10642         (readdinitgroups): Return value returned by addinitgroupsX.
10643         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
10644         (prune_cache): Keep track of timeout value of re-added entries.
10645         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
10646         * nscd/nscd.h: Adjust prototypes of readd* functions.
10647
10648 2011-02-04  Roland McGrath  <roland@redhat.com>
10649
10650         * nis/nis_server.c (nis_servstate): Use the right name for 0.
10651         (nis_stats): Likewise.
10652         * nis/nis_modify.c (nis_modify): Likewise.
10653         * nis/nis_remove.c (nis_remove): Likewise.
10654         * nis/nis_add.c (nis_add): Likewise.
10655
10656         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
10657
10658         * posix/fnmatch_loop.c: Add some consts.
10659
10660         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
10661
10662 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
10663
10664         [BZ #12460]
10665         * config.make.in (config-cflags-novzeroupper): Define.
10666         * configure.in: Substitute libc_cv_cc_novzeroupper.
10667         * elf/Makefile (AVX-CFLAGS): Define.
10668         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
10669         (CFLAGS-tst-auditmod4a.c): Likewise.
10670         (CFLAGS-tst-auditmod4b.c): Likewise.
10671         (CFLAGS-tst-auditmod6b.c): Likewise.
10672         (CFLAGS-tst-auditmod6c.c): Likewise.
10673         (CFLAGS-tst-auditmod7b.c): Likewise.
10674         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
10675
10676 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
10677
10678         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
10679         function to the callback.
10680         Patch partly by Jiri Olsa <jolsa@redhat.com>.
10681
10682 2011-02-02  Andreas Schwab  <schwab@redhat.com>
10683
10684         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
10685         of errno.
10686
10687 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
10688
10689         [BZ #11724]
10690         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
10691         of constructors.
10692         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
10693         of destructors.
10694         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
10695
10696         [BZ #11724]
10697         * elf/Makefile: Add rules to build and run new test.
10698         * elf/tst-initorder.c: New file.
10699         * elf/tst-initorder.exp: New file.
10700         * elf/tst-initordera1.c: New file.
10701         * elf/tst-initordera2.c: New file.
10702         * elf/tst-initordera3.c: New file.
10703         * elf/tst-initordera4.c: New file.
10704         * elf/tst-initorderb1.c: New file.
10705         * elf/tst-initorderb2.c: New file.
10706         * elf/tst-order-a1.c: New file.
10707         * elf/tst-order-a2.c: New file.
10708         * elf/tst-order-a3.c: New file.
10709         * elf/tst-order-a4.c: New file.
10710         * elf/tst-order-b1.c: New file.
10711         * elf/tst-order-b2.c: New file.
10712         * elf/tst-order-main.c: New file.
10713         New test case by George Gensure <werkt0@gmail.com>.
10714
10715 2010-10-01  Andreas Schwab  <schwab@redhat.com>
10716
10717         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
10718         decoding ACE if AI_CANONIDN.
10719
10720 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
10721
10722         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
10723
10724 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
10725
10726         * version.h (RELEASE): Bump for 2.13 release.
10727         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
10728
10729         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
10730
10731         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
10732         MADV_NOHUGEPAGE.
10733         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10734         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
10735         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10736         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10737         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10738         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10739
10740         * posix/getconf.c: Update copyright year.
10741         * catgets/gencat.c: Likewise.
10742         * csu/version.c: Likewise.
10743         * debug/catchsegv.sh: Likewise.
10744         * debug/xtrace.sh: Likewise.
10745         * elf/ldconfig.c: Likewise.
10746         * elf/ldd.bash.in: Likewise.
10747         * elf/sprof.c (print_version): Likewise.
10748         * iconv/iconv_prog.c: Likewise.
10749         * iconv/iconvconfig.c: Likewise.
10750         * locale/programs/locale.c: Likewise.
10751         * locale/programs/localedef.c: Likewise.
10752         * malloc/memusage.sh: Likewise.
10753         * malloc/mtrace.pl: Likewise.
10754         * nscd/nscd.c (print_version): Likewise.
10755         * nss/getent.c: Likewise.
10756
10757         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
10758         PF_CAIF, and PF_ALG.
10759         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10760
10761 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
10762
10763         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
10764         (modules-names): Use them.
10765         (ifunc-test-modules, ifunc-pie-tests): Define.
10766         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
10767         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
10768         (test-extras): Likewise.
10769         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
10770         $(compile-command.c).
10771         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
10772         (all-built-dso): Define.
10773         (check-textrel.out, check-execstack.out): Depend on it.
10774
10775         * configure.in: Don't override --enable-multi-arch.
10776
10777 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
10778
10779         [BZ #6812]
10780         * nscd/hstcache.c (tryagain): Define.
10781         (cache_addhst): Return tryagain not notfound for temporary errors.
10782         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
10783         failed.
10784
10785 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
10786
10787         [BZ #10563]
10788         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
10789         to make the syscall.
10790         * sysdeps/unix/sysv/linux/setgroups.c: New file.
10791
10792         [BZ #12378]
10793         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
10794         and fall back to matching as normal character if the string ends before
10795         the matching ']' is found.  This is what POSIX requires.
10796         * posix/testfnm.c: Adjust test result.
10797         * posix/globtest.sh: Adjust test result.  Add new test.
10798         * posix/tst-fnmatch.input: Likewise.
10799         * posix/tst-fnmatch2.c: Add new test.
10800
10801 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
10802
10803         * elf/Makefile (check-execstack): Revert last change.  Depend on
10804         check-execstack.h.
10805         (check-execstack.h): New target.
10806         (generated): Add check-execstack.h.
10807         * elf/check-execstack.c: Include "check-execstack.h".
10808         (main): Revert last change.
10809         (handle_file): Return zero if GNU_STACK is absent and
10810         DEFAULT_STACK_PERMS doesn't include PF_X.
10811
10812 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
10813
10814         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
10815         in child fails because the descriptor is already closed.
10816         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
10817         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
10818         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10819
10820         [BZ #12397]
10821         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
10822         syscall.
10823
10824         [BZ #10484]
10825         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
10826         temporary buffer used to handle multi lookups locally.
10827         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
10828
10829 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10830
10831         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
10832         loader is ld.so.
10833
10834 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
10835
10836         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
10837         alignment for SSE2.
10838
10839 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10840
10841         [BZ #12394]
10842         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
10843         characters.  When rounding increased number of integer digits recompute
10844         number of groups.
10845         * stdio-common/tst-grouping.c: New file.
10846         * stdio-common/Makefile: Add rules to build and run tst-grouping.
10847
10848 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
10849
10850         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
10851         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
10852
10853         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
10854         void.
10855         * bits/select.h: Likewise.
10856
10857 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
10858
10859         * po/ja.po: Update from translation team.
10860
10861 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
10862
10863         [BZ #11155]
10864         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
10865         implementation just like for lxstat, fxstatat, et al.
10866
10867 2010-12-27  Jim Meyering  <meyering@redhat.com>
10868
10869         [BZ #12348]
10870         * posix/regexec.c (build_trtable): Return failure indication upon
10871         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10872
10873 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
10874
10875         [BZ #12201]
10876         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
10877         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
10878         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
10879         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
10880
10881         [BZ #12207]
10882         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
10883
10884         [BZ #12204]
10885         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
10886         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
10887
10888 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
10889
10890         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
10891         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
10892         script has SORT_BY_INIT_PRIORITY.
10893         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
10894         NO_CTORS_DTORS_SECTIONS is defined.
10895         * elf/soinit.c: Likewise.
10896         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
10897         NO_CTORS_DTORS_SECTIONS is defined.
10898         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
10899         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
10900         * sysdeps/sh/init-first.c: Likewise.
10901         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10902
10903 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
10904
10905         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
10906         always use the slow path.
10907
10908 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
10909
10910         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
10911         similar rule which adds the sysdep directories to the header search in
10912         order to pick up the correct platform stackinfo.h.
10913         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
10914         perform test if it is, otherwise return successfully without testing.
10915         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
10916         DEFAULT_STACK_PERMS define in stackinfo.h.
10917         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
10918         defined in stackinfo.h.
10919         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
10920         DEFAULT_STACK_PERMS defined in stackinfo.h.
10921         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
10922         * sysdeps/ia64/stackinfo.h: Likewise.
10923         * sysdeps/s390/stackinfo.h: Likewise.
10924         * sysdeps/sh/stackinfo.h: Likewise.
10925         * sysdeps/sparc/stackinfo.h: Likewise.
10926         * sysdeps/x86_64/stackinfo.h: Likewise.
10927         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
10928         PF_X for powerpc64.  Retain PF_X for powerpc32.
10929
10930 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
10931
10932         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
10933         accurately.
10934         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
10935         GETDENTS_64BIT_ALIGNED.
10936
10937 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
10938
10939         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
10940
10941 2010-12-10  Andreas Schwab  <schwab@redhat.com>
10942
10943         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
10944         _GNU_SOURCE.
10945
10946         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
10947         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
10948         Remove __restrict.
10949         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
10950         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
10951
10952 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
10953
10954         [BZ #11655]
10955         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
10956         are initialized.
10957
10958 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
10959
10960         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
10961
10962 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
10963
10964         * po/it.po: Update from translation team.
10965
10966 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
10967
10968         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
10969         unused codes.
10970
10971 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
10972
10973         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
10974
10975 2010-11-24  Andreas Schwab  <schwab@redhat.com>
10976
10977         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
10978         specially.
10979         (gaih_getanswer_slice): Likewise.
10980
10981 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
10982
10983         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
10984
10985 2010-05-31  Petr Baudis  <pasky@suse.cz>
10986
10987         [BZ #11149]
10988         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
10989         silently even in the chroot mode.
10990
10991 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
10992
10993         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
10994         last patch a bit.  Pretty printing
10995
10996 2010-05-31  Petr Baudis <pasky@suse.cz>
10997
10998         [BZ #10085]
10999         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
11000         initialization of skip_initgroups_dyn.
11001
11002 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
11003
11004         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
11005         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
11006
11007 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
11008
11009         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
11010
11011 2010-11-11  Andreas Schwab  <schwab@redhat.com>
11012
11013         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
11014         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
11015         (tst-fnmatch-ENV): Set MALLOC_TRACE.
11016         ($(objpfx)tst-fnmatch-mem): New rule.
11017         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
11018         * posix/tst-fnmatch.c (main): Call mtrace.
11019
11020 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
11021
11022         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11023         Support Intel processor model 6 and model 0x2c.
11024
11025 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
11026
11027         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
11028           signed comparison.
11029
11030 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
11031
11032         [BZ #12205]
11033         * string/test-strncasecmp.c (check_result): New function.
11034         (do_one_test): Use it.
11035         (check1): New function.
11036         (test_main): Use it.
11037         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
11038         Support strcasecmp and strncasecmp.
11039
11040 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
11041
11042         [BZ #12194]
11043         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
11044         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11045
11046 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
11047
11048         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
11049         IFUNC support.
11050         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11051         memset-x86-64.
11052         * sysdeps/x86_64/multiarch/bzero.S: New file.
11053         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
11054         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
11055         * sysdeps/x86_64/multiarch/memset.S: New file.
11056         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
11057         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11058         Set bit_Prefer_SSE_for_memop for Intel processors.
11059         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
11060         Define.
11061         (index_Prefer_SSE_for_memop): Define.
11062         (HAS_PREFER_SSE_FOR_MEMOP): Define.
11063
11064 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
11065
11066         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
11067         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
11068
11069 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
11070
11071         [BZ #12191]
11072         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
11073         (__x86_64_raw_data_cache_size_half): Likewise.
11074         (__x86_64_raw_shared_cache_size): Likewise.
11075         (__x86_64_raw_shared_cache_size_half): Likewise.
11076
11077         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
11078         (__x86_64_raw_data_cache_size_half): Likewise.
11079         (__x86_64_raw_shared_cache_size): Likewise.
11080         (__x86_64_raw_shared_cache_size_half): Likewise.
11081         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
11082         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
11083         and __x86_64_raw_shared_cache_size_half.  Round
11084         __x86_64_data_cache_size_half, __x86_64_data_cache_size
11085         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
11086         to multiple of 256 bytes.
11087
11088 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
11089
11090         [BZ #12167]
11091         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
11092         of inacessible symlinks.  Verify result of symlink before returning it.
11093         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
11094         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
11095
11096 2010-10-28  Erich Ritz  <erichritz@gmail.com>
11097
11098         * math/math.h (isinf): Fix typo in comment.
11099
11100 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
11101
11102         * po/da.po: Update from translation team.
11103
11104 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
11105
11106         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
11107         is added to the list.
11108
11109 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11110             Ulrich Drepper  <drepper@gmail.com>
11111
11112         * elf/dl-object.c (_dl_new_object): Don't append the new object to
11113         the global list here.  Move code to...
11114         (_dl_add_to_namespace_list): ...here.  New function.
11115         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
11116         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
11117         * elf/dl-load.c (lose): Don't remove the element from the list.
11118         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
11119         (_dl_map_object): Likewise.
11120
11121 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
11122
11123         [BZ #12159]
11124         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
11125         into all bytes of SSE register.
11126         Patch by Richard Li <richardpku@gmail.com>.
11127
11128 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
11129
11130         [BZ #12140]
11131         * malloc/malloc.c (_int_free): Fill correct number of bytes when
11132         perturbing.
11133
11134 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
11135
11136         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
11137         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
11138         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
11139         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
11141         submachine.
11142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
11143
11144 2010-10-22  Andreas Schwab  <schwab@redhat.com>
11145
11146         * include/dlfcn.h (__RTLD_SECURE): Define.
11147         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
11148         mode & __RTLD_SECURE instead.
11149         (open_path): Rename preloaded parameter to secure.
11150         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
11151         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
11152         * elf/dl-deps.c (openaux): Likewise.
11153         * elf/rtld.c (struct map_args): Remove is_preloaded.
11154         (map_doit): Don't use it.
11155         (dl_main): Likewise.
11156         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
11157         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
11158
11159 2010-09-09  Andreas Schwab  <schwab@redhat.com>
11160
11161         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
11162         (sysd-rules-targets): Remove duplicates.
11163         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
11164         rtld-%.$o dependency.
11165
11166 2010-10-18  Andreas Schwab  <schwab@redhat.com>
11167
11168         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
11169         _dl_map_object do it.
11170
11171 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
11172
11173         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
11174         fast fma builtins, define the macros in the C99 standard.
11175         (FP_FAST_FMAF): Likewise.
11176         (FP_FAST_FMAL): Likewise.
11177         * sysdeps/x86_64/bits/mathdef.h: Likewise.
11178
11179         * bits/mathdef.h: Update copyright year.
11180         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11181
11182 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
11183
11184         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
11185         builtins, define the macros in the C99 standard.
11186         (FP_FAST_FMAF): Likewise.
11187         (FP_FAST_FMAL): Likewise.
11188         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
11189         multiply/add.
11190         (FP_FAST_FMAF): Likewise.
11191
11192 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
11193
11194         [BZ #3268]
11195         * math/libm-test.inc (fma_test): Some new testcases.
11196         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
11197         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
11198         y and infinite z.  Do multiplication by C already in long double.
11199         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
11200         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
11201         y and infinite z.  Do bitwise or of inexact bit into u.d.
11202         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
11203         * sysdeps/i386/fpu/s_fmaf.S: Removed.
11204         * sysdeps/i386/fpu/s_fma.S: Removed.
11205         * sysdeps/i386/fpu/s_fmal.S: Removed.
11206
11207 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
11208
11209         [BZ #3268]
11210         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
11211         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
11212         computation is not scheduled after fetestexcept.  Fix value
11213         of minimum denormal long double.
11214
11215 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
11216
11217         [BZ #3268]
11218         * math/libm-test.inc (fma_test): Add some more tests.
11219         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
11220         correctly.
11221
11222 2010-10-15  Andreas Schwab  <schwab@redhat.com>
11223
11224         * scripts/data/localplt-s390-linux-gnu.data: New file.
11225         * scripts/data/localplt-s390x-linux-gnu.data: New file.
11226
11227 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
11228
11229         [BZ #3268]
11230         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
11231         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
11232         instead of dbl-64.
11233         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
11234         inlines.
11235         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
11236         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
11237         if one of x and y is very large and the other is subnormal.
11238         * sysdeps/s390/fpu/s_fmaf.c: New file.
11239         * sysdeps/s390/fpu/s_fma.c: New file.
11240         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
11241         * sysdeps/powerpc/fpu/s_fma.S: New file.
11242         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
11243         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
11244         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
11245
11246 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
11247
11248         [BZ #3268]
11249         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
11250         fma tests.
11251         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
11252         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
11253         * sysdeps/i386/i686/multiarch/s_fma.c: Include
11254         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
11255         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
11256         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
11257         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
11258
11259 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
11260
11261         [BZ #12078]
11262         * posix/regcomp.c (parse_branch): One more memory leak plugged.
11263         * posix/bug-regex31.input: Add test case.
11264
11265 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
11266
11267         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
11268         * posix/bug-regex31.input: New file.
11269
11270         [BZ #12078]
11271         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
11272         (parse_sub_exp): Fix last change, use postorder.
11273
11274         * posix/bug-regex31.c: New file.
11275         * posix/Makefile: Add rules to build and run bug-regex31.
11276
11277         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
11278
11279         [BZ #12078]
11280         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
11281
11282         [BZ #12108]
11283         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
11284         to have entries in sys_siglist.
11285
11286         [BZ #12093]
11287         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
11288         be NULL.
11289
11290 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
11291
11292         [BZ #3268]
11293         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
11294         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
11295         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
11296         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
11297         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
11298         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
11299         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
11300         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
11301         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
11302         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
11303         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
11304         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
11305         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
11306         * math/ftestexcept.c (fetestexcept): Likewise.
11307         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
11308         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
11309         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
11310         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
11311         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
11312         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
11313         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11314
11315 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
11316
11317         [BZ #12107]
11318         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
11319         newline.
11320
11321 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
11322
11323         * string/bug-strstr1.c: New file.
11324         * string/Makefile: Add rules to build and run bug-strstr1.
11325
11326 2010-10-05  Eric Blake  <eblake@redhat.com>
11327
11328         [BZ #12092]
11329         * string/str-two-way.h (two_way_long_needle): Always clear memory
11330         when skipping input due to the shift table.
11331
11332 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
11333
11334         [BZ #12005]
11335         * malloc/mcheck.c: Handle large requests.
11336
11337         [BZ #12077]
11338         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
11339         for strncmp and strncasecmp.
11340         * string/stratcliff.c: Add tests for strcmp and strncmp.
11341         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
11342
11343 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11344
11345         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
11346         __set_fpscr.
11347
11348 2010-09-30  Andreas Jaeger  <aj@suse.de>
11349
11350         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
11351         (CGROUP_SUPER_MAGIC): Define.
11352         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11353         Handle btrfs and cgroup file systems.
11354         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
11355         Likewise.
11356
11357 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
11358
11359         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
11360         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
11361
11362 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11363
11364         [BZ #12067]
11365         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
11366         trying to locate the ELF header.
11367
11368 2010-09-27  Andreas Schwab  <schwab@redhat.com>
11369
11370         [BZ #11611]
11371         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
11372         Mask out sign-bit copies when constructing f_fsid.
11373
11374 2010-09-24  Petr Baudis <pasky@suse.cz>
11375
11376         * debug/stack_chk_fail_local.c: Add missing licence exception.
11377         * debug/warning-nop.c: Likewise.
11378
11379 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
11380
11381         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
11382         implementing getdents64 using getdents syscall, set d_type if
11383         __ASSUME_GETDENTS32_D_TYPE.
11384
11385 2010-09-16  Andreas Schwab  <schwab@redhat.com>
11386
11387         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
11388         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
11389
11390 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
11391
11392         [BZ #12037]
11393         * posix/unistd.h: Undo change of feature selection for ftruncate from
11394         2010-01-11.
11395
11396 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
11397
11398         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
11399         detection.
11400
11401 2010-09-20  Andreas Schwab  <schwab@redhat.com>
11402
11403         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
11404         fanotify_mark.
11405         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11406
11407 2010-09-14  Andreas Schwab  <schwab@redhat.com>
11408
11409         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
11410         variables after CHECK_SP call.
11411         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
11412
11413 2010-09-13  Andreas Schwab  <schwab@redhat.com>
11414             Ulrich Drepper  <drepper@redhat.com>
11415
11416         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
11417         re-relocationg ld.so.
11418         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
11419         _dl_init_paths call.
11420         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
11421         here anymore.
11422
11423 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
11424
11425         * resolv/res_init.c (__res_vinit): Count the default server we added.
11426
11427 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
11428             Ulrich Drepper  <drepper@redhat.com>
11429
11430         [BZ #11968]
11431         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
11432         (____longjmp_chk): Use %ebx for saving value across system call.
11433         Add unwind info.
11434
11435 2010-09-06  Andreas Schwab  <schwab@redhat.com>
11436
11437         * manual/Makefile: Don't mix pattern rules with normal rules.
11438
11439 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
11440
11441         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
11442         operation.
11443         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
11444         * libio/iofopncook.c (_IO_cookie_init): Likewise.
11445         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
11446         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
11447         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11448         Likewise.
11449
11450 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
11451
11452         [BZ #11979]
11453         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
11454         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
11455
11456 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
11457
11458         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
11459         * sysdeps/x86_64/addmul_1.S: Likewise.
11460         * sysdeps/x86_64/lshift.S: Likewise.
11461         * sysdeps/x86_64/mul_1.S: Likewise.
11462         * sysdeps/x86_64/rshift.S: Likewise.
11463         * sysdeps/x86_64/sub_n.S: Likewise.
11464         * sysdeps/x86_64/submul_1.S: Likewise.
11465
11466 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11467
11468         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
11469         Define __sched_param instead of SCHED_* and sched_param when
11470         <bits/sched.h> is included with __need_schedparam defined.
11471         * bits/sched.h [__need_schedparam]
11472         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
11473         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
11474         (__defined_schedparam): Define to 1.
11475         (__sched_param): New structure, identical to sched_param.
11476         (__need_schedparam): Undefine.
11477
11478 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
11479
11480         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
11481         (epoll_create1): Declare.
11482
11483         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
11484
11485 2010-08-31  Andreas Schwab  <schwab@redhat.com>
11486
11487         [BZ #7066]
11488         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
11489         shifting retval into place.
11490
11491 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
11492
11493         * nis/rpcsvc/nis.h: Update copyright notice.
11494         * nis/rpcsvc/nis.x: Likewise.
11495         * nis/rpcsvc/nis_callback.h: Likewise.
11496         * nis/rpcsvc/nis_callback.x: Likewise.
11497         * nis/rpcsvc/nis_object.x: Likewise.
11498         * nis/rpcsvc/nis_tags.h: Likewise.
11499         * nis/rpcsvc/yp.h: Likewise.
11500         * nis/rpcsvc/yp.x: Likewise.
11501         * nis/rpcsvc/ypupd.h: Likewise.
11502         * nis/yp_xdr.c: Likewise.
11503         * nis/ypupdate_xdr.c: Likewise.
11504
11505         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
11506         mainly the body of pmap_getport.  Add parameters to specify timeouts.
11507         (pmap_getport): Use __libc_rpc_getport.
11508         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
11509         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
11510         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
11511
11512 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
11513
11514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
11515         fanotify_mark.
11516
11517 2010-08-27  Roland McGrath  <roland@redhat.com>
11518
11519         * sysdeps/i386/i686/multiarch/Makefile
11520         (CFLAGS-varshift.c): New variable.
11521
11522 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
11523
11524         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
11525         * sysdeps/i386/i686/multiarch/varshift.c: New file.
11526
11527         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
11528
11529         * sysdeps/x86_64/strlen.S: Minimal code improvement.
11530
11531 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
11532
11533         * sysdeps/x86_64/strlen.S: Unroll the loop.
11534         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11535         strlen-sse2 strlen-sse2-bsf.
11536         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
11537         __strlen_no_bsf if bit_Slow_BSF is set.
11538         (__strlen_sse42): Removed.
11539         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
11540         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
11541
11542 2010-08-25  Roland McGrath  <roland@redhat.com>
11543
11544         * sysdeps/x86_64/multiarch/varshift.S: File removed.
11545         * sysdeps/x86_64/multiarch/varshift.c: New file.
11546         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
11547         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
11548         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
11549         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11550
11551 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
11552
11553         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11554         strlen-sse2 strlen-sse2-bsf.
11555         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
11556         __strlen_sse2_bsf if bit_Slow_BSF is unset.
11557         (__strlen_sse2): Removed.
11558         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
11559         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
11560         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
11561         bit_Slow_BSF for Atom.
11562         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
11563         (index_Slow_BSF): Define.
11564         (HAS_SLOW_BSF): Define.
11565
11566 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
11567
11568         [BZ #10851]
11569         * resolv/res_init.c (__res_vinit): When no server address at all
11570         is given default to loopback.
11571
11572 2010-08-24  Roland McGrath  <roland@redhat.com>
11573
11574         * configure.in: Remove config-name.h generation.
11575         * configure: Regenerated.
11576         * config-name.in: File removed.
11577         * scripts/config-uname.sh: New file.
11578         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
11579         ($(objdir)config-name.h): New target.
11580
11581         * sunrpc/rpc_parse.h: Avoid nested comment.
11582
11583 2010-08-24  Richard Henderson  <rth@redhat.com>
11584             Ulrich Drepper  <drepper@redhat.com>
11585             H.J. Lu  <hongjiu.lu@intel.com>
11586
11587         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
11588         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
11589         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
11590         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
11591         _mm_alignr_epi8 with _mm_loadu_si128.
11592         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
11593         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
11594         (__m128i_shift_right): Removed.
11595         * sysdeps/i386/i686/multiarch/varshift.h: New file.
11596         * sysdeps/i386/i686/multiarch/varshift.S: New file.
11597         * sysdeps/x86_64/multiarch/varshift.h: New file.
11598         * sysdeps/x86_64/multiarch/varshift.S: New file.
11599
11600 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
11601
11602         * configure.in: Move assembler checks to before sysdep dir checking.
11603
11604 2010-08-20  Petr Baudis  <pasky@suse.cz>
11605
11606         * LICENSES: Sync the sunrpc license.
11607
11608 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
11609
11610         * sunrpc/auth_des.c: Update copyright notice once again.
11611         * sunrpc/auth_none.c: Likewise.
11612         * sunrpc/auth_unix.c: Likewise.
11613         * sunrpc/authdes_prot.c: Likewise.
11614         * sunrpc/authuxprot.c: Likewise.
11615         * sunrpc/bindrsvprt.c: Likewise.
11616         * sunrpc/clnt_gen.c: Likewise.
11617         * sunrpc/clnt_perr.c: Likewise.
11618         * sunrpc/clnt_raw.c: Likewise.
11619         * sunrpc/clnt_simp.c: Likewise.
11620         * sunrpc/clnt_tcp.c: Likewise.
11621         * sunrpc/clnt_udp.c: Likewise.
11622         * sunrpc/clnt_unix.c: Likewise.
11623         * sunrpc/des_crypt.c: Likewise.
11624         * sunrpc/des_soft.c: Likewise.
11625         * sunrpc/get_myaddr.c: Likewise.
11626         * sunrpc/getrpcport.c: Likewise.
11627         * sunrpc/key_call.c: Likewise.
11628         * sunrpc/key_prot.c: Likewise.
11629         * sunrpc/openchild.c: Likewise.
11630         * sunrpc/pm_getmaps.c: Likewise.
11631         * sunrpc/pm_getport.c: Likewise.
11632         * sunrpc/pmap_clnt.c: Likewise.
11633         * sunrpc/pmap_prot.c: Likewise.
11634         * sunrpc/pmap_prot2.c: Likewise.
11635         * sunrpc/pmap_rmt.c: Likewise.
11636         * sunrpc/rpc/auth.h: Likewise.
11637         * sunrpc/rpc/auth_unix.h: Likewise.
11638         * sunrpc/rpc/clnt.h: Likewise.
11639         * sunrpc/rpc/des_crypt.h: Likewise.
11640         * sunrpc/rpc/key_prot.h: Likewise.
11641         * sunrpc/rpc/netdb.h: Likewise.
11642         * sunrpc/rpc/pmap_clnt.h: Likewise.
11643         * sunrpc/rpc/pmap_prot.h: Likewise.
11644         * sunrpc/rpc/pmap_rmt.h: Likewise.
11645         * sunrpc/rpc/rpc.h: Likewise.
11646         * sunrpc/rpc/rpc_des.h: Likewise.
11647         * sunrpc/rpc/rpc_msg.h: Likewise.
11648         * sunrpc/rpc/svc.h: Likewise.
11649         * sunrpc/rpc/svc_auth.h: Likewise.
11650         * sunrpc/rpc/types.h: Likewise.
11651         * sunrpc/rpc/xdr.h: Likewise.
11652         * sunrpc/rpc_clntout.c: Likewise.
11653         * sunrpc/rpc_cmsg.c: Likewise.
11654         * sunrpc/rpc_common.c: Likewise.
11655         * sunrpc/rpc_cout.c: Likewise.
11656         * sunrpc/rpc_dtable.c: Likewise.
11657         * sunrpc/rpc_hout.c: Likewise.
11658         * sunrpc/rpc_main.c: Likewise.
11659         * sunrpc/rpc_parse.c: Likewise.
11660         * sunrpc/rpc_parse.h: Likewise.
11661         * sunrpc/rpc_prot.c: Likewise.
11662         * sunrpc/rpc_sample.c: Likewise.
11663         * sunrpc/rpc_scan.c: Likewise.
11664         * sunrpc/rpc_scan.h: Likewise.
11665         * sunrpc/rpc_svcout.c: Likewise.
11666         * sunrpc/rpc_tblout.c: Likewise.
11667         * sunrpc/rpc_util.c: Likewise.
11668         * sunrpc/rpc_util.h: Likewise.
11669         * sunrpc/rpcinfo.c: Likewise.
11670         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
11671         * sunrpc/rpcsvc/key_prot.x: Likewise.
11672         * sunrpc/rpcsvc/klm_prot.x: Likewise.
11673         * sunrpc/rpcsvc/mount.x: Likewise.
11674         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
11675         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
11676         * sunrpc/rpcsvc/rex.x: Likewise.
11677         * sunrpc/rpcsvc/rstat.x: Likewise.
11678         * sunrpc/rpcsvc/rusers.x: Likewise.
11679         * sunrpc/rpcsvc/sm_inter.x: Likewise.
11680         * sunrpc/rpcsvc/spray.x: Likewise.
11681         * sunrpc/rpcsvc/yppasswd.x: Likewise.
11682         * sunrpc/rtime.c: Likewise.
11683         * sunrpc/svc.c: Likewise.
11684         * sunrpc/svc_auth.c: Likewise.
11685         * sunrpc/svc_authux.c: Likewise.
11686         * sunrpc/svc_raw.c: Likewise.
11687         * sunrpc/svc_run.c: Likewise.
11688         * sunrpc/svc_simple.c: Likewise.
11689         * sunrpc/svc_tcp.c: Likewise.
11690         * sunrpc/svc_udp.c: Likewise.
11691         * sunrpc/svc_unix.c: Likewise.
11692         * sunrpc/svcauth_des.c: Likewise.
11693         * sunrpc/xcrypt.c: Likewise.
11694         * sunrpc/xdr.c: Likewise.
11695         * sunrpc/xdr_array.c: Likewise.
11696         * sunrpc/xdr_float.c: Likewise.
11697         * sunrpc/xdr_mem.c: Likewise.
11698         * sunrpc/xdr_rec.c: Likewise.
11699         * sunrpc/xdr_ref.c: Likewise.
11700         * sunrpc/xdr_sizeof.c: Likewise.
11701         * sunrpc/xdr_stdio.c: Likewise.
11702
11703         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
11704         handling.
11705
11706 2010-08-19  Andreas Schwab  <schwab@redhat.com>
11707
11708         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
11709
11710 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
11711
11712         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
11713         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
11714         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
11715         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
11716         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
11717         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
11718         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
11719         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
11720         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
11721         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
11722         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
11723         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
11724         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
11725         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
11726
11727 2010-07-26  Anton Blanchard  <anton@samba.org>
11728
11729         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
11730         * malloc/arena.c (heap_trim): Likewise.
11731
11732 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
11733
11734         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
11735         here.  Not...
11736         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
11737         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
11738
11739 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11740
11741         * sysdeps/i386/elf/Makefile: New file.
11742
11743 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11744
11745         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
11746         from fanotify_init.
11747         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
11748         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11749
11750 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
11751
11752         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
11753         of strncasecmp_l.
11754         * sysdeps/multiarch/strcmp.S: Likewise.
11755
11756 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
11757
11758         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11759         strncase_l-nonascii.
11760         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11761         Add strncase_l-ssse3.
11762         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
11763         * sysdeps/x86_64/strcmp.S: Likewise.
11764         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
11765         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
11766         * sysdeps/x86_64/strncase.S: New file.
11767         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
11768         * sysdeps/x86_64/strncase_l.S: New file.
11769         * string/Makefile (strop-tests): Add strncasecmp.
11770         * string/test-strncasecmp.c: New file.
11771
11772         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
11773         warning.
11774
11775         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
11776         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
11777
11778 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11779
11780         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
11781
11782 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
11783
11784         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
11785         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
11786         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
11787
11788 2010-05-01  Alan Modra  <amodra@gmail.com>
11789
11790         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
11791         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
11792         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
11793         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
11794         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
11795         tidying.  Don't tail-call __sigjmp_save for static lib.
11796         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
11797         save location.
11798         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
11799         (CALL_MCOUNT): Add eh info, and nop after bl.
11800         (TAIL_CALL_SYSCALL_ERROR): New macro.
11801         (PSEUDO_RET): Use it.
11802         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11803         Correct save location of integer regs and cr.
11804         (_dl_profile_resolve): Correct cr save location.  Delete nops
11805         after bl when SHARED.  Reduce cfi size a little by better
11806         placement of cfi directives.
11807         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
11808         make a stack frame.  Instead use parm save area as a temp.
11809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
11810         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
11811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11812         Don't make a stack frame for parent, use parm save area.
11813         Increase child stack frame to 112 bytes.  Don't save unused reg,
11814         and adjust reg usage.  Set up cfi on error recovery and
11815         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
11816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11817         (__makecontext): Add dummy nop after jump to exit.
11818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
11819         Use correct parm save area and cr save, reduce stack frame.
11820         Correct cfi for possible PSEUDO_RET frame setup.
11821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
11822         Branch to local label emitted by PSEUDO_RET rather than
11823         __syscall_error.
11824
11825 2010-08-12  Andreas Schwab  <schwab@redhat.com>
11826
11827         [BZ #11904]
11828         * locale/programs/locale.c (print_assignment): New function.
11829         (show_locale_vars): Use it.
11830
11831 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
11832
11833         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
11834         field.
11835         (struct statfs64): Likewise.
11836         (_STATFS_F_FLAGS): Define.
11837         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
11838         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11839         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
11840         (ST_VALID): Define locally.
11841         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
11842         __statvfs_getflags, use the provided value.
11843         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11844         __ASSUME_STATFS_F_FLAGS.
11845
11846         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
11847
11848         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11849         Add sys/fanotify.h.
11850         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
11851         fanotify_mask for GLIBC_2.13.
11852         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
11853         fanotify_init and fanotify_mark.
11854         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11855         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
11856
11857         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
11858         Add prlimit.
11859         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
11860         prlimit64 for GLIBC_2.13.
11861         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
11862         prlimit64.
11863         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
11864         syscall.
11865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11866         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11867         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
11868         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
11869         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
11870         add prlimit alias.
11871         * sysdeps/unix/sysv/linux/prlimit.c: New file.
11872
11873         [BZ #11903]
11874         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
11875         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
11876
11877         * nss/Makefile: Add rules to build and run tst-nss-test1.
11878         * shlib-versions: Add entry for libnss_test1.
11879         * nss/nss_test1.c: New file.
11880         * nss/tst-nss-test1.c: New file.
11881
11882         * nss/nsswitch.c (__nss_database_custom): Define new variable.
11883         (__nss_configure_lookup): Set appropriate entry in
11884         __nss_configure_lookup to true.
11885         * nss/nsswitch.h: Define enum with indeces of databases in
11886         databases and __nss_database_custom arrays.  Declare
11887         __nss_database_custom.
11888         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
11889         to avoid using nscd when custom rules are installed.
11890         * nss/getXXbyYY_r.c: Likewise.
11891         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11892
11893         * nss/nss_files/files-parse.c: Whitespace fixes.
11894
11895 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
11896
11897         [BZ #11883]
11898         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
11899         * posix/fnmatch_loop.c: Likewise.
11900
11901 2010-07-17  Andi Kleen  <ak@linux.intel.com>
11902
11903         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
11904         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
11905         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
11906         * Versions.def [GLIBC_2.13]: Add.
11907
11908 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
11909
11910         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11911         Also fail if tpwd after pwuid call is NULL.
11912
11913 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11914
11915         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
11916         when converting to ms.
11917
11918 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11919
11920         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
11921         EOPNOTSUPP errors with ENOTTY.
11922         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
11923         EOPNOTSUPP errors with ENOTTY.
11924
11925 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
11926
11927         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11928         Add strcasecmp_l-ssse3.
11929         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
11930         strcasecmp.
11931         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
11932         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
11933         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
11934
11935 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
11936
11937         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
11938
11939         * string/Makefile (strop-tests): Add strcasecmp.
11940         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11941         strcasecmp_l-nonascii.
11942         (gen-as-const-headers): Add locale-defines.sym.
11943         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
11944         * sysdeps/x86_64/strcasecmp.S: New file.
11945         * sysdeps/x86_64/strcasecmp_l.S: New file.
11946         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
11947         * sysdeps/x86_64/locale-defines.sym: New file.
11948         * string/test-strcasecmp.c: New file.
11949
11950         * string/test-strcasestr.c: Test both ends of the range of characters.
11951         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
11952
11953 2010-07-29  Roland McGrath  <roland@redhat.com>
11954
11955         [BZ #11856]
11956         * manual/locale.texi (Yes-or-No Questions): Fix example code.
11957
11958 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
11959
11960         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
11961         for ld.so.
11962
11963 2010-07-27  Andreas Schwab  <schwab@redhat.com>
11964
11965         * manual/memory.texi (Malloc Tunable Parameters): Document
11966         M_PERTURB.
11967
11968 2010-07-26  Roland McGrath  <roland@redhat.com>
11969
11970         [BZ #11840]
11971         * configure.in (-fgnu89-inline check): Set and substitute
11972         gnu89_inline, not libc_cv_gnu89_inline.
11973         * configure: Regenerated.
11974         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
11975
11976 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
11977
11978         * string/test-strnlen.c: New file.
11979         * string/Makefile (strop-tests): Add strnlen.
11980         * string/tester.c (test_strnlen): Add a few more test cases.
11981         * string/tst-strlen.c: Better error reporting.
11982
11983         * sysdeps/x86_64/strnlen.S: New file.
11984
11985 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
11986
11987         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
11988         lower-latency instructions.
11989
11990 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
11991
11992         * string/test-strcasestr.c: New file.
11993         * string/test-strstr.c: New file.
11994         * string/Makefile (strop-tests): Add strstr and strcasestr.
11995         * string/str-two-way.h: Don't undefine MAX.
11996         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
11997
11998 2010-07-21  Andreas Schwab  <schwab@redhat.com>
11999
12000         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12001         strcasestr-nonascii.
12002         (CFLAGS-strcasestr-nonascii.c): Define.
12003         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
12004         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
12005         Remove unused attribute.
12006
12007 2010-07-20  Roland McGrath  <roland@redhat.com>
12008
12009         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
12010         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
12011         ld.so.cache was broken.  With it, there is no way to disable dsocaps
12012         like LD_HWCAP_MASK can disable hwcaps.
12013
12014 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
12015
12016         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
12017
12018 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
12019
12020         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
12021         call in strcasestr.
12022         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
12023         __strcasestr_sse42_nonascii.
12024         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
12025         strcasestr-nonascii.c.
12026         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
12027
12028 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
12029
12030         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
12031         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
12032         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
12033         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
12034
12035 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
12036
12037         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
12038         fcntl.
12039
12040 2010-07-06  Andreas Schwab  <schwab@redhat.com>
12041
12042         [BZ #11577]
12043         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
12044         dl_signal_cerror.
12045
12046 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
12047
12048         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
12049         _PC_PIPE_BUF using F_GETPIPE_SZ.
12050
12051 2010-07-05  Roland McGrath  <roland@redhat.com>
12052
12053         * manual/arith.texi (Rounding Functions): Fix rint description
12054         implicit in round description.
12055
12056 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
12057
12058         * elf/Makefile: Fix linking for a few tests to make recent linker
12059         happy.
12060
12061 2010-06-30  Andreas Schwab  <schwab@redhat.com>
12062
12063         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
12064         $(common-objpfx)libc_nonshared.a.
12065
12066 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
12067
12068         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
12069         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
12070         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
12071         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
12072         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
12073         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
12074         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
12075         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
12076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
12077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
12078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
12079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
12080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
12081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
12082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
12083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
12084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
12085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
12086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
12087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
12088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
12089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
12090         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
12091         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
12092         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
12093         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
12094         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
12095         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
12096         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
12097         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
12098         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
12099         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
12100         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
12101         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
12102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
12103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
12104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
12105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
12106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
12107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
12108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
12109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
12110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
12111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
12112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
12113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
12114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
12115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
12116
12117 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
12118
12119         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
12120         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
12121         * string/memmove.c (memmove): Renamed to ...
12122         (MEMMOVE): ...this.  Default to memmove.
12123         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
12124         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
12125         (END_CHK): Define.
12126         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12127         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
12128         mempcpy-ssse3-back memmove-ssse3-back.
12129         * sysdeps/x86_64/multiarch/bcopy.S: New file .
12130         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
12131         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
12132         * sysdeps/x86_64/multiarch/memcpy.S: New file.
12133         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
12134         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
12135         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
12136         * sysdeps/x86_64/multiarch/memmove.c: New file.
12137         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
12138         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
12139         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
12140         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
12141         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
12142         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
12143         Define.
12144         (index_Fast_Copy_Backward): Define.
12145         (HAS_ARCH_FEATURE): Define.
12146         (HAS_FAST_REP_STRING): Define.
12147         (HAS_FAST_COPY_BACKWARD): Define.
12148
12149 2010-06-21  Andreas Schwab  <schwab@redhat.com>
12150
12151         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12152         Restore proper fallback handling.
12153
12154 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
12155
12156         [BZ #11701]
12157         * posix/group_member.c (__group_member): Correct checking loop.
12158
12159         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
12160         OOM in getpwuid_r correctly.  Return error number when the caller
12161         should return, otherwise -1.
12162         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
12163         call returning > 0 value.
12164         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
12165
12166 2010-06-07  Andreas Schwab  <schwab@redhat.com>
12167
12168         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
12169         libc_nonshared.a from targets in modules-names.
12170
12171 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
12172
12173         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
12174         requires it.
12175
12176 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
12177
12178         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
12179         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
12180         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
12181         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
12182
12183 2010-06-02  Andreas Schwab  <schwab@redhat.com>
12184
12185         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
12186
12187 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
12188
12189         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
12190         and F_GETPIPE_SZ.
12191         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12192         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12193         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12194         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12195         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12196         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
12197
12198 2010-06-14  Roland McGrath  <roland@redhat.com>
12199
12200         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
12201
12202 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
12203
12204         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
12205         __REDIRECT followed by __THROW.
12206         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
12207         * posix/getopt.h (getopt): Likewise.
12208
12209 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
12210
12211         * hurd/lookup-at.c (__file_name_lookup_at): Accept
12212         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
12213         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
12214         in AT_FLAGS.
12215         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
12216         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
12217
12218 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
12219
12220         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
12221
12222 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
12223
12224         [BZ #11640]
12225         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12226         Properly check family and model.
12227
12228 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
12229
12230         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
12231
12232 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
12233
12234         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
12235
12236 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
12237
12238         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
12239         symbol reference.
12240
12241 2010-05-19  Andreas Schwab  <schwab@redhat.com>
12242
12243         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
12244         symbol reference.
12245
12246 2010-05-21  Andreas Schwab  <schwab@redhat.com>
12247
12248         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
12249         and internal_recvmmsg.
12250         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
12251         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
12252         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
12253         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
12254
12255         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
12256         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
12257         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
12258
12259 2010-05-20  Andreas Schwab  <schwab@redhat.com>
12260
12261         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
12262
12263 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
12264
12265         POWER7 optimizations.
12266         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
12267         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
12268
12269 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
12270
12271         * version.h: Update for 2.13 development version.
12272
12273 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
12274
12275         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
12276         exceptions.  Return 0.
12277
12278 2010-05-07  Roland McGrath  <roland@redhat.com>
12279
12280         * elf/ldconfig.c (main): Add a const.
12281
12282 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
12283
12284         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
12285         (args_options): Add no-idn option.
12286         (ahosts_keys_int): Add idn_flags to ai_flags.
12287         (parse_option): Handle 'i' option to clear idn_flags.
12288
12289         * malloc/malloc.c (_int_free): Possible race in the most recently
12290         added check.  Only act on the data if no current modification
12291         happened.
12292
12293 See ChangeLog.17 for earlier changes.