conformtest: Only expect mknodat for XOPEN2K8.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
2
3         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
4         Change condition to [XOPEN2K8].
5
6         * conform/conformtest.pl: Preprocess allow-header data with -x c
7         instead of from stdin.
8         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
9         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
10         [C99-based standards] (cerfc): Likewise.
11         [C99-based standards] (cexp2): Likewise.
12         [C99-based standards] (cexpm1): Likewise.
13         [C99-based standards] (clog10): Likewise.
14         [C99-based standards] (clog1p): Likewise.
15         [C99-based standards] (clog2): Likewise.
16         [C99-based standards] (clgamma): Likewise.
17         [C99-based standards] (ctgamma): Likewise.
18         [C99-based standards] (cerff): Likewise.
19         [C99-based standards] (cerfcf): Likewise.
20         [C99-based standards] (cexp2f): Likewise.
21         [C99-based standards] (cexpm1f): Likewise.
22         [C99-based standards] (clog10f): Likewise.
23         [C99-based standards] (clog1pf): Likewise.
24         [C99-based standards] (clog2f): Likewise.
25         [C99-based standards] (clgammaf): Likewise.
26         [C99-based standards] (ctgammaf): Likewise.
27         [C99-based standards] (cerfl): Likewise.
28         [C99-based standards] (cerfcl): Likewise.
29         [C99-based standards] (cexp2l): Likewise.
30         [C99-based standards] (cexpm1l): Likewise.
31         [C99-based standards] (clog10l): Likewise.
32         [C99-based standards] (clog1pl): Likewise.
33         [C99-based standards] (clog2l): Likewise.
34         [C99-based standards] (clgammal): Likewise.
35         [C99-based standards] (ctgammal): Likewise.
36         * conform/data/inttypes.h-data [C99-based standards]: Include
37         stdint.h-data.  Remove all expectations for stdint.h contents.
38         [C99-based standards] (PRI*): Do not allow.
39         [C99-based standards] (SCN*): Likewise.
40         [C99-based standards] (*_t): Likewise.
41         [C99-based-standards] (PRId8): Expect macro.
42         [C99-based-standards] (PRIi8): Likewise.
43         [C99-based-standards] (PRIo8): Likewise.
44         [C99-based-standards] (PRIu8): Likewise.
45         [C99-based-standards] (PRIx8): Likewise.
46         [C99-based-standards] (PRIX8): Likewise.
47         [C99-based-standards] (SCNd8): Likewise.
48         [C99-based-standards] (SCNi8): Likewise.
49         [C99-based-standards] (SCNo8): Likewise.
50         [C99-based-standards] (SCNu8): Likewise.
51         [C99-based-standards] (SCNx8): Likewise.
52         [C99-based-standards] (PRIdLEAST8): Likewise.
53         [C99-based-standards] (PRIiLEAST8): Likewise.
54         [C99-based-standards] (PRIoLEAST8): Likewise.
55         [C99-based-standards] (PRIuLEAST8): Likewise.
56         [C99-based-standards] (PRIxLEAST8): Likewise.
57         [C99-based-standards] (PRIXLEAST8): Likewise.
58         [C99-based-standards] (SCNdLEAST8): Likewise.
59         [C99-based-standards] (SCNiLEAST8): Likewise.
60         [C99-based-standards] (SCNoLEAST8): Likewise.
61         [C99-based-standards] (SCNuLEAST8): Likewise.
62         [C99-based-standards] (SCNxLEAST8): Likewise.
63         [C99-based-standards] (PRIdFAST8): Likewise.
64         [C99-based-standards] (PRIiFAST8): Likewise.
65         [C99-based-standards] (PRIoFAST8): Likewise.
66         [C99-based-standards] (PRIuFAST8): Likewise.
67         [C99-based-standards] (PRIxFAST8): Likewise.
68         [C99-based-standards] (PRIXFAST8): Likewise.
69         [C99-based-standards] (SCNdFAST8): Likewise.
70         [C99-based-standards] (SCNiFAST8): Likewise.
71         [C99-based-standards] (SCNoFAST8): Likewise.
72         [C99-based-standards] (SCNuFAST8): Likewise.
73         [C99-based-standards] (SCNxFAST8): Likewise.
74         [C99-based-standards] (PRId16): Likewise.
75         [C99-based-standards] (PRIi16): Likewise.
76         [C99-based-standards] (PRIo16): Likewise.
77         [C99-based-standards] (PRIu16): Likewise.
78         [C99-based-standards] (PRIx16): Likewise.
79         [C99-based-standards] (PRIX16): Likewise.
80         [C99-based-standards] (SCNd16): Likewise.
81         [C99-based-standards] (SCNi16): Likewise.
82         [C99-based-standards] (SCNo16): Likewise.
83         [C99-based-standards] (SCNu16): Likewise.
84         [C99-based-standards] (SCNx16): Likewise.
85         [C99-based-standards] (PRIdLEAST16): Likewise.
86         [C99-based-standards] (PRIiLEAST16): Likewise.
87         [C99-based-standards] (PRIoLEAST16): Likewise.
88         [C99-based-standards] (PRIuLEAST16): Likewise.
89         [C99-based-standards] (PRIxLEAST16): Likewise.
90         [C99-based-standards] (PRIXLEAST16): Likewise.
91         [C99-based-standards] (SCNdLEAST16): Likewise.
92         [C99-based-standards] (SCNiLEAST16): Likewise.
93         [C99-based-standards] (SCNoLEAST16): Likewise.
94         [C99-based-standards] (SCNuLEAST16): Likewise.
95         [C99-based-standards] (SCNxLEAST16): Likewise.
96         [C99-based-standards] (PRIdFAST16): Likewise.
97         [C99-based-standards] (PRIiFAST16): Likewise.
98         [C99-based-standards] (PRIoFAST16): Likewise.
99         [C99-based-standards] (PRIuFAST16): Likewise.
100         [C99-based-standards] (PRIxFAST16): Likewise.
101         [C99-based-standards] (PRIXFAST16): Likewise.
102         [C99-based-standards] (SCNdFAST16): Likewise.
103         [C99-based-standards] (SCNiFAST16): Likewise.
104         [C99-based-standards] (SCNoFAST16): Likewise.
105         [C99-based-standards] (SCNuFAST16): Likewise.
106         [C99-based-standards] (SCNxFAST16): Likewise.
107         [C99-based-standards] (PRId32): Likewise.
108         [C99-based-standards] (PRIi32): Likewise.
109         [C99-based-standards] (PRIo32): Likewise.
110         [C99-based-standards] (PRIu32): Likewise.
111         [C99-based-standards] (PRIx32): Likewise.
112         [C99-based-standards] (PRIX32): Likewise.
113         [C99-based-standards] (SCNd32): Likewise.
114         [C99-based-standards] (SCNi32): Likewise.
115         [C99-based-standards] (SCNo32): Likewise.
116         [C99-based-standards] (SCNu32): Likewise.
117         [C99-based-standards] (SCNx32): Likewise.
118         [C99-based-standards] (PRIdLEAST32): Likewise.
119         [C99-based-standards] (PRIiLEAST32): Likewise.
120         [C99-based-standards] (PRIoLEAST32): Likewise.
121         [C99-based-standards] (PRIuLEAST32): Likewise.
122         [C99-based-standards] (PRIxLEAST32): Likewise.
123         [C99-based-standards] (PRIXLEAST32): Likewise.
124         [C99-based-standards] (SCNdLEAST32): Likewise.
125         [C99-based-standards] (SCNiLEAST32): Likewise.
126         [C99-based-standards] (SCNoLEAST32): Likewise.
127         [C99-based-standards] (SCNuLEAST32): Likewise.
128         [C99-based-standards] (SCNxLEAST32): Likewise.
129         [C99-based-standards] (PRIdFAST32): Likewise.
130         [C99-based-standards] (PRIiFAST32): Likewise.
131         [C99-based-standards] (PRIoFAST32): Likewise.
132         [C99-based-standards] (PRIuFAST32): Likewise.
133         [C99-based-standards] (PRIxFAST32): Likewise.
134         [C99-based-standards] (PRIXFAST32): Likewise.
135         [C99-based-standards] (SCNdFAST32): Likewise.
136         [C99-based-standards] (SCNiFAST32): Likewise.
137         [C99-based-standards] (SCNoFAST32): Likewise.
138         [C99-based-standards] (SCNuFAST32): Likewise.
139         [C99-based-standards] (SCNxFAST32): Likewise.
140         [C99-based-standards] (PRId64): Likewise.
141         [C99-based-standards] (PRIi64): Likewise.
142         [C99-based-standards] (PRIo64): Likewise.
143         [C99-based-standards] (PRIu64): Likewise.
144         [C99-based-standards] (PRIx64): Likewise.
145         [C99-based-standards] (PRIX64): Likewise.
146         [C99-based-standards] (SCNd64): Likewise.
147         [C99-based-standards] (SCNi64): Likewise.
148         [C99-based-standards] (SCNo64): Likewise.
149         [C99-based-standards] (SCNu64): Likewise.
150         [C99-based-standards] (SCNx64): Likewise.
151         [C99-based-standards] (PRIdLEAST64): Likewise.
152         [C99-based-standards] (PRIiLEAST64): Likewise.
153         [C99-based-standards] (PRIoLEAST64): Likewise.
154         [C99-based-standards] (PRIuLEAST64): Likewise.
155         [C99-based-standards] (PRIxLEAST64): Likewise.
156         [C99-based-standards] (PRIXLEAST64): Likewise.
157         [C99-based-standards] (SCNdLEAST64): Likewise.
158         [C99-based-standards] (SCNiLEAST64): Likewise.
159         [C99-based-standards] (SCNoLEAST64): Likewise.
160         [C99-based-standards] (SCNuLEAST64): Likewise.
161         [C99-based-standards] (SCNxLEAST64): Likewise.
162         [C99-based-standards] (PRIdFAST64): Likewise.
163         [C99-based-standards] (PRIiFAST64): Likewise.
164         [C99-based-standards] (PRIoFAST64): Likewise.
165         [C99-based-standards] (PRIuFAST64): Likewise.
166         [C99-based-standards] (PRIxFAST64): Likewise.
167         [C99-based-standards] (PRIXFAST64): Likewise.
168         [C99-based-standards] (SCNdFAST64): Likewise.
169         [C99-based-standards] (SCNiFAST64): Likewise.
170         [C99-based-standards] (SCNoFAST64): Likewise.
171         [C99-based-standards] (SCNuFAST64): Likewise.
172         [C99-based-standards] (SCNxFAST64): Likewise.
173         [C99-based-standards] (PRIdMAX): Likewise.
174         [C99-based-standards] (PRIiMAX): Likewise.
175         [C99-based-standards] (PRIoMAX): Likewise.
176         [C99-based-standards] (PRIuMAX): Likewise.
177         [C99-based-standards] (PRIxMAX): Likewise.
178         [C99-based-standards] (PRIXMAX): Likewise.
179         [C99-based-standards] (SCNdMAX): Likewise.
180         [C99-based-standards] (SCNiMAX): Likewise.
181         [C99-based-standards] (SCNoMAX): Likewise.
182         [C99-based-standards] (SCNuMAX): Likewise.
183         [C99-based-standards] (SCNxMAX): Likewise.
184         [C99-based-standards] (PRIdPTR): Likewise.
185         [C99-based-standards] (PRIiPTR): Likewise.
186         [C99-based-standards] (PRIoPTR): Likewise.
187         [C99-based-standards] (PRIuPTR): Likewise.
188         [C99-based-standards] (PRIxPTR): Likewise.
189         [C99-based-standards] (PRIXPTR): Likewise.
190         [C99-based-standards] (SCNdPTR): Likewise.
191         [C99-based-standards] (SCNiPTR): Likewise.
192         [C99-based-standards] (SCNoPTR): Likewise.
193         [C99-based-standards] (SCNuPTR): Likewise.
194         [C99-based-standards] (SCNxPTR): Likewise.
195         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
196         allow.
197         * conform/data/stdint.h-data: Update comments to clarify
198         requirements.
199         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
200         type.
201         [C99-based standards] (INT8_MAX): Likewise.
202         [C99-based standards] (INT16_MIN): Likewise.
203         [C99-based standards] (INT16_MAX): Likewise.
204         [C99-based standards] (INT32_MIN): Likewise.
205         [C99-based standards] (INT32_MAX): Likewise.
206         [C99-based standards] (INT64_MIN): Likewise.
207         [C99-based standards] (INT64_MAX): Likewise.
208         [C99-based standards] (UINT8_MAX): Likewise.
209         [C99-based standards] (UINT16_MAX): Likewise.
210         [C99-based standards] (UINT32_MAX): Likewise.
211         [C99-based standards] (UINT64_MAX): Likewise.
212         [C99-based standards] (INT_LEAST8_MIN): Likewise.
213         [C99-based standards] (INT_LEAST8_MAX): Likewise.
214         [C99-based standards] (INT_LEAST16_MIN): Likewise.
215         [C99-based standards] (INT_LEAST16_MAX): Likewise.
216         [C99-based standards] (INT_LEAST32_MIN): Likewise.
217         [C99-based standards] (INT_LEAST32_MAX): Likewise.
218         [C99-based standards] (INT_LEAST64_MIN): Likewise.
219         [C99-based standards] (INT_LEAST64_MAX): Likewise.
220         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
221         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
222         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
223         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
224         [C99-based standards] (INT_FAST8_MIN): Likewise.
225         [C99-based standards] (INT_FAST8_MAX): Likewise.
226         [C99-based standards] (INT_FAST16_MIN): Likewise.
227         [C99-based standards] (INT_FAST16_MAX): Likewise.
228         [C99-based standards] (INT_FAST32_MIN): Likewise.
229         [C99-based standards] (INT_FAST32_MAX): Likewise.
230         [C99-based standards] (INT_FAST64_MIN): Likewise.
231         [C99-based standards] (INT_FAST64_MAX): Likewise.
232         [C99-based standards] (UINT_FAST8_MAX): Likewise.
233         [C99-based standards] (UINT_FAST16_MAX): Likewise.
234         [C99-based standards] (UINT_FAST32_MAX): Likewise.
235         [C99-based standards] (UINT_FAST64_MAX): Likewise.
236         [C99-based standards] (INTPTR_MIN): Likewise.
237         [C99-based standards] (INTPTR_MAX): Likewise.
238         [C99-based standards] (UINTPTR_MAX): Likewise.
239         [C99-based standards] (INTMAX_MIN): Likewise.
240         [C99-based standards] (INTMAX_MAX): Likewise.
241         [C99-based standards] (UINTMAX_MAX): Likewise.
242         [C99-based standards] (PTRDIFF_MIN): Likewise.
243         [C99-based standards] (PTRDIFF_MAX): Likewise.
244         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
245         [C99-based standards] (SIZE_MAX): Likewise.
246         [C99-based standards] (WCHAR_MAX): Likewise.
247         [C99-based standards] (WINT_MAX): Likewise.
248         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
249         constraint on value.
250         [C99-based standards] (WCHAR_MIN): Likewise.
251         [C99-based standards] (WINT_MIN): Likewise.
252         [C99-based standards] (*_t): Allow.
253         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
254         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
255         Include math.h-data and complex.h-data.  Remove all expectations
256         of math.h and complex.h contents.
257         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
258         at end of line.
259         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
260         (struct tm): Expect tag.
261         [C99-based-standards] (wcstof): Expect function.
262         [C99-based-standards] (wcstold): Likewise.
263         [C99-based-standards] (wcstoll): Likewise.
264         [C99-based-standards] (wcstoull): Likewise.
265         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
266         macro-int-constant.  Specify type.
267         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
268         constraint on value.
269         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
270         Specify type.
271         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
272         Specify value.
273         [ISO C standards]: Do not allow headers.
274         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
275         wcs[abcdefghijklmnopqrstuvwxyz]*.
276         [ISO C standards] (*_t): Do not allow.
277         * conform/data/wctype.h-data [C99-based standards] (iswblank):
278         Expect function.
279         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
280         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
281         Specify type.
282         [ISO C standards]: Do not allow headers.
283         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
284         is[abcdefghijklmnopqrstuvwxyz]*.
285         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
286         to[abcdefghijklmnopqrstuvwxyz]*.
287         [ISO C standards] (*_t): Do not allow.
288         * conform/data/stdalign.h-data: New file.
289         * conform/data/stdbool.h-data: Likewise.
290         * conform/data/stdnoreturn.h-data: Likewise.
291
292 2012-11-07  Andreas Jaeger  <aj@suse.de>
293
294         [BZ #14809]
295         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
296         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
297         guards are changed.  Only define if not yet defined, #undef back
298         after including linux/sysctl.h if defined here.
299
300 2012-11-07  Roland McGrath  <roland@hack.frob.com>
301
302         [BZ #14815]
303         * manual/filesys.texi (Directory Entries): Typo fix.
304         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
305
306 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
307
308         * elf/elf.h (EM_AARCH64): New macro.
309         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
310         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
311         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
312         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
313         (R_AARCH64_TLSDESC): Likewise.
314         (NT_ARM_TLS): Likewise.
315         (NT_ARM_HW_BREAK): Likewise.
316         (NT_ARM_HW_WATCH): Likewise.
317
318 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
319
320         [BZ #14811]
321         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
322         (__ieee754_powl): Saturate nonzero exponents with absolute value
323         below 0x1p-79 to +/- 0x1p-79.
324         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
325         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
326         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
327         nonzero exponents with absolute value below 0x1p-32 to +/-
328         0x1p-32.
329         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
330         (__ieee754_powl): Saturate nonzero exponents with absolute value
331         below 0x1p-79 to +/- 0x1p-79.
332         * math/libm-test.inc (pow_test): Add more tests.
333
334 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
335
336         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
337         _dl_s390_cap_flags with kernel. Increase string length.
338         (_dl_s390_platforms): Add z196 and zEC12.
339
340 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
341
342         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
343         Change XOPEN21K to XOPEN2K.
344
345 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
346
347         * string/memmove.c: Use memcpy when possible.
348
349 2012-11-06  Andreas Jaeger  <aj@suse.de>
350
351         * po/eo.po: Update from translation team.
352
353 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
354
355         [BZ #14793]
356         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
357         exponent and small x and y exponents, scale x or y up.  Increase
358         by 2 the exponent used in scaling up.
359         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
360         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
361         * math/libm-test.inc (fma_test): Add more tests.
362         (fma_test_towardzero): Likewise.
363         (fma_test_downward): Likewise.
364         (fma_test_upward): Likewise.
365
366 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
367
368         [BZ #14805]
369         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
370         fenv_t *.
371
372         [BZ #14801]
373         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
374         namespace for names of struct fields.
375         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
376         fenv_t fields.
377         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
378         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
379
380 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
381
382         [BZ #3665]
383         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
384
385 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
386
387         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
388         PTR_DEMANGLE.
389
390         [BZ #5246]
391         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
392         PTR_DEMANGLE.
393
394 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
395
396         [BZ #14797]
397         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
398         definitely overflow as x * y not x * y + z.
399         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
400         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
401         * math/libm-test.inc (fma_test): Add more tests.
402         (fma_test_towardzero): Likewise.
403         (fma_test_downward): Likewise.
404         (fma_test_upward): Likewise.
405
406 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
407
408         [BZ #157]
409
410         * include/stub-tag.h: Remove file.
411         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
412         '#include' of it.
413         * manual/maint.texi (Porting): Don't reference it.
414         * Makerules ($(objpfx)stubs): Likewise.
415         * dirent/closedir.c: Don't include <stub-tag.h>.
416         * dirent/dirfd.c: Likewise.
417         * dirent/fdopendir.c: Likewise.
418         * dirent/getdents.c: Likewise.
419         * dirent/getdents64.c: Likewise.
420         * dirent/opendir.c: Likewise.
421         * dirent/readdir.c: Likewise.
422         * dirent/readdir64.c: Likewise.
423         * dirent/readdir64_r.c: Likewise.
424         * dirent/readdir_r.c: Likewise.
425         * dirent/rewinddir.c: Likewise.
426         * dirent/seekdir.c: Likewise.
427         * dirent/telldir.c: Likewise.
428         * gmon/profil.c: Likewise.
429         * grp/setgroups.c: Likewise.
430         * inet/if_index.c: Likewise.
431         * io/access.c: Likewise.
432         * io/chdir.c: Likewise.
433         * io/chmod.c: Likewise.
434         * io/chown.c: Likewise.
435         * io/close.c: Likewise.
436         * io/dup.c: Likewise.
437         * io/dup2.c: Likewise.
438         * io/dup3.c: Likewise.
439         * io/euidaccess.c: Likewise.
440         * io/faccessat.c: Likewise.
441         * io/fchdir.c: Likewise.
442         * io/fchmod.c: Likewise.
443         * io/fchmodat.c: Likewise.
444         * io/fchown.c: Likewise.
445         * io/fchownat.c: Likewise.
446         * io/fcntl.c: Likewise.
447         * io/flock.c: Likewise.
448         * io/fstatfs.c: Likewise.
449         * io/fstatfs64.c: Likewise.
450         * io/fstatvfs.c: Likewise.
451         * io/fstatvfs64.c: Likewise.
452         * io/futimens.c: Likewise.
453         * io/fxstat.c: Likewise.
454         * io/fxstat64.c: Likewise.
455         * io/fxstatat.c: Likewise.
456         * io/fxstatat64.c: Likewise.
457         * io/getcwd.c: Likewise.
458         * io/isatty.c: Likewise.
459         * io/lchmod.c: Likewise.
460         * io/lchown.c: Likewise.
461         * io/link.c: Likewise.
462         * io/linkat.c: Likewise.
463         * io/lseek.c: Likewise.
464         * io/lseek64.c: Likewise.
465         * io/lxstat64.c: Likewise.
466         * io/mkdir.c: Likewise.
467         * io/mkdirat.c: Likewise.
468         * io/mkfifo.c: Likewise.
469         * io/mkfifoat.c: Likewise.
470         * io/open.c: Likewise.
471         * io/open64.c: Likewise.
472         * io/openat.c: Likewise.
473         * io/openat64.c: Likewise.
474         * io/pipe.c: Likewise.
475         * io/pipe2.c: Likewise.
476         * io/poll.c: Likewise.
477         * io/posix_fadvise.c: Likewise.
478         * io/posix_fadvise64.c: Likewise.
479         * io/posix_fallocate.c: Likewise.
480         * io/posix_fallocate64.c: Likewise.
481         * io/read.c: Likewise.
482         * io/readlink.c: Likewise.
483         * io/readlinkat.c: Likewise.
484         * io/rmdir.c: Likewise.
485         * io/sendfile.c: Likewise.
486         * io/sendfile64.c: Likewise.
487         * io/statfs.c: Likewise.
488         * io/statfs64.c: Likewise.
489         * io/statvfs.c: Likewise.
490         * io/statvfs64.c: Likewise.
491         * io/symlink.c: Likewise.
492         * io/symlinkat.c: Likewise.
493         * io/ttyname.c: Likewise.
494         * io/ttyname_r.c: Likewise.
495         * io/umask.c: Likewise.
496         * io/unlink.c: Likewise.
497         * io/unlinkat.c: Likewise.
498         * io/utime.c: Likewise.
499         * io/utimensat.c: Likewise.
500         * io/write.c: Likewise.
501         * io/xmknod.c: Likewise.
502         * io/xmknodat.c: Likewise.
503         * io/xstat.c: Likewise.
504         * io/xstat64.c: Likewise.
505         * login/getpt.c: Likewise.
506         * login/grantpt.c: Likewise.
507         * login/unlockpt.c: Likewise.
508         * math/e_acoshl.c: Likewise.
509         * math/e_acosl.c: Likewise.
510         * math/e_asinl.c: Likewise.
511         * math/e_atan2l.c: Likewise.
512         * math/e_atanhl.c: Likewise.
513         * math/e_coshl.c: Likewise.
514         * math/e_expl.c: Likewise.
515         * math/e_fmodl.c: Likewise.
516         * math/e_gammal_r.c: Likewise.
517         * math/e_hypotl.c: Likewise.
518         * math/e_j0l.c: Likewise.
519         * math/e_j1l.c: Likewise.
520         * math/e_jnl.c: Likewise.
521         * math/e_lgammal_r.c: Likewise.
522         * math/e_log10l.c: Likewise.
523         * math/e_log2l.c: Likewise.
524         * math/e_logl.c: Likewise.
525         * math/e_powl.c: Likewise.
526         * math/e_rem_pio2l.c: Likewise.
527         * math/e_sinhl.c: Likewise.
528         * math/e_sqrtl.c: Likewise.
529         * math/fclrexcpt.c: Likewise.
530         * math/fedisblxcpt.c: Likewise.
531         * math/feenablxcpt.c: Likewise.
532         * math/fegetenv.c: Likewise.
533         * math/fegetexcept.c: Likewise.
534         * math/fegetround.c: Likewise.
535         * math/feholdexcpt.c: Likewise.
536         * math/fesetenv.c: Likewise.
537         * math/fesetround.c: Likewise.
538         * math/feupdateenv.c: Likewise.
539         * math/fgetexcptflg.c: Likewise.
540         * math/fraiseexcpt.c: Likewise.
541         * math/fsetexcptflg.c: Likewise.
542         * math/ftestexcept.c: Likewise.
543         * math/k_cosl.c: Likewise.
544         * math/k_rem_pio2l.c: Likewise.
545         * math/k_sinl.c: Likewise.
546         * math/k_tanl.c: Likewise.
547         * math/s_asinhl.c: Likewise.
548         * math/s_atanl.c: Likewise.
549         * math/s_cbrtl.c: Likewise.
550         * math/s_erfl.c: Likewise.
551         * math/s_expm1l.c: Likewise.
552         * math/s_log1pl.c: Likewise.
553         * math/s_tanhl.c: Likewise.
554         * misc/acct.c: Likewise.
555         * misc/brk.c: Likewise.
556         * misc/chflags.c: Likewise.
557         * misc/chroot.c: Likewise.
558         * misc/fchflags.c: Likewise.
559         * misc/fgetxattr.c: Likewise.
560         * misc/flistxattr.c: Likewise.
561         * misc/fremovexattr.c: Likewise.
562         * misc/fsetxattr.c: Likewise.
563         * misc/fsync.c: Likewise.
564         * misc/ftruncate.c: Likewise.
565         * misc/futimes.c: Likewise.
566         * misc/futimesat.c: Likewise.
567         * misc/getdomain.c: Likewise.
568         * misc/getdtsz.c: Likewise.
569         * misc/gethostid.c: Likewise.
570         * misc/gethostname.c: Likewise.
571         * misc/getloadavg.c: Likewise.
572         * misc/getpagesize.c: Likewise.
573         * misc/getsysstats.c: Likewise.
574         * misc/getxattr.c: Likewise.
575         * misc/gtty.c: Likewise.
576         * misc/ioctl.c: Likewise.
577         * misc/lgetxattr.c: Likewise.
578         * misc/listxattr.c: Likewise.
579         * misc/llistxattr.c: Likewise.
580         * misc/lremovexattr.c: Likewise.
581         * misc/lsetxattr.c: Likewise.
582         * misc/lutimes.c: Likewise.
583         * misc/madvise.c: Likewise.
584         * misc/mincore.c: Likewise.
585         * misc/mlock.c: Likewise.
586         * misc/mlockall.c: Likewise.
587         * misc/mmap.c: Likewise.
588         * misc/mprotect.c: Likewise.
589         * misc/msync.c: Likewise.
590         * misc/munlock.c: Likewise.
591         * misc/munlockall.c: Likewise.
592         * misc/munmap.c: Likewise.
593         * misc/preadv.c: Likewise.
594         * misc/preadv64.c: Likewise.
595         * misc/ptrace.c: Likewise.
596         * misc/pwritev.c: Likewise.
597         * misc/pwritev64.c: Likewise.
598         * misc/readv.c: Likewise.
599         * misc/reboot.c: Likewise.
600         * misc/remap_file_pages.c: Likewise.
601         * misc/removexattr.c: Likewise.
602         * misc/revoke.c: Likewise.
603         * misc/select.c: Likewise.
604         * misc/setdomain.c: Likewise.
605         * misc/setegid.c: Likewise.
606         * misc/seteuid.c: Likewise.
607         * misc/sethostid.c: Likewise.
608         * misc/sethostname.c: Likewise.
609         * misc/setregid.c: Likewise.
610         * misc/setreuid.c: Likewise.
611         * misc/setxattr.c: Likewise.
612         * misc/sstk.c: Likewise.
613         * misc/stty.c: Likewise.
614         * misc/swapoff.c: Likewise.
615         * misc/swapon.c: Likewise.
616         * misc/sync.c: Likewise.
617         * misc/syncfs.c: Likewise.
618         * misc/syscall.c: Likewise.
619         * misc/truncate.c: Likewise.
620         * misc/ualarm.c: Likewise.
621         * misc/usleep.c: Likewise.
622         * misc/ustat.c: Likewise.
623         * misc/utimes.c: Likewise.
624         * misc/vhangup.c: Likewise.
625         * misc/writev.c: Likewise.
626         * posix/_exit.c: Likewise.
627         * posix/alarm.c: Likewise.
628         * posix/execve.c: Likewise.
629         * posix/fexecve.c: Likewise.
630         * posix/fork.c: Likewise.
631         * posix/fpathconf.c: Likewise.
632         * posix/getaddrinfo.c: Likewise.
633         * posix/getegid.c: Likewise.
634         * posix/geteuid.c: Likewise.
635         * posix/getgid.c: Likewise.
636         * posix/getgroups.c: Likewise.
637         * posix/getlogin.c: Likewise.
638         * posix/getlogin_r.c: Likewise.
639         * posix/getpgid.c: Likewise.
640         * posix/getpid.c: Likewise.
641         * posix/getppid.c: Likewise.
642         * posix/getresgid.c: Likewise.
643         * posix/getresuid.c: Likewise.
644         * posix/getsid.c: Likewise.
645         * posix/getuid.c: Likewise.
646         * posix/glob64.c: Likewise.
647         * posix/nanosleep.c: Likewise.
648         * posix/pathconf.c: Likewise.
649         * posix/pause.c: Likewise.
650         * posix/posix_madvise.c: Likewise.
651         * posix/pread.c: Likewise.
652         * posix/pread64.c: Likewise.
653         * posix/pwrite.c: Likewise.
654         * posix/pwrite64.c: Likewise.
655         * posix/sched_getaffinity.c: Likewise.
656         * posix/sched_getp.c: Likewise.
657         * posix/sched_gets.c: Likewise.
658         * posix/sched_primax.c: Likewise.
659         * posix/sched_primin.c: Likewise.
660         * posix/sched_rr_gi.c: Likewise.
661         * posix/sched_setaffinity.c: Likewise.
662         * posix/sched_setp.c: Likewise.
663         * posix/sched_sets.c: Likewise.
664         * posix/sched_yield.c: Likewise.
665         * posix/setgid.c: Likewise.
666         * posix/setlogin.c: Likewise.
667         * posix/setpgid.c: Likewise.
668         * posix/setresgid.c: Likewise.
669         * posix/setresuid.c: Likewise.
670         * posix/setsid.c: Likewise.
671         * posix/setuid.c: Likewise.
672         * posix/sleep.c: Likewise.
673         * posix/spawni.c: Likewise.
674         * posix/sysconf.c: Likewise.
675         * posix/times.c: Likewise.
676         * posix/wait.c: Likewise.
677         * posix/wait3.c: Likewise.
678         * posix/wait4.c: Likewise.
679         * posix/waitpid.c: Likewise.
680         * resolv/gai_sigqueue.c: Likewise.
681         * resource/getpriority.c: Likewise.
682         * resource/getrlimit.c: Likewise.
683         * resource/getrusage.c: Likewise.
684         * resource/nice.c: Likewise.
685         * resource/setpriority.c: Likewise.
686         * resource/setrlimit.c: Likewise.
687         * resource/ulimit.c: Likewise.
688         * rt/aio_cancel.c: Likewise.
689         * rt/aio_fsync.c: Likewise.
690         * rt/aio_read.c: Likewise.
691         * rt/aio_sigqueue.c: Likewise.
692         * rt/aio_suspend.c: Likewise.
693         * rt/aio_write.c: Likewise.
694         * rt/clock_getres.c: Likewise.
695         * rt/clock_gettime.c: Likewise.
696         * rt/clock_nanosleep.c: Likewise.
697         * rt/clock_settime.c: Likewise.
698         * rt/lio_listio.c: Likewise.
699         * rt/mq_close.c: Likewise.
700         * rt/mq_getattr.c: Likewise.
701         * rt/mq_notify.c: Likewise.
702         * rt/mq_open.c: Likewise.
703         * rt/mq_receive.c: Likewise.
704         * rt/mq_send.c: Likewise.
705         * rt/mq_setattr.c: Likewise.
706         * rt/mq_timedreceive.c: Likewise.
707         * rt/mq_timedsend.c: Likewise.
708         * rt/mq_unlink.c: Likewise.
709         * rt/shm_open.c: Likewise.
710         * rt/shm_unlink.c: Likewise.
711         * rt/timer_create.c: Likewise.
712         * rt/timer_delete.c: Likewise.
713         * rt/timer_getoverr.c: Likewise.
714         * rt/timer_gettime.c: Likewise.
715         * rt/timer_settime.c: Likewise.
716         * setjmp/__longjmp.c: Likewise.
717         * setjmp/setjmp.c: Likewise.
718         * signal/kill.c: Likewise.
719         * signal/killpg.c: Likewise.
720         * signal/raise.c: Likewise.
721         * signal/sigaction.c: Likewise.
722         * signal/sigaltstack.c: Likewise.
723         * signal/sigblock.c: Likewise.
724         * signal/sigignore.c: Likewise.
725         * signal/sigintr.c: Likewise.
726         * signal/signal.c: Likewise.
727         * signal/sigpause.c: Likewise.
728         * signal/sigpending.c: Likewise.
729         * signal/sigqueue.c: Likewise.
730         * signal/sigreturn.c: Likewise.
731         * signal/sigset.c: Likewise.
732         * signal/sigsetmask.c: Likewise.
733         * signal/sigstack.c: Likewise.
734         * signal/sigsuspend.c: Likewise.
735         * signal/sigtimedwait.c: Likewise.
736         * signal/sigvec.c: Likewise.
737         * signal/sigwait.c: Likewise.
738         * signal/sigwaitinfo.c: Likewise.
739         * signal/sysv_signal.c: Likewise.
740         * socket/accept.c: Likewise.
741         * socket/accept4.c: Likewise.
742         * socket/bind.c: Likewise.
743         * socket/connect.c: Likewise.
744         * socket/getpeername.c: Likewise.
745         * socket/getsockname.c: Likewise.
746         * socket/getsockopt.c: Likewise.
747         * socket/isfdtype.c: Likewise.
748         * socket/listen.c: Likewise.
749         * socket/recv.c: Likewise.
750         * socket/recvfrom.c: Likewise.
751         * socket/recvmsg.c: Likewise.
752         * socket/send.c: Likewise.
753         * socket/sendmsg.c: Likewise.
754         * socket/sendto.c: Likewise.
755         * socket/setsockopt.c: Likewise.
756         * socket/shutdown.c: Likewise.
757         * socket/sockatmark.c: Likewise.
758         * socket/socket.c: Likewise.
759         * socket/socketpair.c: Likewise.
760         * stdio-common/ctermid.c: Likewise.
761         * stdio-common/cuserid.c: Likewise.
762         * stdio-common/remove.c: Likewise.
763         * stdio-common/rename.c: Likewise.
764         * stdio-common/renameat.c: Likewise.
765         * stdio-common/tempname.c: Likewise.
766         * stdlib/getcontext.c: Likewise.
767         * stdlib/makecontext.c: Likewise.
768         * stdlib/setcontext.c: Likewise.
769         * stdlib/swapcontext.c: Likewise.
770         * stdlib/system.c: Likewise.
771         * streams/fattach.c: Likewise.
772         * streams/fdetach.c: Likewise.
773         * streams/getmsg.c: Likewise.
774         * streams/getpmsg.c: Likewise.
775         * streams/putmsg.c: Likewise.
776         * streams/putpmsg.c: Likewise.
777         * sysdeps/unix/bsd/getpt.c: Likewise.
778         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
779         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
780         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
782         Likewise.
783         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
784         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
785         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
786         * sysvipc/msgctl.c: Likewise.
787         * sysvipc/msgget.c: Likewise.
788         * sysvipc/msgrcv.c: Likewise.
789         * sysvipc/msgsnd.c: Likewise.
790         * sysvipc/semctl.c: Likewise.
791         * sysvipc/semget.c: Likewise.
792         * sysvipc/semop.c: Likewise.
793         * sysvipc/semtimedop.c: Likewise.
794         * sysvipc/shmat.c: Likewise.
795         * sysvipc/shmctl.c: Likewise.
796         * sysvipc/shmdt.c: Likewise.
797         * sysvipc/shmget.c: Likewise.
798         * termios/tcdrain.c: Likewise.
799         * termios/tcflow.c: Likewise.
800         * termios/tcflush.c: Likewise.
801         * termios/tcgetattr.c: Likewise.
802         * termios/tcgetpgrp.c: Likewise.
803         * termios/tcsendbrk.c: Likewise.
804         * termios/tcsetattr.c: Likewise.
805         * termios/tcsetpgrp.c: Likewise.
806         * time/adjtime.c: Likewise.
807         * time/clock.c: Likewise.
808         * time/getitimer.c: Likewise.
809         * time/gettimeofday.c: Likewise.
810         * time/setitimer.c: Likewise.
811         * time/settimeofday.c: Likewise.
812         * time/stime.c: Likewise.
813         * time/time.c: Likewise.
814
815 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
816
817         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
818         /usr/old/bin.
819
820         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
821         instead of spaces.
822         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
823
824 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
825
826         [BZ #14796]
827         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
828         FE_TONEAREST before applying Dekker multiplication and Knuth
829         addition.  Clear inexact exceptions and check for exact zero
830         results afterwards.
831         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
832         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
833         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
834         * math/libm-test.inc (fma_test): Add more tests.
835         (fma_test_towardzero): Likewise.
836         (fma_test_downward): Likewise.
837         (fma_test_upward): Likewise.
838         * sysdeps/generic/math_private.h (default_libc_fesetround): New
839         function.
840         (libc_fesetround): New macro.
841         (libc_fesetroundf): Likewise.
842         (libc_fesetroundl): Likewise.
843         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
844         function.
845         (libc_fesetround_387): Likewise.
846         (libc_fesetroundf): New macro.
847         (libc_fesetround): Likewise.
848         (libc_fesetroundl): Likewise.
849         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
850         function.
851         (libc_fesetroundf): New macro.
852         (libc_fesetround): Likewise.
853         (libc_fesetroundl): Likewise.
854         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
855         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
856         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
857         libm_hidden_ver.
858         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
859         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
860         libm_hidden_def.
861         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
862         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
863         libm_hidden_ver.
864         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
865         libm_hidden_def.
866
867         [BZ #3439]
868         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
869         integer constant usable in #if and use that to give value to enum
870         constant.
871         (FE_DIVBYZERO): Likewise.
872         (FE_UNDERFLOW): Likewise.
873         (FE_OVERFLOW): Likewise.
874         (FE_INVALID): Likewise.
875         (FE_INVALID_SNAN): Likewise.
876         (FE_INVALID_ISI): Likewise.
877         (FE_INVALID_IDI): Likewise.
878         (FE_INVALID_ZDZ): Likewise.
879         (FE_INVALID_IMZ): Likewise.
880         (FE_INVALID_COMPARE): Likewise.
881         (FE_INVALID_SOFTWARE): Likewise.
882         (FE_INVALID_SQRT): Likewise.
883         (FE_INVALID_INTEGER_CONVERSION): Likewise.
884         (FE_TONEAREST): Likewise.
885         (FE_TOWARDZERO): Likewise.
886         (FE_UPWARD): Likewise.
887         (FE_DOWNWARD): Likewise.
888         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
889         (FE_DIVBYZERO): Likewise.
890         (FE_OVERFLOW): Likewise.
891         (FE_UNDERFLOW): Likewise.
892         (FE_INEXACT): Likewise.
893         (FE_TONEAREST): Likewise.
894         (FE_DOWNWARD): Likewise.
895         (FE_UPWARD): Likewise.
896         (FE_TOWARDZERO): Likewise.
897         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
898         (FE_UNDERFLOW): Likewise.
899         (FE_OVERFLOW): Likewise.
900         (FE_DIVBYZERO): Likewise.
901         (FE_INVALID): Likewise.
902         (FE_TONEAREST): Likewise.
903         (FE_TOWARDZERO): Likewise.
904         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
905         (FE_OVERFLOW): Likewise.
906         (FE_UNDERFLOW): Likewise.
907         (FE_DIVBYZERO): Likewise.
908         (FE_INEXACT): Likewise.
909         (FE_TONEAREST): Likewise.
910         (FE_TOWARDZERO): Likewise.
911         (FE_UPWARD): Likewise.
912         (FE_DOWNWARD): Likewise.
913         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
914         (FE_DIVBYZERO): Likewise.
915         (FE_OVERFLOW): Likewise.
916         (FE_UNDERFLOW): Likewise.
917         (FE_INEXACT): Likewise.
918         (FE_TONEAREST): Likewise.
919         (FE_DOWNWARD): Likewise.
920         (FE_UPWARD): Likewise.
921         (FE_TOWARDZERO): Likewise.
922
923 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
924
925         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
926
927 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
928
929         * scripts/cross-test-ssh.sh (command): Use newlines to separate
930         commands.  Quote $PWD.
931         (blacklist_exports): Don't use remove_newlines.  Replace "declare
932         -x" by "export".
933         (remove_newlines): Remove.
934
935 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
936
937         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
938         * stdlib/stdlib.h (atof): Moved to ...
939         * include/bits/stdlib-float.h: Here.  New file.
940         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
941         * stdlib/bits/stdlib-float.h: New file.
942         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
943         -mno-sse -mno-mmx.
944         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
945         <xmmintrin.h>.
946
947 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
948
949         * conform/conformtest.pl (@headers): Add fenv.h.
950         * conform/data/fenv.h-data: New file.
951         * include/fenv.h [_ISOMAC]: Disable all contents of file except
952         include of <math/fenv.h>.
953
954         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
955         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
956         && !UNIX98].  Enables tests for XOPEN2K8.
957         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
958         POSIX2008]: Likewise.
959
960         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
961         (struct rusage): Do not expect type or its members.
962
963         [BZ #3439]
964         * math/math.h (FP_NAN): Define macro to integer constant usable in
965         #if and use that to give value to enum constant.
966         (FP_INFINITE): Likewise.
967         (FP_ZERO): Likewise.
968         (FP_SUBNORMAL): Likewise.
969         (FP_NORMAL): Likewise.
970
971 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
972
973         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
974         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
975         arguments.
976
977 2012-11-02  Roland McGrath  <roland@hack.frob.com>
978
979         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
980         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
981         autoconf-time if not.
982         * configure.in: Remove AC_PREREQ.
983
984 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
985
986         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
987         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
988         of the internal implementation.
989
990 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
991
992         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
993         except include of <misc/sys/syslog.h>.
994
995 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
996
997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
998         function returns with a NULL context exit with zero.
999
1000 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1001
1002         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1003
1004 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1005
1006         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1007         (run_program_cmd): This.
1008         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1009         (tst_langinfo): New variable.  Use it.
1010
1011 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1012
1013         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1014         floating point opcodes.
1015
1016 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1017
1018         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1019         variable.
1020
1021         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1022
1023         * sysdeps/mach/hurd/powerpc: Remove directory.
1024         * sysdeps/mach/powerpc: Likewise.
1025
1026 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1027
1028         * scripts/check-local-headers.sh: Ignore c++ headers.
1029
1030 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1031
1032         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1033         __libc_cleanup_region_start argument.
1034
1035 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1036
1037         [BZ #14784]
1038         [BZ #14785]
1039         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1040         x * y using scaling, not as x * y + z.
1041         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1042         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1043         * math/libm-test.inc (fma_test): Add more tests.
1044         (fma_test_towardzero): Likewise.
1045         (fma_test_downward): Likewise.
1046         (fma_test_upward): Likewise.
1047
1048 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1049
1050         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1051
1052 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1053
1054         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1055         New variable.
1056
1057 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1058
1059         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1060
1061 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1062
1063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1064         Fix sort order.
1065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1066         Likewise.
1067
1068 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1069
1070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1071         Fix the order of the list for glibc 2.17.
1072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1073         Likewise.
1074
1075 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1076
1077         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1078
1079 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1080
1081         [BZ #14610]
1082         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1083         for low part of x being zero before using __atanl (y).
1084         * math/libm-test.inc (atan2_test): Add another test.
1085
1086         * manual/install.texi (Configuring and compiling): Document
1087         general use of test-wrapper and test-wrapper-env.
1088         * INSTALL: Regenerated.
1089
1090         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1091         (__fma): Do not extract and scale down low bits on after-rounding
1092         systems when result rounded to normal precision would have normal
1093         exponent.
1094         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1095         (__fmal): Do not extract and scale down low bits on after-rounding
1096         systems when result rounded to normal precision would have normal
1097         exponent.
1098         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1099         (__fmal): Do not extract and scale down low bits on after-rounding
1100         systems when result rounded to normal precision would have normal
1101         exponent.
1102         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1103         macro.
1104         (fma_test): Add more tests.
1105         (fma_test_towardzero): Likewise.
1106         (fma_test_downward): Likewise.
1107         (fma_test_upward): Likewise.
1108
1109 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1110
1111         * sysdeps/i386/tininess.h: Renamed to ...
1112         * sysdeps/x86/tininess.h: This.
1113         * sysdeps/x86_64/tininess.h: Removed.
1114
1115 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1116
1117         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1118         input.  Use $(build-program-cmd).
1119         ($(objpfx)tst-array1-static.out): Likewise.
1120         ($(objpfx)tst-array2.out): Likewise.
1121         ($(objpfx)tst-array3.out): Likewise.
1122         ($(objpfx)tst-array4.out): Likewise.
1123         ($(objpfx)tst-array5.out): Likewise.
1124         ($(objpfx)tst-array5-static.out): Likewise.
1125
1126 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1127
1128         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1129         if defined.
1130
1131         * nss/nsswitch.h (nss_interface_function): Provide new
1132         macro for use with NSS functions.
1133         * grp/initgroups.c: Use new macro.
1134         * nss/getXXbyYY.c: Likewise.
1135         * nss/getXXbyYY_r.c: Likewise.
1136         * nss/getXXent.c: Likewise.
1137         * nss/getXXent_r.c: Likewise.
1138         * sysdeps/posix/getaddrinfo.c: Likewise.
1139
1140 2012-10-30  Andreas Jaeger  <aj@suse.de>
1141
1142         * po/ru.po: Update Russion translation from translation project.
1143
1144 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1145
1146         [BZ #14152]
1147         [BZ #14783]
1148         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1149         result and shift together with sticky bit instead of replicating
1150         round-to-nearest rounding.
1151         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1152         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1153         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1154         missing underflow exceptions.
1155         (fma_test_towardzero): Add more tests.
1156         (fma_test_downward): Likewise.
1157         (fma_test_upward): Likewise.
1158
1159         [BZ #14047]
1160         * sysdeps/generic/tininess.h: New file.
1161         * sysdeps/i386/tininess.h: Likewise.
1162         * sysdeps/sh/tininess.h: Likewise.
1163         * sysdeps/x86_64/tininess.h: Likewise.
1164         * stdlib/tst-strtod-underflow.c: Likewise.
1165         * stdlib/tst-tininess.c: Likewise.
1166         * stdlib/strtod_l.c: Include <tininess.h>.
1167         (round_and_return): Do not set errno for exact underflow cases.
1168         Force an underflow exception when setting errno for underflow.
1169         Determine underflow based on rounding to normal precision if
1170         TININESS_AFTER_ROUNDING.
1171         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1172         ERANGE for exact underflow cases.
1173         * stdlib/Makefile (tests): Add tst-tininess and
1174         tst-strtod-underflow.
1175         ($(objpfx)tst-tininess): Use $(link-libm).
1176         ($(objpfx)tst-strtod-underflow): Likewise.
1177
1178 2012-10-30  Andreas Jaeger  <aj@suse.de>
1179
1180         [BZ#14767]
1181         * elf/Makefile (tests): Remove conditional for have-initfini-array
1182         since this is now always required and the variable does not exist
1183         anymore.
1184         (tests-static): Likewise.
1185         (modules-names): Likewise.
1186
1187         * po/eo.po: Add Esperanto translation from translation project.
1188
1189         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1190         merged with constructor/destructor.
1191         (init_array): Likewise.
1192         * elf/tst-array2dep.c (fini_array): Likewise.
1193         (init_array): Likewise.
1194
1195 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1196
1197         * manual/message.texi: Delete @cartouche tags.
1198
1199 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1200
1201         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1202         EOPNOTSUPP.
1203         * sysdeps/mach/hurd/fsync.c: Likewise.
1204
1205         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1206         [_POSIX_REALTIME_SIGNALS]: Change condition to
1207         [_POSIX_REALTIME_SIGNALS > 0].
1208
1209 2012-10-27  Andreas Jaeger  <aj@suse.de>
1210
1211         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1212         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1213         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1214         [__WORDSIZE != 64]: Likewise.
1215
1216 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1217
1218         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1219         *  iconvdata/tst-tables.sh: Likewise.
1220
1221 2012-10-25  David S. Miller  <davem@davemloft.net>
1222
1223         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1224         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1225         of strtoull.
1226
1227         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1228         ifunc-impl-list.c
1229         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1230         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1231         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1232         file.
1233
1234 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1235
1236         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1237         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1238         __getdirentries.
1239
1240 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1241             Jim Blandy  <jimb@codesourcery.com>
1242
1243         * scripts/cross-test-ssh.sh: New file.
1244         * manual/install.texi (Configuring and compiling): Document use of
1245         cross-test-ssh.sh.
1246         * INSTALL: Regenerated.
1247
1248 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1249
1250         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1251         EOPNOTSUPP.
1252
1253 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1254
1255         * Makeconfig (run-program-prefix): Fix comment.
1256
1257 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1258             Jim Blandy  <jimb@codesourcery.com>
1259
1260         * Makeconfig (test-wrapper): New variable,
1261         (test-wrapper-env): Likewise.
1262         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1263         (run-built-tests): Define to yes.
1264         (run-program-prefix): Use $(test-wrapper).
1265         (built-program-cmd): Likewise.
1266         * Rules (make-test-out): Use $(test-wrapper-env) and
1267         $(host-built-program-cmd).
1268         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1269         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1270         tst-pathopt.sh.
1271         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1272         $(test-wrapper-env) to tst-rtld-load-self.sh.
1273         ($(objpfx)order2.out): Use $(test-wrapper).
1274         ($(objpfx)tst-initorder.out): Likewise.
1275         ($(objpfx)tst-initorder2.out): Likewise.
1276         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1277         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1278         (test_wrapper_env): New variable.  Use it to run ld.so.
1279         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1280         Use it to run ld.so.
1281         (test_wrapper_env): Likewise.
1282         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1283         $(test-wrapper) to run-iconv-test.sh.
1284         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1285         (ICONV): Use $test_wrapper.
1286         * posix/Makefile ($(objpfx)globtest.out): Pass
1287         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1288         globtest.sh, not $(run-program-prefix).
1289         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1290         (test_wrapper): Likewise.
1291         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1292         set together with run_via_rtld_prefix.
1293         (run_program_prefix): Define in terms of test_wrapper and
1294         run_via_rtld_prefix.
1295
1296 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1297
1298         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1299         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1300         Targets removed.
1301
1302         [BZ #14743]
1303         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1304         Declare __clock_getres, __clock_gettime, __clock_settime,
1305         __clock_nanosleep, and __clock_getcpuclockid.
1306         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1307         Remove librt_hidden_def (clock_gettime).
1308         * sysdeps/unix/clock_gettime.c: Likewise.
1309         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1310         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1311         * rt/clock_getres.c: Define __clock_getres as an alias.
1312         * sysdeps/posix/clock_getres.c: Likewise.
1313         * rt/clock_settime.c: Define __clock_settime as an alias.
1314         * sysdeps/unix/clock_settime.c: Likewise.
1315         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1316         * sysdeps/unix/clock_nanosleep.c: Likewise.
1317         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1318         * rt/clock-compat.c: New file.
1319         * rt/Makefile (librt-routines): Add clock-compat and move
1320         $(clock-routines) to ...
1321         (routines): ... here, new variable.
1322         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1323         Don't add get_clockfreq here.
1324         * rt/Versions (libc: GLIBC_2.17): New version set.
1325         Add clock_* symbols here.
1326         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1327         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1328         (GLIBC_2.17): Add clock_* symbols.
1329         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1330         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1331         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1333         Likewise.
1334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1335         Likewise.
1336         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1337         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1338         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1339         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1340         * NEWS: Mention the move.
1341
1342         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1343         Use __open, __read, __close rather than their public counterparts.
1344         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1345         (__get_clockfreq_via_cpuinfo): Likewise.
1346         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1347         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1348
1349         * config.h.in (HAVE_IFUNC): New #undef.
1350         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1351         was successful.
1352         * configure: Regenerated.
1353
1354 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1355
1356         * configure.in: Move READELF check to start of file.
1357         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1358         libc_cv_asm_gnu_indirect_function in the process.
1359         * configure: Regenerated.
1360
1361 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1362
1363         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1364         send the output to /dev/null.
1365         (libc_cv_cc_with_libunwind): Likewise.
1366         (libc_cv_as_noexecstack): Likewise.
1367         * configure: Regenerate.
1368
1369 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1370
1371         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1372
1373         * posix/globtest.sh (TMPDIR): Do not set.
1374         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1375         (testout): Likewise.
1376
1377 2012-10-24  Andreas Jaeger  <aj@suse.de>
1378
1379         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1380         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1381         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1382         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1383         posix_fadvise64, posix_fallocate64.
1384
1385         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1386         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1387         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1388         Likewise.
1389         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1390         Likewise.
1391         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1392
1393         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1394         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1395         <bits/fcntl-linux.h>.
1396         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1397
1398         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1399         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1400         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1401         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1402         [__WORDSIZE != 64]: Likewise.
1403
1404 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1405
1406         * Makeconfig (run-built-tests): New variable.
1407         * Rules [$(cross-compiling) = yes]: Change condition to
1408         [$(run-built-tests) = no].
1409         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1410         to [$(run-built-tests) = yes].
1411         * elf/Makefile [$(cross-compiling) = no]: Likewise
1412         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1413         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1414         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1415         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1416         * io/Makefile [$(cross-compiling) = no]: Likewise.
1417         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1418         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1419         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1420         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1421         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1422         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1423         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1424         * string/Makefile [$(cross-compiling) = no]: Likewise.
1425
1426         * posix/Makefile ($(objpfx)globtest.out): Pass
1427         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1428         $(rtld-installed-name).
1429         * posix/globtest.sh (elf_objpfx): Remove variable.
1430         (rtld_installed_name): Likewise.
1431         (library_path): Likewise.
1432         (run_program_prefix): New variable.  Use for running globtest
1433         binary.
1434
1435 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1436             Joseph Myers  <joseph@codesourcery.com>
1437
1438         * Makeconfig (host-built-program-cmd): New variable.
1439         * elf/Makefile (tst-stackguard1-ARGS): Use
1440         $(host-built-program-cmd).
1441         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1442         (tst-spawn-ARGS): Likewise.
1443         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1444
1445 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1446             Jim Blandy  <jimb@codesourcery.com>
1447
1448         * Makeconfig (run-via-rtld-prefix): New variable.
1449         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1450         (built-program-cmd): Likewise.
1451
1452 2012-10-22  Andreas Jaeger  <aj@suse.de>
1453
1454         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1455         __O_RSYNC if it exists, otherwise to O_SYNC.
1456
1457 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1458             Joseph Myers  <joseph@codesourcery.com>
1459
1460         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1461         /dev/null.
1462         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1463         from /dev/null
1464         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1465         /dev/null.
1466
1467 2012-10-22  Andreas Jaeger  <aj@suse.de>
1468
1469         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1470         Define always.
1471         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1472
1473         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1474         bits/fcntl-linux.h.
1475
1476         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1477         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1478
1479         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1480         to __O_LARGEFILE.
1481         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1482         to __O_LARGEFILE.
1483
1484 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1485             Joseph Myers  <joseph@codesourcery.com>
1486
1487         * config.make.in (NM): New variable.
1488
1489 2012-10-21  Andreas Jaeger  <aj@suse.de>
1490
1491         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1492         definitions and declarations that are provided by
1493         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1494
1495 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1496
1497         [BZ #14683]
1498         * elf/Makefile (tests-static): Add tst-leaks1-static.
1499         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1500         ($(objpfx)tst-leaks1-static): New rule.
1501         ($(objpfx)tst-leaks1-static-mem): Likewise.
1502         (tst-leaks1-static-ENV): New macro.
1503         * elf/dl-open.c (dl_open_worker): Check the main application
1504         only if SHARED is defined.
1505         * elf/tst-leaks1-static.c: New file.
1506
1507 2012-10-20  Andreas Jaeger  <aj@suse.de>
1508
1509         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1510         generic values for Linux.
1511         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1512         and declarations that are provided by <bits/fcntl-linux.h> and
1513         include <bits/fcntl-linux.h>.
1514         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1515         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1516
1517 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1518
1519         * io/fcntl.h: Move include of <bits/types.h> to the top and
1520         include it unconditionally.
1521
1522 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1523
1524         * wcsmbs/Makefile (tests-ifunc): New variable.
1525         (tests): Add $(tests-ifunc).
1526         * wcsmbs/test-wcschr-ifunc.c: New file.
1527         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1528         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1529         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1530         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1531         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1532
1533         * string/Makefile (tests-ifunc): New variable.
1534         (tests): Add $(tests-ifunc).
1535         * string/test-memccpy.c (TEST_NAME): New macro.
1536         * string/test-memchr.c (TEST_NAME): Likewise.
1537         * string/test-memcmp.c (TEST_NAME): Likewise.
1538         * string/test-memcpy.c (TEST_NAME): Likewise.
1539         * string/test-memmem.c (TEST_NAME): Likewise.
1540         * string/test-memmove.c (TEST_NAME): Likewise.
1541         * string/test-memset.c (TEST_NAME): Likewise.
1542         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1543         * string/test-stpcpy.c (TEST_NAME): Likewise.
1544         * string/test-stpncpy.c (TEST_NAME): Likewise.
1545         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1546         * string/test-strcasestr.c (TEST_NAME): Likewise.
1547         * string/test-strcat.c (TEST_NAME): Likewise.
1548         * string/test-strchr.c (TEST_NAME): Likewise.
1549         * string/test-strcmp.c(TEST_NAME): Likewise.
1550         * string/test-strcpy.c (TEST_NAME): Likewise.
1551         * string/test-strcspn.c (TEST_NAME): Likewise.
1552         * string/test-strlen.c (TEST_NAME): Likewise.
1553         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1554         * string/test-strncmp.c (TEST_NAME): Likewise.
1555         * string/test-strncpy.c (TEST_NAME): Likewise.
1556         * string/test-strnlen.c (TEST_NAME): Likewise.
1557         * string/test-strpbrk.c (TEST_NAME): Likewise.
1558         * string/test-strrchr.c (TEST_NAME): Likewise.
1559         * string/test-strspn.c (TEST_NAME): Likewise.
1560         * string/test-strstr.c (TEST_NAME): Likewise.
1561         * string/test-bcopy-ifunc.c: New file.
1562         * string/test-bzero-ifunc.c: Likewise.
1563         * string/test-memccpy-ifunc.c: Likewise.
1564         * string/test-memchr-ifunc.c: Likewise.
1565         * string/test-memcmp-ifunc.c: Likewise.
1566         * string/test-memcpy-ifunc.c: Likewise.
1567         * string/test-memmem-ifunc.c: Likewise.
1568         * string/test-memmove-ifunc.c: Likewise.
1569         * string/test-mempcpy-ifunc.c: Likewise.
1570         * string/test-memset-ifunc.c: Likewise.
1571         * string/test-rawmemchr-ifunc.c: Likewise.
1572         * string/test-stpcpy-ifunc.c: Likewise.
1573         * string/test-stpncpy-ifunc.c: Likewise.
1574         * string/test-strcasecmp-ifunc.c: Likewise.
1575         * string/test-strcasestr-ifunc.c: Likewise.
1576         * string/test-strcat-ifunc.c: Likewise.
1577         * string/test-strchr-ifunc.c: Likewise.
1578         * string/test-strchrnul-ifunc.c: Likewise.
1579         * string/test-strcmp-ifunc.c: Likewise.
1580         * string/test-strcpy-ifunc.c: Likewise.
1581         * string/test-strcspn-ifunc.c: Likewise.
1582         * string/test-strlen-ifunc.c: Likewise.
1583         * string/test-strncasecmp-ifunc.c: Likewise.
1584         * string/test-strncat-ifunc.c: Likewise.
1585         * string/test-strncmp-ifunc.c: Likewise.
1586         * string/test-strncpy-ifunc.c: Likewise.
1587         * string/test-strnlen-ifunc.c: Likewise.
1588         * string/test-strpbrk-ifunc.c: Likewise.
1589         * string/test-strrchr-ifunc.c: Likewise.
1590         * string/test-strspn-ifunc.c: Likewise.
1591         * string/test-strstr-ifunc.c: Likewise.
1592
1593         * debug/Makefile (tests-ifunc): New variable.
1594         (tests): Add $(tests-ifunc).
1595         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1596         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1597         * debug/test-stpcpy_chk-ifunc.c: New file.
1598         * debug/test-strcpy_chk-ifunc.c: Likewise.
1599
1600 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1601
1602         [BZ #13601]
1603         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1604         header is not read in.
1605
1606 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1607
1608         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1609         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1610         directly.  Pass built executable to script as
1611         $(built-program-cmd).
1612         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1613         $testprogram without using LD_LIBRARY_PATH and $ldso.
1614
1615         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1616         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1617         $(rtld-installed-name).
1618         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1619         (rtld_installed_name): Likewise.
1620         (library_path): Likewise.
1621         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1622         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1623         $(run-program-prefix) to tst-tables.sh.
1624         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1625         it to run tst-table-from and tst-table-to.
1626         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1627         Pass it to tst-table.sh.
1628         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1629         $(run-program-prefix) to tst-gettext.sh.
1630         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1631         tst-translit.sh.
1632         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1633         tst-gettext2.sh.
1634         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1635         to run tst-gettext.
1636         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1637         to run tst-gettext2.
1638         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1639         to run tst-translit.
1640         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1641         $(run-program-prefix) to tst-mtrace.sh.
1642         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1643         to run tst-mtrace.
1644         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1645         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1646         $(rtld-installed-name).
1647         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1648         (rtld_installed_name): Likewise.
1649         (run_program_prefix): New variable.  Use it to run wordexp-test.
1650
1651         * Makeconfig (ARCH): Remove all definitions.
1652         (machine): Likewise.
1653         [ARCH]: Remove conditional code.
1654         [!objdir]: Give error.
1655         [!objdir] (objpfx): Remove.
1656         [!objdir] (common-objpfx): Likewise.
1657         [!objdir] (common-objdir): Likewise.
1658         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1659         AC_CONFIG_FILES call.
1660         * configure: Regenerated.
1661
1662         [BZ #13888]
1663         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1664         or TMPDIR.
1665         (testout): Likewise.
1666
1667         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1668         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1669         $(rtld-installed-name).
1670         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1671         (rtld_installed_name): Likwise.
1672         (runit): Remove function.
1673         (run_getconf): New variable,  Use it for running getconf binary.
1674
1675 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1676
1677         [BZ #14716]
1678         * string/test-memmem.c (check_result): New function.
1679         (do_one_test): Use it.
1680         (check1): New function.
1681         (test_main): Use it.
1682
1683 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1684
1685         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1686
1687 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1688
1689         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1690         (_G_LSEEK64): Likewise.
1691         (_G_MMAP64): Likewise.
1692         (_G_FSTAT64): Likewise.
1693         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1694         (_G_LSEEK64): Likewise.
1695         (_G_MMAP64): Likewise.
1696         (_G_FSTAT64): Likewise.
1697         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1698         unconditional.  Call __mmap64 directly.
1699         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1700         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1701         __lseek64 directly.
1702         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1703         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1704         __mmap64 directly.
1705         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1706         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1707         __lseek64 directly.
1708         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1709         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1710         __lseek64 directly.
1711         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1712         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1713         __lseek64 directly.
1714         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1715         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1716         __fxstat64 directly.
1717         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1718         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1719         unconditional.
1720         (freopen64) [!_G_OPEN64]: Remove conditional code.
1721         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1722         unconditional.
1723         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1724         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1725         unconditional.
1726         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1727         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1728         unconditional.
1729         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1730         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1731         unconditional.
1732         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1733         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1734         unconditional.
1735         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1736         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1737         unconditional.
1738         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1739         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1740         unconditional.
1741         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1742
1743 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1744
1745         [BZ #12140]
1746         * manual/memory.texi (Malloc Tunable Parameters): Add note
1747         about free list pointers overwriting some perturb bytes.
1748         Wording suggested by Roland McGrath.
1749
1750 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1751
1752         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1753         (lgamma_test): Likewise.
1754         (tgamma_test): Likewise.
1755
1756 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1757
1758         [BZ #14700]
1759         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1760         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1761
1762 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1763
1764         * NEWS: Mention BZ #14716.
1765         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1766         when removing AVAILABLE1_USES_J macro.
1767
1768 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1769
1770         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1771         (__bswap_64): __uint64_t for unsigned 64-bit int.
1772
1773 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1774
1775         * include/string.h (memmem): Declare libc hidden alias.
1776         * string/memmem.c (memmem): Define libc hidden alias.
1777         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1778         __read, __close instead of open, read, close.
1779
1780 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1781
1782         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1783         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1784         global and hidden.
1785         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1786         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1787         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1788         Likewise.
1789         (__rawmemchr_sse2): Likewise.
1790         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1791         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1792         (__strchr_sse2): Likewise.
1793         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1794         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1795         (__strcasecmp_sse2): Likewise.
1796         (__strncasecmp_sse2): Likewise.
1797         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1798         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1799         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1800         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1801         (__strrchr_sse2): Likewise.
1802         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1803         ifunc-impl-list.c.
1804         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1805         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1806         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1807         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1808         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1809         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1810         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1811         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1812         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1813         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1814         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1815         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1816         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1817         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1818         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1819         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1820         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1821         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1822         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1823         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1824         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1825         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1826         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1827         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1828         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1829         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1830         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1831         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1832         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1833         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1834
1835         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1836         global and hidden.
1837         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1838         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1839         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1840         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1841         Likewise.
1842         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1843         Likewise.
1844         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1845         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1846         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1847         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1848         ifunc-impl-list.c.
1849         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1850         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1851         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1852         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1853         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1854         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1855         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1856         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1857         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1858         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1859         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1860         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1861         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1862         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1863         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1864         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1865         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1866         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1867         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1868         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1869         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1870         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1871         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1872         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1873         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1874         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1875         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1876         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1877         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1878         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1879         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1880         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1881         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1882         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1883         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1884         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1885         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1886         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1887         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1888         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1889         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1890
1891         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1892         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1893         * include/ifunc-impl-list.h: New file.
1894         * misc/ifunc-impl-list.c: Likewise.
1895         * misc/Makefile (routines): Add ifunc-impl-list.
1896         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
1897         * string/test-string.h: Include <ifunc-impl-list.h>.
1898         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
1899         impl_array): New variables.
1900         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
1901         are defined.
1902         (test_init): Call __libc_ifunc_impl_list to initialize
1903         func_list if TEST_IFUNC and TEST_NAME are defined.
1904
1905         * string/Makefile (strop-tests): Add bcopy and bzero.
1906         * string/test-bcopy.c: New file.
1907         * string/test-bzero.c: Likewise.
1908         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
1909         defined.
1910         * string/test-memset.c: Support bzero test if TEST_BZERO is
1911         defined.
1912         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
1913         __libc_memmove.
1914         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
1915         __libc_memset.
1916         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
1917         of memset.
1918
1919 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
1920
1921         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1922         * configure: Regenerated.
1923
1924         * Makeconfig (+link-static-before-libc): Don't include
1925         $(link-static-libc).
1926
1927         * libio/libio.h (_IO_pos_t): Remove.
1928
1929 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1930
1931         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1932         McGrath.
1933
1934 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1935
1936         * crypt/crypt-entry.c: Include fips-private.h.
1937         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1938         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1939         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1940         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1941
1942 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1943
1944         * crypt/crypt-private.h: Include stdbool.h.
1945         (_ufc_setup_salt_r): Return bool.
1946         * crypt/crypt-entry.c: Include errno.h.
1947         (__crypt_r): Return NULL with EINVAL for bad salt.
1948         * crypt/crypt_util.c (bad_for_salt): New.
1949         (_ufc_setup_salt_r): Check that salt is long enough and within
1950         the specified alphabet.
1951         * crypt/badsalttest.c: New file.
1952         * crypt/Makefile (tests): Add it.
1953         ($(objpfx)badsalttest): New.
1954
1955 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1956
1957         * NEWS: Add entry for BZ #14602.
1958
1959 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1960
1961         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1962         type-generic.
1963         * math/libm-test.inc: Update comment listing what functions and
1964         macros are tested.
1965         (isgreater_test): New function.
1966         (isgreaterequal_test): Likewise.
1967         (isless_test): Likewise.
1968         (islessequal_test): Likewise.
1969         (islessgreater_test): Likewise.
1970         (isunordered_test): Likewise.
1971         (main): Call the new functions.
1972
1973 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1974
1975         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1976         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1977         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1978         * sysdeps/i386/configure: Regenerated.
1979         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1980         * sysdeps/mach/configure: Regenerated.
1981         * sysdeps/mach/hurd/configure: Regenerated.
1982         * sysdeps/powerpc/configure: Regenerated.
1983         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1984         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1985         * sysdeps/s390/s390-32/configure: Regenerated.
1986         * sysdeps/s390/s390-64/configure: Regenerated.
1987         * sysdeps/sh/configure: Regenerated.
1988         * sysdeps/sparc/configure: Regenerated.
1989         * sysdeps/unix/sysv/linux/configure: Regenerated.
1990         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1991         * sysdeps/x86_64/configure: Regenerated.
1992
1993         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1994         defined.  Don't check if MAP is NULL.
1995
1996 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1997
1998         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1999         (_G_stat64): Likewise.
2000         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2001         (_G_stat64): Likewise.
2002         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2003         instead of struct _G_stat64.
2004         * libio/fileops.c (mmap_remap_check): Likewise.
2005         (decide_maybe_mmap): Likewise.
2006         (_IO_new_file_seekoff): Likewise.
2007         (_IO_file_stat): Likewise.
2008         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2009         _G_off64_t.
2010         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2011         instead of struct _G_stat64.
2012         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2013
2014 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2015
2016         [BZ #14602]
2017         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2018         Replace with ...
2019         (CHECK_EOL): New macro.
2020         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2021         CHECK_EOL.
2022         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2023         Replace with CHECK_EOL.
2024         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2025         Replace with CHECK_EOL.
2026
2027 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2028
2029         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2030         type-generic.
2031         * math/libm-test.inc: Update comment listing what functions and
2032         macros are tested.
2033         (finite_test): New function.
2034         (isinf_test): Likewise.
2035         (isnan_test): Likewise.
2036         (fpclassify_test): Test subnormal input.
2037         (isfinite_test): Likewise.
2038         (isnormal_test): Likewise.
2039         (main): Call the new functions.
2040
2041 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2042
2043         [BZ #14660]
2044         * Makerules (%.dynsym): Force C locale when running
2045         $(OBJDUMP) --dynamic-syms.
2046
2047 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2048
2049         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2050         <stdint.h>.
2051
2052 2012-10-06  David S. Miller  <davem@davemloft.net>
2053
2054         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2055         upper 32-bits of the length value in %o2 since we use branch-on-register
2056         tests which consider the entire 64-bit register.
2057
2058 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2059
2060         * string/test-strstr.c (check2): Add a test for page boundary.
2061
2062 2012-10-05  David S. Miller  <davem@davemloft.net>
2063
2064         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2065         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2066         file.
2067         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2068         sysdep_routines.
2069         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2070         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2071         and bzero when HWCAP_SPARC_CRYPTO is present.
2072
2073 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2074
2075         [BZ #14602]
2076         * string/test-strstr.c (check2): New function.
2077         (test_main): Call check2.
2078
2079         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2080         and bug-strchr1.
2081         * string/bug-strcasestr1.c (do_test): Moved to ...
2082         * string/test-strcasestr.c (check1): Here.  New function.
2083         (do_one_test): Break out result checking code into ...
2084         (check_result): This.  New function.
2085         (do_one_test): Call check_result.
2086         (test_main): Call check1.
2087         * string/bug-strchr1.c (do_test): Moved to ...
2088         * string/test-strchr.c (check1): Here.  New function.
2089         (do_one_test): Break out result checking code into ...
2090         (check_result): This.  New function.
2091         (do_one_test): Call check_result.
2092         (test_main): Call check1.
2093         * string/bug-strstr1.c (main): Moved to ...
2094         * string/test-strchr.c (check1): Here.  New function.
2095         (do_one_test): Break out result checking code into ...
2096         (check_result): This.  New function.
2097         (do_one_test): Call check_result.
2098         (test_main): Call check1.
2099         * string/bug-strcasestr1.c: Removed.
2100         * string/bug-strchr1.c: Likewise.
2101         * string/bug-strstr1.c: Likewise.
2102
2103         * elf/Makefile (dl-routines): Add hwcaps.
2104         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2105         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2106         (_dl_important_hwcaps): Moved to ...
2107         * elf/dl-hwcaps.c: Here.  New file.
2108         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2109
2110         [BZ #14557]
2111         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2112         if IS_IN_rtld isn't defined.
2113
2114         * elf/dl-support.c (_dl_sysinfo_map): New.
2115         Include "get-dynamic-info.h" and "setup-vdso.h".
2116         (_dl_non_dynamic_init): Call setup_vdso.
2117         * elf/dynamic-link.h: Don't include <assert.h>.
2118         (elf_get_dynamic_info): Moved to ...
2119         * elf/get-dynamic-info.h: Here.  New file.
2120         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2121         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2122         * elf/setup-vdso.h: Here.  New file.
2123         * elf/rtld.c: Include "setup-vdso.h".
2124         (dl_main): Call setup_vdso.
2125
2126 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2127
2128         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2129         creal in comment listing functions tested.  List finite, isinf,
2130         isnan, isless, islessequal, isgreater, isgreaterequal,
2131         islessgreater, isunordered, lgamma_r and pow10 as functions and
2132         macros not tested.  Mention which functions not tested are aliases
2133         for other functions.  Fix typo.  Note that signs of NaNs are not
2134         tested.
2135
2136         * scripts/config.guess: Update from config.git.
2137         * scripts/config.sub: Likewise.
2138
2139 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2140
2141         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2142         * misc/madvise.c (madvise): Renamed to __madvise.
2143         Make madvise a weak alias.
2144         * include/sys/mman.h: Declare __madvise.
2145         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2146         * sysdeps/unix/syscalls.list
2147         (madvise): Make __madvise the strong name, and madvise a weak alias.
2148         * sysdeps/unix/sysv/linux/syscalls.list
2149         (madvise, mmap): Remove redundant entries.
2150         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2151         * malloc/malloc.c (mtrim): Likewise.
2152         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2153
2154 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2155
2156         * sysdeps/mach/hurd/dl-cache.c: File removed.
2157         * config.h.in (USE_LDCONFIG): New #undef.
2158         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2159         * configure: Regenerated.
2160         * elf/Makefile (dl-routines): Add dl-cache only under
2161         [$(use-ldconfig) = yes].
2162         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2163         cache on [USE_LDCONFIG].
2164         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2165         [USE_LDCONFIG].
2166         * elf/rtld.c (dl_main): Likewise.
2167
2168 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2169
2170         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2171         _SC_LEVEL4_CACHE_LINESIZE.
2172
2173 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2174
2175         * sysdeps/unix/bsd/confstr.h: File removed.
2176
2177 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2178
2179         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2180         sys/sdt-config.h.
2181
2182 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2183
2184         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2185         Make 'mapoff' field ElfW(Off) rather than off_t.
2186
2187 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2188
2189         * nscd/Makefile: Remove nscd-cflags and all its users.
2190         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2191         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2192
2193         [BZ #10631]
2194         * malloc.c (malloc_printerr): Clarify error message.
2195
2196 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2197
2198         [BZ #14648]
2199         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2200         Set bit_FMA_Usable if FMA is supported.
2201         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2202         macro.
2203         (bit_FMA4_Usable): Updated.
2204         (index_FMA_Usable): New macro.
2205         (CPUID_FMA): Likewise
2206         (HAS_FMA): Defined with bit_FMA_Usable.
2207
2208 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2209
2210         * bits/types.h (__swblk_t): Type removed.
2211         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2212         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2213         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2214         (__SWBLK_T_TYPE): Likewise.
2215         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2216         (__SWBLK_T_TYPE): Likewise.
2217         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2218         (__SWBLK_T_TYPE): Likewise.
2219         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2220         (__SWBLK_T_TYPE): Likewise.
2221
2222 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2223             Honza Horak <hhorak@redhat.com>
2224
2225         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2226         (xdr_mapname): Use YPMAXMAP as maxsize.
2227         (xdr_peername): Use YPMAXPEER as maxsize.
2228         (xdr_keydat): Use YPAXRECORD as maxsize.
2229         (xdr_valdat): Use YPMAXRECORD as maxsize.
2230
2231 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2232
2233         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2234
2235         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2236         * csu/init-first.c: ... here.
2237         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2238         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2239         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2240         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2241         * sysdeps/i386/init-first.c: File removed.
2242         * sysdeps/sh/init-first.c: File removed.
2243
2244 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2245
2246         [BZ #14645]
2247         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2248         if x * y might underflow to zero and z is zero.
2249         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2250         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2251         * math/libm-test.inc (min_subnorm_value): New variable.
2252         (fma_test): Add more tests.
2253         (fma_test_towardzero): Likewise.
2254         (fma_test_downward): Likewise
2255         (fma_test_upward): Likewise.
2256         (initialize): Set min_subnorm_value.
2257
2258 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2259
2260         [BZ #14638]
2261         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2262         0 + 0.
2263         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2264         mode for addition resulting in exact zero.
2265         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2266         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2267         exact 0 + 0.
2268         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2269         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2270         * math/libm-test.inc (fma_test): Add more tests.
2271         (fma_test_towardzero): New function.
2272         (fma_test_downward): Likewise.
2273         (fma_test_upward): Likewise.
2274         (main): Call the new functions.
2275
2276 2012-09-28  David S. Miller  <davem@davemloft.net>
2277
2278         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2279
2280 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2281
2282         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2283         instead of SIGALRM.
2284
2285         * sysdeps/gnu/_G_config.h: Moved to ...
2286         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2287         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2288         * sysdeps/generic/_G_config.h: ... here.
2289
2290         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2291
2292         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2293
2294         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2295         Conditionalize target on [libnss_test1.so-version].
2296
2297         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2298
2299         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2300         (elfobjdir): Move out of conditionals.
2301
2302         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2303         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2304         (__nss_lookup_function): Conditionalize label remove_from_tree on
2305         [!DO_STATIC_NSS || SHARED], matching its only use.
2306
2307 2012-09-28  David S. Miller  <davem@davemloft.net>
2308
2309         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2310         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2311         file.
2312         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2313         sysdep_routines.
2314         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2315         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2316         when HWCAP_SPARC_CRYPTO is present.
2317
2318 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2319
2320         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2321
2322 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2323
2324         [BZ #6530]
2325         * stdio-common/vfprintf.c (process_string_arg): Revert
2326         2000-07-22 change.
2327
2328 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2329
2330         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2331         for testcase.
2332         * stdio-common/tst-sprintf.c: Include <locale.h>
2333         (main): Test sprintf's handling of incomplete multibyte
2334         characters.
2335
2336 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2337
2338         * elf/dl-runtime.c (VERSYMIDX): Removed.
2339         * elf/dl-version.c (VERSYMIDX): Likewise.
2340         * elf/do-rel.h (VERSYMIDX): Likewise.
2341         (VALIDX): Likewise.
2342         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2343         * elf/rtld.c (VALIDX): Likewise.
2344         (ADDRIDX): Likewise.
2345         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2346         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2347         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2348         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2349         (VALIDX): Likewise.
2350         (ADDRIDX): Likewise.
2351
2352 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2353
2354         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2355
2356 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2357
2358         [BZ #11438]
2359         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2360         to global scope.
2361         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2362         addresses are in the same scope as 192.0.2/24.
2363         * posix/gai.conf: Document new scope table defaults.
2364
2365 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2366
2367         [BZ #5298]
2368         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2369         for ftell.  Compute offsets from write pointers instead.
2370         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2371
2372 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2373
2374         [BZ #14543]
2375         * libio/Makefile (tests): New test case tst-fseek.
2376         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2377         combination works in wide mode.
2378         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2379         state when the external buffer state changes.
2380
2381 2012-09-27  David S. Miller  <davem@davemloft.net>
2382
2383         [BZ #14376]
2384         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2385         pass reloc->r_addend in as the 'high' argument to
2386         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2387
2388         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2389
2390 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2391
2392         * rt/tst-aio2.c: Include <pthread.h>.
2393         * rt/tst-aio3.c: Likewise.
2394
2395 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2396
2397         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2398
2399 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2400
2401         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2402         contents on [SHARED].
2403
2404 2012-09-26  Marek Polacek  <polacek@redhat.com>
2405
2406         [BZ #14530]
2407         [BZ #13741]
2408         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2409         for C++ and GCC <4.3 as well as for non GCC compilers.
2410
2411 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2412
2413         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2414
2415 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2416
2417         * Makefile.in (all, install): Declare with .PHONY.
2418         Reported by Michael Hope <michael.hope@linaro.org>.
2419
2420 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2421
2422         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2423         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2424         system header.
2425         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2426         Likewise.
2427         (sydep_routines): Add the new and the internal functions.
2428         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2429         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2431         (GLIBC_2.17): Add the new function.
2432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2433         (GLIBC_2.17): Likewise.
2434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2435         (GLIBC_2.17): Likewise.
2436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2437         (GLIBC_2.17): Likewise.
2438         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2439
2440 2012-09-25  Alan Modra  <amodra@gmail.com>
2441
2442         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2443         Add release barrier before setting once_control to say
2444         initialisation is done.  Add hints on lwarx.  Use macro in
2445         place of isync.
2446         (clear_once_control): Add release barrier.
2447
2448 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2449
2450         [BZ #13629]
2451         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2452         specially.
2453         * math/s_clog10.c (__clog10): Likewise.
2454         * math/s_clog10f.c (__clog10f): Likewise.
2455         * math/s_clog10l.c (__clog10l): Likewise.
2456         * math/s_clogf.c (__clogf): Likewise.
2457         * math/s_clogl.c (__clogl): Likewise.
2458         * math/Makefile (libm-calls): Add x2y2m1.
2459         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2460         (__x2y2m1): Likewise.
2461         (__x2y2m1l): Likewise.
2462         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2463         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2464         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2465         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2466         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2467         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2468         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2469         * sysdeps/i386/fpu/libm-test-ulps: Update.
2470         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2471
2472         [BZ #14621]
2473         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2474         int as type of variable DEPTH.
2475         (glob): Use size_t instead of int as type of variables NEWCOUNT
2476         and OLD_PATHC.
2477
2478 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2479
2480         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2481         Add s_sincosf-sse2.
2482         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2483         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2484         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2485         macros for using routine as __sincosf_ia32.
2486         Use macro for function declaration and weak_alias.
2487         * sysdeps/i386/fpu/libm-test-ulps: Update.
2488
2489         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2490         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2491
2492         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2493         subnormal argument.
2494         * math/s_cexpf.c (__cexpf): Likewise.
2495         * math/s_csinf.c (__csinf): Likewise.
2496         * math/s_csinhf.c (__csinhf): Likewise.
2497         * math/s_ctanf.c (__ctanf): Likewise.
2498         * math/s_ctanhf.c (__ctanhf): Likewise.
2499         * math/s_ccosh.c (__ccoshf): Likewise.
2500         * math/s_cexp.c (__cexpl): Likewise.
2501         * math/s_csin.c (__csin): Likewise.
2502         * math/s_csinh.c (__csinh): Likewise.
2503         * math/s_ctan.c (__ctan): Likewise.
2504         * math/s_ctanh.c (ctanh): Likewise.
2505         * math/s_ccoshl.c (__ccoshl): Likewise.
2506         * math/s_cexpl.c (__cexpl): Likewise.
2507         * math/s_csinl.c (__csinl): Likewise.
2508         * math/s_csinhl.c (__csinhl): Likewise.
2509         * math/s_ctanl.c (__ctanl): Likewise.
2510         * math/s_ctanhl.c (__ctanhl): Likewise.
2511
2512 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2513
2514         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2515         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2516         (_IO_off_t): Define to __off_t, not _G_off_t.
2517         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2518         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2519         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2520         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2521         type of __dummy and __dummy2 fields.
2522         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2523         (_G_ssize_t): Likewise.
2524         (_G_off_t): Likewise.
2525         (_G_pid_t): Likewise.
2526         (_G_uid_t): Likewise.
2527         (_G_wchar_t): Likewise.
2528         (_G_wint_t): Likewise.
2529         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2530         (_G_ssize_t): Likewise.
2531         (_G_off_t): Likewise.
2532         (_G_pid_t): Likewise.
2533         (_G_uid_t): Likewise.
2534         (_G_wchar_t): Likewise.
2535         (_G_wint_t): Likewise.
2536         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2537         (_G_ssize_t): Likewise.
2538         (_G_off_t): Likewise.
2539         (_G_pid_t): Likewise.
2540         (_G_uid_t): Likewise.
2541         (_G_wchar_t): Likewise.
2542         (_G_wint_t): Likewise.
2543
2544 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2545
2546         * malloc/arena.c: Include malloc-sysdep.h.
2547         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2548         is sufficient to shrink the heap or an unmap is needed.
2549         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2550         new function check_may_shrink_heap.
2551         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2552         new function check_may_shrink_heap.
2553
2554 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2555
2556         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2557         comments.
2558
2559 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2560
2561         * catgets/test-gencat.sh: Add "set -e".
2562         * elf/tst-pathopt.sh: Likewise.
2563         * grp/tst_fgetgrent.sh: Likewise.
2564         * iconvdata/run-iconv-test.sh: Likewise.
2565         * intl/tst-gettext.sh: Likewise.
2566         * intl/tst-gettext2.sh: Likewise.
2567         * intl/tst-gettext4.sh: Likewise.
2568         * intl/tst-gettext6.sh: Likewise.
2569         * intl/tst-translit.sh: Likewise.
2570         * io/ftwtest-sh: Likewise.
2571         * libio/test-freopen.sh: Likewise.
2572         * malloc/tst-mtrace.sh: Likewise.
2573         * posix/globtest.sh: Likewise.
2574         * posix/tst-getconf.sh: Likewise.
2575         * posix/wordexp-tst.sh: Likewise.
2576         * stdio-common/tst-printf.sh: Likewise.
2577         * stdio-common/tst-unbputc.sh: Likewise.
2578         * stdlib/tst-fmtmsg.sh: Likewise.
2579         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2580         * catgets/Makefile: Do not specify -e option when running
2581         testsuite shell scripts.
2582         * elf/Makefile: Likewise.
2583         * grp/Makefile: Likewise.
2584         * iconvdata/Makefile: Likewise.
2585         * intl/Makefile: Likewise.
2586         * io/Makefile: Likewise.
2587         * libio/Makefile: Likewise.
2588         * malloc/Makefile: Likewise.
2589         * posix/Makefile: Likewise.
2590         * stdio-common/Makefile: Likewise.
2591         * stdlib/Makefile: Likewise.
2592         * sysdeps/x86_64/Makefile: Likewise.
2593
2594         * io/ftwtest-sh: Add copyright header.
2595         * posix/globtest.sh: Likewise.
2596         * posix/tst-getconf.sh: Likewise.
2597         * posix/wordexp-tst.sh: Likewise.
2598         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2599
2600 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2601
2602         [BZ #13679]
2603         * Makeconfig (+link): Defined as $(+link-static) if
2604         $(build-shared) isn't yes.
2605         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2606         isn't yes.
2607         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2608
2609         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2610
2611         [BZ #14562]
2612         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2613         new chunk size with MALLOC_ALIGN_MASK.
2614
2615 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2616
2617         [BZ #5044]
2618         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2619         <rounding-mode.h>.
2620         (__printf_fphex): Determine rounding using get_rounding_mode and
2621         round_away.
2622         * stdio-common/tst-printf-round.c (struct hex_test): New
2623         structure.
2624         (hex_tests): New variable.
2625         (test_hex_in_one_mode): New function.
2626         (do_test): Also run tests for hex float output.
2627
2628 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2629
2630         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2631         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2632         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2633         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2634         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2635         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2636         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2637         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2638
2639 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2640
2641         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2642         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2643         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2644         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2645
2646 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2647
2648         [BZ #14579]
2649         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2650         mode only.
2651         * elf/tst-rtld-load-self.sh: New test.
2652         * elf/Makefile: Run it.
2653
2654 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2655
2656         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2657         (tst-writev-ENV): Remove.
2658         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2659
2660 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2661
2662         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2663
2664 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2665
2666         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2667         unconditional.
2668         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2669         Likewise.
2670         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2671         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2672         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2673         Likewise.
2674
2675 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2676
2677         [BZ #14587]
2678         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2679         * config.make.in (have-cpp-asm-debuginfo): Removed.
2680         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2681         * configure: Regenerated.
2682
2683 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2684
2685         [BZ #5044]
2686         * stdio-common/printf_fp.c: Include <stdbool.h> and
2687         <rounding-mode.h>.
2688         (___printf_fp): Determine rounding using get_rounding_mode and
2689         round_away.
2690         * stdio-common/tst-printf-round.c: New file.
2691         * stdio-common/Makefile (tests): Add tst-printf-round.
2692         (link-libm): New variable.
2693         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2694
2695 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2696
2697         [BZ #14576]
2698         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2699         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2700         Likewise.
2701         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2702         Likewise.
2703
2704 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2705
2706         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2707         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2708         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2709         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2710
2711 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2712
2713         [BZ #14518]
2714         * include/rounding-mode.h: New file.
2715         * sysdeps/generic/get-rounding-mode.h: Likewise.
2716         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2717         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2718         (MAX_VALUE): New macro.
2719         (MIN_VALUE): Likewise.
2720         (overflow_value): New function.
2721         (underflow_value): Likewise.
2722         (round_and_return): Use overflow_value and underflow_value to
2723         determine return values in overflow and underflow cases.  Use
2724         round_away to determine rounding depending on rounding mode.
2725         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2726         determine return values in overflow and underflow cases.
2727         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2728         (struct test_results): New structure.
2729         (struct test): Use struct test_results to store expected results
2730         for all rounding modes.
2731         (TEST): Include expected results for all rounding modes.
2732         (test_in_one_mode): New function.
2733         (do_test): Use test_in_one_mode to compute and check results.
2734         Check results for all rounding modes.
2735         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2736         $(link-libm).
2737
2738 2012-12-09  Allan McRae  <allan@archlinux.org>
2739
2740         * sysdeps/i386/fpu/libm-test-ulps: Update
2741
2742 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2743
2744         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2745         (_G_int32_t): Likewise.
2746         (_G_uint16_t): Likewise.
2747         (_G_uint32_t): Likewise.
2748         (_G_HAVE_BOOL): Likewise.
2749         (_G_HAVE_ATEXIT): Likewise.
2750         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2751         (_G_HAVE_IO_FILE_OPEN): Likewise.
2752         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2753         (_G_int32_t): Likewise.
2754         (_G_uint16_t): Likewise.
2755         (_G_uint32_t): Likewise.
2756         (_G_HAVE_BOOL): Likewise.
2757         (_G_HAVE_ATEXIT): Likewise.
2758         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2759         (_G_HAVE_IO_FILE_OPEN): Likewise.
2760         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2761         (_G_int32_t): Likewise.
2762         (_G_uint16_t): Likewise.
2763         (_G_uint32_t): Likewise.
2764         (_G_HAVE_BOOL): Likewise.
2765         (_G_HAVE_ATEXIT): Likewise.
2766         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2767         (_G_HAVE_IO_FILE_OPEN): Likewise.
2768
2769 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2770
2771         * csu/libc-tls.c: Update copyright years.
2772
2773 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2774
2775         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2776         [!_G_USING_THUNKS]: Remove conditional code.
2777         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2778         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2779
2780         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2781         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2782         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2783         (_G_VTABLE_LABEL_PREFIX): Likewise.
2784         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2785         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2786         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2787         (_G_VTABLE_LABEL_PREFIX): Likewise.
2788         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2789         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2790         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2791         (_G_VTABLE_LABEL_PREFIX): Likewise.
2792         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2793
2794 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2795
2796         * libio/Makefile: Include ../Makeconfig before tests.
2797         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2798         only if $(build-shared) is yes.
2799
2800         * iconv/gconv_db.c: Update copyright years.
2801
2802 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2803
2804         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2805         unwind info if defined PIC. Fix special cases description.
2806         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2807
2808         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2809         DP_HI_MASK entry.
2810         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2811
2812 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2813
2814         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2815
2816         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2817         is NULL.
2818
2819         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2820         (LDLIBS-tst-chk4): This.
2821         (LDFLAGS-tst-chk5): Renamed to ...
2822         (LDLIBS-tst-chk5): This.
2823         (LDFLAGS-tst-chk6): Renamed to ...
2824         (LDLIBS-tst-chk6): This.
2825         (LDFLAGS-tst-lfschk4): Renamed to ...
2826         (LDLIBS-tst-lfschk4): This.
2827         (LDFLAGS-tst-lfschk5): Renamed to ...
2828         (LDLIBS-tst-lfschk5): This.
2829         (LDFLAGS-tst-lfschk6): Renamed to ...
2830         (LDLIBS-tst-lfschk6): This.
2831
2832         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2833         on $(common-objpfx)soversions.mk.
2834
2835 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2836
2837         [BZ #10014]
2838         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2839         example host name.
2840
2841 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2842
2843         * malloc/arena.c (arena_get_retry): New function that gets
2844         another arena for the caller to try its request on.
2845         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2846         current arena cannot fulfill the request.
2847         (__libc_memalign): Likewise.
2848         (__libc_memalign): Likewise.
2849         (__libc_pvalloc): Likewise.
2850         (__libc_calloc): Likewise.
2851
2852 2012-09-05  John Tobey  <john.tobey@gmail.com>
2853
2854         [BZ #13542]
2855         * manual/arith.texi (Operations on Complex): Fix description
2856         of carg branch cut.
2857
2858 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2859
2860         [BZ #10014]
2861         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2862         host name.
2863
2864         [BZ #10038]
2865         * manual/memory.texi (Memory): Make order of menu items match
2866         order of sections.
2867
2868 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2869
2870         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2871         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2872         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2873
2874 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2875
2876         * csu/libc-tls.c (static_dtv): Renamed to ...
2877         (_dl_static_dtv): This.  Make it global.
2878         (_dl_initial_dtv): Removed.
2879         (__libc_setup_tls): Updated.
2880         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2881         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2882         DL_INITIAL_DTV.
2883
2884 2012-09-06  Petr Machata  <pmachata@redhat.com>
2885
2886         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2887         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2888         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2889         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2890
2891 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2892
2893         [BZ #14545]
2894         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2895         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
2896         freeing dtv[-1].
2897
2898 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2899
2900         [BZ #14544]
2901         * Makeconfig (link-static-before-libc): Replace $(+prector)
2902         with $(+prectorT).
2903         (link-static-after-libc): Replace $(+postctor) with
2904         $(+postctorT).
2905         (link-bounded): Replace $(+prector)/$(+postctor) with
2906         $(+prectorT)/$(+postctorT).
2907         (+prectorT): New macro.
2908         (+postctorT): Likewise.
2909
2910 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2911
2912         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
2913         (round_str): Handle values above the maximum for IBM long double
2914         as inexact.
2915         * stdlib/tst-strtod-round.c (tests): Regenerated.
2916
2917 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2918
2919         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
2920         assembler flag.
2921         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2922         zarch_nohighgprs around the zarch optimized routines.
2923         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2924         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2925         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2926         for zarch.
2927
2928 2012-09-05  David S. Miller  <davem@davemloft.net>
2929
2930         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2931
2932         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2933         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2934         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2935         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2936         entries.
2937
2938 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2939
2940         * malloc/arena.c: Fold copyright years.
2941         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2942
2943 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2944
2945         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2946
2947 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2948
2949         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2950
2951 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2952
2953         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2954         change internal state upon failure.
2955
2956 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2957
2958         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2959         * malloc/memusage.c (mmap): Likewise.
2960         (mmap64, mremap): Likewise.  Adjust name in comment.
2961
2962 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2963
2964         * libio/fileops.c: Fix typos in comments.
2965         * libio/oldfileops.c: Likewise.
2966         * libio/wfileops.c: Likewise.
2967
2968 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2969
2970         [BZ #1349]
2971         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2972         (tst-malloc-usable-ENV): Set environment for test case.
2973         * malloc/hooks.c (malloc_check_get_size): New function to get
2974         requested size.
2975         * malloc/malloc.c (musable): Use malloc_check_get_size.
2976         * malloc/tst-malloc-usable.c: New test case.
2977
2978 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2979
2980         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2981
2982 2012-09-05  Allan McRae  <allan@archlinux.org>
2983
2984         [BZ #13966]
2985         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2986         determine header location.
2987         * configure: Regenerated.
2988
2989 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2990
2991         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2992         float format.
2993         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2994         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2995         format.
2996         (test): Regenerate.
2997
2998 2012-09-04  David S. Miller  <davem@davemloft.net>
2999
3000         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3001         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3002         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3003
3004 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3005
3006         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3007         failures.
3008
3009         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3010
3011 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3012
3013         [BZ #9914]
3014         * libio/iogetdelim.c: Include <limits.h>.
3015         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3016         + len + 1 would overflow.
3017
3018 2012-09-03  Andreas Jaeger  <aj@suse.de>
3019
3020         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3021         * sysdeps/i386/fpu/libm-test-ulps: Update.
3022
3023 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3024
3025         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3026         Add s_sinf-sse2, s_conf-sse2.
3027
3028         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3029         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3030         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3031         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3032
3033         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3034         for using routine as __sinf_ia32.
3035         Use macro for function declaration and weak_alias.
3036         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3037         for using routine as __cosf_ia32.
3038         Use macro for function declaration and weak_alias.
3039
3040         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3041         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3042
3043         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3044         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3045         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3046
3047         * math/libm-test.inc (cos_test): Add more test cases.
3048         (sin_test): Likewise.
3049         (sincos_test): Likewise.
3050
3051 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3052
3053         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3054         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3055         hidden.
3056         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3057
3058 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3059
3060         [BZ #14538]
3061         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3062         first element of the GOT.
3063         (elf_machine_load_address): Return the difference between
3064         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3065
3066 2012-09-01  Allan McRae  <allan@archlinux.org>
3067
3068         [BZ #13412]
3069         * configure.in (AWK): Require gawk version 3.0 or later.
3070         * configure: Regenerated.
3071
3072 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3073
3074         * sysdeps/unix/sysv/linux/kernel-features.h
3075         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3076         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3077         [__NR_clock_getres]: Make code unconditional.
3078         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3079         (clock_getcpuclockid): Remove code left unreachable by removal of
3080         conditionals.
3081         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3082         code unconditional.
3083         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3084         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3085         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3086         Make code unconditional.
3087         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3088         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3089         * sysdeps/unix/sysv/linux/clock_settime.c
3090         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3091         conditional code.
3092         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3093         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3094
3095 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3096
3097         [BZ #14476]
3098         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3099         scripts/test-installation.pl.
3100
3101         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3102         and $ld_so_version if it is set.
3103
3104 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3105
3106         [BZ #14516]
3107         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3108         failure if reading from procfs failed.
3109         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3110
3111 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3112
3113         * sysdeps/unix/sysv/linux/kernel-features.h
3114         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3115         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3116         Remove conditional code.
3117         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3118         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3119         Remove conditional code.
3120         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3121         * sysdeps/unix/sysv/linux/i386/fxstat.c
3122         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3123         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3124         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3125         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3126         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3127         * sysdeps/unix/sysv/linux/i386/lxstat.c
3128         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3129         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3130         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3131         Remove conditional code.
3132         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3133         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3134         Remove conditional code.
3135         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3136         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3137         <kernel-features.h>.
3138         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3139         Remove.
3140         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3141         Remove conditional code.
3142         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3143         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3144         Remove conditional.
3145
3146 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3147
3148         [BZ #5400]
3149         * NEWS: Add fixed bug number.
3150
3151 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3152
3153         [BZ #14519]
3154         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3155         underflowing exponent in case of negative sign.
3156         * stdlib/tst-strtod-round-data: Add more tests.
3157         * stdlib/tst-strtod-round.c (tests): Regenerated.
3158
3159         [BZ #3479]
3160         * stdlib/strtod_l.c (NDIG): Remove.
3161         (HEXNDIG): Likewise.
3162         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3163         smallest representable value.
3164         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3165         lie within an exact representation of 1/2 ulp of the result.
3166         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3167         unconditionally.
3168         (TENS_P9_IDX): Define unconditionally.
3169         (TENS_P9_SIZE): Likewise.
3170         (TENS_P10_IDX): Likewise.
3171         (TENS_P10_SIZE): Likewise.
3172         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3173         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3174         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3175         entries for 10^2^13 and 10^2^14.
3176         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3177         (TENS_P13_IDX): Define.
3178         (TENS_P13_SIZE): Likewise.
3179         (TENS_P14_IDX): Likewise.
3180         (TENS_P14_SIZE): Likewise.
3181         (_fpioconst_pow10): Change array size to
3182         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3183         unconditional.
3184         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3185         1024]: Add entries for 10^2^13 and 10^2^14.
3186         [LAST_POW10 > _LAST_POW10]: Remove #error.
3187         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3188         (_fpioconst_pow10): Change array size to
3189         FPIOCONST_POW10_ARRAY_SIZE.
3190         * stdlib/gen-fpioconst.c: New file.
3191         * stdlib/gen-tst-strtod-round.c: Likewise.
3192         * stdlib/tst-strtod-round-data: Likewise.
3193         * stdlib/tst-strtod-round.c: Likewise.
3194         * stdlib/Makefile (tests): Add tst-strtod-round.
3195
3196         [BZ #14459]
3197         * stdlib/strtod_l.c: Include <stdint.h>.
3198         (NDEBUG): Do not define.
3199         (round_and_return): Change EXPONENT parameter to type intmax_t.
3200         Rearrange calculations to avoid internal overflow possibilities.
3201         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3202         Rearrange calculations to avoid internal overflow possibilities.
3203         Assert that number fits inside MPNSIZE limbs.
3204         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3205         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3206         calculations and add assertions to avoid internal overflow
3207         possibilities.  Add casts to avoid signed/unsigned operations.
3208         * stdlib/tst-strtod-overflow.c: New file.
3209         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3210
3211 2012-08-25  Marek Polacek  <polacek@redhat.com>
3212
3213         * time/time.h: Fix some typos in comments.
3214
3215 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3216
3217         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3218         * posix/tst-rfc3484-2.c: Likewise.
3219         * posix/tst-rfc3484-3.c: Likewise.
3220
3221 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3222
3223         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3224         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3225
3226 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3227
3228         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3229         #include of fxstatat64.c.
3230
3231 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3232
3233         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3234         * shadow/getspent_r.c: Likewise.
3235         * shadow/getspnam.c: Likewise.
3236         * shadow/getspnam_r.c: Likewise.
3237         * gshadow/getsgent.c: Likewise.
3238         * gshadow/getsgent_r.c: Likewise.
3239         * gshadow/getsgnam.c: Likewise.
3240         * gshadow/getsgnam_r.c: Likewise.
3241         * inet/getnetbyad.c: Likewise.
3242         * inet/getnetbyad_r.c: Likewise.
3243         * inet/getnetbynm.c: Likewise.
3244         * inet/getnetbynm_r.c: Likewise.
3245         * inet/getnetent.c: Likewise.
3246         * inet/getnetent_r.c: Likewise.
3247         * inet/getproto.c: Likewise.
3248         * inet/getproto_r.c: Likewise.
3249         * inet/getprtent.c: Likewise.
3250         * inet/getprtent_r.c: Likewise.
3251         * inet/getprtname.c: Likewise.
3252         * inet/getprtname_r.c: Likewise.
3253         * inet/getrpcbyname.c: Likewise.
3254         * inet/getrpcbyname_r.c: Likewise.
3255         * inet/getrpcbynumber.c: Likewise.
3256         * inet/getrpcbynumber_r.c: Likewise.
3257         * inet/getrpcent.c: Likewise.
3258         * inet/getrpcent_r.c: Likewise.
3259         * inet/getaliasent.c: Likewise.
3260         * inet/getaliasent_r.c: Likewise.
3261         * inet/getaliasname.c: Likewise.
3262         * inet/getaliasname_r.c: Likewise.
3263         * nscd/getgrgid_r.c: Likewise.
3264         * nscd/getgrnam_r.c: Likewise.
3265         * nscd/gethstbyad_r.c: Likewise.
3266         * nscd/gethstbynm3_r.c: Likewise.
3267         * nscd/getpwnam_r.c: Likewise.
3268         * nscd/getpwuid_r.c: Likewise.
3269         * nscd/getsrvbynm_r.c: Likewise.
3270         * nscd/getsrvbypt_r.c: Likewise.
3271         * nscd/gai.c: Likewise.
3272
3273         * configure.in (build_nscd): New substituted variable, set
3274         by --disable-build-nscd and defaults to $use_nscd.
3275         * configure: Regenerated.
3276         * config.make.in (build-nscd): New substituted variable.
3277         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3278         Change conditional to require [$(build-nscd) = yes] as well.
3279         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3280
3281         [BZ# 13696]
3282         * configure.in (use_nscd): New substituted variable, set by
3283         --disable-nscd.  If enabled, define USE_NSCD.
3284         * configure: Regenerated.
3285         * config.h.in: Add USE_NSCD.
3286         * config.make.in (use-nscd): New substituted variable.
3287         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3288         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3289         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3290         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3291         (CFLAGS-getgrnam_r.c): Likewise.
3292         (CFLAGS-initgroups.c): Likewise.
3293         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3294         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3295         Variables removed.
3296         * inet/getnetgrent_r.c
3297         (nscd_setnetgrent): New function, broken out of ...
3298         (setnetgrent): ... here.  Call it.
3299         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3300         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3301         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3302         * nscd/Makefile (routines, aux): Move definitions after include of
3303         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3304         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3305         Conditionalize on [USE_NSCD].
3306         (is_nscd, nscd_init_cb): Likewise.
3307         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3308         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3309         * nss/nss_db/db-init.c: Likewise.
3310         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3311         [USE_NSCD].
3312         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3313         (make_request): Use it.
3314         (cache_valid_p): New function.
3315         (__check_pf): Use it.
3316         * NEWS: Add item for --disable-nscd.
3317
3318 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3319
3320         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3321         to support sed >= 4.2.1-20-ga9bf076.
3322         * configure: Regenerated.
3323
3324 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3325
3326         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3327         Conditionalize whole body on [IREL].
3328
3329 2012-08-22  Jeff Law <law@redhat.com>
3330
3331         [BZ #14505]
3332         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3333         if the family is PF_UNSPEC.
3334
3335 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3336
3337         * Makerules (lib-version): Rename from V.
3338         (install-lib-nosubdir): Change V to lib-version.
3339
3340 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3341
3342         [BZ #14252]
3343         * powerpc32/power6/wcschr.c: New file.
3344         * powerpc32/power6/wcscpy.c: New file.
3345         * powerpc32/power6/wcsrchr.c: New file.
3346         * powerpc64/power6/wcschr.c: New file.
3347         * powerpc64/power6/wcscpy.c: New file.
3348         * powerpc64/power6/wcsrchr.c: New file.
3349
3350 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3351
3352         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3353         (two_way_short_needle): Use it.
3354         * string/strstr.c (AVAILABLE1_USES_J): Define.
3355         * string/strcasestr.c: Likewise.
3356
3357         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3358         array references.
3359         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3360
3361         [BZ #11607]
3362         * NEWS: Add an entry.
3363         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3364         define their defaults.
3365         (two_way_short_needle): Detect end-of-string on-the-fly.
3366         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3367         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3368         * string/bug-strcasestr1.c: New test.
3369         * string/Makefile: Run it.
3370
3371 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3372
3373         [BZ #11607]
3374         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3375         the first character.
3376
3377 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3378
3379         * csu/elf-init.c (__libc_csu_irel): Function removed.
3380         * csu/libc-start.c (apply_irel): New function.
3381         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3382
3383 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3384
3385         * sysdeps/unix/sysv/linux/kernel-features.h
3386         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3387         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3388         <kernel-features.h>.
3389         [__NR_fadvise64_64]: Make code unconditional.
3390         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3391         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3392         !__NR_fadvise64_64)]: Likewise.
3393         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3394         !__NR_fadvise64_64))]: Likewise.
3395         [__NR_fadvise64]: Make code unconditional.
3396         [!__NR_fadvise64]: Remove conditional code.
3397         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3398         <kernel-features.h>.
3399         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3400         unconditional.
3401         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3402         conditional code.
3403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3404         not include <kernel-features.h>.
3405         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3406         unconditional.
3407         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3408         conditional code.
3409         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3410         include <kernel-features.h>.
3411         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3412         unconditional.
3413         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3414         conditional code.
3415
3416 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3417
3418         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3419         slight instruction rearrangements per scrollpipe analysis.
3420         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3421
3422 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3423
3424         * manual/syslog.texi (syslog; vsyslog, closelog):
3425         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3426         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3427
3428         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3429         DSOCAPS to match condition on defining it.
3430
3431 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3432
3433         * sysdeps/unix/sysv/linux/kernel-features.h
3434         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3436         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3437         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3439         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3440         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3442         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3443         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3444
3445         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3446         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3447
3448         * sysdeps/unix/sysv/linux/kernel-features.h
3449         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3450         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3451         unconditional.
3452         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3453         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3454         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3455         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3456         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3457         Make code unconditional.
3458         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3459         (__mmap64) [!__NR_mmap2]: Likewise.
3460         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3461         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3462         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3463         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3464         [__NR_mmap2]: Make code unconditional.
3465         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3466         (__mmap64) [!__NR_mmap2]: Likewise.
3467
3468 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3469
3470         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3471
3472 2012-08-18  Andreas Jaeger  <aj@suse.de>
3473
3474         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3475
3476 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3477
3478         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3479         * include/unistd.h (__have_sock_cloexec): Likewise.
3480         (__have_pipe2): Likewise.
3481         (__have_dup3): Likewise.
3482
3483 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3484
3485         [BZ #9685]
3486         * include/unistd.h (__have_pipe2): Change define into an extern int.
3487         (__have_dup3): Likewise.
3488         * socket/have_sock_cloexec.c: Include fcntl.h.
3489         (__have_pipe2): New variable.
3490         (__have_dup3): Likewise.
3491
3492 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3493
3494         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3495
3496 2012-08-17  Marek Polacek  <polacek@redhat.com>
3497
3498         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3499         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3500
3501 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3502
3503         * configure.in: Add AC_SUBST for sysheaders.
3504         * configure: Regenerated.
3505         * config.make.in (sysheaders): New substituted variable.
3506
3507         * sysdeps/unix/mkfifo.c: Moved ...
3508         * sysdeps/posix/mkfifo.c: ... here.
3509         * sysdeps/unix/mkfifoat.c: Moved ...
3510         * sysdeps/posix/mkfifoat.c: ... here.
3511
3512         * sysdeps/unix/utime.c: Moved ...
3513         * sysdeps/posix/utime.c: ... here.
3514
3515         * sysdeps/unix/time.c: Moved ...
3516         * sysdeps/posix/time.c: ... here.
3517         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3518         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3519
3520         * sysdeps/unix/nice.c: Moved ...
3521         * sysdeps/posix/nice.c: ... here.
3522
3523         * sysdeps/unix/alarm.c: Moved ...
3524         * sysdeps/posix/alarm.c: ... here.
3525
3526         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3527
3528 2012-08-17  Jeff Law <law@redhat.com>
3529
3530         * intl/Makefile (codeset_mo): New variable.
3531         ($(codeset_mo)): New target.
3532         (tst-codeset.out): Depend on that.  Remove explicit rule.
3533         (tst-gettext3.out, tst-gettext5.out): Likewise.
3534         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3535         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3536         * intl/tst-codeset.sh: Remove.
3537         * intl/tst-gettext3.sh: Likewise.
3538         * intl/tst-gettext5.sh: Likewise.
3539
3540 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3541
3542         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3543         * sysdeps/unix/syscalls.list: ... here.
3544
3545         * sysdeps/posix/getaddrinfo.c
3546         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3547         (gaiconf_init, gaiconf_reload): Use them.
3548         [!_STATBUF_ST_NSEC]
3549         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3550         Define using time_t rather than struct timespec.
3551
3552         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3553         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3554         Macros removed.
3555         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3556         [!NO_THREADS].
3557         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3558         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3559         Likewise.
3560
3561         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3562         __libc_cleanup_push argument.
3563
3564         * bits/param.h: New file.
3565         * misc/sys/param.h: New file.
3566         * include/sys/param.h: New file.
3567         * misc/Makefile (headers): Add bits/param.h.
3568         * sysdeps/generic/sys/param.h: File removed.
3569         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3570         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3571         * sysdeps/mach/hurd/bits/param.h: New file.
3572         * sysdeps/mach/hurd/sys/param.h: File removed.
3573
3574         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3575         last change.
3576
3577         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3578         [_IO_MTSAFE_IO].
3579         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3580         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3581         New macros.
3582
3583         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3584         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3585         rather than -D_IO_MTSAFE_IO conditionally.
3586         * stdio-common/Makefile (CPPFLAGS): Likewise.
3587         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3588         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3589         Use $(libio-mtsafe).
3590         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3591         of -D_IO_MTSAFE_IO.
3592         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3593         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3594         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3595         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3596         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3597         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3598         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3599         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3600         (CFLAGS-fread_u_chk.c): Likewise.
3601         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3602         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3603         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3604         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3605         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3606         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3607         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3608         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3609         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3610
3611         * libio/Makefile: Test [$(libc-reentrant) = yes]
3612         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3613
3614         * Makeconfig
3615         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3616         * sysdeps/pthread/configure: File removed.
3617         * sysdeps/pthread/Makeconfig: New file.
3618         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3619         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3620
3621 2012-08-16  Gary Benson  <gbenson@redhat.com>
3622
3623         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3624         unmapping the first object in a namespace.
3625
3626 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3627
3628         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3629         (__internal_setnetgrent): ... this.  Add internal_function to
3630         definition.  Add libc_hidden_def.
3631         (setnetgrent): Update caller.
3632         (internal_endnetgrent): Renamed to ...
3633         (__internal_endnetgrent): ... this.  Add internal_function to
3634         definition.  Add libc_hidden_def.
3635         (endnetgrent): Update caller.
3636         (internal_getnetgrent_r): Renamed to ...
3637         (__internal_getnetgrent_r): ... this.  Add internal_function to
3638         definition.  Add libc_hidden_def.
3639         (__getnetgrent_r): Update caller.
3640         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3641
3642 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3643
3644         * stdlib/longlong.h: Update from GCC.
3645
3646 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3647
3648         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3649         on _QL, which is set by umul_ppmm but never used.
3650         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3651         variables, which are set by GMP macros but never used.
3652         * stdio-common/_itowa.c (_itowa): Likewise.
3653         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3654         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3655
3656 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3657
3658         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3659         struct La_sh_regs is not constant.
3660         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3661         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3662         and struct La_sparc64_regs are not constant.
3663
3664 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3665
3666         * sysdeps/unix/sysv/linux/kernel-features.h
3667         (__ASSUME_POSIX_TIMERS): Remove.
3668         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3669         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3670         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3671         Make code unconditional.
3672         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3673         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3674         Make code unconditional.
3675         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3676         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3677         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3678         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3679         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3680         Make code unconditional.
3681         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3682         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3683         (__libc_missing_posix_timers): Remove.
3684
3685 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3686
3687         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3688         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3689
3690         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3691
3692         * elf/dl-sym.c: Include <stdlib.h>.
3693
3694         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3695         constants, which avoids warnings in 32-bit builds.
3696
3697         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3698         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3699
3700         * misc/lseek.c: File moved to ...
3701         * io/lseek.c: ... here.
3702
3703         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3704
3705         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3706         shifting LEN more than 31 bits at once.
3707
3708 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3709
3710         [BZ #14195]
3711         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3712         segmentation fault for a case of two empty input strings.
3713         * string/test-strncasecmp.c (check1): Renamed to...
3714         (bz12205): ...this.
3715         (bz14195): Add new testcase for two empty input strings and N > 0.
3716         (test_main): Call new testcase, adapt for renamed function.
3717
3718 2012-08-15  Andreas Jaeger  <aj@suse.de>
3719
3720         [BZ #14090]
3721         * crypt/md5test2.c: New test, based on test supplied by Serge
3722         Belyshev <belyshev@depni.sinp.msu.ru>.
3723         * crypt/Makefile (xtests): Add md5test-giant..
3724         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3725
3726 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3727
3728         [BZ #14090]
3729         * crypt/md5.c (md5_process_block): Don't assume the buffer
3730         length is less than 2**32.
3731         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3732         length is less than 2**64.
3733
3734 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3735
3736         * string/str-two-way.h: Include <sys/param.h>.
3737         (MAX): Macro removed.
3738
3739         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3740         Move #define and #undef of memmove to just before and after
3741         including <string.h>.
3742
3743         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3744         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3745         and after including <string.h>.  Move declarations of
3746         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3747         to before #include "string/memmove.c".
3748
3749         * include/dirent.h: Declare __getdirentries.
3750
3751         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3752         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3753
3754 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3755
3756         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3757         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3758         * sysdeps/i386/configure: Regenerated.
3759         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3760         STABS_CURRENT_FILE, and STABS_FUN.
3761         (END): Remove call to STABS_FUN_END.
3762         (STABS_CURRENT_FILE1): Delete.
3763         (STABS_CURRENT_FILE): Likewise.
3764         (STABS_FUN): Likewise.
3765         (STABS_FUN_END): Likewise.
3766         (STABS_FUN2): Likewise.
3767         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3768         * sysdeps/x86_64/configure: Regenerated.
3769
3770 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3771
3772         * elf/dl-open.c: Include <atomic.h>.
3773         * elf/dl-lookup.c: Likewise.
3774
3775 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3776
3777         * sysdeps/unix/sysv/linux/kernel-features.h
3778         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3779         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3780         unconditionally.
3781         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3782         unconditionally.
3783         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3784         condition on __ASSUME_CLONE_THREAD_FLAGS.
3785
3786 2012-08-14  Andreas Jaeger  <aj@suse.de>
3787
3788         * sysdeps/i386/fpu/libm-test-ulps: Update.
3789
3790 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3791
3792         * include/atomic.h (atomic_exchange_and_add): Split into ...
3793         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3794         New atomic macros.
3795
3796 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3797
3798         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3799
3800 2012-08-13  Jeff Law <law@redhat.com>
3801
3802         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3803         null byte in the output string.
3804
3805 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3806
3807         * sysdeps/unix/sysv/linux/kernel-features.h
3808         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3809         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3810         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3811         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3812         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3813         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3814         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3815
3816 2012-08-09  Jeff Law <law@redhat.com>
3817
3818         [BZ #13939]
3819         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3820         When avoid_arena is set, don't retry in the that arena.  Pick the
3821         next one, whatever it might be.
3822         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3823         (arena_lock): Pass in new parameter to arena_get2.
3824         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3825         arena_get2.
3826         (__libc_malloc): Unify retrying after main arena failure with
3827         __libc_memalign version.
3828         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3829
3830 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3831
3832         [BZ #14166]
3833         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3834         to __redirect_strstr.
3835         (__strstr_sse42): Use typeof __redirect_strstr.
3836         (__strstr_ia32): Likewise.
3837         (__libc_strstr): New prototype.
3838         (strstr): Renamed to ...
3839         (__libc_strstr): This.
3840         (strstr): New strong alias of __libc_strstr.
3841         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3842         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3843         __redirect_time.
3844         Include <time.h>.
3845         (__libc_time): New prototype.
3846         (time_ifunc): Replace time with __libc_time.
3847         (time): New strong alias and hidden definition of __libc_time.
3848         (__GI_time): Remove strong alias.
3849         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3850         Include <stddef.h>.
3851         (memmove): Redefined to __redirect_memmove.
3852         (__memmove_sse2): Use typeof __redirect_memmove.
3853         (__memmove_ssse3): Likewise.
3854         (__memmove_ssse3_back): Likewise.
3855         (__libc_memmove): New prototype.
3856         (memmove): Renamed to ...
3857         (__libc_memmove): This.
3858         (memmove): New strong alias of __libc_memmove.
3859
3860 2012-08-08  Mark Salter  <msalter@redhat.com>
3861
3862         * elf/elf.h
3863         (R_MN10300_TLS_GD): Define.
3864         (R_MN10300_TLS_LD): Likewise.
3865         (R_MN10300_TLS_LDO): Likewise.
3866         (R_MN10300_TLS_GOTIE): Likewise.
3867         (R_MN10300_TLS_IE): Likewise.
3868         (R_MN10300_TLS_LE): Likewise.
3869         (R_MN10300_TLS_DTPMOD): Likewise.
3870         (R_MN10300_TLS_DTPOFF): Likewise.
3871         (R_MN10300_TLS_TPOFF): Likewise.
3872         (R_MN10300_SYM_DIFF): Likewise.
3873         (R_MN10300_ALIGN): Likewise.
3874         (R_MN10300_NUM): Update.
3875
3876 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3877
3878         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3879         Remove.
3880
3881 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3882
3883         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3884
3885         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3886         sysdeps/unix -> sysdeps/posix move.
3887         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3888
3889 2012-08-07      Allan McRae     <allan@archlinux.org>
3890
3891         [BZ #14303]
3892         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3893         (SUNOS_CPP): Likewise.
3894         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3895         not found.
3896         (open_input): Call CPP using execvp.
3897
3898 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3899
3900         * sysdeps/unix/sysv/linux/kernel-features.h
3901         (__ASSUME_PROT_GROWSUPDOWN): Remove.
3902         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3903         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3904         (__ASSUME_WAITID_SYSCALL): Likewise.
3905         * sysdeps/unix/sysv/linux/dl-execstack.c
3906         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
3907         code unconditional.
3908         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
3909         conditional code.
3910         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
3911         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
3912         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
3913         code.
3914         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
3915         unconditional.
3916         [__ASSUME_WAITID_SYSCALL]: Likewise.
3917         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
3918
3919 2012-08-07  Roland McGrath  <roland@hack.frob.com>
3920
3921         * sysdeps/unix/closedir.c: Renamed to ...
3922         * sysdeps/posix/closedir.c: ... here.
3923         * sysdeps/unix/dirfd.c: Renamed to ...
3924         * sysdeps/posix/dirfd.c: ... here.
3925         * sysdeps/unix/dirstream.h: Renamed to ...
3926         * sysdeps/posix/dirstream.h: ... here.
3927         * sysdeps/unix/fdopendir.c: Renamed to ...
3928         * sysdeps/posix/fdopendir.c: ... here.
3929         * sysdeps/unix/opendir.c: Renamed to ...
3930         * sysdeps/posix/opendir.c: ... here.
3931         * sysdeps/unix/readdir.c: Renamed to ...
3932         * sysdeps/posix/readdir.c: ... here.
3933         * sysdeps/unix/readdir_r.c: Renamed to ...
3934         * sysdeps/posix/readdir_r.c: ... here.
3935         * sysdeps/unix/rewinddir.c: Renamed to ...
3936         * sysdeps/posix/rewinddir.c: ... here.
3937         * sysdeps/unix/seekdir.c: Renamed to ...
3938         * sysdeps/posix/seekdir.c: ... here.
3939         * sysdeps/unix/telldir.c: Renamed to ...
3940         * sysdeps/posix/telldir.c: ... here.
3941         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3942         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3943         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3944         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3945
3946         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3947         * bits/fcntl.h: ... here.
3948
3949         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3950         not 0.
3951         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3952         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3953         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3954         (struct flock): Move l_start, l_len to the beginning.
3955         Use __pid_t for l_pid.
3956         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3957         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3958         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3959         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3960         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3961         [__USE_LARGEFILE64] (struct flock64): New type.
3962         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3963
3964         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3965         * bits/dirent.h: ... here.
3966
3967         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3968         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3969
3970 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3971
3972         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3973         Change from 2.6.0 to 2.6.16.
3974         * sysdeps/unix/sysv/linux/configure: Regenerated.
3975         * sysdeps/unix/sysv/linux/kernel-features.h
3976         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3977         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3978         version.
3979         (__ASSUME_UTIMES): Likewise.
3980         (__ASSUME_CLONE_STOPPED): Remove.
3981         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3982         architectures, not kernel version.
3983         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3984         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3985         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3986         (__ASSUME_WAITID_SYSCALL): Likewise.
3987         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3988         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3989         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3990         refer to older versions.
3991
3992 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3993
3994         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3995         Define alphasort64 as an alias.
3996         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3997         Define versionsort64 as an alias.
3998         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3999         Define scandir64 as an alias.
4000         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4001         Define scandirat64 as an alias.
4002         * dirent/alphasort64.c (alphasort64):
4003         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4004         * dirent/versionsort64.c: Likewise.
4005         * dirent/scandir64.c: Likewise.
4006         * dirent/scandirat64.c: Likewise.
4007         * sysdeps/wordsize-64/alphasort.c: File removed.
4008         * sysdeps/wordsize-64/alphasort64.c: File removed.
4009         * sysdeps/wordsize-64/scandir.c: File removed.
4010         * sysdeps/wordsize-64/scandir64.c: File removed.
4011         * sysdeps/wordsize-64/scandirat.c: File removed.
4012         * sysdeps/wordsize-64/scandirat64.c: File removed.
4013         * sysdeps/wordsize-64/versionsort.c: File removed.
4014         * sysdeps/wordsize-64/versionsort64.c: File removed.
4015         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4016         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4017         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4018         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4019         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4020         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4021         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4022         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4023
4024         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4025         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4026         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4027         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4028         [defined __arch64__ || defined __sparcv9]
4029         (__INO_T_MATCHES_INO64_T): New macro.
4030         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4031         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4032         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4033         * sysdeps/unix/sysv/linux/bits/dirent.h
4034         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4035         (_DIRENT_MATCHES_DIRENT64): New macro.
4036
4037         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4038         Define lockf64 as an alias.
4039         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4040         Define fseeko64 as an alias.
4041         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4042         Define ftello64 as an alias.
4043         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4044         Define _IO_fgetpos64 and fgetpos64 as aliases.
4045         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4046         Define _IO_fsetpos64 and fsetpos64 as aliases.
4047         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4048         Conditionalize body on this.
4049         * libio/fseeko64.c: Likewise.
4050         * libio/ftello64.c: Likewise.
4051         * libio/iofgetpos64.c: Likewise.
4052         * libio/iofsetpos64.c: Likewise.
4053         * sysdeps/wordsize-64/lockf.c: File removed.
4054         * sysdeps/wordsize-64/lockf64.c: File removed.
4055         * sysdeps/wordsize-64/fseeko.c: File removed.
4056         * sysdeps/wordsize-64/fseeko64.c: File removed.
4057         * sysdeps/wordsize-64/ftello.c: File removed.
4058         * sysdeps/wordsize-64/ftello64.c: File removed.
4059         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4060         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4061         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4062         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4063         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4064         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4065         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4066         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4067         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4068         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4069         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4070         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4071         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4072         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4073
4074         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4075         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4076         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4077         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4078         [defined __arch64__ || defined __sparcv9]
4079         (__OFF_T_MATCHES_OFF64_T): New macro.
4080         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4081         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4082         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4083         (__OFF_T_MATCHES_OFF64_T): New macro.
4084
4085 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4086
4087         * stdlib/secure-getenv.c (__secure_getenv): Replace
4088         GLIBC_2_16 with GLIBC_2_17.
4089
4090 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4091
4092         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4093         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4094
4095 2012-08-03  David S. Miller  <davem@davemloft.net>
4096
4097         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4098
4099 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4100
4101         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4102         Remove.
4103         (__ASSUME_CORRECT_SI_PID): Likewise.
4104         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4105         (__ASSUME_TMPFS_NAME): Likewise.
4106         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4107         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4108         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4109         (HAVE_AUX_SECURE): Make definition unconditional.
4110         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4111         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4112
4113 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4114
4115         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4116         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4117         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4118         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4119         __eloop_threshold instead of SYMLOOP_MAX.
4120
4121         * sysdeps/generic/eloop-threshold.h: New file.
4122         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4123         of MAXSYMLINKS.
4124         * elf/chroot_canon.c (chroot_canon): Likewise.
4125
4126 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4127
4128         [BZ #13717]
4129         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4130         Change to 2.6.0 everywhere.
4131         * sysdeps/unix/sysv/linux/configure: Regenerated.
4132         * sysdeps/unix/sysv/linux/kernel-features.h
4133         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4134         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4135         kernel versions.
4136         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4137         (__ASSUME_FUTEX_REQUEUE): Remove.
4138         (__ASSUME_STATFS64): Define unconditionally.
4139         (__ASSUME_AT_SECURE): Likewise.
4140         (__ASSUME_CORRECT_SI_PID): Likewise.
4141         (__ASSUME_TGKILL): Define without depending on kernel version for
4142         i386.
4143         (__ASSUME_UTIMES): Likewise.
4144         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4145         kernel version.
4146         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4147         (__ASSUME_TMPFS_NAME): Likewise.
4148         * README: Update reference to Linux kernel versions.
4149
4150 2012-08-02  Marek Polacek  <polacek@redhat.com>
4151
4152         [BZ# 14150]
4153         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4154         libc_cv_asm_type_prefix with %.
4155         * configure: Regenerated.
4156         * include/libc-symbols.h: Remove comment about
4157         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4158         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4159         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4160         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4161         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4162         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4163         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4164         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4165         * elf/tst-unique2mod1.c: Likewise.
4166         * elf/tst-unique1mod2.c: Likewise.
4167         * elf/tst-unique1mod1.c: Likewise.
4168         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4169         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4170         Replace ASM_TYPE_DIRECTIVE with .type.
4171         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4172         * sysdeps/i386/sysdep.h: Likewise.
4173         * sysdeps/x86_64/sysdep.h: Likewise.
4174         * sysdeps/sh/sysdep.h: Likewise.
4175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4176         Do not define ASM_TYPE_DIRECTIVE.
4177         * sysdeps/powerpc/sysdep.h: Likewise.
4178         * sysdeps/powerpc/powerpc32/sysdep.h:
4179         Replace ASM_TYPE_DIRECTIVE with .type.
4180         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4181         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4182         * sysdeps/i386/fpu/e_powf.S: Likewise.
4183         * sysdeps/i386/fpu/e_expl.S: Likewise.
4184         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4185         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4186         * sysdeps/i386/fpu/e_pow.S: Likewise.
4187         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4188         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4189         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4190         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4191         * sysdeps/i386/fpu/e_log2.S: Likewise.
4192         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4193         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4194         * sysdeps/i386/fpu/e_powl.S: Likewise.
4195         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4196         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4197         * sysdeps/i386/fpu/e_logl.S: Likewise.
4198         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4199         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4200         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4201         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4202         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4203         * sysdeps/i386/fpu/e_log.S: Likewise.
4204         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4205         * sysdeps/i386/fpu/e_logf.S: Likewise.
4206         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4207         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4208         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4209         * sysdeps/i386/fpu/e_log10.S: Likewise.
4210         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4211         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4212         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4213         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4214         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4215         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4216         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4217         * sysdeps/i386/i686/strtok.S: Likewise.
4218         * sysdeps/i386/i386-mcount.S: Likewise.
4219         * sysdeps/i386/strtok.S: Likewise.
4220         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4221         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4222         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4223         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4224         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4225         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4226         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4227         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4228         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4229         * sysdeps/x86_64/_mcount.S: Likewise.
4230         * sysdeps/x86_64/strtok.S: Likewise.
4231         * sysdeps/sh/_mcount.S: Likewise.
4232
4233 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4234
4235         * libio/iofopen.c: Include <fcntl.h>.
4236         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4237         (_IO_fopen64, fopen64): Define as aliases.
4238         * libio/iofopen64.c: Include <fcntl.h>.
4239         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4240         Conditionalize body on this.
4241         * sysdeps/wordsize-64/iofopen.c: File removed.
4242         * sysdeps/wordsize-64/iofopen64.c: File removed.
4243
4244 2012-08-01  Marek Polacek  <polacek@redhat.com>
4245
4246         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4247         Use dlfcn directly instead of a variable.
4248         (binfmt-subdir): Do not define.
4249         (dlfcn): Likewise.
4250
4251 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4252
4253         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4254         Remove all definitions.
4255         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4256         <kernel-features.h>.
4257         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4258         (miss_F_GETOWN_EX): Remove all definitions.
4259         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4260         macro definition.
4261         [!__ASSUME_FCNTL64]: Remove conditional code.
4262         [__ASSUME_FCNTL64]: Make code unconditional.
4263         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4264         <kernel-features.h>.
4265         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4266         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4267         (lockf64) [__NR_fcntl64]: Make code unconditional.
4268         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4269
4270         * sysdeps/unix/sysv/linux/kernel-features.h
4271         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4272         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4273         Make code unconditional.
4274         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4275         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4277         [__NR_vfork]: Make code unconditional.
4278         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4279         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4281         [__NR_vfork]: Make code unconditional.
4282         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4283         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4284
4285 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4286
4287         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4288         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4289
4290         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4291         Define mkstemp64 as an alias.
4292         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4293         Define mkstemps64 as an alias.
4294         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4295         Define mkostemp64 as an alias.
4296         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4297         Define mkostemps64 as an alias.
4298         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4299         Conditionalize body on this.
4300         * misc/mkostemp64.c: Likewise.
4301         * misc/mkostemps64.c: Likewise.
4302         * misc/mkstemps64.c: Likewise.
4303         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4304         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4305         * sysdeps/wordsize-64/mkostemp.c: File removed.
4306         * sysdeps/wordsize-64/mkstemp.c: File removed.
4307         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4308         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4309         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4310         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4311
4312         [BZ #14138]
4313         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4314         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4315         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4316         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4317
4318         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4319         compat_symbol macros from <shlib-compat.h> rather than the underlying
4320         default_symbol_version and symbol_version macros, so that DEFAULT
4321         lines in shlib-versions are respected.
4322         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4323
4324 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4325
4326         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4327         Declare with warn_unused_result.
4328         (setgid, setregid, setegid, setresgid): Likewise.
4329         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4330         Likewise.
4331         * WUR-REPORT: Remove set*id functions.
4332
4333 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4334
4335         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4336
4337 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4338
4339         * include/sys/socket.h (__libc_accept, __libc_accept4):
4340         Add attribute_hidden.
4341         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4342
4343         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4344         use of PTR_MANGLE.
4345         * inet/getnetgrent_r.c (setup): Likewise.
4346
4347         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4348
4349 2012-07-31  David S. Miller  <davem@davemloft.net>
4350
4351         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4352
4353 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4354
4355         [BZ #13629]
4356         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4357         value between 1.0 and 2.0 and smaller part has absolute value less
4358         than 1.0.
4359         * math/s_clog10.c (__clog10): Likewise.
4360         * math/s_clog10f.c (__clog10f): Likewise.
4361         * math/s_clog10l.c (__clog10l): Likewise.
4362         * math/s_clogf.c (__clogf): Likewise.
4363         * math/s_clogl.c (__clogl): Likewise.
4364         * math/libm-test.inc (clog_test): Add more tests.
4365         (clog10_test): Likewise.
4366         * sysdeps/i386/fpu/libm-test-ulps: Update.
4367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4368
4369 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4370
4371         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4372         Exit with zero in case no suitable GID is found, and write a
4373         message to standard error.
4374
4375 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4376
4377         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4378         rather than to 1.
4379         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4380         (MAXPATHLEN): Removed.
4381         (NOGROUP, NODEV): New macros.
4382         (setbit, clrbit, isset, isclr): New macros.
4383         (howmany, roundup, powerof2): New macros.
4384         (DEV_BSIZE): New macro.
4385
4386         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4387         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4388
4389         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4390         definition on [!__NO_LONG_DOUBLE_MATH].
4391
4392         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4393         PTR_MANGLE and PTR_DEMANGLE.
4394
4395         * socket/accept4.c (accept4): Rename to __libc_accept4.
4396         Define accept4 as a weak alias.
4397
4398         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4399         on [_DIRENT_HAVE_D_TYPE].
4400         * io/ftw.c (ftw_dir): Likewise.
4401
4402         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4403
4404         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4405
4406         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4407         Use the BSD numbers rather than the arbitrary ones we had.
4408         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4409         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4410         (SIGXCPU, SIGXFSZ): New macros.
4411         (_NSIG): Now 32.
4412
4413         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4414         initializer on [_LIBC_REENTRANT].
4415
4416         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4417         definitions inside [_POSIX_MAPPED_FILES].
4418
4419         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4420
4421         * dirent/opendir.c: Include <fcntl.h>.
4422
4423         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4424         (__libc_getspecific): Likewise.
4425         (__libc_key_create): Likewise.
4426
4427         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4428         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4429         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4430         (tmpfile64): Define as alias.
4431         * sysdeps/wordsize-64/tmpfile.c: File removed.
4432         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4433         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4434         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4435
4436         * stdio-common/vfscanf.c: Include <stdbool.h>.
4437         * nss/makedb.c: Likewise.
4438         * stdio-common/_i18n_number.h: Likewise.
4439         * argp/argp-help.c: Likewise.
4440         * posix/wordexp.c: Likewise.
4441         * sysdeps/posix/spawni.c: Likewise.
4442         * nss/nss_files/files-initgroups.c: Likewise.
4443         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4444         * nss/nss_files/files-initgroups.c: Likewise.
4445         * nss/nss_db/db-netgrp.c: Likewise.
4446         * nss/nss_db/db-initgroups.c: Likewise.
4447         * io/fchmodat.c: Include <sys/stat.h>.
4448
4449         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4450         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4451
4452         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4453         [HAVE_MMAP].
4454
4455         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4456         Add multiple inclusion protection.
4457
4458 2012-07-27  David S. Miller  <davem@davemloft.net>
4459
4460         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4461
4462 2012-07-27  Gary Benson  <gbenson@redhat.com>
4463
4464         [BZ #14298]
4465         * elf/rtld.c: Include <stap-probe.h>.
4466         (dl_main): Added static probes "init_start" and "init_complete".
4467         * elf/dl-load.c: Include <stap-probe.h>.
4468         (lose): Take new parameter "nsid".
4469         Added static probe "map_failed".
4470         (_dl_map_object_from_fd): Pass namespace id to lose.
4471         Added static probe "map_start".
4472         (open_verify): Pass namespace id to lose.
4473         * elf/dl-open.c: Include <stap-probe.h>.
4474         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4475         and "reloc_complete".
4476         * elf/dl-close.c: Include <stap-probe.h>.
4477         (_dl_close_worker): Added static probes "unmap_start" and
4478         "unmap_complete".
4479         * elf/rtld-debugger-interface.txt: New file documenting the above.
4480
4481 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4482
4483         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4484         rather than a string variable.
4485         * sunrpc/rpc_main.c (h_output): Likewise.
4486         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4487
4488 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4489
4490         * inet/check_native.c: New file.
4491
4492 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4493
4494         [BZ #13629]
4495         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4496         if larger part has absolute value 1.0.
4497         * math/s_clog10.c (__clog10): Likewise.
4498         * math/s_clog10f.c (__clog10f): Likewise.
4499         * math/s_clog10l.c (__clog10l): Likewise.
4500         * math/s_clogf.c (__clogf): Likewise.
4501         * math/s_clogl.c (__clogl): Likewise.
4502         * math/libm-test.inc (clog_test): Add more tests.
4503         (clog10_test): Likewise.
4504         * sysdeps/i386/fpu/libm-test-ulps: Update.
4505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4506
4507         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4508         (pltexit): Likewise.
4509         (La_regs): Likewise.
4510         (La_retval): Likewise.
4511         (int_retval): Likewise.
4512         Update #error for removed macros to refer only to definitions in
4513         tst-audit.h.
4514         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4515         macro.
4516         (pltexit): Likewise.
4517         (La_regs): Likewise.
4518         (La_retval): Likewise.
4519         (int_retval): Likewise.
4520         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4521         macro.
4522         (pltexit): Likewise.
4523         (La_regs): Likewise.
4524         (La_retval): Likewise.
4525         (int_retval): Likewise.
4526         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4527         macro.
4528         (pltexit): Likewise.
4529         (La_regs): Likewise.
4530         (La_retval): Likewise.
4531         (int_retval): Likewise.
4532         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4533         macro.
4534         (pltexit): Likewise.
4535         (La_regs): Likewise.
4536         (La_retval): Likewise.
4537         (int_retval): Likewise.
4538         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4539         macro.
4540         (pltexit): Likewise.
4541         (La_regs): Likewise.
4542         (La_retval): Likewise.
4543         (int_retval): Likewise.
4544         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4545         macro.
4546         (pltexit): Likewise.
4547         (La_regs): Likewise.
4548         (La_retval): Likewise.
4549         (int_retval): Likewise.
4550         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4551         macro definitions in tst-audit.h.
4552         * sysdeps/i386/tst-audit.h: New file.
4553         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4554         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4555         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4556         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4557         * sysdeps/sh/tst-audit.h: Likewise.
4558         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4559         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4560         * sysdeps/x86_64/tst-audit.h: Likewise.
4561
4562 2012-07-26  Andreas Jaeger  <aj@suse.de>
4563
4564         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4565         ptrace.
4566
4567         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4568         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4569         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4570         PTRACE_O_MASK.
4571         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4572         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4573         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4574
4575         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4576         value.
4577
4578         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4579         _sigsys.
4580         (si_call_addr, si_syscall, si_arch): Define new macro.
4581         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4582         _sigsys.
4583         (si_call_addr, si_syscall, si_arch): Define new marcro.
4584         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4585         _sigsys.
4586         (si_call_addr, si_syscall, si_arch): Define new macro.
4587         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4588         _sigsys.
4589         (si_call_addr, si_syscall, si_arch): Define new macro.
4590
4591 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4592
4593         [BZ #13717]
4594         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4595         Change to 2.4.21 where previously 2.4.1.
4596         * sysdeps/unix/sysv/linux/configure: Regenerated.
4597         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4598         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4599         Linux kernel version.
4600         (__ASSUME_STD_AUXV): Remove.
4601         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4602         kernel version.
4603         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4604         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4605         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4606         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4607         (__ASSUME_NETLINK_SUPPORT): Likewise.
4608         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4609         (__no_netlink_support): Remove conditional definition.
4610         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4611         Remove.
4612         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4613         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4614         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4615         (if_nameindex_ioctl): Remove.
4616         (if_nameindex_netlink): Do not handle __no_netlink_support.
4617         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4618         code.
4619         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4620         Remove conditional code.
4621         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4622         code.
4623         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4624         unconditional.
4625         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4626         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4627         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4628         Remove.
4629         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4630         [!__ASSUME_STD_AUXV]: Remove conditional code.
4631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4632         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4633         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4635         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4636         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4637         code.
4638         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4640         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4641         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4642         conditional code.
4643         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4645         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4646         code.
4647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4648         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4649         conditional code.
4650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4651         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4652         code unconditional.
4653         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4654         conditional code.
4655         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4656         unconditional.
4657         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4658         conditional code.
4659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4660         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4661         unconditional.
4662         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4663         conditional code.
4664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4665         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4666         code unconditional.
4667         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4668         conditional code.
4669         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4670         unconditional.
4671         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4672         conditional code.
4673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4674         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4675         code unconditional.
4676         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4677         conditional code.
4678         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4679         unconditional.
4680         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4681         conditional code.
4682
4683 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4684
4685         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4686         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4687         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4688         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4689         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4690         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4691         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4692         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4693         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4694         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4695         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4696         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4697         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4698         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4699         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4700         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4701         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4702         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4703         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4704         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4705         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4706         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4707         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4708
4709 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4710
4711         * Versions.def: Add GLIBC_2.17.
4712         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4713         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4714         Introduce __libc_secure_getenv.
4715         * stdlib/Versions (2.17): Add secure_getenv
4716         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4717         * stdlib/secure-getenv.c: Rename __secure_getenv to
4718         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4719         symbol __secure_getenv for GLIBC_2.0.
4720         * stdlib/tst-secure-getenv.c: New.
4721         * stdlib/Makefile (tests): Add testcase.
4722         * manual/startup.texi (Environment Access): Document
4723         secure_getenv.
4724         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4725         __libc_secure_getenv.
4726         * inet/ruserpass.c (ruserpass): Likewise.
4727         * malloc/mtrace.c (mtrace): Likewise.
4728         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4729         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4730         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4731         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4732         HAVE_SECURE_GETENV.
4733         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4734         __secure_getenv to __libc_secure_getenv.
4735         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4737         Likewise.
4738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4739         Likewise.
4740         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4741         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4742         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4743         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4744         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4745         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4746         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4747
4748 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4749
4750         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4751         (struct La_i86_retval): Likewise.
4752         (struct La_x86_64_regs): Likewise.
4753         (struct La_x86_64_retval): Likewise.
4754         (struct La_x32_regs): Likewise.
4755         (struct La_x32_retval): Likewise.
4756         (struct La_ppc32_regs): Likewise.
4757         (struct La_ppc32_retval): Likewise.
4758         (struct La_ppc64_regs): Likewise.
4759         (struct La_ppc64_retval): Likewise.
4760         (struct La_sh_regs): Likewise.
4761         (struct La_sh_retval): Likewise.
4762         (struct La_s390_32_regs): Likewise.
4763         (struct La_s390_32_retval): Likewise.
4764         (struct La_s390_64_regs): Likewise.
4765         (struct La_s390_64_retval): Likewise.
4766         (struct La_sparc32_regs): Likewise.
4767         (struct La_sparc32_retval): Likewise.
4768         (struct La_sparc64_regs): Likewise.
4769         (struct La_sparc64_retval): Likewise.
4770         (struct audit_ifaces): Remove architecture-specific pltenter and
4771         pltexit members.
4772         * sysdeps/i386/ldsodefs.h: New file.
4773         * sysdeps/powerpc/ldsodefs.h: Likewise.
4774         * sysdeps/s390/ldsodefs.h: Likewise.
4775         * sysdeps/sh/ldsodefs.h: Likewise.
4776         * sysdeps/sparc/ldsodefs.h: Likewise.
4777         * sysdeps/x86_64/ldsodefs.h: Likewise.
4778
4779 2012-07-25  Marek Polacek  <polacek@redhat.com>
4780
4781         [BZ #6808]
4782         * math/libm-test.inc (yn_test): Add another test.
4783         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4784         to ERANGE when the result is +-Inf.
4785         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4786         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4787         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4788         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4789
4790 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4791
4792         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4793         equal to 0.
4794         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4795         clock_t.
4796         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4797
4798 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4799
4800         * configure.in <sysdeps resolving>: Correct printing
4801         Implies_before.
4802         * configure: Regenerate.
4803
4804 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4805
4806         * math/w_ilogb.c: Include <limits.h>.
4807         * math/w_ilogbl.c: Likewise.
4808
4809 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4810
4811         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4812         va_copy.  Document allowing for unavailable va_copy only as
4813         pre-C99 compatibility.
4814         * manual/string.texi (Copying and Concatenation): Use va_copy
4815         instead of __va_copy in concat example.
4816
4817 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4818
4819         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4820         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4821         it if not null.
4822
4823         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4824         with O_NOLINK passed to __file_name_lookup.
4825
4826         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4827         with O_NOLINK passed to __file_name_lookup.
4828
4829         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4830         negative N or less than NGIDS.
4831
4832         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4833         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4834         enough.  Use memcpy instead of strncpy.
4835
4836 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4837
4838         * elf/Makefile (check-data): Remove.
4839         (localplt.data): New vpath directive.
4840         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4841         instead of $(check-data).
4842         * scripts/data/localplt-generic.data: Move to ...
4843         * sysdeps/generic/localplt.data: ... here.
4844         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4845         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4846         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4848         ... here.
4849         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4851         ... here.
4852         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4853         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4854         ... here.
4855         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4856         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4857         ... here.
4858         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4859         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4860         ... here.
4861         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4862         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4863         ... here.
4864
4865 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4866
4867         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4868         PPC32 and PPC64 files.
4869         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4870         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4871
4872 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4873
4874         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4875         __makecontext_ret to ...
4876         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4877         ... here and call exit if uc_link is NULL.  New file.
4878         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4879         __makecontext_ret.S.
4880         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4881         __makecontext_ret to ...
4882         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4883         ... here and call exit if uc_link is NULL.  New file.
4884         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4885         __makecontext_ret.S.
4886
4887 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4888
4889         * elf/elf.h (R_390_IRELATIVE): New definition.
4890         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4891         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4892         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4893         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4894         (elf_machine_lazy_rel): Likewise.
4895         * sysdeps/s390/dl-irel.h: New file.
4896         * sysdeps/s390/s390-64/memcpy.S: New asm code.
4897         * sysdeps/s390/s390-64/memset.S: New asm code.
4898         * sysdeps/s390/s390-64/memcmp.S: New asm code.
4899         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
4900         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
4901         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
4902         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
4903         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
4904         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
4905         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
4906         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
4907         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
4908         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
4909         * sysdeps/s390/s390-32/memcpy.S: New asm code.
4910         * sysdeps/s390/s390-32/memset.S: New asm code.
4911         * sysdeps/s390/s390-32/memcmp.S: New asm code.
4912
4913 2012-07-17  Marek Polacek  <polacek@redhat.com>
4914
4915         [BZ #14349]
4916         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
4917         * sysdeps/s390/s390-64/configure.in: Likewise.
4918         * sysdeps/sparc/configure.in: Likewise.
4919         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
4920         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
4921         * sysdeps/i386/configure.in: Likewise.
4922         * sysdeps/x86_64/configure.in: Likewise.
4923         * sysdeps/sh/configure.in: Likewise.
4924         * sysdeps/s390/s390-32/configure: Regenerated.
4925         * sysdeps/s390/s390-64/configure: Likewise.
4926         * sysdeps/x86_64/configure: Likewise.
4927         * sysdeps/sh/configure: Likewise.
4928         * sysdeps/powerpc/powerpc64/configure: Likewise.
4929         * sysdeps/powerpc/powerpc32/configure: Likewise.
4930         * sysdeps/sparc/configure: Likwise.
4931         * sysdeps/i386/configure: Likewise.
4932
4933         * elf/dl-open.c: Comment fixes.
4934
4935 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4936
4937         * Makefile [CXX] (check-data): Remove.
4938         [CXX] (c++-types.data): New vpath directive.
4939         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4940         vpath.  Do not allow for C++ type data being missing.
4941         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4942         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4943         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4944         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4945         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4946         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4947         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4949         ... here.
4950         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4952         ... here.
4953         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4954         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4955         ... here.
4956         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4957         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4958         ... here.
4959         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4960         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4961         ... here.
4962         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4963         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4964         ... here.
4965         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4966         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4967         ... here.
4968         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4969         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4970
4971         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4972         definitions to architecture-specific files.
4973         (TLS_IE): Likewise.
4974         (TLS_LD): Likewise.
4975         (TLS_GD): Likewise.
4976         * sysdeps/i386/tls-macros.h: New file.
4977         * sysdeps/powerpc/tls-macros.h: Likewise.
4978         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4979         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4980         * sysdeps/sh/tls-macros.h: Likewise.
4981         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4982         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4983         * sysdeps/x86_64/tls-macros.h: Likewise.
4984
4985 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4986
4987         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4988         zero value for regular exit case.
4989
4990         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4991         (__start_context): Preserve zero value for regular exit case.
4992
4993 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4994             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4995
4996         * manual/setjmp.texi (setcontext): Clarify normal process
4997         termination when uc_link is the null pointer.
4998         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4999         exit call.
5000
5001 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5002
5003         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5004         preprocessor.  Test for each exception mask separately.
5005
5006 2012-07-16  Andreas Jaeger  <aj@suse.de>
5007
5008         * po/ru.po: Update from translation team.
5009
5010 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5011
5012         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5013         equal to 0.
5014         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5015         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5016         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5017         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5018         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5019
5020 2012-07-13  Andreas Jaeger  <aj@suse.de>
5021
5022         * po/fr.po: Update from translation team.
5023
5024 2012-07-12  Marek Polacek  <polacek@redhat.com>
5025
5026         [BZ #14173]
5027         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5028         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5029         loop condition.
5030
5031 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5032
5033         [BZ #13717]
5034         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5035         Change to 2.4.1 where previously 2.4.0.
5036         * sysdeps/unix/sysv/linux/configure: Regenerated.
5037         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5038         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5039         version.
5040         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5041         (__ASSUME_AT_CLKTCK): Remove.
5042         (__ASSUME_AT_PAGESIZE): Likewise.
5043         (__ASSUME_AT_XID): Likewise.
5044         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5045         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5046         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5047         unconditionally.
5048         (HAVE_AUX_PAGESIZE): Likewise.
5049         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5050         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5051         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5052
5053 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5054
5055         [BZ #14307]
5056         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5057         the temporary buffer used to invoke __gethostbyname2_r,
5058         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5059         host_data / struct gaih_addrtuple.
5060         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5061         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5062         header file nss/nsswitch.h.
5063         * nss/nsswitch.h (global scope): Add definition of implementation
5064         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5065         resolv/nss_dns/dns-host.c).
5066
5067 2012-07-11  Andreas Jaeger  <aj@suse.de>
5068
5069         * po/fr.po: Update from translation team.
5070
5071         * po/sv.po: Update from translation team
5072         * po/fr.po: Another update from translation team.
5073
5074 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5075
5076         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5077         for subnormals or multiply small sinh result by itself.
5078         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5079         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5080
5081 2012-07-11  David S. Miller  <davem@davemloft.net>
5082
5083         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5084
5085 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5086
5087         [BZ #14347]
5088         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5089         (INTERNAL_MARK): Shift it here.
5090
5091 2012-07-10  Marek Polacek  <polacek@redhat.com>
5092
5093         [BZ #14151]
5094         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5095         libc_cv_asm_global_directive with .globl.
5096         * configure: Regenerated.
5097         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5098         with .globl.
5099         * sysdeps/i386/configure: Regenerated.
5100         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5101         with .globl.
5102         * sysdeps/x86_64/configure: Regenerated.
5103         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5104         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5105         * elf/tst-unique2mod2.c: Likewise.
5106         * elf/tst-unique2mod1.c: Likewise.
5107         * elf/tst-unique1mod2.c: Likewise.
5108         * elf/tst-unique1mod1.c: Likewise.
5109         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5110         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5111         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5112         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5113         * sysdeps/mach/sysdep.h: Likewise.
5114         * sysdeps/i386/sysdep.h: Likewise.
5115         * sysdeps/i386/i386-mcount.S: Likewise.
5116         * sysdeps/x86_64/_mcount.S: Likewise.
5117         * sysdeps/x86_64/sysdep.h: Likewise.
5118         * sysdeps/sh/_mcount.S: Likewise.
5119         * sysdeps/sh/sysdep.h: Likewise.
5120         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5121         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5122         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5123         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5124         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5125         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5126         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5127         * locale/localeinfo.h: Likewise.
5128         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5129         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5130
5131 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5132
5133         [BZ #14336]
5134         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5135         system".
5136         * manual/message.texi (The Uniforum approach): Likewise.
5137         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5138         (glibc iconv Implementation): Likewise.
5139
5140 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5141
5142         [BZ #14337]
5143         * math/s_clog.c (__clog): Avoid scaling a value down where that
5144         could result in underflow.
5145         * math/s_clog10.c (__clog10): Likewise.
5146         * math/s_clog10f.c (__clog10f): Likewise.
5147         * math/s_clog10l.c (__clog10l): Likewise.
5148         * math/s_clogf.c (__clogf): Likewise.
5149         * math/s_clogl.c (__clogl): Likewise.
5150         * math/libm-test.inc (clog_test): Add more tests.
5151         (clog10_test): Likewise.
5152         * sysdeps/i386/fpu/libm-test-ulps: Update.
5153         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5154
5155 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5156
5157         [BZ #14283]
5158         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5159         by 7 not 8 to examine high bit of fractional part.
5160
5161         [BZ #14042]
5162         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5163         for call to __mcount_internal.
5164         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5165         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5166         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5167
5168 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5169
5170         [BZ #14154]
5171         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5172         approximation for values within 0x1p-13f of an odd multiple of
5173         pi/4.
5174         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5175         exception.  Add more tests.
5176         * sysdeps/i386/fpu/libm-test-ulps: Update.
5177
5178         [BZ #6778]
5179         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5180         inputs and return -1 for them.  Do not check for +Inf in case not
5181         reachable for +Inf.
5182         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5183         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5184         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5185         and return -1 for them.  Do not check for +Inf in case not
5186         reachable for +Inf.
5187         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5188         define.
5189         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5190         and return -1 for them.  Do not check for +Inf in case not
5191         reachable for +Inf.
5192         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5193         spurious underflow.
5194         * sysdeps/i386/fpu/libm-test-ulps: Update.
5195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5196
5197 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5198
5199         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5200
5201 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5202
5203         [BZ #14157]
5204         [BZ #14331]
5205         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5206         could result in spurious underflow.  Scale down values above
5207         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5208         * math/s_csqrtf.c (__csqrtf): Likewise.
5209         * math/s_csqrtl.c (__csqrtl): Likewise.
5210         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5211         spurious underflow.
5212         * sysdeps/i386/fpu/libm-test-ulps: Update.
5213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5214
5215 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5216
5217         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5218         xopen-msg.sed.
5219         * catgets/xopen-msg.awk: New file.
5220         * catgets/xopen-msg.sed: Removed.
5221
5222         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5223         po2text.sed.
5224         * intl/po2test.awk: New file.
5225         * intl/po2test.sed: Removed.
5226
5227 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5228
5229         [BZ #14328]
5230         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5231         or multiply small sinh result by itself.
5232         * math/s_ctanf.c (__ctanf): Likewise.
5233         * math/s_ctanh.c (__ctanh): Likewise.
5234         * math/s_ctanhf.c (__ctanhf): Likewise.
5235         * math/s_ctanhl.c (__ctanhl): Likewise.
5236         * math/s_ctanl.c (__ctanl): Likewise.
5237         * math/libm-test.inc (ctan_test_tonearest): New function.
5238         (ctan_test_towardzero): Likewise.
5239         (ctan_test_downward): Likewise.
5240         (ctan_test_upward): Likewise.
5241         (ctanh_test_tonearest): Likewise.
5242         (ctanh_test_towardzero): Likewise.
5243         (ctanh_test_downward): Likewise.
5244         (ctanh_test_upward): Likewise.
5245         (main): Call these new functions.
5246         * sysdeps/i386/fpu/libm-test-ulps: Update.
5247         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5248
5249 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5250
5251         * .gitignore: Delete /ports entry.
5252
5253 2012-07-03  Andreas Jaeger  <aj@suse.de>
5254
5255         * po/bg.po: Update from translation team.
5256         * po/cs.po: Likewise.
5257         * po/de.po: Likewise.
5258         * po/hr.po: Likewise.
5259         * po/nl.pl: Likewise.
5260         * po/pl.po: Likewise.
5261         * po/vi.po: Likewise.
5262
5263 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5264
5265         * Makeconfig [!+link] (+link-before-libc): New variable.
5266         [!+link] (+link-after-libc): Likewise.
5267         [!+link] (+link-tests): Likewise.
5268         [!+link] (+link): Define in terms of $(+link-before-libc) and
5269         $(+link-after-libc).
5270         [!+link-static] (+link-static-before-libc): New variable.
5271         [!+link-static] (+link-static-after-libc): Likewise.
5272         [!+link-static] (+link-static-tests): Likewise.
5273         [!+link-static] (+link-static): Define in terms of
5274         $(+link-static-before-libc) and $(+link-static-after-libc).
5275         [build-shared] (link-libc-before-gnulib): New variable.
5276         [build-shared] (link-libc-tests): Likewise.
5277         [build-shared] (link-libc): Define in terms of
5278         $(link-libc-before-gnulib).
5279         [!build-shared] (link-libc-tests): New variable.
5280         (link-libc-static-tests): New variable.
5281         [!gnulib] (gnulib-arch): New variable.
5282         [!gnulib] (gnulib-tests): Likewise.
5283         [!gnulib] (static-gnulib-arch): Likewise.
5284         [!gnulib] (static-gnulib-tests): Likewise.
5285         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5286         Define with "=" instead of ":=".
5287         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5288         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5289         * Rules (binaries-all-notests): New variable.
5290         (binaries-all-tests): Likewise.
5291         (binaries-static-notests): Likewise.
5292         (binaries-static-tests): Likewise.
5293         (binaries-all): Define using $(binaries-all-notests) and
5294         $(binaries-all-tests).
5295         (binaries-static): Define using $(binaries-static-notests) and
5296         $(binaries-static-tests).
5297         (binaries-shared-tests): New variable.
5298         (binaries-shared-notests): Likewise.
5299         (binaries-shared): Remove variable.
5300         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5301         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5302         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5303         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5304         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5305         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5306         * elf/Makefile (sln-modules): New variable.
5307         (extra-objs): Add $(sln-modules:=.o).
5308         (ldconfig-modules): Add static-stubs.
5309         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5310         * elf/static-stubs.c: New file.
5311
5312         [BZ #14283]
5313         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5314         by 7 not 8 to examine high bit of fractional part.  Use volatile
5315         variables when splitting into final array of floats if
5316         __FLT_EVAL_METHOD__ != 0.
5317         * math/libm-test.inc (cos_test): Add another test.
5318         (sin_test): Likewise.
5319         * sysdeps/i386/fpu/libm-test-ulps: Update.
5320
5321         [BZ #14273]
5322         * math/libm-test.inc (cosh_test): Add more tests.
5323
5324         * version.h (RELEASE): Set to "development".
5325         (VERSION): Set to "2.16.90".
5326
5327 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5328
5329         * NEWS: Update copyright. Remove last-updated date.
5330         Mention math library bug fixes and timezone data changes.
5331         * README: Mention GNU/Hurd, x32, and HPPA support status.
5332
5333 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5334
5335         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5336
5337 2012-06-27  Andreas Jaeger  <aj@suse.de>
5338
5339         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5340
5341 2012-06-25  Andreas Jaeger  <aj@suse.de>
5342
5343         * sysdeps/s390/fpu/libm-test-ulps: Update.
5344
5345 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5346             Thomas Schwinge  <thomas@codesourcery.com>
5347
5348         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5349         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5350         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5351         fanotify_mark.
5352
5353 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5354
5355         * sysdeps/mach/start.c: Remove file.
5356         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5357         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5358         * sysdeps/sh/init-first.c: Likewise.
5359
5360         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5361         registers for frame unwinding purposes, add CFI directives.
5362         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5363         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5364         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5365         Likewise.
5366
5367         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5368         __fortify_fail returning.
5369         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5370
5371         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5372         sysdeps/sh/____longjmp_chk.S.
5373         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5374         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5375         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5376         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5377
5378         * sysdeps/sh/abort-instr.h: New file.
5379         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5380         process in case exit returns.
5381
5382         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5383         initialize the GOT register before use.
5384
5385         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5386         calculation of ARGC > 4.
5387
5388         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5389         meaningful names to some local labels.
5390
5391 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5392             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5393
5394         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5395         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5396         (__arch_compare_and_exchange_val_16_acq): Likewise.
5397         (__arch_compare_and_exchange_val_32_acq): Likewise.
5398         (atomic_exchange_and_add): Fix gUSA sequence.
5399         (atomic_add): Likewise.
5400         (atomic_add_negative): Likewise.
5401         (atomic_add_zero): Likewise.
5402         (atomic_bit_test_set): Likewise.
5403
5404 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5405
5406         [BZ #13579]
5407         * include/link.h (struct link_map): Add l_free_initfini.
5408         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5409         l_initfini.
5410         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5411         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5412         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5413         set.
5414
5415 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5416
5417         * configure.in: Use AC_LANG_SOURCE.
5418         * configure: Regenerate.
5419
5420 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5421
5422         * configure.in (libc_cv_localstatedir): New substituted variable.
5423         * configure: Regenerated.
5424         * config.make.in (localstatedir): New variable, substituted from
5425         libc_cv_localstatedir.
5426         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5427         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5428         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5429         * sysdeps/gnu/configure: Regenerated.
5430
5431 2012-06-21  Jeff Law  <law@redhat.com>
5432
5433         [BZ #14277]
5434         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5435         free.  Simplify list management for _LIBC case.
5436
5437 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5438
5439         [BZ #14273]
5440         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5441         Clear sign bit of 64-bit integer value before comparing against
5442         overflow value.
5443
5444         * sysdeps/mach/configure: Regenerated.
5445
5446 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5447
5448         [BZ #14278]
5449         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5450
5451 2012-06-21  Jeff Law  <law@redhat.com>
5452
5453         [BZ #13882]
5454         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5455         uint16_t for elements in the "seen" array to avoid char overflows.
5456         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5457         * elf/dl-open.c (dl_open_worker): Likewise.
5458
5459 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5460
5461         * scripts/list-sources.sh: Scan PORTS for translations.
5462         * po/libc.pot: Regenerated.
5463
5464 2012-06-21  Andreas Jaeger  <aj@suse.de>
5465
5466         [BZ #12194]
5467         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5468         warning.
5469         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5470         * bits/byteswap-16.h (__bswap_16): Likewise.
5471         * bits/byteswap.h (__bswap_constant_16): Likewise.
5472
5473 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5474
5475         [BZ #14117]
5476         * sysdeps/i386/fpu_control.h: Removed.
5477         * sysdeps/x86_64/fpu_control.h: Moved to ...
5478         * sysdeps/x86/fpu_control.h: Here.
5479
5480         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5481         (_FPU_SETCW): Likewise.
5482
5483 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5484
5485         [BZ #14117]
5486         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5487         * sysdeps/x86/fpu/bits/mathinline.h: This.
5488         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5489
5490         [BZ #14050]
5491         [BZ #14117]
5492         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5493         functions if __x86_64__ is defined.
5494
5495 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5496
5497         * string/endian.h: Add !__ASSEMBLER__ condition for including
5498         conversion interfaces.
5499
5500 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5501
5502         [BZ #14241]
5503         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5504         of ABS(x) in calculating zero to negative powers other than odd
5505         integers.
5506         * math/libm-test.inc (pow_test): Add more tests.
5507
5508 2012-06-15  Andreas Jaeger  <aj@suse.de>
5509
5510         * manual/contrib.texi (Contributors): Update entry of Liubov
5511         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5512         Machado Filho.
5513
5514 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5515
5516         * string/string.h: Add __wur to GNU version of strerror_r.
5517
5518 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5519
5520         [BZ #14229]
5521         * string/Makefile (tests): Add tst-strtok_r.
5522         * string/tst-strtok_r.c: New file.
5523         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5524         RAX_LP/RDX_LP on SAVE_PTR.
5525
5526 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5527
5528         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5529
5530 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5531
5532         * libm_test.inc (csqrt_test): Allow more spurious underflow
5533         exceptions.
5534         (j0_test): Likewise.
5535         (j1_test): Likewise.
5536         (y0_test): Likewise.
5537         (y1_test): Likewise.
5538
5539 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5540
5541         * po/Makefile (libc.pot): Use UTF-8 charset.
5542
5543 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5544
5545         [BZ #14210]
5546         Suppress sign-conversion warning from FD_SET.
5547         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5548         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5549         not unsigned long int.
5550         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5551
5552 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5553
5554         [BZ #14050]
5555         [BZ #14117]
5556         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5557         __extern_always_inline instead of __extern_inline.
5558         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5559         (__signbit): Likewise.
5560         (__signbitl): Support C++ namespace.
5561         (lrintf): New inline function.
5562         (lrint): Likewise.
5563         (llrintf): Likewise.
5564         (llrint): Likewise.
5565         (fmaxf): Likewise.
5566         (fmax): Likewise.
5567         (fminf): Likewise.
5568         (fmin): Likewise.
5569         (rint): Likewise.
5570         (rintf): Likewise.
5571         (ceil): Likewise.
5572         (ceilf): Likewise.
5573         (floor): Likewise.
5574         (floorf): Likewise.
5575         (nearbyint): Likewise.
5576         (nearbyintf): Likewise.
5577
5578 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5579
5580         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5581         non-default versions.
5582
5583 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5584
5585         [BZ #14218]
5586         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5587
5588 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5589
5590         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5591         (FE_UPWARD, FE_DOWNWARD): Don't define.
5592         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5593         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5594
5595         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5596         reading it.
5597         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5598         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5599
5600 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5601
5602         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5603         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5604         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5605         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5606
5607 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5608
5609         [BZ #14117]
5610         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5611         * sysdeps/i386/fpu/Implies: New file.
5612         * sysdeps/x86_64/fpu/Implies: Likewise.
5613         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5614         * sysdeps/x86/fpu/bits/fenv.h: This.
5615
5616         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5617         __SSE_MATH__.
5618
5619 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5620
5621         [BZ #14134]
5622         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5623         character 0xffff that matches the last element of the
5624         conversion table.
5625
5626 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5627
5628         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5629         fmodl commit.
5630
5631 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5632
5633         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5634         values higher than 25.6283.
5635
5636 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5637
5638         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5639         subnormal exponent extraction and add some __builtin_expect.
5640         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5641         Fix for subnormal mantissa calculation.
5642
5643 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5644
5645         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5646         cpu2 is -1 and errno is not ENOSYS.
5647
5648 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5649
5650         [BZ #14117]
5651         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5652         * sysdeps/x86/bits/string.h: This.
5653         * sysdeps/x86_64/bits/string.h: Removed.
5654
5655         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5656         if not compiling for x86-64, but compiling for >= i486.
5657
5658         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5659         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5660
5661         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5662         New macro from Linux kernel 3.4.0.
5663         (FP_XSTATE_MAGIC2): Likewise.
5664         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5665         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5666         (struct _fpx_sw_bytes): New struct.
5667         (struct _xsave_hdr): Likewise.
5668         (struct _ymmh_state): Likewise.
5669         (struct _xstate): Likewise.
5670
5671         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5672         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5673         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5674         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5675         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5676         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5677
5678         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5679         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5680         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5681         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5682         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5683         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5684
5685 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5686
5687         [BZ #13743]
5688         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5689         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5690         (sysdep_headers): Include sys/platform/ppc.h.
5691         * sysdeps/powerpc/test-gettimebase.c: Test for
5692         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5693         * manual/Makefile (appendices): Include platform.texi.
5694         * manual/contrib.texi (Contributors): Update @node pointers.
5695         * manual/maint.texi (Maintenance): Likewise.
5696         (Platform): New node.
5697         * manual/platform.texi: New file.  Document the new features.
5698
5699 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5700             Jakub Jelinek  <jakub@redhat.com>
5701
5702         [BZ #14188]
5703         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5704         where __builtin_expect is unavailable.
5705
5706 2012-06-03  David S. Miller  <davem@davemloft.net>
5707
5708         * stdlib/longlong.h: Updated from GCC.
5709
5710 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5711
5712         [BZ #14042]
5713         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5714         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5715         __mcount_internal.
5716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5717         (GLIBC_2.16): Likewise.
5718
5719 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5720
5721         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5722
5723 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5724
5725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5726         (default-abi): New variable.
5727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5728         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5729         variable.
5730         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5731         Likewise.
5732         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5733         Likewise.
5734         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5735         Likewise.
5736
5737         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5738         definition.  Document in comment.
5739
5740 2012-06-01  David S. Miller  <davem@davemloft.net>
5741
5742         * stdlib/longlong.h: Updated from GCC.
5743
5744 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5745
5746         [BZ #14117]
5747         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5748         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5749         sys/debugreg.h sys/io.h here.
5750         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5751         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5752         sys/io.h.
5753         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5754         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5755         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5756         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5757         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5758         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5759
5760         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5761         Define only if __x86_64__ is defined.
5762
5763 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5764
5765         [BZ #14048]
5766         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5767         Use int64_t for variable i.
5768         * math/libm-test.inc (fmod_test): Add more tests.
5769
5770         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5771         z computation is not scheduled after fetestexcept.
5772         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5773         Use math_force_eval instead of asm to ensure calculation scheduled
5774         before exception test.
5775         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5776         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5777
5778 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5779
5780         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5781         computation is not scheduled after fetestexcept.
5782
5783 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5784
5785         [BZ #14117]
5786         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5787         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5788
5789 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5790
5791         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5792         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5793
5794 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5795
5796         [BZ #14117]
5797         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5798         <bits/wordsize.h>.
5799         (__WCHAR_MIN): Support __WORDSIZE == 64.
5800         (__WCHAR_MAX): Likewise.
5801
5802         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5803         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5804
5805         [BZ #14183]
5806         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5807         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5808
5809         [BZ #14117]
5810         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5811         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5812
5813         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5814         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5815
5816         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5817         Defined to 1 if __x86_64__ isn't defined.
5818         (_STAT_VER_LINUX_OLD): New.
5819         (st_atime): Remove duplicate.
5820         (st_mtime): Likewise.
5821         (st_ctime): Likewise.
5822
5823 2012-05-31  David S. Miller  <davem@davemloft.net>
5824
5825         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5826         entries.
5827
5828 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5829
5830         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5831         gen-libm-test.pl.
5832
5833         [BZ #14132]
5834         * elf/dl-reloc.c: Include <_itoa.h>.
5835         (_dl_reloc_bad_type): Remove use of INTUSE.
5836         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5837         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5838         * stdio-common/psiginfo.c (psiginfo): Likewise.
5839         * stdio-common/psignal.c (psignal): Likewise.
5840         * string/strsignal.c (strsignal): Likewise.
5841         * include/signal.h (_sys_siglist): Declare hidden proto.
5842         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5843         INTVARDEF with libc_hidden_data_def.
5844         * stdio-common/itoa-udigits.c: Likewise.
5845         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5846         (_itoa_lower_digits_internal): Remove declaration.
5847         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5848         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5849         (_sys_sigabbrev_internal): Remove aliases.
5850         (_sys_siglist): Define hidden alias.
5851
5852 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5853
5854         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5855         bits/sysctl.h.
5856
5857 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5858
5859         [BZ #14117]
5860         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5861         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5862
5863         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5864         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5865         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5866         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5867         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5868         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5869
5870         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5871         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5872         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5873
5874         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5875         with __addr.
5876         (insw): Likewise.
5877         (insl): Likewise.
5878         (outsb): Likewise.
5879         (outsw): Likewise.
5880         (outsl): Likewise.
5881
5882         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5883         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5884         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5885
5886         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5887         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5888         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5889         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5890         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5891         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5892
5893         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5894         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5895
5896         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
5897         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
5898
5899         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
5900         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
5901         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
5902
5903         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
5904         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
5905         to ...
5906         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
5907
5908         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
5909         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
5910         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
5911
5912         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
5913         for x86-64.
5914         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
5915
5916 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
5917
5918         * math/math.h (M_El): Use two more decimal places.
5919         (M_LOG2El): Likewise.
5920         (M_LOG10El): Likewise.
5921         (M_LN2l): Likewise.
5922         (M_LN10l): Likewise.
5923         (M_PIl): Likewise.
5924         (M_PI_2l): Likewise.
5925         (M_PI_4l): Likewise.
5926         (M_1_PIl): Likewise.
5927         (M_2_PIl): Likewise.
5928         (M_2_SQRTPIl): Likewise.
5929         (M_SQRT2l): Likewise.
5930         (M_SQRT1_2l): Likewise.
5931
5932 2012-05-31  David S. Miller  <davem@davemloft.net>
5933
5934         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5935         values between float registers.
5936         * sysdeps/sparc/sparc64/memset.S: Likewise.
5937         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5938
5939 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5940
5941         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5942         -D_FORTIFY_SOURCE=1.
5943         (CPPFLAGS-tst-longjmp_chk.c): Define.
5944         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5945         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5946         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5947         CFLAGS-tst-wchar-h.c.
5948
5949 2012-05-31  Marek Polacek  <polacek@redhat.com>
5950
5951         [BZ #14132]
5952         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5953         __endmntent_internal): Remove declaration.
5954         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5955         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5956         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5957
5958 2012-05-30  David S. Miller  <davem@davemloft.net>
5959
5960         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5961         (___Q_simulate_exceptions): Use real FP ops rather than writing
5962         into the %fsr.
5963         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5964         Likewise.
5965
5966 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5967
5968         [BZ #14117]
5969         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5970         * sysdeps/x86/bits/xtitypes.h: This.
5971
5972         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5973         * sysdeps/x86/bits/wordsize.h: This.
5974
5975         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5976         * sysdeps/x86/bits/huge_vall.h: This.
5977
5978         * sysdeps/i386/bits/select.h: Removed.
5979         * sysdeps/x86_64/bits/select.h: Renamed to ...
5980         * sysdeps/x86/bits/select.h: This.
5981
5982         * sysdeps/i386/bits/setjmp.h: Removed.
5983         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5984         * sysdeps/x86/bits/setjmp.h: This.
5985
5986         * sysdeps/i386/bits/mathdef.h: Removed.
5987         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5988         * sysdeps/x86/bits/mathdef.h: This.
5989
5990 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5991
5992         [BZ #14132]
5993         * include/sys/socket.h (__connect_internal)
5994         (__libc_sa_len_internal): Remove declaration.
5995         (__connect, __libc_sa_len): Declare hidden_proto.
5996         (SA_LEN): Remove use of INTUSE.
5997         * socket/connect.c: Add libc_hidden_def.
5998         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5999         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6000         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6001         alias.
6002         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6003         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6004         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6005         of adding _internal alias.
6006
6007 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6008
6009         [BZ #14117]
6010         * sysdeps/i386/bits/link.h: Removed.
6011         * sysdeps/i386/bits/linkmap.h: Likewise.
6012         * sysdeps/x86_64/bits/link.h: Renamed to ...
6013         * sysdeps/x86/bits/link.h: This.
6014         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6015         * sysdeps/x86/bits/linkmap.h: This.
6016
6017         * sysdeps/i386/bits/endian.h: Removed.
6018         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6019         * sysdeps/x86/bits/endian.h: This.
6020
6021         * sysdeps/i386/bits/byteswap.h: Removed.
6022         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6023         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6024         * sysdeps/x86/bits/byteswap.h: This.
6025         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6026         * sysdeps/x86/bits/byteswap-16.h: This.
6027         * sysdeps/i386/Implies: Add x86.
6028         * sysdeps/x86_64/Implies: Likewise.
6029
6030 2012-05-30  David S. Miller  <davem@davemloft.net>
6031
6032         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6033         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6034         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6035         (FP_TRAPPING_EXCEPTIONS): Define.
6036         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6037         (FP_TRAPPING_EXCEPTIONS): Define.
6038         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6039         subnormals only when inexact has been signalled or underflow
6040         exceptions are enabled.
6041         (_FP_PACK_CANONICAL): Likewise.
6042
6043 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6044
6045         [BZ #14183]
6046         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6047         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6048
6049 2012-05-30  Richard Henderson  <rth@twiddle.net>
6050
6051         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6052         with #ifndef NOT_IN_libc.
6053
6054         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6055         marked to avoid plt entry.
6056
6057 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6058
6059         [BZ #14112]
6060         * Makeconfig (default-abi): New macro.
6061         (abi-includes): Likewise.
6062         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6063         $(abi-$(default-abi)-lib-soname) for soname if defined.
6064         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6065         abi-variants.
6066         * Makefile (installed-stubs): Likewise.
6067         * include/stubs-biarch.h: Removed.
6068         * scripts/lib-names.awk: Only handle one library at a time.
6069         * scripts/soversions.awk: Remove WORDSIZE support.
6070         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6071         entries.
6072         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6073         Removed.
6074         (syscall-list-default-condition): Likewise.
6075         (syscall-list-default-condition): Likewise.
6076         (syscall-list-includes): Likewise.
6077         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6078         syscall-list-* with abi-*.  Handle undefined abi-variants.
6079         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6080         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6081         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6082         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6083         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6084         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6085         Removed.
6086         (syscall-list-32-options): Likewise.
6087         (syscall-list-32-condition): Likewise.
6088         (syscall-list-64-options): Likewise.
6089         (syscall-list-64-condition): Likewise.
6090         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6091         macro.
6092         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6093         Renamed to ...
6094         (abi-*): This.
6095         (abi-64-ld-soname): New macro.
6096         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6097         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6098         Renamed to ...
6099         (abi-*): This.
6100         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6101         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6102
6103 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6104
6105         * sysdeps/unix/sysv/linux/kernel-features.h
6106         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6107         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6108         include <kernel-features.h>.
6109         [!__NR_ftruncate64]: Remove conditional code.
6110         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6111         [__NR_ftruncate64]: Make code unconditional.
6112         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6113         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6114         include <kernel-features.h>.
6115         [!__NR_ftruncate64]: Remove conditional code.
6116         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6117         [__NR_ftruncate64]: Make code unconditional.
6118         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6120         include <kernel-features.h>.
6121         [!__NR_ftruncate64]: Remove conditional code.
6122         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6123         [__NR_ftruncate64]: Make code unconditional.
6124         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6126         include <kernel-features.h>.
6127         [!__NR_ftruncate64]: Remove conditional code.
6128         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6129         [__NR_ftruncate64]: Make code unconditional.
6130         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6131
6132         * configure.in (libc_cv_fpie): Weaken to a compile test using
6133         LIBC_TRY_CC_OPTION.
6134         * configure: Regenerated.
6135
6136 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6137
6138         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6139         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6140         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6141         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6142         Refreshed.
6143         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6144         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6145         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6146         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6147         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6148         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6149         Refreshed.
6150
6151 2012-05-27  David S. Miller  <davem@davemloft.net>
6152
6153         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6154         (___Q_zero): New.
6155         (__Q_simulate_exceptions): Return void.  Change to simulate
6156         exceptions by writing into the %fsr.
6157         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6158         (__Qp_handle_exceptions): Likewise.
6159         (numbers): Delete.
6160         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6161         __Qp_handle_exceptions.
6162         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6163         __Qp_handle_exceptions.
6164         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6165         as unused and give dummy FP_RND_NEAREST initializer.
6166         (FP_INHIBIT_RESULTS): Define.
6167         (___Q_simulate_exceptions): Update declaration.
6168         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6169         formatting.
6170         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6171         as unused and give dummy FP_RND_NEAREST initializer.
6172         (__Qp_handle_exceptions): Update declaration.
6173         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6174         formatting.
6175
6176 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6177
6178         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6179         the temporary FPU control word.
6180         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6181         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6182         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6183         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6184         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6185         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6186         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6187         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6188         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6189         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6190         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6191
6192 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6193
6194         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6195         fields.
6196
6197 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6198
6199         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6200         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6201         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6202         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6203         Likewise.
6204         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6205         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6206         Likewise.
6207
6208 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6209
6210         * po/h.po: Update from translation team.
6211
6212 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6213
6214         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6215
6216         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6217         handling of denormals.
6218         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6219         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6220         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6221         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6222         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6223         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6224         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6225         Likewise.
6226
6227 2012-05-26  Marek Polacek  <polacek@redhat.com>
6228
6229         [BZ #14152]
6230         * math/libm-test.inc (fma_test): Don't always expect underflow
6231         exception.
6232
6233 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6234
6235         [BZ #12416]
6236         * elf/tst-execstack.c: Include stackinfo.h.
6237         (do_test): Adjust test case to ensure that pthread_getattr_np
6238         behaviour remains the same after marking stack executable.
6239
6240 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6241
6242         * sysdeps/unix/sysv/linux/kernel-features.h
6243         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6244         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6245         kernel-features.h.
6246         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6247         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6248         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6249         kernel-features.h.
6250         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6251         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6252
6253 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6254
6255         * configure.in: Define the default includes to being none.
6256         * configure: Regenerated.
6257
6258 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6259
6260         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6261         * sysdeps/x86_64/setjmp.S: Likewise.
6262         * sysdeps/i386/bsd-setjmp.S: Likewise.
6263         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6264         * sysdeps/i386/setjmp.S: Likewise.
6265         * sysdeps/i386/__longjmp.S: Likewise.
6266         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6267         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6268
6269         * include/stap-probe.h: New file.
6270         * configure.in: Handle --enable-systemtap.
6271         * configure: Regenerated.
6272         * config.h.in (USE_STAP_PROBE): New #undef.
6273         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6274         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6275         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6276
6277 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6278
6279         [BZ #13717]
6280         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6281         to 2.4.0 where earlier.
6282         * sysdeps/unix/sysv/linux/configure: Regenerated.
6283         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6284         <kernel-features.h>.
6285         [__ASSUME_32BITUIDS]: Make code unconditional.
6286         [!__ASSUME_32BITUIDS]: Remove conditional code.
6287         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
6288         <kernel-features.h>.
6289         [__ASSUME_32BITUIDS]: Make code unconditional.
6290         [!__ASSUME_32BITUIDS]: Remove conditional code.
6291         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6292         [__ASSUME_32BITUIDS]: Make code unconditional.
6293         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6294         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6295         <kernel-features.h>.
6296         [__ASSUME_32BITUIDS]: Make code unconditional.
6297         [!__ASSUME_32BITUIDS]: Remove conditional code.
6298         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
6299         <kernel-features.h>.
6300         [__ASSUME_32BITUIDS]: Make code unconditional.
6301         [!__ASSUME_32BITUIDS]: Remove conditional code.
6302         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
6303         <kernel-features.h>.
6304         [__ASSUME_32BITUIDS]: Make code unconditional.
6305         [!__ASSUME_32BITUIDS]: Remove conditional code.
6306         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
6307         <kernel-features.h>.
6308         [__ASSUME_32BITUIDS]: Make code unconditional.
6309         [!__ASSUME_32BITUIDS]: Remove conditional code.
6310         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
6311         <kernel-features.h>.
6312         [__ASSUME_32BITUIDS]: Make code unconditional.
6313         [!__ASSUME_32BITUIDS]: Remove conditional code.
6314         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
6315         <kernel-features.h>.
6316         [__ASSUME_32BITUIDS]: Make code unconditional.
6317         [!__ASSUME_32BITUIDS]: Remove conditional code.
6318         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
6319         <kernel-features.h>.
6320         [__ASSUME_32BITUIDS]: Make code unconditional.
6321         [!__ASSUME_32BITUIDS]: Remove conditional code.
6322         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
6323         <kernel-features.h>.
6324         [__ASSUME_32BITUIDS]: Make code unconditional.
6325         [!__ASSUME_32BITUIDS]: Remove conditional code.
6326         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
6327         <kernel-features.h>.
6328         [__ASSUME_32BITUIDS]: Make code unconditional.
6329         [!__ASSUME_32BITUIDS]: Remove conditional code.
6330         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
6331         <kernel-features.h>.
6332         [__ASSUME_32BITUIDS]: Make code unconditional.
6333         [!__ASSUME_32BITUIDS]: Remove conditional code.
6334         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6335         <kernel-features.h>.
6336         [__NR_setresgid] (__setresgid): Do not declare.
6337         [__ASSUME_32BITUIDS]: Make code unconditional.
6338         [!__ASSUME_32BITUIDS]: Remove conditional code.
6339         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6340         <kernel-features.h>.
6341         [__NR_setresuid] (__setresuid): Do not declare.
6342         [__ASSUME_32BITUIDS]: Make code unconditional.
6343         [!__ASSUME_32BITUIDS]: Remove conditional code.
6344         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6345         <kernel-features.h>.
6346         [__ASSUME_32BITUIDS]: Make code unconditional.
6347         [!__ASSUME_32BITUIDS]: Remove conditional code.
6348         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6349         <kernel-features.h>.
6350         [__ASSUME_32BITUIDS]: Make code unconditional.
6351         [!__ASSUME_32BITUIDS]: Remove conditional code.
6352         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6353         <kernel-features.h>.
6354         [__ASSUME_32BITUIDS]: Make code unconditional.
6355         [!__ASSUME_32BITUIDS]: Remove conditional code.
6356         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6357         <kernel-features.h>.
6358         [__ASSUME_32BITUIDS]: Make code unconditional.
6359         [!__ASSUME_32BITUIDS]: Remove conditional code.
6360         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6361         <kernel-features.h>.
6362         [__ASSUME_32BITUIDS]: Make code unconditional.
6363         [!__ASSUME_32BITUIDS]: Remove conditional code.
6364         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6365         <kernel-features.h>.
6366         [__ASSUME_32BITUIDS]: Make code unconditional.
6367         [!__ASSUME_32BITUIDS]: Remove conditional code.
6368         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6369         <kernel-features.h>.
6370         [__ASSUME_32BITUIDS]: Make code unconditional.
6371         [!__ASSUME_32BITUIDS]: Remove conditional code.
6372         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6373         <kernel-features.h>.
6374         [__ASSUME_32BITUIDS]: Make code unconditional.
6375         [!__ASSUME_32BITUIDS]: Remove conditional code.
6376         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6377         <kernel-features.h>.
6378         [__ASSUME_32BITUIDS]: Make code unconditional.
6379         [!__ASSUME_32BITUIDS]: Remove conditional code.
6380         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6381         <kernel-features.h>.
6382         [__ASSUME_32BITUIDS]: Make code unconditional.
6383         [!__ASSUME_32BITUIDS]: Remove conditional code.
6384         * sysdeps/unix/sysv/linux/kernel-features.h
6385         (__ASSUME_SETRESUID_SYSCALL): Remove.
6386         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6387         (__ASSUME_32BITUIDS): Likewise.
6388         (__ASSUME_LDT_WORKS): Likewise.
6389         (__ASSUME_O_DIRECTORY): Likewise.
6390         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6391         architecture but not kernel version.
6392         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6393         (__ASSUME_MMAP2_SYSCALL): Likewise.
6394         (__ASSUME_STAT64_SYSCALL): Likewise.
6395         (__ASSUME_IPC64): Likewise.
6396         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6397         <kernel-features.h>.
6398         [__ASSUME_32BITUIDS]: Make code unconditional.
6399         [!__ASSUME_32BITUIDS]: Remove conditional code.
6400         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6401         <kernel-features.h>.
6402         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6403         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6404         132096]: Remove conditional code.
6405         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6406         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6407         <kernel-features.h>.
6408         [__ASSUME_32BITUIDS]: Make code unconditional.
6409         [!__ASSUME_32BITUIDS]: Remove conditional code.
6410         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6411         <kernel-features.h>.
6412         [__ASSUME_32BITUIDS]: Make code unconditional.
6413         [!__ASSUME_32BITUIDS]: Remove conditional code.
6414         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6415         <kernel-features.h>.
6416         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6417         unconditional.
6418         (__setresgid): Do not declare.
6419         [__ASSUME_32BITUIDS]: Make code unconditional.
6420         [!__ASSUME_32BITUIDS]: Remove conditional code.
6421         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6422         <kernel-features.h>.
6423         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6424         unconditional.
6425         (__setresuid): Do not declare.
6426         [__ASSUME_32BITUIDS]: Make code unconditional.
6427         [!__ASSUME_32BITUIDS]: Remove conditional code.
6428         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6429         <kernel-features.h>.
6430         [__ASSUME_32BITUIDS]: Make code unconditional.
6431         [!__ASSUME_32BITUIDS]: Remove conditional code.
6432         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6433         <kernel-features.h>.
6434         [__ASSUME_32BITUIDS]: Make code unconditional.
6435         [!__ASSUME_32BITUIDS]: Remove conditional code.
6436
6437 2012-05-25  Richard Henderson  <rth@twiddle.net>
6438
6439         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6440         dl_hwcap to ifunc resolver.
6441         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6442         elf_ifunc_invoke.
6443         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6444         dl_hwcap to ifunc resolver.
6445         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6446
6447 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6448
6449         [BZ #14153]
6450         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6451         for |x| <= 2**-26, not 2**-57.
6452         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6453         exception.
6454
6455 2012-05-24  Jeff Law  <law@redhat.com>
6456
6457         * stdio-common/Makefile (tests): Add bug25.
6458         * stdio-common/bug25.c: New test.
6459
6460 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6461
6462         [BZ #13576]
6463         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6464         multiple of MALLOC_ALIGNMENT in size.
6465         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6466
6467 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6468
6469         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6470         Require >= 256.
6471         (FILENAME_MAX): Use macro-int-constant.
6472         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6473         (_IOFBF): Use macro-int-constant.
6474         (_IOLBF): Likewise.
6475         (_IONBF): Likewise.
6476         (SEEK_CUR): Likewise.
6477         (SEEK_END): Likewise.
6478         (SEEK_SET): Likewise.
6479         (TMP_MAX): Likewise.
6480         (EOF): Use macro-int-constant.  Require < 0.
6481         (NULL): Use macro-constant.  Require == 0.
6482         (stdin): Require type to be FILE *.
6483         (stdout): Likewise.
6484         (stderr): Likewise.
6485         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6486         macro-int-constant.
6487         (EXIT_SUCCESS): Likewise.
6488         (NULL): Use macro-constant.  Require == 0.
6489         (RAND_MAX): Use macro-int-constant.
6490         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6491         [C99-based standards] (strtof): Require function.
6492         [C99-based standards] (strtold): Likewise.
6493         [C99-based standards] (strtoll): Likewise.
6494         [C99-based standards] (strtoull): Likewise.
6495         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6496         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6497         [ISO || ISO99 || ISO11] (math.h): Likewise.
6498         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6499         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6500         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6501
6502 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6503
6504         [BZ #14132]
6505         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6506         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6507         * intl/dgettext.c (DCGETTEXT): Likewise.
6508         * intl/gettext.c (DCGETTEXT): Likewise.
6509         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6510         * posix/regex_internal.h (gettext): Likewise.
6511         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6512         Remove declaration.
6513         * include/argz.h (__argz_count_internal)
6514         (__argz_stringify_internal): Remove declaration.
6515         (__argz_count, __argz_stringify): Declare hidden proto.
6516         * intl/dcgettext.c: Remove use of INTDEF.
6517         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6518         * string/argz-stringify.c: Likewise.
6519         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6520         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6521         Declare hidden proto.
6522         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6523         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6524         Declare hidden proto.
6525         * include/stdio.h (__asprintf_internal): Don't declare.
6526         (__asprintf): Don't define as macro.  Declare hidden proto.
6527         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6528         (__fsetlocking): Declare hidden proto.
6529         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6530         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6531         hidden proto.
6532         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6533         (_IO_setlinebuf): Remove use of INTUSE.
6534         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6535         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6536         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6537         Remove declaration.
6538         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6539         (_IO_do_flush): Remove use of INTUSE.
6540         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6541         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6542         (_IO_adjust_column, _IO_least_wmarker)
6543         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6544         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6545         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6546         (_IO_default_doallocate, _IO_wdefault_doallocate)
6547         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6548         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6549         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6550         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6551         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6552         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6553         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6554         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6555         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6556         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6557         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6558         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6559         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6560         proto.
6561         (_IO_flush_all_internal, _IO_adjust_column_internal)
6562         (_IO_default_uflow_internal, _IO_default_finish_internal)
6563         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6564         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6565         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6566         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6567         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6568         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6569         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6570         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6571         (_IO_file_close_internal, _IO_file_close_it_internal)
6572         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6573         (_IO_file_init_internal, _IO_file_attach_internal)
6574         (_IO_file_fopen_internal, _IO_file_read_internal)
6575         (_IO_file_sync_internal, _IO_file_seek_internal)
6576         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6577         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6578         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6579         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6580         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6581         (_IO_list_all_internal, _IO_link_in_internal)
6582         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6583         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6584         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6585         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6586         (_IO_do_write_internal, _IO_padn_internal)
6587         (_IO_getline_info_internal, _IO_getline_internal)
6588         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6589         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6590         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6591         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6592         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6593         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6594         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6595         with libc_hidden_ver, remove use of INTUSE.
6596         * libio/genops.c: Likewise.
6597         * libio/freopen.c: Likewise.
6598         * libio/freopen64.c: Likewise.
6599         * libio/iofclose.c: Likewise.
6600         * libio/iofdopen.c: Likewise.
6601         * libio/iofflush.c: Likewise.
6602         * libio/iofflush_u.c: Likewise.
6603         * libio/iofgets.c: Likewise.
6604         * libio/iofgets_u.c: Likewise.
6605         * libio/iofopen.c: Likewise.
6606         * libio/iofopncook.c: Likewise.
6607         * libio/iofread.c: Likewise.
6608         * libio/iofread_u.c: Likewise.
6609         * libio/ioftell.c: Likewise.
6610         * libio/iofwrite.c: Likewise.
6611         * libio/iogetline.c: Likewise.
6612         * libio/iogets.c: Likewise.
6613         * libio/iogetwline.c: Likewise.
6614         * libio/iopadn.c: Likewise.
6615         * libio/iopopen.c: Likewise.
6616         * libio/ioseekoff.c: Likewise.
6617         * libio/ioseekpos.c: Likewise.
6618         * libio/iosetbuffer.c: Likewise.
6619         * libio/iosetvbuf.c: Likewise.
6620         * libio/ioungetc.c: Likewise.
6621         * libio/ioungetwc.c: Likewise.
6622         * libio/iovdprintf.c: Likewise.
6623         * libio/iovsprintf.c: Likewise.
6624         * libio/iovsscanf.c: Likewise.
6625         * libio/memstream.c: Likewise.
6626         * libio/obprintf.c: Likewise.
6627         * libio/oldfileops.c: Likewise.
6628         * libio/oldiofclose.c: Likewise.
6629         * libio/oldiofdopen.c: Likewise.
6630         * libio/oldiofopen.c: Likewise.
6631         * libio/oldiopopen.c: Likewise.
6632         * libio/oldstdfiles.c: Likewise.
6633         * libio/putc.c: Likewise.
6634         * libio/setbuf.c: Likewise.
6635         * libio/setlinebuf.c: Likewise.
6636         * libio/stdfiles.c: Likewise.
6637         * libio/strops.c: Likewise.
6638         * libio/vasprintf.c: Likewise.
6639         * libio/vscanf.c: Likewise.
6640         * libio/vsnprintf.c: Likewise.
6641         * libio/vswprintf.c: Likewise.
6642         * libio/wfiledoalloc.c: Likewise.
6643         * libio/wfileops.c: Likewise.
6644         * libio/wgenops.c: Likewise.
6645         * libio/wmemstream.c: Likewise.
6646         * libio/wstrops.c: Likewise.
6647         * libio/__fpurge.c: Likewise.
6648         * libio/__fsetlocking.c: Likewise.
6649         * assert/assert.c: Likewise.
6650         * debug/fgets_chk.c: Likewise.
6651         * debug/fgets_u_chk.c: Likewise.
6652         * debug/fread_chk.c: Likewise.
6653         * debug/fread_u_chk.c: Likewise.
6654         * debug/gets_chk.c: Likewise.
6655         * debug/obprintf_chk.c: Likewise.
6656         * debug/vasprintf_chk.c: Likewise.
6657         * debug/vdprintf_chk.c: Likewise.
6658         * debug/vsnprintf_chk.c: Likewise.
6659         * debug/vsprintf_chk.c: Likewise.
6660         * malloc/mtrace.c: Likewise.
6661         * misc/error.c: Likewise.
6662         * misc/syslog.c: Likewise.
6663         * stdio-common/asprintf.c: Likewise.
6664         * stdio-common/fxprintf.c: Likewise.
6665         * stdio-common/getw.c: Likewise.
6666         * stdio-common/isoc99_fscanf.c: Likewise.
6667         * stdio-common/isoc99_scanf.c: Likewise.
6668         * stdio-common/isoc99_vfscanf.c: Likewise.
6669         * stdio-common/isoc99_vscanf.c: Likewise.
6670         * stdio-common/isoc99_vsscanf.c: Likewise.
6671         * stdio-common/printf-prs.c: Likewise.
6672         * stdio-common/printf_fp.c: Likewise.
6673         * stdio-common/printf_fphex.c: Likewise.
6674         * stdio-common/printf_size.c: Likewise.
6675         * stdio-common/putw.c: Likewise.
6676         * stdio-common/scanf.c: Likewise.
6677         * stdio-common/sprintf.c: Likewise.
6678         * stdio-common/tmpfile.c: Likewise.
6679         * stdio-common/vfprintf.c: Likewise.
6680         * stdio-common/vfscanf.c: Likewise.
6681         * stdlib/strfmon_l.c: Likewise.
6682         * sunrpc/openchild.c: Likewise.
6683         * sunrpc/xdr_stdio.c: Likewise.
6684         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6685         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6686
6687 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6688
6689         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6690
6691         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6692         in the third column, to generate for the shared library an IFUNC
6693         that uses _dl_vdso_vsym.
6694         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6695         * Makeconfig (object-suffixes-noshared): New variable.
6696
6697         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6698         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6699         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6700         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6701
6702         [BZ #14132]
6703         * include/sys/time.h (__gettimeofday): Remove macro.
6704         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6705         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6706         Remove INTDEF.
6707         (__gettimeofday): Add libc_hidden_def.
6708         (gettimeofday): Add libc_hidden_weak.
6709         * sysdeps/mach/gettimeofday.c: Likewise.
6710         * sysdeps/posix/gettimeofday.c: Likewise.
6711         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6712         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6713         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6714         (__gettimeofday_internal): Remove strong_alias.
6715         (__gettimeofday): Add libc_hidden_def.
6716         (gettimeofday): Add libc_hidden_weak.
6717         * sysdeps/unix/syscalls.list (gettimeofday):
6718         Remove __gettimeofday_internal alias.
6719
6720 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6721             H.J. Lu  <hongjiu.lu@intel.com>
6722
6723         [BZ #12495]
6724         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6725         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6726         (largebin_index_32_big): New.
6727         (largebin_index): Use it for 16-byte alignment.
6728         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6729         correction with front_misalign.
6730
6731 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6732
6733         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6734         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6735         Likewise.
6736         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6737         Likewise.
6738         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6739         Likewise.
6740         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6741         Likewise.
6742         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6743         Likewise.
6744         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6745         Likewise.
6746         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6747         Likewise.
6748         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6749         Likewise.
6750         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6751         Likewise.
6752         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6753         Likewise.
6754         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6755         Likewise.
6756         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6757         Likewise.
6758
6759         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6760         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6761
6762 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6763
6764         [BZ #10846]
6765         [BZ #14036]
6766         * math/libm-test.inc (exp_test): Add test from bug 14036.
6767         (pow_test): Add test from bug 10846.
6768
6769         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6770         and other flags.
6771         (special_function): Do not include flags in test name.
6772         (parse_args): Likewise.
6773         * sysdeps/i386/fpu/libm-test-ulps: Update.
6774         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6775         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6776         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6778
6779         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6780         exceptions.
6781         * math/libm-test.inc ("Philosophy"): Update comment about
6782         exception testing.
6783         (UNDERFLOW_EXCEPTION): New macro.
6784         (UNDERFLOW_EXCEPTION_OK): Likewise.
6785         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6786         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6787         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6788         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6789         (INVALID_EXCEPTION_OK): Update value.
6790         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6791         (OVERFLOW_EXCEPTION_OK): Likewise.
6792         (IGNORE_ZERO_INF_SIGN): Likewise.
6793         (test_exceptions): Handle underflow exceptions.
6794         (acos_test): Update for underflow exception expectations.
6795         (cexp_test): Likewise.
6796         (clog_test): Likewise.
6797         (clog10_test): Likewise.
6798         (csqrt_test): Likewise.
6799         (ctan_test): Likewise.
6800         (ctanh_test): Likewise.
6801         (exp_test): Likewise.
6802         (exp10_test): Likewise.
6803         (exp2_test): Likewise.
6804         (expm1_test): Likewise.
6805         (fma_test): Likewise.
6806         (j0_test): Likewise.
6807         (jn_test): Likewise.
6808         (nexttoward_test): Likewise.
6809         (pow_test): Likewise.
6810         (scalbn_test): Likewise.
6811         (scalbln_test): Likewise.
6812         (tan_test): Likewise.
6813         (y1_test): Likewise.
6814         * sysdeps/i386/fpu/libm-test-ulps: Update.
6815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6816
6817 2012-05-23  David S. Miller  <davem@davemloft.net>
6818
6819         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6820         (__libc_sigaction): Remove unused local variables.
6821
6822 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6823
6824         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6825
6826 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6827
6828         mktime: avoid signed integer overflow
6829         * time/mktime.c (__mktime_internal): Do not mishandle the case
6830         where diff == INT_MIN.
6831
6832         mktime: simplify computation of average
6833         * time/mktime.c (ranged_convert): Use new time_t_avg function
6834         instead of rolling our own (probably-slower) code.
6835
6836         mktime: do not assume signed right shift propagates sign bit
6837         * time/mktime.c (isdst_differ): New static function.
6838         (__mktime_internal): No need to normalize tm_isdst now.
6839         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6840         tm_isdst values.
6841
6842         mktime: merge another wrapv change from gnulib
6843         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6844         from some compilers.
6845
6846         mktime: remove incorrect attempt at unusual arithmetics
6847         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6848         The code didn't really work on such machines anyway.
6849         (TYPE_MINIMUM): Assume two's complement.
6850         (twos_complement_arithmetic): Verify that long_int and time_t
6851         are two's complement (or unsigned, in the latter case).
6852
6853         mktime: check signed shifts on long_int and time_t, too
6854         * time/mktime.c (SHR): Check that shifts work as desired
6855         on the types long_int and time_t too, as SHR is used on
6856         such types.
6857
6858         mktime: do not assume 'long' is wide enough
6859         * time/mktime.c (verify): Move decl up.
6860         (long_int): New type.
6861         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6862         to remove assumption in the code that 'long' is wide enough to
6863         store year values.  This assumption is not true on x32 and on
6864         some non-glibc platforms.
6865
6866         mktime: merge wrapv change from gnulib
6867         * time/mktime.c (WRAPV): New macro.
6868         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6869         (guess_time_tm, __mktime_internal): Do not assume that signed
6870         integer overflow wraps around; modern compilers generate code
6871         where this assumption is no longer valid.
6872
6873 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6874
6875         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6876         Replace "jmp L(pseudo_end)" with "ret".
6877         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6878         Likewise.
6879
6880 2012-05-23  Andreas Jaeger  <aj@suse.de>
6881
6882         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6883         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6884
6885 2012-05-23  Andreas Jaeger  <aj@suse.de>
6886             Maximilian Attems  <max@stro.at>
6887
6888         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6889         New macros.
6890
6891 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6892
6893         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6894         code so that pseudo_end is just ret and the stack pointer is
6895         correct also for static library in error case.
6896
6897 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
6898
6899         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
6900         move to syscalls.list.
6901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6905
6906         * manual/install.texi (Running make install): Do not mention Linux
6907         kernel version for which pt_chown is not needed.
6908         (Linux): Do not mention problems with nscd with 2.0 kernels.
6909         * INSTALL: Regenerated.
6910
6911 2012-05-23  Andreas Jaeger  <aj@suse.de>
6912
6913         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
6914         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
6915         macro.
6916         * sysdeps/unix/sysv/linux/s390/bits/mman.h
6917         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6918         * sysdeps/unix/sysv/linux/sh/bits/mman.h
6919         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6920         * sysdeps/unix/sysv/linux/i386/bits/mman.h
6921         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6922         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6923         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6924         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6925         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6926         * sysdeps/unix/sysv/linux/bits/in.h
6927         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6928
6929 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6930
6931         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6932         (PREPARE_VERSION): Just use assert instead, it will be elided
6933         under [NDEBUG] anyway.
6934
6935 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6936
6937         * sysdeps/unix/sysv/linux/Makefile: Include
6938         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6939         (sysdep_routines): Remove sysctl.
6940         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6941         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6942         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6943         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6944         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6945
6946 2012-05-22  Andreas Jaeger  <aj@suse.de>
6947
6948         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6949         that pseudo_end is just ret and the stack pointer is correct also
6950         for static library in error case.
6951
6952 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6953
6954         [BZ #14122]
6955         * nss/nsswitch.c (defconfig_entries): New variable.
6956         (__nss_database_lookup): Don't leak defconfig entries.
6957         (nss_parse_service_list): Don't leak on error paths.
6958         (free_database_entries): New function.
6959         (free_defconfig): New function.
6960         (free_mem): Move common code to free_database_entries.
6961
6962 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6963
6964         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6965         Add arch_prctl.
6966         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6967
6968         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6969         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6970         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6971         New macro.
6972         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6973         (INTERNAL_SYSCALL_TYPES): Likewise.
6974         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6975         (LOAD_REGS_TYPES_[1-6]): Likewise.
6976         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6977         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6978
6979 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6980
6981         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6982         copysignl for GLIBC_2_0.
6983         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6984         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6985         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6986         logbl for GLIBC_2_0.
6987         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6988         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6989
6990 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6991
6992         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6993         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6994
6995         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6996         Use "neg %eax".
6997
6998         * time/mktime.c: Update copyright years.
6999
7000 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7001
7002         mktime: merge comment-quoting-style change from gnulib
7003         * time/mktime.c: Quote 'like this' in comments.
7004         The GNU coding standards suggest that we no longer quote `like this',
7005         as "`" and "'" are typically rendered asymmetrically nowadays.
7006         The typical gnulib style is to quote 'like this' when quoting
7007         code, and "like this" when quoting English.
7008
7009         * time/mktime.c (compile-command): Add "-I.".
7010
7011         mktime: merge mktime-internal.h change from gnulib
7012         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7013
7014         mktime: merge time_r change from gnulib
7015         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7016
7017         mktime: merge DEBUG change from gnulib
7018         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7019         case system <time.h> has a #define.
7020
7021         mktime: merge <sys/types.h> change from gnulib
7022         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7023         since <time.t> is now guaranteed to define time_t.
7024
7025         mktime: merge HAVE_CONFIG_H change from gnulib
7026         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7027
7028 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7029
7030         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7031         Use "neg %eax".
7032
7033         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7034         __rlim_t cast.
7035         (struct rusage): Use anonymous union to pad each field to
7036         __syscall_slong_t.
7037
7038 2012-05-21  David S. Miller  <davem@davemloft.net>
7039
7040         * Makefules (o-iterator): Remove .s cases.
7041         (compile-command.s): Delete.
7042         (COMPILE.s): Delete.
7043         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7044
7045 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7046
7047         * configure.in (libc_cv_predef_stack_protector): Only consider
7048         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7049         * configure: Regenerated.
7050
7051 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7052
7053         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7054         New macro.  Use R*LP on int and pointer.
7055         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7056         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7057         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7058         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7059
7060         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7061         [__WORDSIZE_TIME64_COMPAT32] instead of
7062         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7063         (struct utmp): Likewise.
7064         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7065         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7066         Renamed to ...
7067         (__WORDSIZE_TIME64_COMPAT32): This.
7068         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7069         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7070         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7071         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7072         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7073         (__WORDSIZE_TIME64_COMPAT32): New macro.
7074
7075 2012-05-21  Andreas Jaeger  <aj@suse.de>
7076
7077         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7078         only if [SHARED]. Add prototype for __wcschr_ia32.
7079
7080 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7081
7082         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7083         of %rbp unmolested in the jmp_buf while mangling the low bits.
7084         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7085         unmolested high bits of %rbp while demangling the low bits.
7086         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7087
7088 2012-05-21  Andreas Jaeger  <aj@suse.de>
7089
7090         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7091         * sunrpc/svc_simple.c: Use it for registerrpc.
7092         * sunrpc/xcrypt.c: Use it for passwd2des.
7093
7094         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7095
7096 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7097
7098         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7099         Don't define if [__SYSCALL_WORDSIZE != 32].
7100         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7101         New macro.
7102
7103 2012-05-21  Bruno Haible  <bruno@clisp.org>
7104             Andreas Jaeger  <aj@suse.de>
7105
7106         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7107         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7108         inptr and inend for must_buffer_ch.
7109         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7110         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7111         * stdio-common/Makefile (tests): Remove bug15.
7112         (bug15-ENV): Remove macro.
7113         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7114         anymore.
7115
7116 2012-05-19  Andreas Jaeger  <aj@suse.de>
7117             Roland McGrath  <roland@hack.frob.com>
7118
7119         * manual/contrib.texi: Completely rewritten. It contains now an
7120         alphabetical list of contributors and their contributions.
7121
7122 2012-05-21  Richard Henderson  <rth@twiddle.net>
7123
7124         * misc/getauxval.c (__getauxval): Use unsigned long int.
7125         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7126         (getauxval): Use unsigned long int.
7127
7128 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7129
7130         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7131
7132 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7133
7134         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7135         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7136         __alignof__ (long double).
7137
7138 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7139
7140         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7141
7142 2012-05-20  Richard Henderson  <rth@twiddle.net>
7143
7144         * misc/getauxval.c: New file.
7145         * misc/sys/auxv.h: New file.
7146         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7147         (routines): Add getauxval.
7148         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7149         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7150         * elf/dl-sysdep.c (_dl_auxv): Remove.
7151         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7152         * elf/dl-support.c (_dl_auxv): New variable.
7153         (_dl_aux_init): Initialize it.
7154         * manual/startup.texi (Auxiliary Vector): New node.
7155         * sysdeps/generic/bits/hwcap.h: New file.
7156         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7157         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7158         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7159         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7160         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7161         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7163         Update.
7164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7165         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7166         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7167         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7168         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7169         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7170         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7171         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7172
7173 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7174
7175         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7176
7177 2012-05-19  David S. Miller  <davem@davemloft.net>
7178
7179         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7180
7181 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7182
7183         [BZ #14123]
7184         * math/s_ccosh.c: Include <float.h>
7185         (__ccosh): Avoid internal overflow calculating sinh and cosh
7186         values before multiplying by sin and cos values.
7187         * math/s_ccoshf.c: Likewise.
7188         * math/s_ccoshl.c: Likewise.
7189         * math/s_csin.c: Likewise.
7190         * math/s_csinf.c: Likewise.
7191         * math/s_csinl.c: Likewise.
7192         * math/s_csinh.c: Likewise.
7193         * math/s_csinhf.c: Likewise.
7194         * math/s_csinhl.c: Likewise.
7195         * math/libm-test.inc (ccos_test): Add more tests.
7196         (ccosh_test): Likewise.
7197         (csin_test): Likewise.
7198         (csinh_test): Likewise.
7199         * sysdeps/i386/fpu/libm-test-ulps: Update.
7200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7201
7202 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7203
7204         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7205         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7206
7207         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7208
7209 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7210
7211         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7212         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7213         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7214         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7215         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7216         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7217         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7218         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7219         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7220         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7221         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7222         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7223         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7224         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7225         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7226         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7227         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7228         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7229         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7230         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7231         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7232         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7233         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7234         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7235         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7236         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7237         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7238         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7239         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7240         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7241         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7242
7243 2012-05-18  Andreas Jaeger  <aj@suse.de>
7244
7245         * csu/.gitignore: Delete.
7246
7247 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7248
7249         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7250         (timex): Use __syscall_slong_t.
7251
7252 2012-05-18  Andreas Jaeger  <aj@suse.de>
7253             Carlos O'Donell  <carlos_odonell@mentor.com>
7254
7255         * manual/install.texi (Configuring and compiling): Update
7256         description about files modified in the source directory.
7257         * INSTALL: Regenerated.
7258
7259 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7260
7261         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7262         value.  Use "or" to set return value to -1.
7263         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7264         negate return value.
7265
7266 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7267
7268         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7269         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7270         failure if the compiler has Graphite support disabled.
7271         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7272         Likewise.
7273         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7274         CFLAGS-memmove.c): Likewise.
7275         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7276         Likewise.
7277
7278 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7279
7280         * sysdeps/x86_64/x32/_itoa.h: New file.
7281
7282         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7283         getdents system call only if kernel and user dirents have the
7284         same d_ino and d_off.
7285
7286         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7287         LLONG_MAX != LONG_MAX.
7288         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7289         (_fitoa_word): Likewise.
7290
7291         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7292         years.
7293         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7294         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7295         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7296
7297         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7298         include <bits/wordsize.h>.  Check __x86_64__ instead of
7299         __WORDSIZE.
7300         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7301         if __x86_64__ is defined.  Use anonymous union on fpstate.
7302
7303         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7304         anonymous union.
7305
7306 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7307
7308         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7309         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7310         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7311         Refer to _rtld_local_ro instead of _rtld_global_ro.
7312         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7313         Likewise.
7314         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7315         Likewise.
7316         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7317         Likewise.
7318         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7319         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7320         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7321
7322         * sysdeps/powerpc/powerpc32/dl-machine.c
7323         (__elf_machine_runtime_setup) [PROF]: Don't reference
7324         _dl_prof_resolve.
7325
7326 2012-05-18  Andreas Jaeger  <aj@suse.de>
7327
7328         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7329         function only available for GCCs before 3.4 since GCC 3.4
7330         introduced a builtin.
7331         (lrint): Likewise.
7332         (llrintf): Likewise.
7333         (llrint): Likewise.
7334         (fmaxf): Likewise.
7335         (fmax): Likewise.
7336         (fminf): Likewise.
7337         (fmin): Likewise.
7338         (rint): Likewise.
7339         (rintf): Likewise.
7340         (nearbyint): Likewise.
7341         (nearbyintf): Likewise.
7342         (ceil): Likewise.
7343         (ceilf): Likewise.
7344         (floor): Likewise.
7345         (floorf): Likewise.
7346
7347 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7348
7349         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7350         on both fields and cast pointer to __syscall_ulong_t.
7351
7352         * bits/types.h (__fsword_t): New type.
7353         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7354         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7355         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7356         (__FSWORD_T_TYPE): Likewise.
7357         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7358         (__FSWORD_T_TYPE): Likewise.
7359         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7360         (__FSWORD_T_TYPE): Likewise.
7361         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7362         (__FSWORD_T_TYPE): Likewise.
7363         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7364         __SWORD_TYPE with __fsword_t.
7365         (statfs64): Likewise.
7366
7367 2012-05-17  David S. Miller  <davem@davemloft.net>
7368
7369         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7370
7371 2012-05-17  Andreas Jaeger  <aj@suse.de>
7372
7373         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7374         warning.
7375
7376 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7377
7378         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7379
7380 2012-05-17  Andreas Jaeger  <aj@suse.de>
7381
7382         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7383         when it is used.
7384
7385 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7386
7387         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7388
7389 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7390
7391         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7392         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7393
7394 2012-05-17  Andreas Jaeger  <aj@suse.de>
7395             Carlos O'Donell  <carlos_odonell@mentor.com>
7396
7397         [BZ #14059]
7398         * sysdeps/x86_64/multiarch/init-arch.h
7399         (bit_YMM_Usable): Rename to...
7400         (bit_AVX_Usable): ... this.
7401         (bit_FMA4_Usable): New macro.
7402         (bit_XMM_state): New macro.
7403         (bit_YMM_state): New macro.
7404         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7405         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7406         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7407         (CPUID_OSXSAVE): New macro.
7408         (CPUID_AVX): New macro.
7409         (CPUID_FMA4): New macro.
7410         (index_YMM_Usable): Rename to...
7411         (index_AVX_Usable): ... this.
7412         (HAS_AVX): Use HAS_ARCH_FEATURE.
7413         (HAS_FMA4): Likewise.
7414         (HAS_YMM_USABLE): Remove.
7415         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7416         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7417         are present.
7418         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7419         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7420         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7421         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7422         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7423
7424 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7425
7426         * math/libm-test.c: Support platforms without multiple rounding modes.
7427         * math/bug-nextafter.c: Support platforms without FP exceptions.
7428         * math/bug-nexttoward.c: Likewise.
7429         * math/test-fenv.c: Likewise.
7430         * math/test-misc.c: Likewise.
7431         * stdlib/bug-getcontext.c: Likewise.
7432
7433 2012-05-17  Andreas Jaeger  <aj@suse.de>
7434
7435         * manual/examples/search.c (critter_cmp): Change signature to
7436         avoid warnings.
7437         * manual/string.texi (Collation Functions): Likewise.
7438
7439 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7440
7441         * bits/types.h: Fold copyright years.
7442         * bits/typesizes.h: Likewise.
7443         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7444         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7445         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7446         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7447         * time/time.h: Likewise.
7448
7449 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7450
7451         [BZ #208]
7452         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7453         in instead of returning them.  Return void.
7454         (__libc_mallinfo): Accumulate over all arenas.
7455         (__malloc_stats): Adjust for change in int_mallinfo interface.
7456
7457 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7458
7459         [BZ #10375]
7460         * configure.in (NM): Add AC_CHECK_TOOL for it.
7461         (libc_extra_cflags): New substituted variable.
7462         Check for -fstack-protector being used implicitly.
7463         * configure: Regenerated.
7464         * config.make.in (config-extra-cflags): New variable,
7465         gets @libc_extra_cflags@.
7466         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7467
7468         [BZ #10375]
7469         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7470         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7471         * configure: Regenerated.
7472         * config.make.in (CPPUNDEFS): New substituted variable.
7473         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7474         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7475         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7476
7477 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7478
7479         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7480         (mq_attr): Use __syscall_slong_t.
7481
7482 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7483
7484         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7485         Check __x86_64__ instead of __WORDSIZE.
7486         (_STAT_VER_LINUX): Likewise.
7487         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7488         __syscall_ulong_t and __syscall_slong_t.
7489         (stat64): Likewise.
7490
7491 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7492
7493         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7494
7495 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7496
7497         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7498
7499 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7500
7501         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7502         __syscall_ulong_t.
7503
7504         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7505         include <bits/wordsize.h>.  Check __x86_64__ instead of
7506         __WORDSIZE.
7507         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7508         defined.
7509         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7510
7511         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7512         include <bits/wordsize.h>.  Check __x86_64__ instead of
7513         __WORDSIZE.
7514         (user_regs_struct): Use "__extension__ unsigned long long"
7515         instead of "unsigned long" if __x86_64__ is defined.
7516         (user): Likewise.  Pad after pointer field if __ILP32__ is
7517         defined.
7518
7519 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7520
7521         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7522         versions 5 to 9.
7523         * configure: Regenerated.
7524         * manual/install.texi (texinfo): Increase version requirement to
7525         4.5 or later.
7526         * INSTALL: Regenerated.
7527
7528         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7529
7530 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7531
7532         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7533
7534         * sysdeps/x86_64/x32/ffs.c: New file.
7535
7536         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7537         __syscall_ulong_t.
7538         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7539         defined.  Use __syscall_ulong_t.
7540         (shminfo): Use __syscall_ulong_t.
7541         (shm_info): Likewise.
7542
7543         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7544         __syscall_ulong_t.
7545
7546         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7547         <bits/wordsize.h>.
7548         (msgqnum_t): Use __syscall_ulong_t.
7549         (msglen_t): Likewise.
7550         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7551         __syscall_ulong_t.
7552
7553         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7554         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7555
7556         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7557
7558         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7559         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7560
7561         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7562         __syscall_slong_t.
7563
7564         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7565         include <bits/wordsize.h>.  Check __x86_64__ instead of
7566         __WORDSIZE.
7567
7568         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7569         "unsigned long long int" if __x86_64__ is defined.
7570         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7571
7572         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7573         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7574         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7575
7576         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7577         <stdint.h>.
7578         (GET_PC): Cast to uintptr_t first.
7579         (GET_FRAME): Likewise.
7580         (GET_STACK): Likewise.
7581
7582         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7583         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7584         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7585         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7586         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7587         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7588         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7589         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7590         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7591         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7592         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7593         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7594         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7595         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7596         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7597         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7598         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7599         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7600         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7601         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7602         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7603         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7604         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7605         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7606         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7607         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7608         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7609         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7610         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7611
7612 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7613
7614         * Makerules (+depfiles): Also collect depfiles from .oS in
7615         $(extra-objs).
7616         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7617         .oS, $(libnldbl-routines)).
7618
7619         * Makerules (native-compile-mkdep-flags): Define.
7620         * sunrpc/Makefile (extra-objs): Add $(addprefix
7621         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7622         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7623         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7624         calling $(make-target-directory).
7625
7626 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7627
7628         * bits/types.h (__snseconds_t): Removed.
7629         * time/time.h (struct timespec): Replace __snseconds_t with
7630         __syscall_slong_t.
7631         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7632         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7633         Likewise.
7634         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7635         (__SNSECONDS_T_TYPE): Likewise.
7636         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7637         (__SNSECONDS_T_TYPE): Likewise.
7638         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7639         (__SNSECONDS_T_TYPE): Likewise.
7640
7641 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7642
7643         * sysdeps/mach/hurd/bits/typesizes.h
7644         (__SYSCALL_SLONG_TYPE): New macro.
7645         (__SYSCALL_ULONG_TYPE): Likewise.
7646
7647 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7648
7649         * bits/types.h (__syscall_slong_t): New type.
7650         (__syscall_ulong_t): Likewise.
7651
7652         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7653         (__SYSCALL_ULONG_TYPE): Likewise.
7654         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7655         (__SYSCALL_SLONG_TYPE): Likewise.
7656         (__SYSCALL_ULONG_TYPE): Likewise.
7657         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7658         (__SYSCALL_SLONG_TYPE): Likewise.
7659         (__SYSCALL_ULONG_TYPE): Likewise.
7660         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7661         (__SYSCALL_SLONG_TYPE): Likewise.
7662         (__SYSCALL_ULONG_TYPE): Likewise.
7663
7664 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7665
7666         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7667         Add sigaltstack-offsets.sym.
7668         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7669         <sigaltstack-offsets.h>.
7670         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7671         longjmp_msg pointer.
7672         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7673         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7674         signal stack.
7675         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7676
7677 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7678
7679         * elf/stackguard-macros.h: Remove file.
7680         * sysdeps/generic/stackguard-macros.h: New file.
7681         * sysdeps/i386/stackguard-macros.h: Likewise.
7682         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7683         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7684         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7685         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7686         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7687         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7688         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7689         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7690         <elf/stackguard-macros.h>.
7691
7692         [BZ #14109]
7693         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7694         __aligned__ in attribute.
7695         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7696         (gregset_t): Likewise.
7697
7698 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7699
7700         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7701         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7702         * sysdeps/x86_64/x32/Implies-after: New file.
7703
7704 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7705
7706         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7707         and access return value for _dl_profile_fixup.  Use R10_LP to
7708         load frame size.
7709
7710 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7711
7712         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7713
7714 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7715
7716         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7717         * sysdeps/x86_64/x32/sysdep.h: New file.
7718
7719 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7720
7721         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7722         * sysdeps/x86_64/setjmp.S: Likewise.
7723
7724 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7725
7726         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7727         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7728         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7729         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7730         remove unused global constant.
7731
7732 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7733
7734         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7735         include of <not-cancel.h>.
7736
7737 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7738
7739         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7740
7741 2012-05-15  Jeff Law  <law@redhat.com>
7742             Andreas Jaeger  <aj@suse.de>
7743
7744         [BZ #13594]
7745         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7746         out from...
7747         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7748         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7749         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7750         code changing __hst_map_handle.map.
7751
7752 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7753
7754         * configure.in (sysnames): Look for Implies-before and Implies-after
7755         files.
7756         * configure: Regenerated.
7757
7758 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7759
7760         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7761         8-byte data alignment with LP_SIZE alignment.
7762
7763 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7764
7765         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7766         into R10_LP.
7767
7768 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7769
7770         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7771
7772 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7773
7774         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7775         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7776         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7777         Likewise.
7778         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7779
7780 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7781
7782         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7783         (stackinfo_sub_sp): Likewise.
7784
7785 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7786
7787         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7788         RAX_LP.
7789
7790 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7791
7792         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7793         into R*_LP.
7794
7795 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7796
7797         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7798         sizes into R*_LP.
7799
7800 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7801
7802         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7803
7804 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7805
7806         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7807         into R11_LP and load __x86_64_shared_cache_size_half into
7808         R8_LP.
7809
7810 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7811
7812         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7813         R8_LP.
7814
7815 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7816
7817         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7818         logb for POWER7.
7819         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7820         logbf for POWER7.
7821         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7822         logbl for POWER7.
7823         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7824         powerpc32/power7/fpu/s_logb.c via #include.
7825         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7826         powerpc32/power7/fpu/s_logbf.c via #include.
7827         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7828         powerpc32/power7/fpu/s_logbl.c via #include.
7829
7830 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7831
7832         * README.libm: Remove file.
7833
7834 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7835
7836         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7837         count for x32.  Use R*_LP and omit operand-size suffix.
7838
7839 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7840
7841         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7842         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7843         * sysdeps/x86_64/x32/shlib-versions: New file.
7844
7845 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7846
7847         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7848         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7849         Use _dl_fatal_printf instead.
7850
7851 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7852
7853         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7854         set if not set by the user.  Do not allow for being unset.
7855         * sysdeps/unix/sysv/linux/configure: Regenerated.
7856
7857 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7858
7859         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7860         the `q' suffix from lea and replace .quad with ASM_ADDR.
7861
7862 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7863
7864         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7865         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7866         instead of $17.
7867         (PTR_DEMANGLE): Likewise.
7868
7869 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7870
7871         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7872         (LP_OP): Likewise.
7873         (ASM_ADDR): Likewise.
7874         (RAX_LP): Likewise.
7875         (RBP_LP): Likewise.
7876         (RBX_LP): Likewise.
7877         (RCX_LP): Likewise.
7878         (RDI_LP): Likewise.
7879         (RSI_LP): Likewise.
7880         (RSP_LP): Likewise.
7881         (R8_LP): Likewise.
7882         (R9_LP): Likewise.
7883         (R10_LP): Likewise.
7884         (R10_LP): Likewise.
7885         (R11_LP): Likewise.
7886         (R12_LP): Likewise.
7887         (R13_LP): Likewise.
7888         (R14_LP): Likewise.
7889         (R15_LP): Likewise.
7890
7891 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7892
7893         * sysdeps/x86_64/x32/dl-machine.h: New file.
7894
7895 2012-05-14  Andreas Jaeger  <aj@suse.de>
7896
7897         * manual/Makefile (subdir): Remove export of subdir.
7898         (all): Remove target.
7899         (.PHONY): Remove all from list.
7900         (mkinstalldirs): Remove.
7901         (.PHONY): Remove installdirs from list.
7902         ($(inst_infodir)/libc.info): Use make-target-directory.
7903         (installdirs): Remove.
7904         (subdir_%): Remove.
7905         (glibc-targets): Remove.
7906         (lib): Remove.
7907         (stubs): Remove.
7908         ($(objpfx)stubs ../po/manual.pot): Remove.
7909         ($(objpfx)stamp%): Remove.
7910         (make-target-directory): Remove.
7911         (subdir_install): Remove.
7912         (routines): Remove.
7913         (aux): Remove.
7914         (sources): Remove.
7915         (objects): Remove.
7916         (headers): Remove.
7917
7918         [BZ #13750]
7919         * manual/.gitignore: Remove, it's not needed anymore.
7920         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
7921         all files in it.
7922         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7923         directory.
7924         (texis): Renamed to $(objpfx)texis.
7925         (texis-path): New, contains path to generated files.
7926         (chapters.%): Use texis-path for complete path, add extra argument
7927         libc-texinfo.sh.
7928         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7929         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7930         (summary,texi, stamp-summary): Use complete path of
7931         files. Generate files in build dir.
7932         (dir-add.texi): Build in build dir.
7933         (libm-err.texi,stamp-libm-err): Likewise.
7934         (version.texi, stamp-version): Likewise.
7935         (.%c.texi): Likewise.
7936         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7937         (mostlyclean): Remove target.
7938         (realclean): Remove target.
7939         (generated): Add new variable with contents from mostlyclean and
7940         realclean, remove entries duplicated in common-mostlyclean, add
7941         stamp-libm-err and stamp-version.
7942         (generated-dirs): Add libc directory.
7943         ($(inst_infodir)/libc.info): Install files from build dir.
7944
7945         * manual/install.texi (Configuring and compiling): Adjust since
7946         the info files are not part of the tar ball anymore.
7947
7948 2012-05-14  Andreas Jaeger  <aj@suse.de>
7949
7950         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7951         variable.
7952
7953 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7954
7955         [BZ #13717]
7956         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7957         to 2.2.0 where earlier.
7958         * sysdeps/unix/sysv/linux/configure: Regenerated.
7959         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7960         Remove conditional code.
7961         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7962         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7963         Remove conditional code.
7964         [!__NR_lchown]: Likewise.
7965         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7966         [__NR_lchown]: Likewise.
7967         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7968         comment referencing __ASSUME_LCHOWN_SYSCALL.
7969         * sysdeps/unix/sysv/linux/i386/sigaction.c
7970         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7971         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7972         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7973         Remove conditional code.
7974         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7975         (__protocol_available): Remove #if 0 code.
7976         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7977         conditional code.
7978         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7979         * sysdeps/unix/sysv/linux/kernel-features.h
7980         (__ASSUME_GETCWD_SYSCALL): Don't define.
7981         (__ASSUME_REALTIME_SIGNALS): Likewise.
7982         (__ASSUME_PREAD_SYSCALL): Likewise.
7983         (__ASSUME_PWRITE_SYSCALL): Likewise.
7984         (__ASSUME_POLL_SYSCALL): Likewise.
7985         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7986         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7987         non-SPARC.
7988         (__ASSUME_SIOCGIFNAME): Don't define.
7989         (__ASSUME_MSG_NOSIGNAL): Likewise.
7990         (__ASSUME_SENDFILE): Define unconditionally.
7991         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7992         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7993         conditional code.
7994         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7995         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7996         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7997         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7998         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7999         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8000         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8002         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8003         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8005         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8006         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8008         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8009         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8011         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8012         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8014         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8015         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8017         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8018         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8020         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8021         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8023         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8024         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8025         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8026         Remove conditional code.
8027         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8028         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8029         Remove conditional code.
8030         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8031         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8032         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8033         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8034         Remove conditional code.
8035         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8036         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8037         Remove conditional code.
8038         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8039         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8040         Remove conditional code.
8041         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8042         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8043         Remove conditional code.
8044         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8045         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8046         Remove conditional code.
8047         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8048         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8049         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8050         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8051         * sysdeps/unix/sysv/linux/sigaction.c
8052         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8053         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8054         * sysdeps/unix/sysv/linux/sigpending.c
8055         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8056         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8057         * sysdeps/unix/sysv/linux/sigprocmask.c
8058         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8059         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8060         * sysdeps/unix/sysv/linux/sigsuspend.c
8061         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8062         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8063         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8064         (__libc_missing_rt_sigs): Remove.
8065         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8066         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8067         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8068         Remove conditional code.
8069         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8070         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8071         return 1.
8072         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8073         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8074         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8075         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8076
8077 2012-05-14  Andreas Jaeger  <aj@suse.de>
8078
8079         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8080         it's not used in glibc.
8081         (__coshm1): Likewise.
8082         (__acosh1p): Likewise.
8083         (__sgn): Likewise.
8084
8085         * manual/string.texi (Copying and Concatenation): Add missing
8086         variable in concat example.
8087         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8088
8089 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8090
8091         [BZ #14103]
8092         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8093         __builtin_clzl with __builtin_clzll.
8094
8095 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8096
8097         [BZ #14104]
8098         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8099         libc_freeres_ptr.
8100
8101 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8102
8103         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8104         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8105         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8106         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8107
8108 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8109
8110         * NEWS: Update ia64 info.
8111
8112 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8113
8114         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8115         used as bcopy.
8116
8117 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8118
8119         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8120         * sysdeps/unix/syscalls.list (dup3): Likewise.
8121         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8122         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8123
8124 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8125
8126         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8127         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8128
8129 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8130
8131         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8132         thread pointer.
8133         (TLS_IE): Use mov/add instead of movq/addq to load thread
8134         pointer.
8135         (TLS_GD_PREFIX): New.
8136         (TLS_GD): Use it.
8137
8138 2012-05-11  David S. Miller  <davem@davemloft.net>
8139
8140         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8141         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8142         (_FPU_SETCW): Likewise.
8143
8144 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8145
8146         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8147         is 32-byte aligned.
8148
8149 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8150
8151         [BZ #11837]
8152         * iconvdata/gb18030.c: Update tables.
8153         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8154         characters specially.
8155         (BODY for TO_LOOP): Add encoding of missing ranges.
8156
8157 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8158
8159         [BZ #13673]
8160         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8161         * sysdeps/mach/hurd/dup3.c: Likewise.
8162         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8163         * sysdeps/powerpc/memmove.c:: Likewise.
8164
8165 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8166
8167         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8168         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8169
8170 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8171
8172         * elf/elf.h (R_X86_64_RELATIVE64): New.
8173         (R_X86_64_NUM): Updated.
8174         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8175         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8176         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8177         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8178         tst-quad1pie tst-quad2pie
8179         (modules-names): Add tst-quadmod1 tst-quadmod2.
8180         ($(objpfx)tst-quad1): New dependency.
8181         ($(objpfx)tst-quad2): Likewise.
8182         ($(objpfx)tst-quad1pie): Likewise.
8183         ($(objpfx)tst-quad2pie): Likewise.
8184         * sysdeps/x86_64/tst-quad1.c: New file.
8185         * sysdeps/x86_64/tst-quad1pie.c: New file.
8186         * sysdeps/x86_64/tst-quad2.c: Likewise.
8187         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8188         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8189         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8190         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8191         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8192
8193 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8194
8195         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8196         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8197         * streams/stropts.h (t_scalar_t): Define type.
8198
8199         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8200         (_PATH_PRESERVE): Set to "/var/lib".
8201         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8202
8203         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8204         instead of int.
8205
8206         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8207         if __dir_mkfile succeeded.
8208
8209         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8210         checking for _hurd_dtablesize.  Unlock it right after having
8211         finished _hurd_dtable allocation.
8212
8213 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8214
8215         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8216         * sysdeps/mach/hurd/configure: Regenerated.
8217         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8218         special-casing to...
8219         * sysdeps/gnu/configure.in: ... this new file.
8220         * sysdeps/unix/sysv/linux/configure: Regenerated.
8221         * sysdeps/gnu/configure: New generated file.
8222
8223         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8224         for Linux: use nsec instead of usec, as well as:
8225         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8226         members of type struct timespec.
8227         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8228         New macros.
8229         (struct stat64): Likewise.
8230         (_STATBUF_ST_NSEC): New macro.
8231         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8232
8233         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8234         __strtoul_internal rather than strtoul.
8235
8236 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8237
8238         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8239         and reject them.
8240
8241 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8242
8243         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8244         which preserves existing values.
8245         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8246
8247 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8248
8249         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8250         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8251         greater than FD_SETSIZE.
8252
8253 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8254
8255         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8256         allocated, call __vm_protect to finish enabling the existing space, and
8257         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8258         allocate the remainder.
8259
8260 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8261
8262         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8263         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8264
8265 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8266
8267         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8268         sysdeps/mach/hurd/readlink.c.
8269
8270         * posix/tst-sysconf.c (posix_options): Only use
8271         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8272         _POSIX_SYNCHRONIZED_IO when they are defined
8273         * sysdeps/mach/hurd/bits/posix_opt.h:
8274         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8275         (_XOPEN_REALTIME): Undefine macro.
8276         (_XOPEN_REALTIME_THREADS): Undefine macro.
8277         (_XOPEN_SHM): Undefine macro.
8278         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8279         macro to -1.
8280         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8281         macro to -1.
8282         (_POSIX_ASYNC_IO): Undefine macro.
8283         (_POSIX_PRIORITIZED_IO): Undefine macro.
8284         (_POSIX_SPIN_LOCKS): Define macro to -1.
8285
8286         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8287         SA_NODEFER, SA_RESETHAND.
8288         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8289         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8290         F_DUPFD_CLOEXEC.
8291
8292 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8293
8294         * elf/Makefile (pldd-modules): Define unconditionally.
8295
8296 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8297
8298         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8299
8300 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8301
8302         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8303         Return ENOENT when name is empty.
8304         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8305
8306 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8307
8308         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8309
8310         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8311
8312 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8313
8314         Fix mlock in all cases except non-readable pages.
8315         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8316         instead of VM_PROT_ALL as parameter to __vm_wire function.
8317
8318         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8319         (__mkdir): When path is `/', just fail with EEXIST.
8320         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8321
8322 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8323
8324         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8325         <sys/uio.h> (for writev).
8326         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8327         and <sys/param.h> (for MIN).
8328
8329 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8330
8331         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8332         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8333         if interrupted.
8334
8335 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8336
8337         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8338         Depend on against $(link-rpcuserlibs).
8339
8340 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8341
8342         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8343         (__libc_stack_end): Do not use attribute_relro.
8344         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8345         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8346         to libthread-provided value.
8347         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8348         attribute_relro.
8349
8350 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8351
8352         [BZ #3748]
8353         * bits/libc-lock.h (__libc_once_get): New macro.
8354         * sysdeps/mach/bits/libc-lock.h: Likewise.
8355         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8356         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8357         instead of using implementation details.
8358
8359         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8360         * libio/freopen.c: Likewise.
8361         * libio/freopen64.c: Likewise.
8362         * misc/syslog.c: Likewise.
8363         * nscd/connections.c: Likewise.
8364         * nscd/netgroupcache.c: Likewise.
8365         * sysdeps/posix/getcwd.c: Likewise.
8366
8367 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8368
8369         * math/w_ilogbf.c: Add #include <limits.h>.
8370
8371 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8372
8373         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8374         path instead of returning without unlocking.
8375
8376         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8377         immediate-write ioctls.
8378         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8379
8380 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8381
8382         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8383         __builtin_frame_address instead of making assumptions about the
8384         location of the return address relative to DATA.  Force early load of
8385         the return address.
8386         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8387         __builtin_frame_address.
8388
8389         dup3 for GNU Hurd.
8390         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8391         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8392         implement dup3 and do some further code clean-ups.
8393         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8394         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8395
8396 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8397
8398         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8399
8400         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8401         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8402         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8403         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8404         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8405         d->port.lock.
8406
8407         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8408         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8409         when handler == SIG_ERR, not when handler != SIG_ERR.
8410
8411 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8412
8413         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8414         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8415         definitions.
8416
8417         accept4 for GNU Hurd.
8418         * include/sys/socket.h (__libc_accept4): New prototype.
8419         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8420         to implement __libc_accept4.
8421         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8422         __libc_accept4.
8423         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8424
8425         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8426         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8427         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8428         signal-defines.sym.
8429
8430 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8431
8432         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8433
8434 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8435
8436         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8437         assertion on O_CLOEXEC flag.
8438         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8439         * hurd/intern-fd.c: Likewise.
8440         * hurd/port2fd.c: Likewise.
8441
8442 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8443
8444         [BZ #3906]
8445         * bits/in.h (IPV6_PKTINFO): Define new macro.
8446         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8447
8448 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8449
8450         [BZ #13954]
8451         [BZ #13955]
8452         [BZ #13956]
8453         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8454         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8455         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8456         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8457         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8458         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8459         * math/libm-test.inc (logb_test) : Additional logb tests.
8460
8461 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8462             Andreas Jaeger  <aj@suse.de>
8463
8464         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8465         * configure: Regenerated.
8466         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8467         * config.make.in (link-obsolete-rpc): New substituted variable.
8468         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8469         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8470         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8471         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8472         so that libc.a contains the symbols.
8473         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8474         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8475         * sunrpc/auth_none.c: Likewise.
8476         * sunrpc/auth_unix.c: Likewise.
8477         * sunrpc/authdes_prot.c: Likewise.
8478         * sunrpc/authuxprot.c: Likewise.
8479         * sunrpc/clnt_gen.c: Likewise.
8480         * sunrpc/clnt_perr.c: Likewise.
8481         * sunrpc/clnt_raw.c: Likewise.
8482         * sunrpc/clnt_simp.c: Likewise.
8483         * sunrpc/clnt_tcp.c: Likewise.
8484         * sunrpc/clnt_udp.c: Likewise.
8485         * sunrpc/clnt_unix.c: Likewise.
8486         * sunrpc/des_crypt.c: Likewise.
8487         * sunrpc/des_soft.c: Likewise.
8488         * sunrpc/get_myaddr.c: Likewise.
8489         * sunrpc/key_call.c: Likewise.
8490         * sunrpc/key_prot.c: Likewise.
8491         * sunrpc/netname.c: Likewise.
8492         * sunrpc/pm_getmaps.c: Likewise.
8493         * sunrpc/pm_getport.c: Likewise.
8494         * sunrpc/pmap_clnt.c: Likewise.
8495         * sunrpc/pmap_prot.c: Likewise.
8496         * sunrpc/pmap_prot2.c: Likewise.
8497         * sunrpc/pmap_rmt.c: Likewise.
8498         * sunrpc/publickey.c: Likewise.
8499         * sunrpc/rpc_cmsg.c: Likewise.
8500         * sunrpc/rpc_common.c: Likewise.
8501         * sunrpc/rpc_dtable.c: Likewise.
8502         * sunrpc/rpc_prot.c: Likewise.
8503         * sunrpc/rpc_thread.c: Likewise.
8504         * sunrpc/rtime.c: Likewise.
8505         * sunrpc/svc.c: Likewise.
8506         * sunrpc/svc_auth.c: Likewise.
8507         * sunrpc/svc_raw.c: Likewise.
8508         * sunrpc/svc_run.c: Likewise.
8509         * sunrpc/svc_tcp.c: Likewise.
8510         * sunrpc/svc_udp.c: Likewise.
8511         * sunrpc/svc_unix.c: Likewise.
8512         * sunrpc/svcauth_des.c: Likewise.
8513         * sunrpc/xcrypt.c: Likewise.
8514         * sunrpc/xdr.c: Likewise.
8515         * sunrpc/xdr_array.c: Likewise.
8516         * sunrpc/xdr_float.c: Likewise.
8517         * sunrpc/xdr_intXX_t.c: Likewise.
8518         * sunrpc/xdr_mem.c: Likewise.
8519         * sunrpc/xdr_rec.c: Likewise.
8520         * sunrpc/xdr_ref.c: Likewise.
8521         * sunrpc/xdr_sizeof.c: Likewise.
8522         * sunrpc/xdr_stdio.c: Likewise.
8523
8524 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8525
8526         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8527         change.  Update copyright years.
8528
8529 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8530
8531         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8532
8533 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8534             Joseph Myers  <joseph@codesourcery.com>
8535             Paul Pluzhnikov  <ppluzhnikov@google.com>
8536
8537         [BZ #14012]
8538         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8539         requiring rpcgen.
8540         [cross-compiling] (extra-libs): Likewise.
8541         [cross-compiling] (extra-libs-others): Likewise.
8542         [cross-compiling] (librpcsvc-routines): Likewise.
8543         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8544         [cross-compiling] (omit-deps): Likewise.
8545         (sunrpc-CPPFLAGS): New variable.
8546         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8547         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8548         (cross-rpcgen-objs): New variable.
8549         (extra-objs): Append $(cross-rpcgen-objs).
8550         ($(cross-rpcgen-objs)): New rule.
8551         ($(objpfx)cross-rpcgen): Likewise.
8552         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8553         comment.
8554         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8555         ($(objpfx)x%.stmp): Likewise.
8556         * sunrpc/proto.h [IS_IN_build] (_): Define.
8557         [IS_IN_build] (_libc_intl_domainname): Likewise.
8558
8559 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8560
8561         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8562         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8563         and R_X86_64_TPOFF64.
8564
8565 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8566
8567         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8568         sysdeps/unix/sysv/syscalls.list.
8569         (stime): Likewise.
8570         (utime): Likewise.
8571         * sysdeps/unix/sysv/syscalls.list: Remove file.
8572
8573 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8574
8575         [BZ #3440]
8576         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8577         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8578         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8579         (__LC_IDENTIFICATION): Make these macros useful in #if
8580         expressions, as required by C99.
8581
8582 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8583
8584         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8585         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8586         after this.
8587
8588 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8589
8590         * stdlib/longlong.h: Updated from GCC.
8591
8592 2012-05-09  Andreas Jaeger  <aj@suse.de>
8593
8594         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8595         default is first entry.
8596         (run_mode): Set type.
8597         (main): Remove informal message about syslog.
8598         (options): Fix typo.
8599
8600         [BZ #14053]
8601         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8602         to asm.
8603         (lrint): Likewise.
8604         (llrintf): Likewise.
8605         (llrint): Likewise.
8606         (rint): Likewise.
8607         (rintf): Likewise.
8608         (nearbyint): Likewise.
8609         (nearbyintf): Likewise.
8610
8611 2012-05-09  Andreas Jaeger  <aj@suse.de>
8612             Pedro Alves  <palves@redhat.com>
8613
8614         * nscd/nscd.c (run_mode): Use enum.
8615         (main): Cleanup coding style issue.
8616
8617 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8618             Andreas Jaeger  <aj@suse.de>
8619
8620         * nscd/nscd.c (go_background): Replaced with...
8621         (run_mode): ... this.
8622         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8623         (options): Add -F --foreground.
8624         (main): Implement it.
8625         (parse_opt): Parse it.
8626
8627 2012-05-09  Andreas Jaeger  <aj@suse.de>
8628
8629         [BZ #14083]
8630         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8631         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8632         -Wconversion warning.
8633         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8634         Likewise.
8635
8636 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8637
8638         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8639         == 0.
8640         (LC_ALL): Use macro-int-constant.
8641         (LC_COLLATE): Likewise.
8642         (LC_CTYPE): Likewise.
8643         (LC_MESSAGES): Likewise.
8644         (LC_MONETARY): Likewise.
8645         (LC_NUMERIC): Likewise.
8646         (LC_TIME): Likewise.
8647         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8648         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8649         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8650         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8651         Specify type.
8652         [C99-based standards] (float_t): Expect type.
8653         [C99-based standards] (double_t): Expect type.
8654         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8655         type.
8656         [C99-based standards] (HUGE_VALL): Likewise.
8657         [C99-based standards] (INFINITY): Likewise.
8658         [C99-based standards] (NAN): Likewise.
8659         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8660         [C99-based standards] (FP_NAN): Likewise.
8661         [C99-based standards] (FP_NORMAL): Likewise.
8662         [C99-based standards] (FP_SUBNORMAL): Likewise.
8663         [C99-based standards] (FP_ZERO): Likewise.
8664         [C99-based standards] (FP_FAST_FMA): Use
8665         optional-macro-int-constant.  Specify type.  Require == 1.
8666         [C99-based standards] (FP_FAST_FMAF): Likewise.
8667         [C99-based standards] (FP_FAST_FMAL): Likewise.
8668         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8669         [C99-based standards] (FP_ILOGBNAN): Likewise.
8670         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8671         Specify type.
8672         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8673         [C99-based standards] (math_errhandling): Specify type.
8674         [ISO99 || ISO11] (signgam): Do not allow.
8675         [non-C99-based standards] (copysignf): Do not allow.
8676         [non-C99-based standards] (exp2f): Likewise.
8677         [non-C99-based standards] (log2f): Likewise.
8678         [non-C99-based standards] (modff): Allow.
8679         [non-C99-based standards] (erff): Do not allow.
8680         [non-C99-based standards] (erfcf): Likewise.
8681         [non-C99-based standards] (gammaf): Likewise.
8682         [non-C99-based standards] (hypotf): Likewise.
8683         [non-C99-based standards] (j0f): Likewise.
8684         [non-C99-based standards] (j1f): Likewise.
8685         [non-C99-based standards] (jnf): Likewise.
8686         [non-C99-based standards] (lgammaf): Likewise.
8687         [non-C99-based standards] (tgammaf): Likewise.
8688         [non-C99-based standards] (y0f): Likewise.
8689         [non-C99-based standards] (y1f): Likewise.
8690         [non-C99-based standards] (ynf): Likewise.
8691         [non-C99-based standards] (isnanf): Likewise.
8692         [non-C99-based standards] (acoshf): Likewise.
8693         [non-C99-based standards] (asinhf): Likewise.
8694         [non-C99-based standards] (atanhf): Likewise.
8695         [non-C99-based standards] (cbrtf): Likewise.
8696         [non-C99-based standards] (expm1f): Likewise.
8697         [non-C99-based standards] (ilogbf): Likewise.
8698         [non-C99-based standards] (log1pf): Likewise.
8699         [non-C99-based standards] (logbf): Likewise.
8700         [non-C99-based standards] (nextafterf): Likewise.
8701         [non-C99-based standards] (remainderf): Likewise.
8702         [non-C99-based standards] (rintf): Likewise.
8703         [non-C99-based standards] (scalbf): Likewise.
8704         [non-C99-based standards] (copysignl): Likewise.
8705         [non-C99-based standards] (exp2l): Likewise.
8706         [non-C99-based standards] (log2l): Likewise.
8707         [non-C99-based standards] (modfl): Allow.
8708         [non-C99-based standards] (erfl): Do not allow.
8709         [non-C99-based standards] (erfcl): Likewise.
8710         [non-C99-based standards] (gammal): Likewise.
8711         [non-C99-based standards] (hypotl): Likewise.
8712         [non-C99-based standards] (j0l): Likewise.
8713         [non-C99-based standards] (j1l): Likewise.
8714         [non-C99-based standards] (jnl): Likewise.
8715         [non-C99-based standards] (lgammal): Likewise.
8716         [non-C99-based standards] (tgammal): Likewise.
8717         [non-C99-based standards] (y0l): Likewise.
8718         [non-C99-based standards] (y1l): Likewise.
8719         [non-C99-based standards] (ynl): Likewise.
8720         [non-C99-based standards] (isnanl): Likewise.
8721         [non-C99-based standards] (acoshl): Likewise.
8722         [non-C99-based standards] (asinhl): Likewise.
8723         [non-C99-based standards] (atanhl): Likewise.
8724         [non-C99-based standards] (cbrtl): Likewise.
8725         [non-C99-based standards] (expm1l): Likewise.
8726         [non-C99-based standards] (ilogbl): Likewise.
8727         [non-C99-based standards] (log1pl): Likewise.
8728         [non-C99-based standards] (logbl): Likewise.
8729         [non-C99-based standards] (nextafterl): Likewise.
8730         [non-C99-based standards] (remainderl): Likewise.
8731         [non-C99-based standards] (rintl): Likewise.
8732         [non-C99-based standards] (scalbl): Likewise.
8733         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8734         [non-C99-based standards] (FP_*): Do not allow.
8735         [C99-based standards] (FP_*): Change to
8736         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8737         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8738         allow.
8739         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8740         (SIG_ERR): Likewise.
8741         [X/Open-based standards] (SIG_HOLD): Likewise.
8742         (SIG_IGN): Likewise.
8743         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8744         positive value.
8745         (SIGFPE): Likewise.
8746         (SIGILL): Likewise.
8747         (SIGINT): Likewise.
8748         (SIGSEGV): Likewise.
8749         (SIGTER): Likewise.
8750         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8751         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8752         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8753         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8754         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8755         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8756         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8757         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8758         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8759         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8760         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8761         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8762         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8763         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8764         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8765         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8766         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8767         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8768         [X/Open-based standards] (SIGTRAP): Likewise.
8769         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8770         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8771         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8772         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8773         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8774         allow.
8775
8776 2012-05-08  Ian Wienand  <ianw@vmware.com>
8777
8778         [BZ #14080]
8779         * time/tzset.c (__tzset_parse_tz): Update default rules for
8780         daylight time changes in the Energy Policy Act of 2005.
8781
8782 2012-05-09  Andreas Jaeger  <aj@suse.de>
8783
8784         [BZ #13983]
8785         * elf/ldconfig.c (parse_conf): Change string to make clear that
8786         ldconfig only issued a warning if ld.so.conf does not exist.
8787
8788 2012-05-08  David S. Miller  <davem@davemloft.net>
8789
8790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8791         movxtod instead of popping the value on the stack.
8792
8793         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8794
8795 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8796
8797         * config.h.in: Add HAVE_ARM_PCS_VFP.
8798
8799 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8800
8801         [BZ #13979]
8802         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8803         checking but the checks are disabled for any reason.
8804
8805 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8806
8807         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8808         and ELF64_R_TYPE with ELFW(R_TYPE).
8809
8810 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8811
8812         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8813         (ulimit): Likewise.
8814
8815         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8816         (settimeofday): Likewise.
8817
8818 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8819
8820         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8821         a struct th_u2 inside the union, and move tu_block/tu_code into
8822         a new th_u3 union of tu_block/tu_code inside of that.  Move
8823         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8824         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8825         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8826         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8827         (th_stuff): Change to th_u1.tu_stuff.
8828         (th_data): Define.
8829         (th_msg): Change to th_u1.th_u2.tu_data.
8830
8831 2012-05-07  David S. Miller  <davem@davemloft.net>
8832
8833         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8834
8835         [BZ #14074]
8836         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8837         (SETUP_PIC_REG): Use it.
8838         (SETUP_PIC_REG_LEAF): Use it.
8839
8840 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8841
8842         [BZ #13885]
8843         [BZ #13923]
8844         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8845         USE_AS_EXPM1L.
8846         (EXPL_FINITE): Likewise.
8847         (FLDLOG): Likewise.
8848         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8849         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8850         e_expl.S.
8851         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8852         USE_AS_EXPM1L.
8853         (EXPL_FINITE): Likewise.
8854         (FLDLOG): Likewise.
8855         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8856         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8857         e_expl.S.
8858         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8859         test of -max_value argument for long double.
8860         * sysdeps/i386/fpu/libm-test-ulps: Update.
8861         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8862
8863 2012-05-06  David S. Miller  <davem@davemloft.net>
8864
8865         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8866         quad soft-float symbols whose references which are compiler
8867         generated.
8868         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8869
8870 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8871
8872         [BZ #13884]
8873         [BZ #13914]
8874         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8875         USE_AS_EXP10L.
8876         (EXPL_FINITE): Likewise.
8877         (FLDLOG): Likewise.
8878         (c0): Likewise.
8879         (c1): Likewise.
8880         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8881         Adjust comments for base varying.
8882         (__expl_finite): Change alias to EXPL_FINITE.
8883         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8884         e_expl.S.
8885         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8886         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8887         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8888         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8889         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8890         USE_AS_EXP10L.
8891         (EXPL_FINITE): Likewise.
8892         (FLDLOG): Likewise.
8893         (c0): Likewise.
8894         (c1): Likewise.
8895         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8896         Adjust comments for base varying.
8897         (__expl_finite): Change alias to EXPL_FINITE.
8898         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
8899         tests for bugs.
8900         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8901
8902         [BZ #14064]
8903         * math/libm-test.inc (check_float_internal): Correct ulp
8904         calculation for subnormal expected results.
8905
8906 2012-05-06  Andreas Jaeger  <aj@suse.de>
8907
8908         * Makeconfig (+math-flags): New, set to -frounding-math.
8909         (+cflags): Add +math-flags so that all of glibc gets compiled with
8910         it.
8911
8912         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
8913
8914 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
8915
8916         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
8917         Disable one test.
8918
8919         [BZ #13787]
8920         [BZ #13922]
8921         [BZ #14036]
8922         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8923         (__ieee754_expl): Allow for and saturate large arguments.
8924         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8925         (u_threshold): Likewise.
8926         (__exp): Call __ieee754_exp before checking for overflow and
8927         underflow.
8928         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8929         (u_threshold): Likewise.
8930         (__expf): Call __ieee754_expf before checking for overflow and
8931         underflow.
8932         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8933         (u_threshold): Likewise.
8934         (__expl): Call __ieee754_expl before checking for overflow and
8935         underflow.
8936         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8937         (__ieee754_expl): Allow for and saturate large arguments.
8938         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8939         missing overflow exception on overflow.
8940         (expm1_test): Do not allow missing overflow exception on overflow.
8941
8942         * sysdeps/i386/fpu/e_expl.c: Move to ...
8943         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8944         rather than using inline asm.
8945         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8946         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8947         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8948
8949         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8950         (nice): Likewise.
8951         (poll): Likewise.
8952         (signal): Likewise.
8953         (time): Likewise.
8954         (times): Likewise.
8955
8956 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8957
8958         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8959         sysdeps/unix/common/syscalls.list.
8960         (fchmod): Likewise.
8961         (fchown): Likewise.
8962         (ftruncate): Likewise.
8963         (getrusage): Likewise.
8964         (gettimeofday): Likewise.
8965         (setpgid): Likewise.
8966         (setregid): Likewise.
8967         (setreuid): Likewise.
8968         (sigaction): Likewise.
8969         (truncate): Likewise.
8970         (vhangup): Likewise.
8971         * sysdeps/unix/common/syscalls.list: Remove file.
8972         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8973         * sysdeps/unix/sysv/linux/Implies: Likewise.
8974
8975 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8976
8977         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8978         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8979         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8980         Moved to ...
8981         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8982         Here.
8983         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8984         to ...
8985         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8986         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8987         to ...
8988         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8989         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8990         to ...
8991         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8992         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8993         to ...
8994         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8995         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8996         to ...
8997         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8998         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8999         to ...
9000         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9001         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9002         to ...
9003         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9004         Here.
9005         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9006         to ...
9007         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9008         Here.
9009         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9010         to ...
9011         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9012         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9013         Moved to ...
9014         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9015         Here.
9016         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9017         to ...
9018         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9019
9020 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9021
9022         * sysdeps/unix/common/bits/dirent.h: Remove file.
9023         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9024
9025         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9026         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9027         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9028         * sysdeps/unix/bsd/isatty.c: Likewise.
9029         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9030         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9031         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9032
9033 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9034
9035         [BZ #13563]
9036         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9037         long double comparison inaccuracies.
9038         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9039         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9040
9041 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9042
9043         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9044         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9045
9046 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9047
9048         [BZ #14049]
9049         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9050         nonzero digits before rounding a hex value.
9051         * stdlib/tst-strtod.c (tests): Add another test.
9052
9053 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9054
9055         * sysdeps/s390/fpu/libm-test-ulps: Update.
9056
9057 2012-05-03  Andreas Jaeger  <aj@suse.de>
9058
9059         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9060         does not get optimized out.
9061         (malloc_opt_barrier): New.
9062
9063 2012-05-03  Andreas Jaeger  <aj@suse.de>
9064             Roland McGrath  <roland@hack.frob.com>
9065
9066         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9067         intermediate file deletion.
9068         (generated): Add .symlist files.
9069
9070 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9071
9072         [BZ #13775]
9073         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9074         Redirect under this condition.
9075         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9076         [__USE_GNU] (__dprintf_chk): Not under this condition.
9077         [__USE_GNU] (__vdprintf_chk): Likewise.
9078         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9079         under this condition.
9080         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9081         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9082         [__USE_XOPEN2K8] (vdprintf): Likewise.
9083         [__USE_GNU] (__dprintf_chk): Not under this condition.
9084         [__USE_GNU] (__vdprintf_chk): Likewise.
9085         [__USE_GNU] (dprintf): Likewise.
9086         [__USE_GNU] (vdprintf): Likewise.
9087
9088 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9089
9090         * elf/Makefile (common-generated): Set this instead of generated for
9091         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9092         $(all-built-dso)-derived lists.
9093
9094 2012-05-03  Andreas Jaeger  <aj@suse.de>
9095
9096         * sysdeps/i386/fpu/libm-test-ulps: Update.
9097
9098         * FAQ: Removed.
9099         * FAQ.in: Likewise.
9100         * scripts/gen-FAQ.pl: Likewise.
9101         * manual/install.texi (Installation): Point to online location of
9102         FAQ.
9103         * Makefile (files-for-dist): Remove FAQ.
9104         (FAQ): Remove.
9105
9106 2012-05-02  Allan McRae  <allan@archlinux.org>
9107
9108         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9109         (LDFLAGS-reldepmod5.so): Likewise.
9110         (LDFLAGS-reldep6mod1.so): Likewise.
9111         (LDFLAGS-reldep6mod4.so): Likewise.
9112         (LDFLAGS-reldep8mod3.so): Likewise.
9113         (LDFLAGS-unload4mod1.so): Likewise.
9114         (LDFLAGS-unload4mod2.so): Likewise.
9115         (LDFLAGS-tst-initorder): Likewise.
9116         (LDFLAGS-tst-initordera2.so): Likewise.
9117         (LDFLAGS-tst-initordera3.so): Likewise.
9118         (LDFLAGS-tst-initordera4.so): Likewise.
9119         (LDFLAGS-tst-initorderb2.so): Likewise.
9120         (LDFLAGS-noload): Likewise.
9121         (LDFLAGS-next): Likewise.
9122         (LDFLAGS-order2mod1.so): Likewise.
9123         (LDFLAGS-order2mod2.so): Likewise.
9124         (LDFLAGS-tst-initorder2): Likewise.
9125         (LDFLAGS-tst-initorder2a.so): Likewise.
9126         (LDFLAGS-tst-initorder2b.so): Likewise.
9127         (LDFLAGS-tst-initorder2c.so): Likewise.
9128         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9129
9130 2012-05-02  David S. Miller  <davem@davemloft.net>
9131
9132         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9133
9134 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9135
9136         [BZ #14055]
9137         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9138
9139 2012-05-02  Andreas Jaeger  <aj@suse.de>
9140
9141         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9142         since we manipulate rounding mode.
9143         (CPPFLAGS-test-idouble.c): Likewise.
9144         (CPPFLAGS-test-ifloat.c): Likewise.
9145         (CFLAGS-test-ldouble.c): Likewise.
9146         (CFLAGS-test-double.c): Likewise.
9147         (CFLAGS-test-float.c): Likewise.
9148         (CFLAGS-test-misc.c): Likewise.
9149         (CFLAGS-test-test-fenv.c): Likewise.
9150
9151 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9152
9153         [BZ #2550]
9154         [BZ #2570]
9155         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9156         comparisons to determine direction to adjust input.
9157
9158 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9159
9160         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9161         output to the target.
9162
9163         * scripts/localplt.awk: New file.
9164         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9165         (check-localplt-CFLAGS): Variable removed.
9166         ($(all-built-dso:=.jmprel)): New static pattern rule.
9167         (generated): Add those targets.
9168         (localplt-built-dso): New variable.
9169         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9170
9171         * elf/check-localplt.c: File removed.
9172
9173         * scripts/check-execstack.awk: New file.
9174         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9175         (check-execstack-CFLAGS): Variable removed.
9176         ($(objpfx)check-execstack.h): Target removed.
9177         ($(objpfx)execstack-default): New target.
9178         (generated): Add that instead of check-execstack.h.
9179         ($(all-built-dso:=.phdr)): New static pattern rule.
9180         (generated): Add those targets.
9181         * elf/check-execstack.c: File removed.
9182
9183         * scripts/check-textrel.awk: New file.
9184         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9185         (check-textrel-CFLAGS): Variable removed.
9186         (all-built-dso): Use := to define.o
9187         ($(all-built-dso:=.dyn)): New static pattern rule.
9188         (generated): Add those targets.
9189         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9190         * config.make.in (READELF): New substituted variable.
9191         * elf/check-textrel.c: File removed.
9192
9193 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9194
9195         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9196         allow.
9197         * conform/data/ctype.h-data [C99-based standards] (isblank):
9198         Expect function.
9199         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9200         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9201         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9202         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9203         Specify type.  Require positive value.
9204         (EILSEQ): Likewise.
9205         (ERANGE): Likewise.
9206         [ISO || POSIX] (EILSEQ): Do not expect.
9207         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9208         Specify type.  Require positive value.
9209         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9210         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9211         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9212         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9213         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9214         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9215         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9216         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9217         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9218         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9219         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9220         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9221         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9222         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9223         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9224         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9225         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9226         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9227         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9228         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9229         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9230         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9231         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9232         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9233         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9234         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9235         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9236         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9237         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9238         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9239         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9240         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9241         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9242         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9243         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9244         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9245         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9246         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9247         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9248         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9249         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9250         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9251         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9252         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9253         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9254         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9255         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9256         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9257         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9258         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9259         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9260         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9261         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9262         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9263         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9264         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9265         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9266         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9267         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9268         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9269         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9270         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9271         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9272         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9273         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9274         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9275         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9276         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9277         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9278         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9279         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9280         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9281         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9282         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9283         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9284         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9285         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9286         Require >= 2.
9287         (FLT_ROUNDS): Expect as macro, not constant.
9288         (FLT_MANT_DIG): Use macro-int-constant.
9289         (DBL_MANT_DIG): Likewise.
9290         (LDBL_MANT_DIG): Likewise.
9291         (FLT_DIG): Likewise.
9292         (DBL_DIG): Likewise.
9293         (LDBL_DIG): Likewise.
9294         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9295         (DBL_MIN_EXP): Likewise.
9296         (LDBL_MIN_EXP): Likewise.
9297         (FLT_MAX_EXP): Use macro-int-constant.
9298         (DBL_MAX_EXP): Likewise.
9299         (LDBL_MAX_EXP): Likewise.
9300         (FLT_MAX_10_EXP): Likewise.
9301         (DBL_MAX_10_EXP): Likewise.
9302         (LDBL_MAX_10_EXP): Likewise.
9303         (FLT_MAX): Use macro-constant.
9304         (DBL_MAX): Likewise.
9305         (LDBL_MAX): Likewise.
9306         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9307         (DBL_EPSILON): Likewise.
9308         (LDBL_EPSILON): Likewise.
9309         (FLT_MIN): Likewise.
9310         (DBL_MIN): Likewise.
9311         (LDBL_MIN): Likewise.
9312         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9313         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9314         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9315         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9316         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9317         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9318         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9319         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9320         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9321         [ISO11] (FLT_TRUE_MIN): Likewise.
9322         [ISO11] (LDBL_TRUE_MIN): Likewise.
9323         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9324         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9325         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9326         (SCHAR_MAX): Likewise.
9327         (UCHAR_MAX): Likewise.
9328         (CHAR_MIN): Likewise.
9329         (CHAR_MAX): Likewise.
9330         (MB_LEN_MAX): Use macro-int-constant.
9331         (SHRT_MIN): Use macro-int-constant.  Specify type.
9332         (SHRT_MAX): Likewise.
9333         (USHRT_MAX): Likewise.
9334         (INT_MAX): Likewise.
9335         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9336         bound negative.
9337         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9338         bound with "U".
9339         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9340         bound with "L".
9341         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9342         bound negative.  Suffix upper bound with "L".
9343         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9344         bound with "UL".
9345         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9346         Specify type.
9347         [C99-based standards] (LLONG_MAX): Likewise.
9348         [C99-based standards] (ULLONG_MAX): Likewise.
9349         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9350         == 0.
9351         [ISO11] (max_align_t): Require type.
9352         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9353
9354         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9355         from $CFLAGS, without defining away __attribute__ calls.
9356         (checknamespace): Use $CFLAGS_namespace.
9357
9358         * conform/conformtest.pl (@keywords): Only include C99 keywords
9359         for standards based on C99 or C11.
9360
9361         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9362         Disable tests.
9363         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9364         UNIX98]: Likewise.
9365
9366         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9367         usability of symbols in #if.
9368
9369         * conform/conformtest.pl: If macro or constant types start
9370         "promoted:", expect the symbol to be of the following type
9371         promoted by the integer promotions.
9372
9373         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9374         in one place.  Also handle "macro-constant".
9375
9376         * conform/conformtest.pl: Only accept expected macro values with
9377         "==".  Parse all "macro" lines in one place.
9378         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9379
9380         * conform/conformtest.pl: Handle braced types on "constant" lines
9381         instead of handling "typed-constant".
9382         * conform/data/signal.h-data: Use "constant" instead of
9383         "typed-constant".
9384
9385         * conform/conformtest.pl: Handle "optional-" at start of lines in
9386         one place rather than duplicating several cases.  Handle each
9387         format of "macro" line with initial "optional-".
9388
9389         * conform/conformtest.pl: Only accept expected constant or
9390         optional-constant values with "==".  Parse all "constant" lines in
9391         one place.  Parse all "optional-constant" lines in one place.
9392         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9393         * conform/data/fmtmsg.h-data: Likewise.
9394         * conform/data/netinet/in.h-data: Likewise.
9395         * conform/data/tar.h-data: Likewise.
9396         * conform/data/limits.h-data: Use "==" form on "constant" and
9397         "optional-constant" lines.
9398
9399         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9400         Use -std=c99 for XOPEN2K.
9401         (@knownproblems): Remove.
9402         (newtoken): Don't check %isknown.
9403
9404         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9405         Do not expect macro.
9406         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9407         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9408         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9409         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9410         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9411         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9412         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9413         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9414         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9415         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9416         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9417         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9418         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9419         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9420         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9421         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9422         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9423         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9424         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9425         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9426         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9427         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9428         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9429         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9430         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9431         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9432         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9433         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9434         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9435         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9436         [XPG3] (acosh): Likewise.
9437         [XPG3] (asinh): Likewise.
9438         [XPG3] (atanh): Likewise.
9439         [XPG3] (cbrt): Likewise.
9440         [XPG3] (expm1): Likewise.
9441         [XPG3] (ilogb): Likewise.
9442         [XPG3] (log1p): Likewise.
9443         [XPG3] (logb): Likewise.
9444         [XPG3] (nextafter): Likewise.
9445         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9446         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9447         [XPG3] (remainder): Likewise.
9448         [XPG3] (rint): Likewise.
9449         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9450         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9451         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9452         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9453         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9454         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9455         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9456         [UNIX98 || XOPEN2K] (scalb): Expect.
9457         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9458         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9459         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9460         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9461         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9462         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9463         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9464         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9465         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9466         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9467         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9468         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9469         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9470         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9471         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9472         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9473         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9474         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9475         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9476         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9477         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9478         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9479         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9480         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9481         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9482         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9483         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9484         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9485         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9486         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9487         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9488         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9489         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9490         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9491         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9492         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9493         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9494         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9495         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9496         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9497         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9498         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9499         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9500         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9501         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9502         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9503         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9504         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9505         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9506         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9507         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9508         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9509         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9510         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9511         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9512         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9513         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9514         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9515         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9516         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9517         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9518         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9519         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9520         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9521         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9522         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9523         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9524         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9525         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9526         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9527         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9528         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9529         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9530         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9531         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9532         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9533         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9534         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9535         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9536         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9537         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9538         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9539         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9540         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9541         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9542         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9543         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9544         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9545         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9546         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9547         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9548         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9549         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9550         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9551         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9552         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9553         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9554         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9555         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9556         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9557         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9558         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9559         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9560         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9561         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9562         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9563         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9564         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9565         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9566         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9567         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9568         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9569         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9570         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9571         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9572         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9573         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9574         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9575         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9576         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9577         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9578         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9579         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9580         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9581         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9582         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9583         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9584         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9585         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9586         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9587         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9588         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9589         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9590         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9591         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9592         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9593         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9594
9595         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9596         _XOPEN_SOURCE_EXTENDED for XPG4.
9597
9598         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9599
9600         * Makeconfig (localtime): Remove variable.
9601         (inst_localtime-file): Likewise.
9602
9603 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9604
9605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9606         Update.
9607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9608         Update.
9609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9610         Update.
9611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9612         Update.
9613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9614         Update.
9615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9616         Update.
9617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9618         Update.
9619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9620         Update.
9621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9622         Update.
9623
9624 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9625
9626         [BZ #2550]
9627         [BZ #2570]
9628         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9629         comparisons to determine direction to adjust input.
9630         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9631         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9632         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9633         Likewise.
9634         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9635         Likewise.
9636         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9637         Likewise.
9638         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9639         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9640         Likewise.
9641         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9642         Likewise.
9643         * math/libm-test.inc (nexttoward_test): Add more tests.
9644
9645 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9646
9647         [BZ #14040]
9648         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9649         in version GLIBC_2.1, not GLIBC_2.0.
9650         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9651         Likewise.
9652
9653 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9654
9655         [BZ #13942]
9656         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9657         (1 - x) * (1 + x).
9658         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9659         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9660         * math/libm-test.inc (acos_test): Add more tests.
9661         (asin_test): Likewise.
9662         * sysdeps/i386/fpu/libm-test-ulps: Update.
9663         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9664
9665         [BZ #14034]
9666         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9667         of square root.
9668         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9669         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9670         * math/libm-test.inc (acos_test_tonearest): New function.
9671         (acos_test_towardzero): Likewise.
9672         (acos_test_downward): Likewise.
9673         (acos_test_upward): Likewise.
9674         (asin_test_tonearest): Likewise.
9675         (asin_test_towardzero): Likewise.
9676         (asin_test_downward): Likewise.
9677         (asin_test_upward): Likewise.
9678         (main): Call the new functions.
9679         * sysdeps/i386/fpu/libm-test-ulps: Update.
9680         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9681
9682         [BZ #13884]
9683         [BZ #13924]
9684         * math/e_exp10.c: Include <float.h>.
9685         (__ieee754_exp10): Handle underflow here rather than multiplying
9686         large negative argument by M_LN10.
9687         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9688         of __ieee754_expf.
9689         * math/e_exp10l.c: Include <float.h>.
9690         (__ieee754_exp10l): Handle underflow here rather than multiplying
9691         large negative argument by M_LN10l.
9692         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9693         spurious overflow exception on underflow.
9694
9695 2012-04-29  Marek Polacek  <polacek@redhat.com>
9696
9697         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9698         (__fortify_function): New macro.
9699         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9700         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9701         __extern_always_inline.
9702         * libio/bits/stdio2.h: Likewise.
9703         * libio/bits/stdio.h: Likewise.
9704         * string/string.h: Likewise.
9705         * string/bits/string3.h: Likewise.
9706         * include/stdio.h: Likewise.
9707         * stdlib/bits/stdlib.h: Likewise.
9708         * stdlib/stdlib.h: Likewise.
9709         * rt/bits/mqueue2.h: Likewise.
9710         * rt/mqueue.h: Likewise.
9711         * posix/bits/unistd.h: Likewise.
9712         * posix/unistd.h: Likewise.
9713         * io/bits/poll2.h: Likewise.
9714         * io/bits/fcntl2.h: Likewise.
9715         * io/fcntl.h: Likewise.
9716         * io/sys/poll.h: Likewise.
9717         * misc/bits/syslog.h: Likewise.
9718         * misc/bits/syslog-ldbl.h: Likewise.
9719         * misc/sys/syslog.h: Likewise.
9720         * socket/bits/socket2.h: Likewise.
9721         * socket/sys/socket.h: Likewise.
9722         * debug/tst-chk1.c: Likewise.
9723         * wcsmbs/bits/wchar2.h: Likewise.
9724         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9725         * wcsmbs/wchar.h: Likewise.
9726
9727 2012-04-29  Andreas Jaeger  <aj@suse.de>
9728
9729         * Makerules (tests): Remove enable-check-abi protection.
9730         (check-abi-warn): Remove.
9731         (check-abi-%): Remove check-abi-warn usage.
9732
9733         * configure.in: Remove check-abi configure option.
9734         * configure: Regenerated.
9735         * config.make.in (enable-check-abi): Remove.
9736
9737 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9738
9739         [BZ #14033]
9740         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9741         double functions to double *_finite functions.
9742
9743         [BZ #13941]
9744         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9745         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9746         LDBL_MIN_EXP.
9747         * stdio-common/Makefile (tests): Add tst-sprintf3.
9748         * stdio-common/tst-sprintf3.c: New file.
9749
9750         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9751         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9752
9753 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9754
9755         * conform/conformtest.pl: Remove duplicate typed-constant
9756         handling.
9757
9758 2012-04-28  David S. Miller  <davem@davemloft.net>
9759
9760         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9761         (check-abi-%): Remove AWK script prerequisite and explicit
9762         abilist directory.
9763         (check-abi): Rewrite to just diff the symlist with the abilist.
9764         (config-tls, config-abi-config): Delete, no longer used.
9765         (update-abi-%): Remove AWK script and explicit abilist directory.
9766         (update-abi): Rewrite to simply compare and conditionally copy the
9767         symlist and the sysdep abilist file.  Remove update-abi-config
9768         checks.
9769         * abilist/ld.abilist: Remove.
9770         * abilist/libBrokenLocale.abilist: Remove.
9771         * abilist/libanl.abilist: Remove.
9772         * abilist/libcrypt.abilist: Remove.
9773         * abilist/libdl.abilist: Remove.
9774         * abilist/librt.abilist: Remove.
9775         * abilist/libthread_db.abilist: Remove.
9776         * abilist/libutil.abilist: Remove.
9777         * scripts/extract-abilist.awk: Remove.
9778         * scripts/merge-abilist.awk: Remove.
9779         * sysdeps/generic/libcidn.abilist: New file.
9780         * sysdeps/generic/libnss_compat.abilist: New file.
9781         * sysdeps/generic/libnss_db.abilist: New file.
9782         * sysdeps/generic/libnss_dns.abilist: New file.
9783         * sysdeps/generic/libnss_files.abilist: New file.
9784         * sysdeps/generic/libnss_hesiod.abilist: New file.
9785         * sysdeps/generic/libnss_nis.abilist: New file.
9786         * sysdeps/generic/libnss_nisplus.abilist: New file.
9787         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9788         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9789         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9790         file.
9791         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9792         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9793         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9794         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9795         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9796         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9797         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9798         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9799         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9800         file.
9801         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9802         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9803         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9804         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9805         file.
9806         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9807         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9808         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9809         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9810         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9811         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9812         file.
9813         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9814         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9815         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9816         file.
9817         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9818         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9819         New file.
9820         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9821         New file.
9822         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9823         New file.
9824         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9825         New file.
9826         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9827         New file.
9828         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9829         New file.
9830         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9831         New file.
9832         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9833         New file.
9834         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9835         New file.
9836         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9837         New file.
9838         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9839         New file.
9840         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9841         New file.
9842         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9843         New file.
9844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9845         file.
9846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9847         New file.
9848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9849         New file.
9850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9851         file.
9852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9853         New file.
9854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9855         New file.
9856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9857         file.
9858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9859         New file.
9860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9861         New file.
9862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9863         New file.
9864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9865         New file.
9866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9867         New file.
9868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9869         New file.
9870         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9871         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9872         file.
9873         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9874         New file.
9875         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9876         file.
9877         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9878         file.
9879         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9880         file.
9881         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9882         file.
9883         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9884         file.
9885         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9886         New file.
9887         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9888         file.
9889         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9890         file.
9891         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9892         New file.
9893         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9894         file.
9895         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
9896         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
9897         file.
9898         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
9899         New file.
9900         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
9901         file.
9902         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
9903         file.
9904         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
9905         file.
9906         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
9907         file.
9908         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
9909         file.
9910         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9911         New file.
9912         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
9913         file.
9914         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
9915         file.
9916         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
9917         New file.
9918         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
9919         file.
9920         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9921         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9922         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9923         file.
9924         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9925         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9926         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9927         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9928         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9929         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9930         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9931         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9932         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9933         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9934         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9935         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9936         file.
9937         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9938         New file.
9939         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9940         file.
9941         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9942         file.
9943         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9944         file.
9945         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9946         file.
9947         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9948         file.
9949         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9950         New file.
9951         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9952         New file.
9953         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9954         file.
9955         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9956         New file.
9957         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9958         file.
9959         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9960         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9961         file.
9962         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9963         New file.
9964         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9965         file.
9966         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9967         file.
9968         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9969         file.
9970         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9971         file.
9972         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9973         file.
9974         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9975         New file.
9976         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9977         New file.
9978         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9979         file.
9980         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9981         New file.
9982         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9983         file.
9984
9985 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9986
9987         * conform/conformtest.pl: Fix typo in handling typed-constant from
9988         allow-header.
9989
9990 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9991
9992         * README: Cut down references to pre-2.6 Linux kernels and
9993         Linuxthreads.  Update lists of configurations in libc and ports
9994         and sort alphabetically.  Say "or newer" with Linux kernel version
9995         requirements.
9996
9997         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9998
9999 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10000
10001         [BZ #887]
10002         * math/libm-test.inc (logb_test_downward): New test to expose
10003         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10004         rounding mode.
10005
10006 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10007
10008         [BZ #14027]
10009         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10010         to be done.
10011         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10012         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10013
10014 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10015
10016         * sysdeps/unix/i386/brk.S: Remove file.
10017         * sysdeps/unix/i386/dl-brk.S: Likewise.
10018         * sysdeps/unix/i386/pipe.S: Likewise.
10019         * sysdeps/unix/i386/sigreturn.S: Likewise.
10020         * sysdeps/unix/i386/syscall.S: Likewise.
10021         * sysdeps/unix/i386/vfork.S: Likewise.
10022         * sysdeps/unix/i386/wait.S: Likewise.
10023
10024         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10025         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10026
10027         * configure.in (arm*-none*): Do not allow without
10028         --enable-hacker-mode.
10029         (netbsd*): Remove case setting base_os.
10030         (386bsd*): Likewise.
10031         (freebsd*): Likewise.
10032         (bsdi*): Likewise.
10033         (osf*): Likewise.
10034         (sunos*): Likewise.
10035         (ultrix*): Likewise.
10036         (newsos*): Likewise.
10037         (dynix*): Likewise.
10038         (*bsd*): Likewise.
10039         (sysv*): Likewise.
10040         (isc*): Likewise.
10041         (esix*): Likewise.
10042         (sco*): Likewise.
10043         (minix*): Likewise.
10044         (irix4*): Likewise.
10045         (irix6*): Likewise.
10046         (solaris[2-9]*): Likewise.
10047         (none): Likewise.
10048         * configure: Regenerated.
10049
10050 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10051
10052         [BZ #11521]
10053         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10054         overflow or cancellation in calculating denominator.
10055         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10056         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10057         down expression to avoid unexpected rounding in newer GCCs.
10058         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10059
10060 2012-04-26  David S. Miller  <davem@davemloft.net>
10061
10062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10063         long-double compat symbols.
10064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10069         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10070         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10071         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10072         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10073         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10074         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10075         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10076         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10077
10078 2012-04-25  David S. Miller  <davem@davemloft.net>
10079
10080         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10081         HWCAP_* values only after the memory barriers have been defined.
10082         (atomic_full_barrier): Define.
10083         (atomic_read_barrier): Define.
10084         (atomic_write_barrier): Define.
10085
10086 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10087
10088         * shlib-versions: Add libgcc_s version information.
10089         * sysdeps/generic/libgcc_s.h: Remove.
10090         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10091         libgcc_s.h.
10092         * sysdeps/gnu/unwind-resume.c: Likewise.
10093         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10094
10095 2012-04-25  David S. Miller  <davem@davemloft.net>
10096
10097         * sysdeps/unix/sparc/brk.S: Delete.
10098         * sysdeps/unix/sparc/dl-brk.S: Delete.
10099         * sysdeps/unix/sparc/pipe.S: Delete.
10100         * sysdeps/unix/sparc/sysdep.S: Delete.
10101         * sysdeps/unix/sparc/sysdep.h: Delete.
10102         * sysdeps/unix/sparc/vfork.S: Delete.
10103         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10104         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10105         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10106         ret_ERRVAL, r0, r1, MOVE): Define.
10107         (JUMPTARGET): Remove.
10108         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10109         sysdeps/unix/sparc/sysdep.h
10110         (ENTRY, END): Remove.
10111         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10112
10113 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10114
10115         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10116         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10117         -DIS_IN_build.
10118
10119         * timezone/README: Update upstream location and email address for
10120         tzcode and tzdata.
10121         * timezone/zdump.c: Update from tzcode 2012b.
10122         * timezone/zic.c: Likewise.
10123
10124         * configure.in (libc_cv_as_needed): Remove test.
10125         * configure: Regenerated.
10126         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10127         conditional definition.
10128         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10129         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10130         * config.make.in (have-as-needed): Remove variable.
10131
10132 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10133             Paul Pluzhnikov  <ppluzhnikov@google.com>
10134
10135         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10136         strings correctly.
10137
10138 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10139
10140         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10141         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10142         * sysdeps/sh/strlen.S: Likewise.
10143
10144 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10145
10146         * sysdeps/unix/fork.S: Remove file.
10147         * sysdeps/unix/i386/fork.S: Likewise.
10148         * sysdeps/unix/sparc/fork.S: Likewise.
10149
10150         * sysdeps/unix/system.c: Remove file.
10151         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10152
10153         * sysdeps/unix/getegid.S: Remove file.
10154         * sysdeps/unix/geteuid.S: Likewise.
10155
10156 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10157
10158         * scripts/check-localplt.awk: New file.
10159         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10160         of diff.
10161         * scripts/data/localplt-generic.data: Add a comment.
10162
10163         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10164         NODE when __dir_mkfile failed.
10165         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10166         Reported by Ludovic Courtès <ludo@gnu.org>.
10167
10168 2012-04-24  Andreas Jaeger  <aj@suse.de>
10169
10170         * Makerules (common-clean): Also remove gen-as-const-headers
10171         files.
10172
10173 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10174
10175         * Makerules (native-compile): Do not change working directory for
10176         build.  Use $(OUTPUT_OPTION) in command.
10177         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10178
10179 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10180
10181         [BZ #13886]
10182         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10183         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10184         * math/libm-test.inc (floor_test): Add more tests.
10185         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10186
10187 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10188
10189         * sysdeps/unix/getdents.c: Remove file.
10190         * sysdeps/unix/sysv/getdents.c: Likewise.
10191         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10192
10193         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10194         sysdeps/unix/mman/syscalls.list.
10195         (mmap): Likewise.
10196         (mprotect): Likewise.
10197         (msync): Likewise.
10198         (munmap): Likewise.
10199         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10200         * sysdeps/unix/mman/syscalls.list: Remove.
10201         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10202
10203         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10204         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10205         * configure: Regenerated.
10206         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10207         $(libgcc_s_suffix).
10208         * config.make.in (libgcc_s_suffix): Remove variable.
10209
10210 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10211
10212         * sysdeps/unix/sysv/gethostname.c: Move to ...
10213         * sysdeps/posix/gethostname.c: ... here.
10214
10215         * sysdeps/unix/execve.S: Remove file.
10216
10217         * sysdeps/unix/_exit.S: Remove file.
10218
10219 2012-04-23  Andreas Jaeger  <aj@suse.de>
10220
10221         [BZ #13739]
10222         * manual/Makefile: Remove make dist support, there's no
10223         need for a stand-alone documentation tar ball.
10224         (TEXI2DVI): Define always, it's not in Makeconfig.
10225         (dist): Removed.
10226         (tar-it): Removed.
10227         (edition): Removed.
10228         (glibc-doc-$(edition).tar): Removed
10229         (%.Z): Removed.
10230         (%.gz): Removed.
10231         (%.uu): Removed.
10232         (ETAGS): Remove, it's in Makeconfig.
10233         (move-if-change): Remove, it's in Makeconfig.
10234
10235 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10236
10237         [BZ #13970]
10238         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10239         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10240         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10241         (strtod_l, strtof_l, strtold_l): Remove __wur.
10242         It is not necessarily an error to ignore strtol's return value.
10243         One can reliably look at the stored endptr to decide whether
10244         the number had valid syntax.
10245
10246 2012-04-21  Andreas Jaeger  <aj@suse.de>
10247
10248         [BZ #13739]
10249         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10250
10251 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10252
10253         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10254         * sysdeps/unix/sysv/Versions: Remove file.
10255
10256 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10257
10258         [BZ #13927]
10259         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10260
10261 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10262
10263         [BZ #7064]
10264         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10265         version from __vm86.
10266
10267 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10268
10269         * sysdeps/unix/common/lxstat.c: Remove file.
10270         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10271
10272         * sysdeps/unix/sysv/Makefile: Remove file.
10273
10274         * sysdeps/unix/sysv/direct.h: Remove file.
10275
10276         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10277         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10278         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10279         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10280         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10281         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10282         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10283
10284         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10285
10286         * sysdeps/unix/xmknod.c: Remove file.
10287         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10288
10289         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10290
10291         * sysdeps/unix/sysv/i386/time.S: Remove file.
10292
10293         * sysdeps/unix/fxstat.c: Remove file.
10294         * sysdeps/unix/xstat.c: Likewise.
10295         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10296
10297         * sysdeps/unix/sysv/sigaction.c: Remove file.
10298
10299         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10300         (sysdep_headers): Remove variable.
10301         [termio.h not in sysdep_headers] (generated): Likewise.
10302         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10303         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10304         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10305         * sysdeps/unix/sysv/tcflow.c: Likewise.
10306         * sysdeps/unix/sysv/tcflush.c: Likewise.
10307         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10308         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10309         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10310         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10311         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10312
10313         * sysdeps/unix/siglist.c: Remove file.
10314
10315         * sysdeps/unix/getppid.S: Remove file.
10316
10317         * sysdeps/unix/mkdir.c: Remove file.
10318         * sysdeps/unix/rmdir.c: Likewise.
10319
10320 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10321
10322         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10323         ERR_MAX value.
10324         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10325         errlist-compat value.
10326
10327 2012-04-18  David S. Miller  <davem@davemloft.net>
10328
10329         * sysdeps/generic/memcopy.h (reg_char): Delete.
10330         * debug/strcat_chk.c: Use char, not reg_char.
10331         * debug/strcpy_chk.c: Likewise.
10332         * debug/strncat_chk.c: Likewise.
10333         * debug/strncpy_chk.c: Likewise.
10334         * string/memchr.c: Likewise.
10335         * string/memrchr.c: Likewise.
10336         * string/rawmemchr.c: Likewise.
10337         * string/strcat.c: Likewise.
10338         * string/strchr.c: Likewise.
10339         * string/strchrnul.c: Likewise.
10340         * string/strcmp.c: Likewise.
10341         * string/strcpy.c: Likewise.
10342         * string/strncat.c: Likewise.
10343         * string/strncmp.c: Likewise.
10344         * string/strncpy.c: Likewise.
10345
10346 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10347
10348         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10349         __builtin_memcopy is called when src and dest ranges are known to not
10350         overlap.
10351
10352 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10353
10354         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10355         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10356         fwd_align_merge macro call.
10357         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10358         bwd_align_merge macro call.
10359         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10360
10361 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10362
10363         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10364         bwd_align_merge macros.
10365         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10366         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10367         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10368
10369 2012-04-18  David S. Miller  <davem@davemloft.net>
10370
10371         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10372
10373 2012-04-18  Andreas Jaeger  <aj@suse.de>
10374
10375         [BZ# 6794]
10376         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10377         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10378         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10379
10380         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10381         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10382         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10383
10384         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10385         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10386         Adjust for changed ldbl-128 files.
10387
10388         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10389         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10390         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10391
10392 2012-04-17  David S. Miller  <davem@davemloft.net>
10393
10394         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10395
10396 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10397
10398         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10399         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10400         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10401         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10402         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10403         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10404
10405 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10406
10407         [BZ #6794]
10408         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10409         * math/libm-test.inc: Add ilogb errno and exception tests.
10410         * math/w_ilogb.c: New file: ilogb wrapper.
10411         * math/w_ilogbf.c: New file: ilogbf wrapper.
10412         * math/w_ilogbl.c: New file: ilogbl wrapper.
10413         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10414         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10415         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10416         exception being thrown with 0.0 as argument.
10417         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10418         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10419         exception being thrown with 0.0 as argument.
10420         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10421         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10422         exception being thrown with 0.0 as argument.
10423         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10424         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10425         exception being thrown with 0.0 as argument.
10426         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10427         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10428         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10429         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10430         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10431         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10432         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10433         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10434         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10435
10436 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10437
10438         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10439         with altivec.
10440
10441 2012-04-16  Marek Polacek  <polacek@redhat.com>
10442
10443         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10444
10445 2012-04-16  Marek Polacek  <polacek@redhat.com>
10446
10447         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10448         operands of fdivp instruction.
10449
10450 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10451
10452         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10453         * elf/tst-auditmod3b.c: Likewise.
10454         * elf/tst-auditmod4b.c: Likewise.
10455         * elf/tst-auditmod5b.c: Likewise.
10456         * elf/tst-auditmod6b.c: Likewise.
10457         * elf/tst-auditmod6c.c: Likewise.
10458         * elf/tst-auditmod7b.c: Likewise.
10459         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10460         * sysdeps/x86_64/preconfigure.in: Likewise.
10461         * sysdeps/x86_64/preconfigure: Regenerated.
10462
10463 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10464
10465         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10466         __ILP32__.
10467
10468 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10469
10470         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10471         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10472
10473 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10474
10475         [BZ #13973]
10476         * locale/iso-639.def: Fix gl language name. Spotted by
10477         Yaron Shahrabani.
10478
10479 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10480
10481         [BZ #2074]
10482         * libio/libio.h (__io_write_fn): Update comment.
10483
10484 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10485
10486         [BZ #2074]
10487         * stdio.texi (Hook Functions): The user provided writer function
10488         is not allowed to return -1.
10489
10490 2012-04-11  David S. Miller  <davem@davemloft.net>
10491
10492         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10493
10494 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10495
10496         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10497         Add a leading slash to rtkaio.
10498
10499 2012-04-11  Jim Meyering  <meyering@redhat.com>
10500
10501         [BZ #11959]
10502         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10503         It is not necessarily an error to ignore fwrite's return
10504         value.  One can reliably use ferror to test for errors after
10505         the fact.
10506
10507 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10508
10509         * bits/types.h (__snseconds_t): New type.
10510         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10511
10512         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10513         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10514         (__SNSECONDS_T_TYPE): Likewise.
10515         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10516         (__SNSECONDS_T_TYPE): Likewise.
10517         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10518         (__SNSECONDS_T_TYPE): Likewise.
10519
10520 2012-04-10  Andreas Jaeger  <aj@suse.de>
10521
10522         [BZ #2636]
10523         * manual/time.texi (Processor Time): Return type of times is
10524         elapsed real time since an arbitrary point in the past.
10525         (CPU Time): Move CLK_TCK from here...
10526         (Processor Time): ...to here.  Correct description.
10527         * manual/conf.texi (Constants for Sysconf): Correct description of
10528         _SC_CLK_TCK.
10529
10530 2012-04-10  David S. Miller  <davem@davemloft.net>
10531
10532         [BZ #13967]
10533         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10534         where the is a gap between DT_REL(A) and DT_JMPREL.
10535
10536 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10537
10538         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10539         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10540         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10541
10542 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10543
10544         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10545         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10546         (dl_main): Handle --inhibit-cache.
10547         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10548         _dl_inhibit_cache.
10549         * elf/dl-load.c (_dl_map_object): Use it.
10550         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10551
10552 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10553
10554         [BZ #13872]
10555         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10556         (__ieee754_powl): Saturate large exponents rather than testing for
10557         overflow of y*log2(x).
10558         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10559         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10560         exceptions.
10561
10562         [BZ #11521]
10563         * math/s_ctan.c: Include <float.h>.
10564         (__ctan): Avoid internal overflow or cancellation in calculating
10565         denominator.
10566         * math/s_ctanf.c: Likewise.
10567         * math/s_ctanl.c: Likewise.
10568         * math/s_ctanh.c: Likewise.
10569         * math/s_ctanhf.c: Likewise.
10570         * math/s_ctanhl.c: Likewise.
10571         * math/libm-test.inc (ctan_test): Add more tests.
10572         (ctanh_test): Likewise.
10573         * sysdeps/i386/fpu/libm-test-ulps: Update.
10574         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10575
10576 2012-04-09  Andreas Jaeger  <aj@suse.de>
10577
10578         [BZ #6894]
10579         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10580         is an optional BSD extension.
10581
10582         [BZ #10254]
10583         * manual/stdio.texi (Opening Streams): Document additional fopen
10584         parameters.
10585
10586 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10587
10588         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10589         %eax without telling the compiler.
10590
10591 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10592
10593         [BZ # 13963]
10594         * manual/install.texi: Use sourceware.org.
10595
10596 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10597
10598         [BZ #13873]
10599         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10600         (__ieee754_pow): Generate overflow and underflow using huge*huge
10601         and tiny*tiny rather than just returning constant infinity or zero
10602         for large exponents.
10603         * math/libm-test.inc (pow_test): Require overflow exceptions for
10604         applicable cases of large exponents.
10605
10606         [BZ #706]
10607         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10608         (__ieee754_pow): Use iterative multiplication algorithm only for
10609         integer exponents with absolute value below 1024.  Check for odd
10610         integer exponents when using algorithm for real exponents.
10611         * math/libm-test.inc (pow_test): Add more tests.
10612         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10613
10614 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10615
10616         [BZ #13705]
10617         * math/libm-test.inc (exp_test): Do not allow overflow exception
10618         on underflow test.
10619
10620 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10621
10622         [BZ #13705]
10623         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10624         instead of __kernel_standard_f.
10625
10626 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10627
10628         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10629         * sysdeps/x86_64/memset_chk.S: Likewise.
10630
10631 2012-04-08  Andreas Jaeger  <aj@suse.de>
10632
10633         [BZ #10153]
10634         * manual/startup.texi (Environment Access): Describe return value
10635         for putenv and setenv.
10636
10637         [BZ #6895]
10638         * manual/filesys.texi (Directory Entries): Add description for
10639         DT_LNK.
10640
10641         [BZ #6890]
10642         * manual/filesys.texi (Directory Entries): Clarify that it's file
10643         system not operating system in the description of DT_UNKNOWN.
10644
10645         [BZ #6578]
10646         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10647
10648 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10649
10650         [BZ #6649]
10651         * manual/llio.texi (Opening and Closing Files): Add cross
10652         reference to explain mode argument.
10653
10654 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10655
10656         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10657         * sysdeps/x86_64/memset_chk.S: Likewise.
10658
10659 2012-04-07  David S. Miller  <davem@davemloft.net>
10660
10661         * elf/elf.h (R_SPARC_WDISP10): Define.
10662         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10663         R_SPARC_SIZE32.
10664         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10665         R_SPARC_SIZE64 and R_SPARC_H34.
10666
10667 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10668
10669         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10670         conditions and remove no longer applicable assertion.
10671
10672 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10673
10674         * bits/byteswap.h: Include <features.h>.
10675         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10676         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10677
10678 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10679
10680         * bits/byteswap.h (__bswap_16): Removed.
10681         Include <bits/byteswap-16.h> to get __bswap_16.
10682         * sysdeps/i386/bits/byteswap.h: Likewise.
10683         * sysdeps/s390/bits/byteswap.h: Likewise.
10684         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10685         * bits/byteswap-16.h: New file.
10686         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10687         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10688         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10689         * string/Makefile (headers): Add bits/byteswap-16.h.
10690
10691 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10692
10693         [BZ #13895]
10694         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10695         extra indirection.
10696         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10697         * nss/tst-nss-static.c: New.
10698
10699 2012-04-06  Robert Millan  <rmh@gnu.org>
10700
10701         [BZ #6486]
10702         * manual/llio.texi (File Position Primitive): lseek
10703         refers to WHENCE when it really means OFFSET.
10704
10705 2012-04-06  Andreas Jaeger  <aj@suse.de>
10706
10707         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10708         strncmp declarations.
10709
10710         * abilist/libc.abilist: Add __poll and __ppoll.
10711
10712 2012-04-05  David S. Miller  <davem@davemloft.net>
10713
10714         * scripts/check-local-headers.sh: Accept a host triplet in the
10715         path matched by the exclude regexp.
10716
10717         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10718         definition.
10719         * sysdeps/powerpc/powerpc32/dl-machine.h
10720         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10721         * sysdeps/s390/s390-32/dl-machine.h
10722         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10723         * sysdeps/sparc/sparc32/dl-machine.h
10724         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10725         * sysdeps/sparc/sparc64/dl-machine.h
10726         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10727
10728         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10729         lazy binding.
10730         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10731         undefined symbol errors.
10732
10733         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10734         DT_NEEDED entries.
10735
10736 2012-04-05  Michael Matz  <matz@suse.de>
10737
10738         [BZ #13592]
10739         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10740
10741 2012-04-05  Andreas Jaeger  <aj@suse.de>
10742
10743         [BZ #13908]
10744         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10745         comment.
10746
10747 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10748
10749         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10750         which ROUND is no valid rounding mode.
10751
10752 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10753
10754         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10755         read again.
10756         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10757
10758 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10759
10760         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10761         an exception using FPU order intentionally.
10762
10763 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10764
10765         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10766         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10767         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10768         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10769
10770 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10771
10772         [BZ #12340]
10773         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10774         EINVAL when BUFLEN is too smal.
10775
10776 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10777
10778         [BZ #13553]
10779         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10780         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10781
10782 2012-04-03  Andreas Jaeger  <aj@suse.de>
10783
10784         [BZ #13938]
10785         * manual/setjmp.texi (System V contexts): Fix sentence.
10786
10787         [BZ #13926]
10788         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10789         New macro for this case.
10790         [!__GNUC__] (__bswap_64): New inline function for this case.
10791         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10792         * bits/byteswap.h: Likewise.
10793         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10794         ull, guard with __GLIBC_HAVE_LONG_LONG.
10795
10796         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10797         __GLIBC_HAVE_LONG_LONG.
10798
10799         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10800         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10801
10802 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10803
10804         [BZ #13691]
10805         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10806         inptr and inend, rather than using last_ch.
10807
10808 2012-04-02  David S. Miller  <davem@davemloft.net>
10809
10810         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10811         * stdio-common/printf-parse.h (read_int): Change return type to
10812         'int', return -1 on INT_MAX overflow.
10813         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10814         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10815         overflows INT_MAX.  Check for overflow of in-format-string precision
10816         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10817         SIZE_MAX not INT_MAX for integer overflow test.
10818         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10819         skip the construct in the format string but do not record anything.
10820         * stdio-common/bug22.c: Adjust to test both width/prevision
10821         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10822         explicitly for proper errno values.
10823
10824 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10825
10826         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10827         CHAR_MAX.
10828         * string/test-strcmp.c [! WIDE]: Likewise.
10829         * time/tst-mktime2.c: Likewise for INT_MAX.
10830         * string/test-string.h: #include <sys/param.h> for MIN.
10831
10832         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10833         * sysdeps/i386/init-first.c (init): Likewise.
10834         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10835         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10836         * sysdeps/sh/init-first.c (init): Likewise.
10837
10838 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10839
10840         * po/ru.po: Update from translation team.
10841         * po/vi.po: Likewise.
10842
10843 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10844
10845         * resolv/nss_dns/dns-host.c: Merge copyright years.
10846
10847 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10848
10849         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10850         Optimize memcpy with prefetch if
10851         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10852         src, dst pointers have unequal 16 byte alignments.
10853
10854 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10855
10856         [BZ #13928]
10857         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10858         from a CNAME entry and return the minimum ttl for the query.
10859         (gaih_getanswer_slice): Likewise.
10860
10861 2012-03-30  Jeff Law  <law@redhat.com>
10862
10863         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10864         due to long keys.
10865         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10866         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10867
10868         * resolv/nss_dns/dns-host.c: Update copyright year.
10869
10870 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10871
10872         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10873         requests to save a system call.  Fix check that all bytes are sent.
10874
10875         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10876         comments for sendmmsg.
10877
10878 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10879
10880         [BZ #13691]
10881         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10882         with only 1 character between 0x0041 and 0x01b0.
10883         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10884         * wcsmbs/tst-mbsnrtowcs.c: New file.
10885
10886 2012-03-29  David S. Miller  <davem@davemloft.net>
10887
10888         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10889         small copies by hand.
10890
10891 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10892
10893         [BZ #13761]
10894         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10895         _nss_compat_initgroups_dyn): Fall back to malloc/free
10896         for large group memberships.
10897
10898 2012-03-28  David S. Miller  <davem@davemloft.net>
10899
10900         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
10901         that branches into memcpy.
10902         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10903         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
10904         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10905         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
10906         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
10907         bits.
10908         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
10909         implementation too.
10910         * sysdeps/sparc/mempcpy.S: New file.
10911
10912         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
10913         the IFUNC routine in the libc case.
10914         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10915
10916         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
10917         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
10918         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
10919         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
10920         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
10921         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10922         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10923         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10924
10925         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10926         loop to 256 bytes instead of 64 bytes and fix test signedness.
10927
10928         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10929         * sysdeps/sparc/sparc32/Makefile: rather than here...
10930         * sysdeps/sparc/sparc64/Makefile: and here.
10931
10932 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10933
10934         * malloc/mallocbug.c: Avoid warnings about unused variables.
10935
10936 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10937
10938         [BZ #13760]
10939         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10940         in the right place. Discard and retry query if response is
10941         larger than input buffer size.
10942
10943 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10944
10945         [BZ #369]
10946         [BZ #2678]
10947         [BZ #3866]
10948         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10949         x for large integer exponent.
10950         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10951         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10952         sign of result as needed afterwards.
10953         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10954         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10955         result for underflowing pow the same as for overflow.
10956         (__kernel_standard_l): Handle powl overflow and underflow here
10957         rather than calling __kernel_standard.
10958         * math/libm-test.inc (pow_test): Add more tests.
10959
10960         [BZ #3868]
10961         [BZ #13879]
10962         [BZ #13910]
10963         [BZ #13911]
10964         [BZ #13912]
10965         [BZ #13913]
10966         [BZ #13915]
10967         [BZ #13916]
10968         [BZ #13917]
10969         [BZ #13918]
10970         [BZ #13919]
10971         [BZ #13920]
10972         [BZ #13921]
10973         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10974         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10975         (__kernel_standard_l): New function.
10976         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10977         __kernel_standard.
10978         * math/w_acosl.c (__acosl): Likewise.
10979         * math/w_asinl.c (__asinl): Likewise.
10980         * math/w_atan2l.c (__atan2l): Likewise.
10981         * math/w_atanhl.c (__atanhl): Likewise.
10982         * math/w_coshl.c (__coshl): Likewise.
10983         * math/w_exp10l.c (__exp10l): Likewise.
10984         * math/w_exp2l.c (__exp2l): Likewise.
10985         * math/w_fmodl.c (__fmodl): Likewise.
10986         * math/w_hypotl.c (__hypotl): Likewise.
10987         * math/w_j0l.c (__j0l, __y0l): Likewise.
10988         * math/w_j1l.c (__j1l, __y1l): Likewise.
10989         * math/w_jnl.c (__jnl, __ynl): Likewise.
10990         * math/w_lgammal.c (__lgammal): Likewise.
10991         * math/w_log10l.c (__log10l): Likewise.
10992         * math/w_log2l.c (__log2l): Likewise.
10993         * math/w_logl.c (__logl): Likewise.
10994         * math/w_powl.c (__powl): Likewise.
10995         * math/w_remainderl.c (__remainderl): Likewise.
10996         * math/w_scalbl.c (sysv_scalbl): Likewise.
10997         * math/w_sinhl.c (__sinhl): Likewise.
10998         * math/w_sqrtl.c (__sqrtl): Likewise.
10999         * math/w_tgammal.c (__tgammal): Likewise.
11000         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11001         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11002         * math/libm-test.inc (acos_test): Add more tests.
11003         (acosh_test): Likewise.
11004         (asin_test): Likewise.
11005         (atanh_test): Likewise.
11006         (exp_test): Likewise.
11007         (exp10_test): Likewise.
11008         (exp2_test): Likewise.
11009         (expm1_test): Likewise.
11010         (lgamma_test): Likewise.
11011         (log_test): Likewise.
11012         (log10_test): Likewise.
11013         (log1p_test): Likewise.
11014         (log2_test): Likewise.
11015         (pow_test): Do not allow some spurious overflow exceptions.
11016         (sqrt_test): Add more tests.
11017         (tgamma_test): Likewise.
11018         (y0_test): Likewise.
11019         (y1_test): Likewise.
11020         (yn_test): Likewise.
11021
11022 2012-03-27  Anton Blanchard  <anton@samba.org>
11023
11024         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11025         MAP_HUGETLB.
11026         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11027         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11028         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11029
11030 2012-03-27  David S. Miller  <davem@davemloft.net>
11031
11032         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11033
11034         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11035         have-as-vis3 check.
11036
11037 2012-03-27  Andreas Jaeger  <aj@suse.de>
11038
11039         * sysdeps/x86_64/elf/configure.in: Moved to ...
11040         * sysdeps/x86_64/configure.in: ... here.
11041         * sysdeps/x86_64/elf/start.S: Moved to ...
11042         * sysdeps/x86_64/start.S: ... here.
11043         * sysdeps/x86_64/elf/configure: Delete.
11044
11045         * sysdeps/x86_64/configure.in: Merge contents from
11046         sysdeps/i386/configure.in (without i686 check).
11047
11048         * sysdeps/i386/elf/Versions: Merge into ...
11049         * sysdeps/i386/Versions: ... this.
11050         * sysdeps/i386/elf/Versions: Delete file.
11051         * sysdeps/i386/elf/start.S: Moved to ...
11052         * sysdeps/i386/start.S: ...here.
11053         * sysdeps/i386/elf/configure.in: Merge into...
11054         * sysdeps/i386/configure.in: ...here.
11055         * sysdeps/i386/elf/configure.in: Delete file.
11056         * sysdeps/i386/elf/configure: Delete file.
11057
11058         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11059         * debug/backtracesyms.c: ... here.
11060         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11061         * debug/backtracesymsfd.c: ... here.
11062         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11063         * sysdeps/generic/ifunc-sel.h: ... here.
11064
11065         * sysdeps/unix/i386/start.c: Delete file.
11066         * sysdeps/unix/sparc/start.c: Delete file.
11067         * sysdeps/unix/start.c: Delete file.
11068
11069         * sysdeps/sh/elf/configure.in: Moved to ...
11070         * sysdeps/sh/configure.in: ... here.
11071         * sysdeps/sh/elf/start.S: Moved to ...
11072         * sysdeps/sh/start.S: ... here.
11073         * sysdeps/sh/elf/configure: Delete file.
11074
11075         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11076         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11077         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11078         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11079         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11080         * sysdeps/powerpc/powerpc64/start.S: here.
11081         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11082         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11083         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11084         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11085         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11086
11087         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11088         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11089         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11090         * sysdeps/powerpc/powerpc32/start.S: ... here.
11091         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11092         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11093         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11094
11095         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11096         * sysdeps/powerpc/ifunc-sel.h: ... here.
11097         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11098         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11099
11100         * sysdeps/sparc/elf/configure.in: Moved to ...
11101         * sysdeps/sparc/configure.in: ... here.
11102         * sysdeps/sparc/elf/configure: Delete file.
11103         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11104         * sysdeps/sparc/sparc32/start.S: ... here.
11105         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11106         * sysdeps/sparc/sparc64/start.S: ... here.
11107         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11108         * sysdeps/sparc/sparc32/Makefile: ... this.
11109         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11110         * sysdeps/sparc/sparc64/Makefile: ... this.
11111
11112         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11113         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11114         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11115         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11116         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11117         * sysdeps/s390/s390-32/setjmp.S: ... here.
11118         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11119         * sysdeps/s390/s390-32/configure.in: ... here.
11120         * sysdeps/s390/s390-32/elf/configure: Delete file.
11121         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11122         * sysdeps/s390/s390-32/start.S: ... here.
11123
11124         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11125         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11126         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11127         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11128         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11129         * sysdeps/s390/s390-64/setjmp.S: ... here.
11130         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11131         * sysdeps/s390/s390-64/configure.in: ... here
11132         * sysdeps/s390/s390-64/elf/configure: Delete file.
11133         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11134         * sysdeps/s390/s390-64/start.S: ... here.
11135         * sysdeps/s390/s390-64/elf/configure: Delete.
11136
11137         * configure.in: Remove support for elf directories in sysdeps.
11138
11139         * configure: Regenerated.
11140         * sysdeps/i386/configure: Regenerated.
11141         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11142         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11143         * sysdeps/s390/s390-32/configure: Regenerated.
11144         * sysdeps/s390/s390-64/configure: Regenerated.
11145         * sysdeps/sh/configure: Regenerated.
11146         * sysdeps/sparc/configure: Regenerated.
11147         * sysdeps/x86_64/configure: Regenerated.
11148
11149 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11150
11151         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11152
11153         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11154         denormal result into account.
11155
11156 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11157
11158         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11159         Reported by Allan McRae <allan@archlinux.org>.
11160
11161 2012-03-23  Jeff Law  <law@redhat.com>
11162
11163         * nss/getnssent.c (__nss_getent): Fix typo.
11164
11165 2012-03-23  David S. Miller  <davem@davemloft.net>
11166
11167         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11168
11169 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11170
11171         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11172         to pad to uint64_t for each field.
11173         (dl_tls_index): Replace unsigned long with uint64_t.
11174
11175 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11176         Paul Pluzhnikov  <ppluzhnikov@google.com>
11177
11178         [BZ #6528]
11179         * grp/Makefile (otherlibs): Don't set it.
11180         * inet/Makefile (otherlibs): Likewise.
11181         * login/Makefile (otherlibs): Likewise.
11182         * nscd/Makefile (otherlibs): Likewise.
11183         * posix/Makefile (otherlibs): Likewise.
11184         * pwd/Makefile (otherlibs): Likewise.
11185         * rt/Makefile (otherlibs): Likewise.
11186         * sunrpc/Makefile (otherlibs): Likewise.
11187         * nss/Makefile (otherlibs): Likewise.
11188         Add libnss_files to routines and static-only-routines.
11189         ($(objpfx)getent): Remove rule.
11190         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11191         static-only-routines.
11192
11193 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11194
11195         [BZ #13892]
11196         * math/s_cexp.c: Include <float.h>.
11197         (__cexp): Handle exp result overflowing not necessarily
11198         overflowing both real and imaginary parts of result.
11199         * math/s_cexpf.c: Likewise.
11200         * math/s_cexpl.c: Likewise.
11201         * math/libm-test.inc (cexp_test): Add more tests.
11202         * sysdeps/i386/fpu/libm-test-ulps: Update.
11203         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11204
11205 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11206
11207         * include/link.h (ELFW): New macro.
11208         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11209         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11210
11211 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11212
11213         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11214         with uint64_t.
11215
11216 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11217
11218         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11219         declaration.
11220         (struct La_x32_retval): Likewise.
11221
11222 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11223
11224         * sysdeps/x86_64/preconfigure.in: New file.
11225         * sysdeps/x86_64/preconfigure: New generated file.
11226
11227 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11228
11229         [BZ #13824]
11230         * math/e_exp2l.c: Include <float.h>.
11231         (__ieee754_exp2l): Handle overflow and underflow cases
11232         separately.  Only pass fractional part of argument to
11233         __ieee754_expl.
11234         * math/libm-test.inc (exp2_test): Add more tests.
11235
11236         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11237         negating x to take absolute value.
11238         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11239         Likewise.
11240         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11241         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11242         Likewise.
11243         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11244         computing low part if x was negated.
11245         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11246
11247 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11248
11249         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11250         la_x32_gnu_pltexit.
11251         (pltexit): Cast int_retval to ptrdiff_t.
11252         * elf/tst-auditmod3b.c: Likewise.
11253         * elf/tst-auditmod4b.c: Likewise.
11254         * elf/tst-auditmod5b.c: Likewise.
11255         * elf/tst-auditmod6b.c: Likewise.
11256         * elf/tst-auditmod6c.c: Likewise.
11257         * elf/tst-auditmod7b.c: Likewise.
11258
11259         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11260         and x32_gnu_pltexit.
11261
11262         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11263         __ELF_NATIVE_CLASS.
11264         (La_x32_regs): New macro.
11265         (La_x32_retval): Likewise.
11266         (la_x32_gnu_pltenter): New function prototype.
11267         (la_x32_gnu_pltexit): Likewise.
11268
11269 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11270
11271         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11272         exponent.
11273
11274         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11275
11276         * configure.in (libc_cv_cc_nofma): Check for option to disable
11277         generation of FMA instructions.
11278         * configure: Regenerate.
11279         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11280         * sysdeps/ieee754/dbl-64/Makefile: New file.
11281         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11282         Remove brandred-fma4.
11283         (CFLAGS-brandred-fma4.c): Remove.
11284         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11285         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11286         define.
11287         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11288         define.
11289
11290 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11291
11292         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11293         LLONG_MAX != LONG_MAX.
11294         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11295         (_fitoa_word): Likewise.
11296         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11297         LLONG_MAX != LONG_MAX.
11298         * stdio-common/_itowa.h: Include <_itoa.h>.
11299         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11300         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11301         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11302         only if not defined.
11303         (_ITOA_WORD_TYPE): Likewise.
11304         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11305         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11306
11307 2012-03-21  David S. Miller  <davem@davemloft.net>
11308
11309         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11310
11311 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11312
11313         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11314         of x86_64 when setting libc_cv_slibdir, libdir and
11315         libc_cv_localedir.
11316         * sysdeps/unix/sysv/linux/configure: Regenerated.
11317
11318 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11319
11320         * manual/lang.texi (Old Varargs): Remove section.
11321         (How Variadic): Update menu.
11322         (va_start): Do not mention varargs.h.
11323
11324 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11325             Joseph Myers  <joseph@codesourcery.com>
11326
11327         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11328         link test.
11329         * configure: Regenerated.
11330
11331 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11332
11333         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11334         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11335         conformtest.pl
11336
11337 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11338
11339         * NOTES: Remove.
11340         * Makefile (files-for-dist): Remove NOTES.
11341         (NOTES): Remove rule.
11342         * README: Don't refer to NOTES.
11343         * manual/creature.texi: Don't include macros.texi.
11344         * manual/intro.texi (creature.texi): Remove comment referring to
11345         NOTES.
11346
11347         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11348         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11349         * configure: Regenerated.
11350         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11351         LIBC_TRY_CC_OPTION.
11352         (libc_cv_as_i686): Likewise.
11353         (libc_cv_cc_avx): Likewise.
11354         (libc_cv_cc_sse2avx): Likewise.
11355         (libc_cv_cc_fma4): Likewise.
11356         (libc_cv_cc_novzeroupper): Likewise.
11357         * sysdeps/i386/configure: Regenerated.
11358
11359         [BZ #13883]
11360         * sysdeps/i386/fpu/s_cexp.S: Remove.
11361         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11362         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11363         * math/libm-test.inc (cexp_test): Add more tests.
11364         * sysdeps/i386/fpu/libm-test-ulps: Update.
11365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11366
11367 2012-03-21  Allan McRae  <allan@archlinux.org>
11368
11369         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11370
11371 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11372
11373         [BZ #13871]
11374         * math/w_exp2.c: Do not include <float.h>.
11375         (o_threshold, u_threshold): Remove.
11376         (__exp2): Calculate result before checking finiteness and calling
11377         __kernel_standard.
11378         * math/w_exp2f.c: Likewise.
11379         * math/w_exp2l.c: Likewise.
11380         * math/libm-test.inc (exp2_test): Require overflow exception for
11381         1e6 input.
11382
11383         [BZ #3866]
11384         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11385         range of signed 64-bit integers before using fistpll.  Remove
11386         checks for whether integers fit in mantissa bits.
11387         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11388         the range of signed 32-bit integers before using fistpl.  Remove
11389         checks for whether integers fit in mantissa bits.
11390         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11391         (__ieee754_powl): Test for y outside the range of signed 64-bit
11392         integers before using fistpll.  Reduce 64-bit values to 63-bit
11393         ones as needed.
11394         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11395         divide-by-zero is raised for zero to large negative powers.
11396         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11397         (__ieee754_powl): Test for y outside the range of signed 64-bit
11398         integers before using fistpll.  Reduce 64-bit values to 63-bit
11399         ones as needed.
11400         * math/libm-test.inc (pow_test): Add more tests.
11401
11402 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11403
11404         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11405         <stdio-common/_itoa.h>.
11406         * debug/segfault.c: Likewise.
11407         * elf/dl-cache.c: Likewise.
11408         * elf/dl-minimal.c: Likewise.
11409         * elf/dl-misc.c: Likewise.
11410         * elf/dl-sysdep.c: Likewise.
11411         * elf/dl-version.c: Likewise.
11412         * elf/rtld.c: Likewise.
11413         * hurd/hurdsock.c: Likewise.
11414         * hurd/lookup-retry.c: Likewise.
11415         * malloc/malloc.c: Likewise.
11416         * malloc/mtrace.c: Likewise.
11417         * nscd/nscd_getgr_r.c: Likewise.
11418         * nscd/nscd_getpw_r.c: Likewise.
11419         * nscd/nscd_getserv_r.c: Likewise.
11420         * posix/getopt_init.c: Likewise.
11421         * posix/wordexp.c: Likewise.
11422         * stdio-common/_itoa.c: Likewise.
11423         * stdio-common/printf_fphex.c: Likewise.
11424         * stdio-common/vfprintf.c: Likewise.
11425         * string/_strerror.c: Likewise.
11426         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11427         * sysdeps/i386/i686/hp-timing.h: Likewise.
11428         * sysdeps/mach/_strerror.c: Likewise.
11429         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11430         * sysdeps/mach/hurd/sethostid.c: Likewise.
11431         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11432         * sysdeps/mach/xpg-strerror.c: Likewise.
11433         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11434         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11435         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11436         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11437         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11438         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11439         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11440         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11441         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11442         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11443         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11444         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11445         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11446         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11447         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11448         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11449         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11450         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11451         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11452         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11453         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11454
11455         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11456
11457         * stdio-common/_itoa.h: Moved to ...
11458         * sysdeps/generic/_itoa.h: Here.
11459
11460         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11461
11462         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11463         instead of "_itoa.h" and "_itowa.h".
11464         * stdio-common/vfprintf.: Likewise.
11465
11466 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11467
11468         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11469         <bits/wordsize.h>.
11470         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11471         (__signbit): Likwise.
11472         (llrintf): Likwise.
11473         (llrint): Likwise.
11474
11475 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11476
11477         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11478         __WORDSIZE != 64.
11479
11480 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11481
11482         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11483         OVERFLOW_EXCEPTION_OK.
11484         * math/libm-test.inc ("Philosophy"): Update comment about
11485         exception testing.
11486         (OVERFLOW_EXCEPTION): Define.
11487         (OVERFLOW_EXCEPTION_OK): Likewise.
11488         (INVALID_EXCEPTION_OK): Renumber.
11489         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11490         (IGNORE_ZERO_INF_SIGN): Likewise.
11491         (test_exceptions): Handle FE_OVERFLOW.
11492         (exp10_test): Expect overflow exceptions.
11493         (exp2_test): Likewise.
11494         (expm1_test): Likewise.
11495         (nextafter_test): Likewise.
11496         (pow_test): Likewise.
11497         (scalbn_test): Likewise.
11498         (scalbln_test): Likewise.
11499
11500 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11501
11502         * sysdeps/x86_64/bits/atomic.h
11503         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11504         64bit integer.
11505         (atomic_exchange_acq): Likewise.
11506         (__arch_exchange_and_add_body): Likewise.
11507         (__arch_add_body): Likewise.
11508         (atomic_add_negative): Likewise.
11509         (atomic_add_zero): Likewise.
11510
11511 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11512
11513         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11514         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11515
11516 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11517
11518         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11519         Check __x86_64__ instead of __WORDSIZE.
11520
11521 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11522
11523         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11524
11525 2012-03-19  David S. Miller  <davem@davemloft.net>
11526
11527         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11528
11529         * sysdeps/sparc/fpu/fenv_private.h: New file.
11530         * sysdeps/sparc/fpu/math_private.h: Use it.
11531         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11532         Remove.
11533         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11534         (libc_feholdexcept_setroundl): Remove.
11535         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11536         Remove.
11537         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11538         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11539
11540 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11541
11542         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11543         int64_t instead of long int.
11544         (INSERT_WORDS64): Likwise.
11545
11546 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11547
11548         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11549         _Unwind_GetCFA return to _Unwind_Ptr first.
11550
11551 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11552
11553         [BZ #13629]
11554         * math/s_clog.c: Include <float.h>.
11555         (__clog): Scale large or subnormal inputs.
11556         * math/s_clogf.c: Likewise.
11557         * math/s_clogl.c: Likewise.
11558         * math/s_clog10.c: Include <float.h>.
11559         (M_LOG10_2): Define.
11560         (__clog10): Scale large or subnormal inputs.
11561         * math/s_clog10f.c: Likewise.
11562         * math/s_clog10l.c: Likewise.
11563         * math/libm-test.inc (clog_test): Add more tests.
11564         (clog10_test): Likewise.
11565         * sysdeps/i386/fpu/libm-test-ulps: Update.
11566         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11567
11568         [BZ #11451]
11569         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11570         x and y.
11571         * math/libm-test.inc (atan2_test): Add another test.
11572
11573         * Makerules (common-objdir-compile): Remove.
11574         * sysdeps/unix/Makefile (config-generated): Do not add
11575         $(unix-generated) to variable.
11576         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11577         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11578         Remove rule.
11579         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11580         Likewise.
11581         [generic bits/local_lim.h] (before-compile): Do not append to
11582         variable.
11583         [generic bits/local_lim.h] (common-generated): Likewise.
11584         [generic sys/param.h] (before-compile): Do not append to variable.
11585         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11586         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11587         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11588         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11589         include.
11590         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11591         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11592         [generic sys/param.h] ($(addprefix
11593         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11594         [generic sys/param.h] (common-generated): Do not append to
11595         variable.
11596         [generic sys/param.h] (sysdep_headers): Likewise.
11597         [generic bits/errno.h] (before-compile): Do not append to
11598         variable.
11599         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11600         rule.
11601         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11602         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11603         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11604         [generic bits/errno.h] (common-generated): Do not append to
11605         variable.
11606         [generic bits/ioctls.h] (before-compile): Do not append to
11607         variable.
11608         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11609         rule.
11610         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11611         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11612         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11613         rule.
11614         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11615         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11616         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11617         [generic bits/ioctls.h] (common-generated): Do not append to
11618         variable.
11619         [generic sys/syscall.h] (syscall.h): Remove variable.
11620         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11621         rule.
11622         [generic sys/syscall.h] (before-compile): Do not append to
11623         variable.
11624         [generic sys/syscall.h] (common-generated): Likewise.
11625         * sysdeps/unix/errnos-tmpl.c: Remove file.
11626         * sysdeps/unix/errnos.awk: Likewise.
11627         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11628         * sysdeps/unix/ioctls.awk: Likewise.
11629         * sysdeps/unix/mk-local_lim.c: Likewise.
11630         * sysdeps/unix/snarf-ioctls: Likewise.
11631
11632 2012-03-19  Richard Henderson  <rth@twiddle.net>
11633
11634         * sysdeps/i386/fpu/fenv_private.h: New file.
11635         * sysdeps/i386/fpu/math_private.h: Use it.
11636         (math_opt_barrier, math_force_eval): Remove.
11637         (libc_feholdexcept_setround_53bit): Remove.
11638         (libc_feupdateenv_53bit): Remove.
11639         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11640         (math_opt_barrier, math_force_eval): Remove.
11641         (libc_feholdexcept): Remove.
11642         (libc_feholdexcept_setround): Remove.
11643         (libc_fetestexcept, libc_fesetenv): Remove.
11644         (libc_feupdateenv_test): Remove.
11645         (libc_feupdateenv, libc_feholdsetround): Remove.
11646         (libc_feresetround): Remove.
11647
11648         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11649         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11650
11651         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11652         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11653         (libc_feupdateenv_testl): New.
11654         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11655         (libc_feupdateenv_testf): New.
11656         (libc_feupdateenv): Use libc_feupdateenv_test.
11657         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11658         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11659
11660         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11661         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11662         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11663         (libc_feresetround_noex): New.
11664         (libc_feresetround_noexf): New.
11665         (libc_feresetround_noexl): New.
11666         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11667         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11668         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11669         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11670         SET_RESTORE_ROUND.
11671         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11672         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11673         (__cos): Likewise.
11674         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11675         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11676         SET_RESTORE_ROUND_NOEX.
11677         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11678         SET_RESTORE_ROUND_NOEXF.
11679         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11680         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11681         (libc_feholdsetroundf): New.
11682         (libc_feresetround, libc_feresetroundf): New.
11683
11684         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11685         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11686         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11687
11688         * sysdeps/generic/math_private.h: Include <fenv.h>.
11689         (default_libc_feholdexcept): New.
11690         (default_libc_feholdexcept_setround): New.
11691         (default_libc_fesetenv, default_libc_feupdateenv): New.
11692         (libc_feholdexcept): Only define if undefined.
11693         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11694         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11695         (libc_feholdexcept_setroundl): Likewise.
11696         (libc_feholdexcept_setround_53bit): Likewise.
11697         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11698         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11699         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11700         (libc_feupdateenv_53bit): Likewise.
11701         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11702         (libc_feholdexcept): Convert from macro to inline function.
11703         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11704         (libc_fesetenv, libc_feupdateenv): Likewise.
11705
11706         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11707         not previously defined.
11708         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11709         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11710         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11711         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11712         * sysdeps/ieee754/flt-32/math_private.h: New file.
11713         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11714         math_private.h below SET_FLOAT_WORD.
11715         (__isnan, __isinf_ns, __finite): Remove.
11716         (__isnanf, __isinf_nsf, __finitef): Remove.
11717
11718 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11719
11720         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11721
11722 2012-03-17  David S. Miller  <davem@davemloft.net>
11723
11724         [BZ #6471]
11725         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11726         for 2.16.
11727
11728 2012-03-16  David S. Miller  <davem@davemloft.net>
11729
11730         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11731         warnings.
11732
11733         [BZ #6471]
11734         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11735         properly.
11736         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11737         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11738         sysdep_routines when subdir is sysvipc.
11739         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11740         __getshmlba helper.
11741
11742         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11743
11744 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11745
11746         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11747         [__LP64__].
11748
11749 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11750
11751         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11752         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11753         (__lround): Renamed to ...
11754         (__llround): This.  Replace long int with long long int.
11755         Define lround functions as aliases of llround functions.
11756         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11757
11758 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11759
11760         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11761         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11762         adresses to uintptr_t.  Replace "long int" and "unsigned long
11763         int" with "greg_t" on va_arg.
11764
11765 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11766
11767         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11768         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11769
11770         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11771         Move e_machine check before EI_CLASS check.  Handle x32
11772         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11773         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11774         SKIP_EM_IA_64 and include
11775         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11776
11777         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11778         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11779         (add_system_dir): New macro.
11780
11781         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11782         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11783
11784 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11785
11786         [BZ #2551]
11787         [BZ #2552]
11788         [BZ #2553]
11789         [BZ #2554]
11790         [BZ #2562]
11791         [BZ #2563]
11792         [BZ #2565]
11793         [BZ #2566]
11794         [BZ #2576]
11795         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11796         (y0): Likewise.
11797         * math/w_j0f.c (j0f): Likewise.
11798         (y0f): Likewise.
11799         * math/w_j0l.c (__j0l): Likewise.
11800         (__y0l): Likewise.
11801         * math/w_j1.c (j1): Likewise.
11802         (y1): Likewise.
11803         * math/w_j1f.c (j1f): Likewise.
11804         (y1f): Likewise.
11805         * math/w_j1l.c (__j1l): Likewise.
11806         (__y1l): Likewise.
11807         * math/w_jn.c (jn): Likewise.
11808         (yn): Likewise.
11809         * math/w_jnf.c (jnf): Likewise.
11810         (ynf): Likewise.
11811         * math/w_jnl.c (__jnl): Likewise.
11812         (__ynl): Likewise.
11813         * math/libm-test.inc (j0_test): Add more tests.
11814         (j1_test): Likewise.
11815         (jn_test): Likewise.  Add trailing semicolon to existing test.
11816         (y0_test): Likewise.
11817         (y1_test): Likewise.
11818         * sysdeps/i386/fpu/libm-test-ulps: Update.
11819         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11820
11821         [BZ #13851]
11822         [BZ #13854]
11823         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11824         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11825         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11826         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11827         (__tanl): Set errno for infinite argument.
11828         * sysdeps/i386/fpu/mptan.c: Remove.
11829         * sysdeps/i386/fpu/s_tan.S: Likewise.
11830         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11831         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11832         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11833         * math/libm-test.inc (tan_test): Add more tests and enable more
11834         tests for double and long double.
11835         * sysdeps/i386/fpu/libm-test-ulps: Update.
11836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11837
11838 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11839
11840         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11841         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11842
11843 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11844
11845         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11846         * configure.in: Use it for both main tree and add-ons.
11847         * configure: Regenerated.
11848
11849 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11850
11851         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11852
11853 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11854
11855         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11856         in comment.
11857
11858         [BZ #13851]
11859         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11860         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11861         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11862         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11863         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11864         infinite argument.
11865         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11866         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11867         != 0 for prec == 2.
11868         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11869         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11870         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11871         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11872         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11873         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11874         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11875         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11876         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11877         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11878         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11879         * math/libm-test.inc (cos_test): Add more tests and enable more
11880         tests for long double.
11881         (sin_test): Likewise.
11882         (sincos_test): Likewise.
11883         * sysdeps/i386/fpu/libm-test-ulps: Update.
11884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11885
11886 2012-03-16  David S. Miller  <davem@davemloft.net>
11887
11888         * sysdeps/sparc/fpu/math_private.h: New file.
11889
11890 2012-03-15  David S. Miller  <davem@davemloft.net>
11891
11892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11893         file.
11894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
11896         file.
11897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
11898         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
11899         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
11900         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
11901         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
11902         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
11903         sysdep routines.
11904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11905
11906         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
11907         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
11908
11909         * sysdeps/sparc/sparc-ifunc.h: New file.
11910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
11911         sparc-ifunc.h
11912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11914         Likewise.
11915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
11916         Likewise.
11917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
11918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
11919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11921         Likewise.
11922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11927         Likewise.
11928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11929         Likewise.
11930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11934         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11935         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11936         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11937         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11938         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11939         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11940         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11941         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11942         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11943         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11944         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11945         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11946         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11947         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11948         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11949         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11950         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11951         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11952         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11953         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11954
11955 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11956
11957         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11958         scaling.
11959         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11960
11961 2012-03-15  Andreas Jaeger  <aj@suse.de>
11962
11963         [BZ #13852]
11964         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11965         ieee754/flt-32 implementation for sin, cos and sincos.
11966         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11967         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11968         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11969         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11970         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11971         ieee754/flt-32 implementation for tan.
11972
11973         * math/libm-test.inc (cos_test): Enable some large input tests for
11974         float as well
11975         (sin_test): Likewise.
11976         (sincos_test): Likewise.
11977         (tan_test): Add tests for large input.
11978
11979         * sysdeps/i386/fpu/libm-test-ulps: Update.
11980
11981 2012-03-15  Andreas Jaeger  <aj@suse.de>
11982
11983         [BZ #13658]
11984         * math/libm-test.inc (cos_test): Add more test cases.
11985         (sin_test): Likewise.
11986         (sincos_test): Likewise.
11987
11988 2012-03-15  Andreas Jaeger  <aj@suse.de>
11989
11990         [BZ #13837]
11991         * math/libm-test.inc (cos_test): Add a test case for large input
11992         value.
11993         (sin_test): Likewise.
11994         (sincos_test): Likewise.
11995
11996 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11997         Joseph Myers  <joseph@codesourcery.com>
11998
11999         [BZ #13658]
12000         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12001         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12002         * sysdeps/i386/fpu/branred.c: Likewise.
12003         * sysdeps/i386/fpu/dosincos.c: Likewise.
12004         * sysdeps/i386/fpu/mpa.c: Likewise.
12005         * sysdeps/i386/fpu/s_cos.S: Likewise.
12006         * sysdeps/i386/fpu/s_sin.S: Likewise.
12007         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12008         * sysdeps/i386/fpu/sincos32.c: Likewise.
12009
12010         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12011         Define.
12012         (libc_feupdateenv_53bit): Define.
12013         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12014         Define.
12015         (libc_feupdateenv_53bit): Define.
12016
12017         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12018         53 bit (without extend i386 double precision).
12019
12020         * math/libm-test.inc (sincos_test): Add tests for large input.
12021         (sin): Likewise.
12022         (cos): Likewise.
12023
12024         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12025
12026 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12027
12028         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12029
12030 2012-03-15  David S. Miller  <davem@davemloft.net>
12031
12032         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12033         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12034         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12035         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12039         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12040         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12041         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12042         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12043         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12044         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12045         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12046         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12048         file.
12049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12051         file.
12052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12054         file.
12055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12057         file.
12058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12059         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12060         fmin/fmax sysdep routines.
12061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12062
12063 2012-03-14  David S. Miller  <davem@davemloft.net>
12064
12065         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12066         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12067         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12068         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12069         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12070         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12071         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12072         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12073         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12074         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12075         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12076         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12077         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12078         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12079         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12080         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12081         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12082         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12083         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12084         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12085         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12086         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12087         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12088         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12089         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12090         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12091         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12092         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12093         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12094         routines.
12095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12096         file.
12097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12099         file.
12100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12102         file.
12103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12105         file.
12106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12108         file.
12109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12111         file.
12112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12113         file.
12114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12115         file.
12116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12117         file.
12118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12119         New file.
12120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12121         file.
12122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12123         file.
12124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12126         file.
12127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12129         file.
12130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12132         file.
12133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12135         VIS3 routines.
12136
12137         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12138         New file.
12139
12140         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12141
12142         * sysdeps/sparc/configure.in: New file.
12143         * sysdeps/sparc/configure: Generate.
12144         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12145         * configure: Regenerate.
12146         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12147         * config.make.in (have-as-vis3): New.
12148         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12149         available use -Av9d instead of -Av9a.
12150         * sysdeps/sparc/sparc64/Makefile: Likewise.
12151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12153         New file.
12154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12155         file.
12156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12157         New file.
12158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12159         file.
12160         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12161         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12162         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12163         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12164         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12165
12166         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12167         fzeros/fnegs to load 0x80000000 into a float register instead of
12168         using the stack.
12169         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12170
12171 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12172
12173         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12174         bits/syscall.h.
12175         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12176         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12177         ($(inst_includedir)/bits/syscall.h): Remove rule.
12178         ($(objpfx)bits/syscall.d): Include instead of
12179         $(objpfx)syscall-list.d.
12180         (generated): Change syscall-list.h and syscall-list.d to
12181         bits/syscall.h and bits/syscall.d.
12182
12183 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12184
12185         [BZ #13846]
12186         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12187
12188 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12189
12190         [BZ #13841]
12191         * math/s_csqrt.c: Include <float.h>.
12192         (__csqrt): Scale large or subnormal inputs.
12193         * math/s_csqrtf.c: Likewise.
12194         * math/s_csqrtl.c: Likewise.
12195         * math/libm-test.inc (csqrt_test): Add more tests.
12196         * sysdeps/i386/fpu/libm-test-ulps: Update.
12197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12198
12199         [BZ #13840]
12200         * math/libm-test.inc (hypot_test): Add more tests.
12201
12202 2012-03-13  David S. Miller  <davem@davemloft.net>
12203
12204         [BZ #13840]
12205         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12206         double-precision for the calculation instead of scaling.
12207
12208 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12209
12210         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12211         manipulate bits before adding and subtracting TWO52[sx].
12212         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12213         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12214         Likewise.
12215         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12216
12217 2012-03-13  David S. Miller  <davem@davemloft.net>
12218
12219         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12220         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12221         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12222         rtld-global-offsets.h
12223         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12224
12225         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12226         large parameters.
12227
12228         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12229
12230         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12231         'err' in the ifdef scope in which it is actually used.
12232
12233         * nss/nss_db/db-init.c: Include string.h
12234
12235 2012-03-12  David S. Miller  <davem@davemloft.net>
12236
12237         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12238         masking out of the most significant byte of random value used.
12239         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12240         Fix coding style in previous change.
12241
12242         * sysdeps/unix/sysv/linux/kernel-features.h
12243         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12244         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12245         expression.
12246         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12247         later.
12248
12249 2012-03-11  David S. Miller  <davem@davemloft.net>
12250
12251         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12252         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12253         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12254         for 'resultvar' otherwise things get truncated on 64-bit.
12255
12256         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12257         Fix masking out of the most significant byte of random value used.
12258
12259         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12260
12261 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12262
12263         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12264
12265 2012-03-09  David S. Miller  <davem@davemloft.net>
12266
12267         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12268         variables with appropriate CPP guards.
12269         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12270         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12271         on resulting framesize and the management of the outregs buffer for pltexit.
12272         Preserve floating point return values across _dl_call_pltexit call.
12273         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12274         framesize and the management of the outregs buffer for pltexit.
12275         Preserve floating point return values across _dl_call_pltexit
12276         call.
12277         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12278         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12279         (print_exit): Fix format string for return register value.
12280
12281 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12282
12283         * sunrpc/Makefile (others): Add rpcgen.
12284         ($(objpfx)rpcgen): Remove special build rule and dependency on
12285         libc.
12286         * sunrpc/rpcgen.c: New file.
12287
12288 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12289
12290         [BZ #13673]
12291         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12292         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12293         * sysdeps/i386/crti.S: Likewise.
12294         * sysdeps/i386/crtn.S: Likewise.
12295         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12296         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12297         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12298         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12299         * sysdeps/sh/crti.S: Likewise.
12300         * sysdeps/sh/crtn.S: Likewise.
12301         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12302
12303         [BZ #13673]
12304         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12305         with URL.
12306         * locale/programs/locfile-kw.gperf: Likewise.
12307         * locale/programs/charmap-kw.h: Regenerated.
12308         * locale/programs/locfile-kw.h: Likewise.
12309
12310         [BZ #13673]
12311         * intl/plural.y: Replace FSF snail mail address with URL.
12312         * intl/plural.c: Regenerated.
12313
12314 2012-03-09  Richard Henderson  <rth@twiddle.net>
12315
12316         * include/math_private.h: Remove file.
12317         * math/math_private.h: Move file ...
12318         * sysdeps/generic/math_private.h: ... here.
12319
12320         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12321         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12322         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12323
12324         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12325         and <math_private.h>.
12326         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12327         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12328         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12329         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12330         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12331         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12332         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12333         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12334         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12335         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12336         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12337         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12338         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12339         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12340         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12341         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12342         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12343         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12344         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12345         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12346         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12347         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12348         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12349         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12350         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12351         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12352         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12353         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12354         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12355         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12356         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12357         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12358         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12359         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12360         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12361         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12362         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12363         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12364         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12365         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12366         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12367         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12368         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12369         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12370         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12371         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12372         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12373         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12374         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12375         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12376         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12377         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12378         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12379         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12380         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12381         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12382         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12383         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12384         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12385         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12386         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12387         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12388         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12389         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12390         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12391         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12392         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12393         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12394         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12395         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12396         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12397         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12398         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12399         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12400         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12401         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12402         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12403         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12404         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12405         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12406         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12407         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12408         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12409         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12410         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12411         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12412         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12413         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12414         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12415         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12416         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12417         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12418         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12419         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12420         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12421         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12422         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12423         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12424         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12425         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12426         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12427         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12428         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12429         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12430         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12431         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12432         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12433         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12434         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12435         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12436         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12437         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12438         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12439         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12440         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12441         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12442         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12443         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12444         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12445         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12446         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12447         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12448         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12449         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12450         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12451         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12452         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12453         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12454         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12455         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12456         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12457         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12458         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12459         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12460         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12461         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12462         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12463         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12464         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12465         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12466         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12467         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12468         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12469         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12470         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12471         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12472         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12473         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12474         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12475         * sysdeps/ieee754/k_standard.c: Likewise.
12476         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12477         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12478         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12479         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12480         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12481         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12482         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12483         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12484         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12485         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12486         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12487         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12488         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12489         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12490         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12491         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12492         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12493         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12494         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12495         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12496         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12497         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12498         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12499         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12500         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12501         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12502         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12503         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12504         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12505         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12506         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12507         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12508         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12509         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12510         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12511         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12512         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12513         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12514         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12515         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12516         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12517         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12518         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12519         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12520         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12521         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12522         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12523         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12524         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12525         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12526         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12527         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12528         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12529         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12530         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12531         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12532         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12533         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12534         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12535         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12536         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12537         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12538         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12539         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12540         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12541         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12542         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12543         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12544         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12545         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12546         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12547         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12548         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12549         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12550         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12551         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12552         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12553         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12554         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12555         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12556         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12557         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12558         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12559         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12560         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12561         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12562         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12563         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12564         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12565         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12566         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12567         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12568         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12569         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12570         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12571         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12572         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12573         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12574         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12575         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12576         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12577         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12578         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12579         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12580         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12581         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12582         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12583         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12584         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12585         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12586         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12587         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12588         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12589         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12590         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12591         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12592         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12593         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12594         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12595         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12596         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12597         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12598         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12599         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12600         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12601         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12602         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12603         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12604         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12605         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12606         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12607         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12608         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12609         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12610         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12611         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12612         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12613         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12614         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12615         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12616         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12617         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12618         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12619         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12620         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12621         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12622         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12623         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12624         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12625         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12626         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12627         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12628         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12629         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12630         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12631         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12632         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12633         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12634         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12635         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12636         * sysdeps/ieee754/s_lib_version.c: Likewise.
12637         * sysdeps/ieee754/s_matherr.c: Likewise.
12638         * sysdeps/ieee754/s_signgam.c: Likewise.
12639         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12640         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12641         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12642         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12643         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12644         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12645         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12646         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12647         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12648         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12649         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12650         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12651         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12652         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12653         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12654         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12655         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12656         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12657         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12658         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12659         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12660
12661 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12662
12663         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12664         * sunrpc/rpc_main.c: Likewise.
12665         * sunrpc/rpc_svcout.c: Likewise.
12666
12667 2012-03-09  David S. Miller  <davem@davemloft.net>
12668
12669         * include/math_private.h: New file.
12670
12671 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12672
12673         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12674         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12675         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12676         from <bits/socket_type.h>.
12677         (enum __socket_type): Don't define here.
12678         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12679         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12680         bits/socket_type.h.
12681
12682         [BZ #13566]
12683         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12684         checking __USE_GNU.
12685
12686         * Makerules ($(inst_includedir)/%.h): New rule.
12687         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12688         (install-others): Remove variable setting.
12689         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12690
12691 2012-03-08  Richard Henderson  <rth@twiddle.net>
12692
12693         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12694         from macro to inline function; merge with the
12695         !__LIBC_INTERNAL_MATH_INLINES version.
12696         (__ieee754_sqrtf): Likewise.
12697
12698         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12699         to inline function.
12700         (__rintf, __floor, __floorf): Likewise.
12701
12702         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12703         macro to inline function.
12704         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12705
12706         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12707         not <math/math_private.h>.
12708
12709 2012-03-08  David S. Miller  <davem@davemloft.net>
12710
12711         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12712         copyright year.
12713         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12714
12715 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12716
12717         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12718         normalization.
12719         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12720         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12721
12722 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12723
12724         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12725         be defined individually, they must be defined as a block.  Define
12726         S for printing a string instead of hidint the different by using a
12727         macro for adding the 'l'.
12728         * stdio-common/tst-fphex-wide.c: Adjust.
12729
12730 2012-03-07  Marek Polacek  <polacek@redhat.com>
12731
12732         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12733
12734 2012-03-08  Marek Polacek  <polacek@redhat.com>
12735
12736         [BZ #13806]
12737         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12738         * stdio-common/tst-fphex.c: Define a few macros to make the
12739         test reusable.  Use them.
12740         * stdio-common/tst-fphex-wide.c: New file.
12741
12742 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12743
12744         [BZ #6911]
12745         * manual/macros.texi (gnusystems): New macro.
12746         (nongnusystems): Likewise.
12747         (gnulinuxhurdsystems): Likewise.
12748         (gnuhurdsystems): Likewise..
12749         (gnulinuxsystems): Likewise.
12750         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12751         variants of the GNU system, not "GNU system".
12752         * manual/conf.texi: Likewise.
12753         * manual/errno.texi: Likewise.  Update example of errno macro
12754         expansion.
12755         * manual/filesys.texi: Likewise.
12756         (getumask): Document as specific to GNU/Hurd.
12757         * manual/install.texi: Likewise.  Reword some references to
12758         GNU/Linux.
12759         * manual/intro.texi: Likewise.
12760         * manual/io.texi: Likewise.
12761         (File Name Portability): Detail which constraints are inapplicable
12762         to all GNU systems and which are only inapplicable to GNU/Hurd.
12763         * manual/job.texi: Likewise.
12764         * manual/llio.texi: Likewise.
12765         (O_NOCTTY): Document as present on GNU/Linux.
12766         * manual/maint.texi: Likewise.
12767         * manual/memory.texi: Likewise.
12768         * manual/pattern.texi: Likewise.
12769         * manual/pipe.texi: Likewise.
12770         * manual/process.texi: Likewise.
12771         * manual/resource.texi: Likewise.
12772         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12773         child on GNU/Hurd.
12774         * manual/setjmp.texi: Likewise.
12775         * manual/signal.texi: Likewise.
12776         * manual/startup.texi: Likewise.
12777         * manual/stdio.texi: Likewise.
12778         * manual/terminal.texi: Likewise.
12779         (ONLCR): Document as POSIX.
12780         (OXTABS): Document availability on GNU/Linux as XTABS.
12781         (ONOEOT): Document availability separately from other bits.
12782         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12783         * manual/time.texi: Likewise.
12784         * manual/users.texi: Likewise.
12785         * INSTALL: Regenerated.
12786         * sysdeps/gnu/errlist.c: Regenerated.
12787
12788         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12789         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12790         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12791         puts.
12792         * configure: Regenerated.
12793
12794 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12795
12796         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12797         default includes instead of AC_HEADER_CHECK.
12798         * sysdeps/i386/configure: Regenerated.
12799
12800         [BZ #10716]
12801         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12802         * math/s_cacoshf.c (__cacoshf): Likewise.
12803         * math/s_cacoshl.c (__cacoshl): Likewise.
12804         * math/s_casinh.c (__casinh): Set signs of result from argument.
12805         * math/s_casinhf.c (__casinhf): Likewise.
12806         * math/s_casinhl.c (__casinhl): Likewise.
12807         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12808         (casinh_test): Add more tests.
12809         * sysdeps/i386/fpu/libm-test-ulps: Update.
12810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12811
12812 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12813
12814         * po/zh_TW.po: Update from translation team.
12815
12816         * login/Makefile (distribute): Remove variable.
12817         * catgets/Makefile: Likewise.
12818         * mach/Makefile: Likewise.
12819         * malloc/Makefile: Likewise.
12820         * misc/Makefile: Likewise.
12821         * iconv/Makefile: Likewise.
12822         * nscd/Makefile: Likewise.
12823         * hurd/Makefile: Likewise.
12824         * manual/Makefile: Likewise.
12825         * locale/Makefile: Likewise.
12826         * intl/Makefile: Likewise.
12827         * conform/Makefile: Likewise.
12828         * nss/Makefile: Likewise.
12829         * time/Makefile: Likewise.
12830         * soft-fp/Makefile: Likewise.
12831         * dirent/Makefile: Likewise.
12832         * gmon/Makefile: Likewise.
12833         * po/Makefile: Likewise.
12834         * rt/Makefile: Likewise.
12835         * socket/Makefile: Likewise.
12836         * math/Makefile: Likewise.
12837         * signal/Makefile: Likewise.
12838         * debug/Makefile: Likewise.
12839         * elf/Makefile: Likewise.
12840         * timezone/Makefile: Likewise.
12841         * stdlib/Makefile: Likewise.
12842         * iconvdata/Makefile: Likewise.
12843         * sunrpc/Makefile: Likewise.
12844         * io/Makefile: Likewise.
12845         * argp/Makefile: Likewise.
12846         * inet/Makefile: Likewise.
12847         * hesiod/Makefile: Likewise.
12848         * grp/Makefile: Likewise.
12849         * csu/Makefile: Likewise.
12850         * wctype/Makefile: Likewise.
12851         * crypt/Makefile: Likewise.
12852         * libio/Makefile: Likewise.
12853         * string/Makefile: Likewise.
12854         * nis/Makefile: Likewise.
12855         * resolv/Makefile: Likewise.
12856         * stdio-common/Makefile: Likewise.
12857         * wcsmbs/Makefile: Likewise.
12858         * dlfcn/Makefile: Likewise.
12859         * posix/Makefile: Likewise.
12860
12861         [BZ #6959]
12862         * timezone/Makefile: Don't install timezone files, just the programs
12863         and scripts.
12864
12865 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12866
12867         * nss/databases.def: Add missing gshadow entry.
12868
12869         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12870
12871 2012-03-06  Marek Polacek  <polacek@redhat.com>
12872
12873         [BZ #13726]
12874         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12875         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12876         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12877         * stdio-common/tst-long-dbl-fphex.c: New file.
12878
12879 2012-03-06  David S. Miller  <davem@davemloft.net>
12880
12881         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12882         (set_obp_int): New function.
12883         (get_obp_int): New function.
12884         (__get_clockfreq_via_dev_openprom): Likewise.
12885         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12886         Avoid unused variable warnings on 'val' and use builtin_expect.
12887         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12888         __builtin_expect.
12889         (INLINE_CLONE_SYSCALL): Likewise.
12890
12891 2012-03-05  David S. Miller  <davem@davemloft.net>
12892
12893         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12894
12895 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
12896
12897         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12898
12899         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
12900         only for |x| >= 40.
12901         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12902
12903 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12904
12905         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
12906         Replace gettimeofday with __vdso_gettimeofday.
12907
12908         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12909         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
12910         __vdso_clock_gettime and __vdso_getcpu.
12911
12912         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
12913         time with __vdso_time.
12914
12915 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12916
12917         * manual/lang.texi (size_t): Note types to which size_t may be
12918         equivalent with the GNU C Library, but do not describe when
12919         differences between them are significant.
12920
12921 2012-03-05  Andreas Jaeger  <aj@suse.de>
12922
12923         * sysdeps/i386/fpu/libm-test-ulps: Update.
12924
12925 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12926
12927         [BZ #3976]
12928         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12929         (__ieee754_pow): Save and restore rounding mode and use
12930         round-to-nearest for main computations.
12931         * math/libm-test.inc (pow_test_tonearest): New function.
12932         (pow_test_towardzero): Likewise.
12933         (pow_test_downward): Likewise.
12934         (pow_test_upward): Likewise.
12935         (main): Call the new functions.
12936         * sysdeps/i386/fpu/libm-test-ulps: Update.
12937         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12938
12939         [BZ #3976]
12940         * math/libm-test.inc (cosh_test_tonearest): New function.
12941         (cosh_test_towardzero): Likewise.
12942         (cosh_test_downward): Likewise.
12943         (cosh_test_upward): Likewise.
12944         (sinh_test_tonearest): Likewise.
12945         (sinh_test_towardzero): Likewise.
12946         (sinh_test_downward): Likewise.
12947         (sinh_test_upward): Likewise.
12948         (main): Call the new functions.
12949         * sysdeps/i386/fpu/libm-test-ulps: Update.
12950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12951
12952 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12953
12954         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12955         default stack guard is set in last bytes.
12956         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12957
12958 2012-03-05  Kees Cook  <keescook@chromium.org>
12959
12960         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12961
12962         [BZ #13656]
12963         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12964         possibly allocate from heap instead of stack.
12965         * stdio-common/bug-vfprintf-nargs.c: New file.
12966         * stdio-common/Makefile (tests): Add nargs overflow test.
12967
12968 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12969
12970         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12971
12972 2012-03-03  Marek Polacek  <polacek@redhat.com>
12973
12974         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12975         * math/math_private.h: Likewise.
12976         * stdlib/tst-strtod.c: Likewise.
12977         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12978         * sysdeps/x86_64/bits/atomic.h: Likewise.
12979
12980 2012-03-02  David S. Miller  <davem@davemloft.net>
12981
12982         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12983         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12984         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12985         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12986         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12987         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12988         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12989         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12990
12991 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12992
12993         [BZ #13792]
12994         * manual/examples/README: New file, says the example source files
12995         can be used under GPL>=2.
12996         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12997         line containing just "*/".
12998         * manual/examples/add.c: Add copyright header (GPL>=2).
12999         * manual/examples/argp-ex1.c: Likewise.
13000         * manual/examples/argp-ex2.c: Likewise.
13001         * manual/examples/argp-ex3.c: Likewise.
13002         * manual/examples/argp-ex4.c: Likewise.
13003         * manual/examples/atexit.c: Likewise.
13004         * manual/examples/db.c: Likewise.
13005         * manual/examples/dir.c: Likewise.
13006         * manual/examples/dir2.c: Likewise.
13007         * manual/examples/execinfo.c: Likewise.
13008         * manual/examples/filecli.c: Likewise.
13009         * manual/examples/filesrv.c: Likewise.
13010         * manual/examples/fmtmsgexpl.c: Likewise.
13011         * manual/examples/genpass.c: Likewise.
13012         * manual/examples/inetcli.c: Likewise.
13013         * manual/examples/inetsrv.c: Likewise.
13014         * manual/examples/isockad.c: Likewise.
13015         * manual/examples/longopt.c: Likewise.
13016         * manual/examples/memopen.c: Likewise.
13017         * manual/examples/memstrm.c: Likewise.
13018         * manual/examples/mkfsock.c: Likewise.
13019         * manual/examples/mkisock.c: Likewise.
13020         * manual/examples/mygetpass.c: Likewise.
13021         * manual/examples/pipe.c: Likewise.
13022         * manual/examples/popen.c: Likewise.
13023         * manual/examples/rprintf.c: Likewise.
13024         * manual/examples/search.c: Likewise.
13025         * manual/examples/select.c: Likewise.
13026         * manual/examples/setjmp.c: Likewise.
13027         * manual/examples/sigh1.c: Likewise.
13028         * manual/examples/sigusr.c: Likewise.
13029         * manual/examples/stpcpy.c: Likewise.
13030         * manual/examples/strdupa.c: Likewise.
13031         * manual/examples/strftim.c: Likewise.
13032         * manual/examples/strncat.c: Likewise.
13033         * manual/examples/subopt.c: Likewise.
13034         * manual/examples/swapcontext.c: Likewise.
13035         * manual/examples/termios.c: Likewise.
13036         * manual/examples/testopt.c: Likewise.
13037         * manual/examples/testpass.c: Likewise.
13038         * manual/examples/timeval_subtract.c: Likewise.
13039
13040         [BZ #13792]
13041         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13042         function to ...
13043         * manual/timeval_subtract.c.texi: ... here, new file.
13044
13045 2012-03-02  David S. Miller  <davem@davemloft.net>
13046
13047         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13048
13049 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13050
13051         [BZ #3976]
13052         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13053         (__sin): Save and restore rounding mode and use round-to-nearest
13054         for all computations.
13055         (__cos): Save and restore rounding mode and use round-to-nearest
13056         for all computations.
13057         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13058         <fenv.h>.
13059         (tan): Save and restore rounding mode and use round-to-nearest for
13060         all computations.
13061         * math/libm-test.inc (cos_test_tonearest): New function.
13062         (cos_test_towardzero): Likewise.
13063         (cos_test_downward): Likewise.
13064         (cos_test_upward): Likewise.
13065         (sin_test_tonearest): Likewise.
13066         (sin_test_towardzero): Likewise.
13067         (sin_test_downward): Likewise.
13068         (sin_test_upward): Likewise.
13069         (tan_test_tonearest): Likewise.
13070         (tan_test_towardzero): Likewise.
13071         (tan_test_downward): Likewise.
13072         (tan_test_upward): Likewise.
13073         (main): Call the new functions.
13074         * sysdeps/i386/fpu/libm-test-ulps: Update.
13075         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13076
13077         [BZ #10135]
13078         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13079         small n, then large n, before computing and testing k+n.
13080         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13081         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13082         Likewise.
13083         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13084         Likewise.
13085         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13086         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13087         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13088         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13089         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13090         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13091         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13092         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13093         * math/libm-test.inc (scalbn_test): Add more tests.
13094         (scalbln_test): Likewise.
13095
13096         * manual/filesys.texi (mode_t): Describe constraints on size and
13097         signedness, not exact equivalence to a particular type.
13098         (ino_t): Likewise.
13099         (ino64_t): Likewise.
13100         (dev_t): Likewise.
13101         (nlink_t): Likewise.
13102         (blkcnt_t): Likewise.
13103         (blkcnt64_t): Likewise.
13104         * manual/llio.texi (off_t): Likewise.
13105
13106         [BZ #3976]
13107         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13108         (__ieee754_exp): Save and restore rounding mode and use
13109         round-to-nearest for all computations.
13110         * math/libm-test.inc (exp_test_tonearest): New function.
13111         (exp_test_towardzero): Likewise.
13112         (exp_test_downward): Likewise.
13113         (exp_test_upward): Likewise.
13114         (main): Call the new functions.
13115         * sysdeps/i386/fpu/libm-test-ulps: Update.
13116         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13117
13118 2012-03-01  Chris Demetriou  <cgd@google.com>
13119
13120         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13121         have predictable order.
13122
13123 2012-03-01  David S. Miller  <davem@davemloft.net>
13124
13125         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13126
13127         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13128         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13129         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13130         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13131
13132         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13133         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13134         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13135         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13136         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13137         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13138         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13139         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13140         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13141
13142         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13143
13144         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13145         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13146         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13147
13148         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13149         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13150         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13151         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13152         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13153         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13154         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13155         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13156         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13157         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13158         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13159         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13160         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13161         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13162         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13163         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13164         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13165         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13166         * sysdeps/sparc/elf/configure: Regenerated.
13167
13168 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13169
13170         * configure.in (AS, LD): Require binutils 2.20 or later.
13171         * configure: Regenerated.
13172         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13173         as required minimum version.
13174         * INSTALL: Regenerated.
13175
13176         [BZ #2541]
13177         [BZ #4108]
13178         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13179         before squaring exponent.
13180         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13181         bottom long double and 27 bits of top long double before squaring
13182         exponent.
13183         * math/libm-test.inc (erfc_test): Add more tests.
13184         * sysdeps/i386/fpu/libm-test-ulps: Update.
13185         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13186         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13187
13188 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13189
13190         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13191         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13192         containing bit-fields.
13193         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13194         * soft-fp/single.h (_FP_UNION_S): Likewise.
13195         * soft-fp/double.h (_FP_UNION_D): Likewise.
13196
13197 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13198
13199         [BZ #13786]
13200         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13201         not include ../strcmp.S.
13202         [USE_AS_STRNCASECMP_L]: Likewise.
13203         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13204         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13205         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13206         (__strncasecmp_l_ia32): Define as alias to
13207         __strncasecmp_l_nonascii.
13208
13209         [BZ #5794]
13210         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13211         * sysdeps/i386/fpu/libm-test-ulps: Update.
13212         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13213
13214         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13216
13217 2012-02-29  Jeff Law  <law@redhat.com>
13218
13219         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13220         out of bounds read.
13221
13222 2012-02-29  Marek Polacek  <polacek@redhat.com>
13223
13224         [BZ #13706]
13225         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13226         * elf/Makefile: Add rules to run tst-unused-dep.out.
13227
13228 2012-02-28  David S. Miller  <davem@davemloft.net>
13229
13230         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13231         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13232         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13233         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13234         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13235         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13236
13237 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13238
13239         * math/libm-test.inc (llround_test): Move one test from
13240         lround_test.  Use TEST_f_L in moved test.
13241         (lround_test): Move misplaced test to llround_test.  Add testcase
13242         from bug 2561.
13243
13244 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13245
13246         * sysdeps/x86_64/fpu/e_expf.S: New file.
13247         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13248
13249 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13250
13251         [BZ #13637]
13252         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13253         of remain_len that may cause incomplete multi-byte character and
13254         false match.
13255         * posix/bug-regex33.c: New file.
13256         * posix/Makefile (tests): Add bug-regex33.
13257
13258 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13259
13260         * manual/macros.texi: New file.
13261         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13262         * manual/libc.texinfo: Include macros.texi.
13263         * manual/creatute.texi: Likewise.
13264         * manual/install.texi: Likewise.
13265         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13266         @glibcadj{} in references to the GNU C Library.
13267         * manual/charset.texi: Likewise.
13268         * manual/conf.texi: Likewise.
13269         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13270         when not using those macros.
13271         * manual/creature.texi: Likewise.
13272         * manual/crypt.texi: Likewise.
13273         * manual/errno.texi: Likewise.
13274         * manual/filesys.texi: Likewise.
13275         * manual/header.texi: Likewise.
13276         * manual/install.texi: Likewise.
13277         * manual/intro.texi: Likewise.
13278         * manual/io.texi: Likewise.
13279         * manual/job.texi: Likewise.
13280         * manual/lang.texi: Likewise.
13281         * manual/libc.texiinfo: Likewise.
13282         * manual/llio.texi: Likewise.
13283         * manual/locale.texi: Likewise.
13284         * manual/maint.texi: Likewise.
13285         * manual/math.texi: Likewise.
13286         * manual/memory.texi: Likewise.
13287         * manual/message.texi: Likewise.
13288         * manual/nss.texi: Likewise.
13289         * manual/pattern.texi: Likewise.
13290         * manual/process.texi: Likewise.
13291         * manual/resource.texi: Likewise.
13292         * manual/search.texi: Likewise.
13293         * manual/setjmp.texi: Likewise.
13294         * manual/signal.texi: Likewise.
13295         * manual/socket.texi: Likewise.
13296         * manual/startup.texi: Likewise.
13297         * manual/stdio.texi: Likewise.
13298         * manual/string.texi: Likewise.
13299         * manual/sysinfo.texi: Likewise.
13300         * manual/syslog.texi: Likewise.
13301         * manual/terminal.texi: Likewise.
13302         * manual/time.texi: Likewise.
13303         * manual/users.texi: Likewise.
13304         * INSTALL: Regenerated.
13305         * NOTES: Regenerated.
13306         * sysdeps/gnu/errlist.c: Regenerated.
13307
13308 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13309
13310         * include/dirent.h: Include <dirstream.h> before
13311         <dirent/dirent.h>.
13312
13313 2012-02-28  David S. Miller  <davem@davemloft.net>
13314
13315         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13316         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13317         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13318         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13319
13320 2012-02-27  David S. Miller  <davem@davemloft.net>
13321
13322         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13323         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13324         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13325         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13326
13327         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13328         frame pointer instead of stack pointer relative arg slot.
13329         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13330         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13331         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13332
13333 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13334
13335         [BZ #3992]
13336         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13337
13338 2012-02-27  David S. Miller  <davem@davemloft.net>
13339
13340         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13342         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13343         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13344         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13345         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13346         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13347         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13348
13349 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13350
13351         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13352         later.  Allow versions 5-9.
13353         * configure: Regenerated.
13354         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13355         required minimum version and 4.6 as recommended version.  Do not
13356         mention bugs in GCC 2.7 and 2.8.
13357         * INSTALL: Regenerated.
13358
13359 2012-02-27  David S. Miller  <davem@davemloft.net>
13360
13361         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13362         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13363         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13364         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13365         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13366         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13367         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13368         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13369
13370         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13371         manipulate bits before adding and subtracting TWO112[sx].
13372         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13373
13374 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13375
13376         [BZ #13775]
13377         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13378         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13379         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13380         being in POSIX, because they are in 1003.1-2008.
13381
13382         * rt/tst-aio.c: Include <fcntl.h>.
13383         * rt/tst-aio7.c: Likewise.
13384         * rt/tst-aio64.c: Likewise.
13385
13386         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13387
13388 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13389
13390         * manual/install.texi (--with-headers): Describe headers as
13391         interface headers, not private headers.
13392         (Specific advice for GNU/Linux systems): Describe use of headers
13393         from "make headers_install", not private headers from older
13394         kernels.
13395         * INSTALL: Regenerated.
13396         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13397         Change to 2.6.19.
13398         * sysdeps/unix/sysv/linux/configure: Regenerated.
13399
13400         * manual/llio.texi (fclean): Remove documentation.
13401
13402         * manual/Makefile (libc-texi-generated): New variable.  Include
13403         version.texi.
13404         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13405         $(libc-texi-generated), not duplicated list of files.
13406         (version.texi, stamp-version): New rules.
13407         (realclean): Remove $(libc-texi-generated), not individual files
13408         from that list.  Do not remove dir-add.texinfo.
13409         * manual/libc.texinfo: Comment out uses of edition numbers and
13410         references to printed manual.  Remove last-updated dates.
13411         (EDITION): Comment out.
13412         (ISBN): Likewise.
13413         (VERSION, UPDATED): Remove.
13414         (version.texi): Include.
13415
13416 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13417
13418         * sysdeps/posix/spawni.c: Include <signal.h>.
13419         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13420         * sysdeps/pthread/aio_fsync.c: Likewise.
13421
13422 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13423
13424         * conform/Makefile (tests): Run only when not cross-compiling and
13425         when fast-check is not defined.
13426
13427         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13428         * conform/data/limits.h-data: Fixes for POSIX2008.
13429         * conform/run-conformtest.sh: Run all tests.
13430         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13431         headers.
13432         * include/bits/dlfcn.h: Likewise.
13433         * include/langinfo.h: Likewise.
13434         * include/monetary.h: Likewise.
13435         * include/sys/poll.h: Likewise.
13436
13437         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13438         for __USE_GNU.
13439         * posix/spawn.h: Define __need_sigset_t.
13440         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13441         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13442         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13443         to get sigevent_t only.
13444         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13445         only for __USE_GNU.
13446         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13447         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13448         process_vm_writev only for __USE_GNU.
13449         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13450
13451         * conform/Makefile: For now ignore errors from run-conformtest.
13452         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13453         POSIX to avoid namespace pollution.  Don't prepend headers.
13454         * conform/data/aio.h-data: Fixes for POSIX testing.
13455         * conform/data/fcntl.h-data: Likewise.
13456         * conform/data/glob.h-data: Likewise.
13457         * conform/data/grp.h-data: Likewise.
13458         * conform/data/pthread.h-data: Likewise.
13459         * conform/data/pwd.h-data: Likewise.
13460         * conform/data/signal.h-data: Likewise.
13461         * conform/data/spawn.h-data: Likewise.
13462         * conform/data/stdio.h-data: Likewise.
13463         * conform/data/stdlib.h-data: Likewise.
13464         * conform/data/stropts.h-data: Likewise.
13465         * conform/data/sys/mman.h-data: Likewise.
13466         * conform/data/sys/stat.h-data: Likewise.
13467         * conform/data/sys/types.h-data: Likewise.
13468         * conform/data/sys/wait.h-data: Likewise.
13469         * conform/data/time.h-data: Likewise.
13470         * conform/data/unistd.h-data: Likewise.
13471         * conform/data/utime.h-data: Likewise.
13472
13473         * io/sys/stat.h: fchmod was always in POSIX.
13474         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13475         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13476         * rt/aio.h: Define __need_timespec before including <time.h>.
13477         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13478         struct.  Add forward declaration of pthread_attr_t and use it in
13479         sigevent.
13480         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13481         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13482         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13483         always remove CLK_TCK definition.
13484
13485 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13486
13487         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13488
13489 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13490
13491         * conform/run-conformtest.sh: New file.
13492         * conform/Makefile: Run run-conformtest for tests.
13493         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13494         support.
13495
13496         * conform/data/uchar.h-data: New file.
13497         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13498         * conform/data/arpa/inet.h-data: Likewise.
13499         * conform/data/assert.h-data: Likewise.
13500         * conform/data/complex.h-data: Likewise.
13501         * conform/data/cpio.h-data: Likewise.
13502         * conform/data/ctype.h-data: Likewise.
13503         * conform/data/dirent.h-data: Likewise.
13504         * conform/data/dlfcn.h-data: Likewise.
13505         * conform/data/errno.h-data: Likewise.
13506         * conform/data/fcntl.h-data: Likewise.
13507         * conform/data/float.h-data: Likewise.
13508         * conform/data/fmtmsg.h-data: Likewise.
13509         * conform/data/fnmatch.h-data: Likewise.
13510         * conform/data/ftw.h-data: Likewise.
13511         * conform/data/glob.h-data: Likewise.
13512         * conform/data/grp.h-data: Likewise.
13513         * conform/data/iconv.h-data: Likewise.
13514         * conform/data/inttypes.h-data: Likewise.
13515         * conform/data/langinfo.h-data: Likewise.
13516         * conform/data/libgen.h-data: Likewise.
13517         * conform/data/limits.h-data: Likewise.
13518         * conform/data/locale.h-data: Likewise.
13519         * conform/data/math.h-data: Likewise.
13520         * conform/data/monetary.h-data: Likewise.
13521         * conform/data/mqueue.h-data: Likewise.
13522         * conform/data/ndbm.h-data: Likewise.
13523         * conform/data/net/if.h-data: Likewise.
13524         * conform/data/netdb.h-data: Likewise.
13525         * conform/data/netinet/in.h-data: Likewise.
13526         * conform/data/nl_types.h-data: Likewise.
13527         * conform/data/poll.h-data: Likewise.
13528         * conform/data/pthread.h-data: Likewise.
13529         * conform/data/pwd.h-data: Likewise.
13530         * conform/data/regex.h-data: Likewise.
13531         * conform/data/sched.h-data: Likewise.
13532         * conform/data/search.h-data: Likewise.
13533         * conform/data/semaphore.h-data: Likewise.
13534         * conform/data/setjmp.h-data: Likewise.
13535         * conform/data/signal.h-data: Likewise.
13536         * conform/data/spawn.h-data: Likewise.
13537         * conform/data/stdarg.h-data: Likewise.
13538         * conform/data/stdio.h-data: Likewise.
13539         * conform/data/stdlib.h-data: Likewise.
13540         * conform/data/string.h-data: Likewise.
13541         * conform/data/strings.h-data: Likewise.
13542         * conform/data/stropts.h-data: Likewise.
13543         * conform/data/sys/ipc.h-data: Likewise.
13544         * conform/data/sys/mman.h-data: Likewise.
13545         * conform/data/sys/msg.h-data: Likewise.
13546         * conform/data/sys/resource.h-data: Likewise.
13547         * conform/data/sys/select.h-data: Likewise.
13548         * conform/data/sys/sem.h-data: Likewise.
13549         * conform/data/sys/shm.h-data: Likewise.
13550         * conform/data/sys/socket.h-data: Likewise.
13551         * conform/data/sys/stat.h-data: Likewise.
13552         * conform/data/sys/statvfs.h-data: Likewise.
13553         * conform/data/sys/time.h-data: Likewise.
13554         * conform/data/sys/timeb.h-data: Likewise.
13555         * conform/data/sys/times.h-data: Likewise.
13556         * conform/data/sys/types.h-data: Likewise.
13557         * conform/data/sys/uio.h-data: Likewise.
13558         * conform/data/sys/un.h-data: Likewise.
13559         * conform/data/sys/utsname.h-data: Likewise.
13560         * conform/data/sys/wait.h-data: Likewise.
13561         * conform/data/syslog.h-data: Likewise.
13562         * conform/data/tar.h-data: Likewise.
13563         * conform/data/termios.h-data: Likewise.
13564         * conform/data/utime.h-data: Likewise.
13565         * conform/data/utmpx.h-data: Likewise.
13566         * conform/data/varargs.h-data: Likewise.
13567         * conform/data/wchar.h-data: Likewise.
13568         * conform/data/wctype.h-data: Likewise.
13569         * conform/data/wordexp.h-data: Likewise.
13570
13571         * include/stropts.h: New file.
13572         * include/uchar.h: New file.
13573         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13574         * include/assert.h: Likewise.
13575         * include/ctype.h: Likewise.
13576         * include/dirent.h: Likewise.
13577         * include/dlfcn.h: Likewise.
13578         * include/fcntl.h: Likewise.
13579         * include/fnmatch.h: Likewise.
13580         * include/glob.h: Likewise.
13581         * include/grp.h: Likewise.
13582         * include/libio.h: Likewise.
13583         * include/locale.h: Likewise.
13584         * include/math.h: Likewise.
13585         * include/net/if.h: Likewise.
13586         * include/netdb.h: Likewise.
13587         * include/netinet/in.h: Likewise.
13588         * include/pthread.h: Likewise.
13589         * include/pwd.h: Likewise.
13590         * include/regex.h: Likewise.
13591         * include/sched.h: Likewise.
13592         * include/search.h: Likewise.
13593         * include/setjmp.h: Likewise.
13594         * include/signal.h: Likewise.
13595         * include/stdio.h: Likewise.
13596         * include/stdlib.h: Likewise.
13597         * include/string.h: Likewise.
13598         * include/sys/cdefs.h: Likewise.
13599         * include/sys/mman.h: Likewise.
13600         * include/sys/msg.h: Likewise.
13601         * include/sys/resource.h: Likewise.
13602         * include/sys/select.h: Likewise.
13603         * include/sys/socket.h: Likewise.
13604         * include/sys/stat.h: Likewise.
13605         * include/sys/statvfs.h: Likewise.
13606         * include/sys/time.h: Likewise.
13607         * include/sys/times.h: Likewise.
13608         * include/sys/uio.h: Likewise.
13609         * include/sys/utsname.h: Likewise.
13610         * include/sys/wait.h: Likewise.
13611         * include/termios.h: Likewise.
13612         * include/time.h: Likewise.
13613         * include/ulimit.h: Likewise.
13614         * include/unistd.h: Likewise.
13615         * include/utime.h: Likewise.
13616         * include/wchar.h: Likewise.
13617         * include/wctype.h: Likewise.
13618         * include/wordexp.h: Likewise.
13619
13620         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13621
13622         * time/time.h: TIME_UTC must be a macro.
13623         Make timespec_get available for ISO C11 only as well.
13624
13625 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13626
13627         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13628         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13629
13630 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13631
13632         * configure.in: Use -o not -a in test for unsupported multi-arch.
13633
13634 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13635
13636         * manual/texinfo.tex: Update to version 2012-01-19.16.
13637
13638 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13639
13640         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13641
13642 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13643
13644         [BZ #13738]
13645         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13646         * manual/fdl-1.3.texi: New file.
13647         * manual/fdl-1.1.texi: File removed.
13648
13649         [BZ #13738]
13650         * manual/libc.texinfo (FDL_VERSION): New @set.
13651         Use it for mention of FDL in cover text.
13652         (Documentation License): Use it in @include file name.
13653
13654 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13655             Roland McGrath  <roland@hack.frob.com>
13656
13657         [BZ #5461]
13658         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13659         not LONG_LONG_MAX and LONG_LONG_MIN.
13660         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13661         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13662         name.
13663         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13664
13665 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13666
13667         [BZ #2547]
13668         [BZ #11365]
13669         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13670         manipulate bits before adding and subtracting TWO23[sx].
13671         * math/libm-test.inc (nearbyint_test): Add more tests.
13672
13673 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13674
13675         [BZ #2548]
13676         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13677         bits before adding and subtracting TWO23[sx].
13678         * math/libm-test.inc (rint_test): Add more tests.
13679         (rint_test_tonearest): Likewise.
13680         (rint_test_towardzero): Likewise.
13681         (rint_test_downward): Likewise.
13682         (rint_test_upward: Likewise.
13683
13684 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13685
13686         [BZ #10110]
13687         * include/stdc-predef.h: New file.  Extracted from features.h.
13688         * include/features.h: Include stdc-predef.h.
13689         * Makefile (headers): Add stdc-predef.h.
13690         * CONFORMANCE (Compiler limitations): Update.
13691
13692 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13693
13694         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13695
13696 2012-02-21  David S. Miller  <davem@davemloft.net>
13697
13698         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13699         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13700
13701 2012-02-20  David S. Miller  <davem@davemloft.net>
13702
13703         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13704         using a normal save/restore sequence, rather than allocating a
13705         dummy stack frame just to store a frame pointer and restore.
13706         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13707
13708 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13709
13710         * manual/install.texi: Fix stray word in line-wrapped comment.
13711
13712 2012-02-20  David S. Miller  <davem@davemloft.net>
13713
13714         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13715         both binutils and gcc support GOTDATA.
13716
13717         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13718         "rd %pc" in the PIC register setup sequences.
13719
13720         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13721         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13722         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13723         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13724         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13725         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13726         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13727         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13728         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13729         (SYSCALL_ERROR_HANDLER): Likewise.
13730         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13731         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13732         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13733         (SYSCALL_ERROR_HANDLER): Likewise.
13734
13735         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13736         (HAVE_GCC_GOTDATA): New.
13737         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13738         relocation support in both binutils and gcc.
13739         * sysdeps/sparc/elf/configure: Regenerate.
13740
13741         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13742         * sysdeps/sparc/sparc32/elf/configure: Delete.
13743         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13744         * sysdeps/sparc/sparc64/elf/configure: Delete.
13745         * sysdeps/sparc/elf/configure.in: New file.
13746         * sysdeps/sparc/elf/configure: Generate.
13747
13748         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13749         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13750         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13751         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13752         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13753
13754 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13755
13756         * manual/install.texi: Do not mention specific glibc version
13757         numbers.
13758         * manual/libc.texinfo (VERSION, UPDATED): Update.
13759         (@copying): Use @copyright{} and range of years.
13760
13761 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13762
13763         [BZ #13695]
13764         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13765         [crti.S not in sysdirs] (generated): Do not append.
13766         [crti.S not in sysdirs] (omit-deps): Likewise.
13767         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13768         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13769         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13770         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13771         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13772         Likewise.
13773         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13774         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13775         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13776         * csu/defs.awk: Remove file.
13777         * sysdeps/generic/initfini.c: Likewise.
13778         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13779         variable.
13780         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13781         Likewise.
13782
13783 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13784
13785         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13786         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13787         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13788         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13789         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13790         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13791         <bits/epoll.h>.
13792         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13793         (__EPOLL_PACKED): Define to empty if not defined by
13794         <bits/epoll.h>.
13795         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13796         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13797         bits/epoll.h.
13798
13799 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13800
13801         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13802         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13803         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13804         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13805         <bits/timerfd.h>.
13806         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13807         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13808         bits/timerfd.h.
13809
13810 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13811
13812         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13813         in C locale.
13814         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13815         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13816         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13818
13819 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13820
13821         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13822         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13823
13824 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13825
13826         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13827         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13828         defined.
13829         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13830         Likewise.
13831         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13832         entry for 2.16.
13833
13834 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13835
13836         * math/w_acos.c: Use non-signaling floating-point comparisons.
13837         * math/w_acosf.c: Likewise.
13838         * math/w_acosh.c: Likewise.
13839         * math/w_acoshf.c: Likewise.
13840         * math/w_acoshl.c: Likewise.
13841         * math/w_acosl.c: Likewise.
13842         * math/w_asin.c: Likewise.
13843         * math/w_asinf.c: Likewise.
13844         * math/w_asinl.c: Likewise.
13845         * math/w_atanh.c: Likewise.
13846         * math/w_atanhf.c: Likewise.
13847         * math/w_atanhl.c: Likewise.
13848         * math/w_exp2.c: Likewise.
13849         * math/w_exp2f.c: Likewise.
13850         * math/w_exp2l.c: Likewise.
13851         * math/w_j0.c: Likewise.
13852         * math/w_j0f.c: Likewise.
13853         * math/w_j0l.c: Likewise.
13854         * math/w_j1.c: Likewise.
13855         * math/w_j1f.c: Likewise.
13856         * math/w_j1l.c: Likewise.
13857         * math/w_jn.c: Likewise.
13858         * math/w_jnf.c: Likewise.
13859         * math/w_log.c: Likewise.
13860         * math/w_log10.c: Likewise.
13861         * math/w_log10f.c: Likewise.
13862         * math/w_log10l.c: Likewise.
13863         * math/w_log2.c: Likewise.
13864         * math/w_log2f.c: Likewise.
13865         * math/w_log2l.c: Likewise.
13866         * math/w_logf.c: Likewise.
13867         * math/w_logl.c: Likewise.
13868         * math/w_sqrt.c: Likewise.
13869         * math/w_sqrtf.c: Likewise.
13870         * math/w_sqrtl.c: Likewise.
13871         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13872         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13873         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13874         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13875         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13876
13877 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13878
13879         [BZ #9739]
13880         * manual/string.texi (strnlen): Use correct parameter name in
13881         equivalent expression.
13882
13883 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13884
13885         [BZ #11174]
13886         * manual/users.texi (seteuid): Consistently use neweuid for
13887         argument name.
13888
13889 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13890
13891         [BZ #13704]
13892         * manual/nss.texi (Services in the NSS configuration): Correct
13893         list of services in example configuration file.
13894
13895 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
13896
13897         [BZ #11322]
13898         * manual/arith.texi: Remove statements about negative zero
13899         behaving identically to zero.
13900
13901 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13902
13903         [BZ #5993]
13904         * manual/install.texi: Do not document upgrading from libc5.
13905
13906 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13907
13908         [BZ #4596]
13909         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
13910
13911 2012-02-18  David S. Miller  <davem@davemloft.net>
13912
13913         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
13914         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
13915         %o7 across the call.
13916         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
13917         instead.
13918         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
13919         SETUP_PIC_REG_LEAF.
13920         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13921         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13922         * sysdeps/sparc/crtn.S: Likewise.
13923
13924 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13925
13926         * aout/Makefile: Remove.
13927
13928 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13929
13930         [BZ #13058]
13931         * manual/examples/argp-ex1.c (main): Format definition in GNU
13932         style.
13933         * manual/examples/argp-ex2.c (main): Likewise.
13934         * manual/examples/argp-ex3.c (main): Likewise.
13935         * manual/examples/argp-ex4.c (main): Likewise.
13936         * manual/examples/longopt.c (main): Use new-style prototype
13937         definition.
13938         * manual/examples/strncat.c (main): Specify return type and use
13939         (void) for arguments.
13940         * manual/examples/subopt.c (main): Use char **argv argument.
13941
13942 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13943
13944         [BZ #5077]
13945         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13946         rounding modes.
13947
13948 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13949
13950         [BZ #6907]
13951         * manual/string.texi (strchr): Change when strchrnul is
13952         recommended.
13953
13954 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13955
13956         [BZ #174]
13957         * manual/locale.texi (setlocale): Document LOCPATH.
13958
13959 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13960
13961         [BZ #10210]
13962         * manual/process.texi (execle): Move @dots{} before last argument.
13963
13964 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13965
13966         [BZ #12047]
13967         * manual/charset.texi (Generic Charset Conversion): Fix typo
13968         (LC_TYPE -> LC_CTYPE).
13969
13970 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13971
13972         [BZ #5805]
13973         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13974         (scalbnf): Likewise.
13975         (scalbnl): Likewise.
13976         (scalbln): Likewise.
13977         (scalblnf): Likewise.
13978         (scalblnl): Likewise.
13979         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13980         (vwarnx): Likewise.
13981         (verr): Likewise.
13982         (verrx): Likewise.
13983         * manual/filesys.texi (telldir): Use braces around return type.
13984         * manual/llio.texi (mmap): Add space after comma.
13985         (mmap64): Likewise.
13986         * manual/math.texi (jn): Use @var{} on parameter names.
13987         (jnf): Likewise.
13988         (jnl): Likewise.
13989         (yn): Likewise.
13990         (ynf): Likewise.
13991         (ynl): Likewise.
13992         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13993         line.
13994         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13995         "...".
13996         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13997         (sched_get_priority_max): Likewise.
13998         * manual/signal.texi (sigvec): Add space after comma.
13999         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14000         names.
14001         (if_indextoname): Likewise.
14002         (if_freenameindex): Likewise.
14003         (sendto): Use ',' instead of '.' in prototype.
14004         * manual/startup.texi (syscall): Use @dots{} instead of literal
14005         "...".
14006         * manual/stdio.texi (__fpending): Separate initial words of
14007         paragraph from @deftypefun line.
14008         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14009         "...".
14010         (vsyslog): Use @var{} on parameter names.
14011         * manual/terminal.texi (stty): Use @var{} on parameter names.
14012         * manual/users.texi (getutmp): Use @var{} on parameter names.
14013         (getutmpx): Likewise.
14014
14015 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14016
14017         [BZ #6884]
14018         * manual/stdio.texi (fopen): Fix typos in description of
14019         ",ccs=STRING".
14020
14021 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14022
14023         [BZ #4026]
14024         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14025         get clock_id definition.
14026
14027 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14028
14029         [BZ #4822]
14030         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14031         (madvise): Cast every argument to void on its own.
14032
14033 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14034
14035         [BZ #9902]
14036         * manual/startup.texi (Exit Status): Fix typo.
14037
14038 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14039
14040         [BZ #10140]
14041         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14042         * manual/examples/argp-ex2.c: Likewise.
14043         * manual/examples/argp-ex3.c: Likewise.
14044
14045 2012-02-16  Richard Henderson  <rth@redhat.com>
14046
14047         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14048         * sysdeps/s390/s390-32/initfini.c: Remove.
14049         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14050         * sysdeps/s390/s390-64/initfini.c: Remove.
14051
14052 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14053
14054         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14055         compiler output for sysdeps/generic/initfini.c.
14056         * sysdeps/sh/elf/initfini.c: Remove file.
14057
14058 2012-02-16  David S. Miller  <davem@davemloft.net>
14059
14060         [BZ #11494]
14061         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14062
14063         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14064         * sysdeps/sparc/crti.S: New file.
14065         * sysdeps/sparc/crtn.S: New file.
14066         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14067         * sysdeps/sparc/sparc64/Makefile: Likewise.
14068
14069 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14070
14071         [BZ #3335]
14072         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14073
14074 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14075
14076         [BZ #4822]
14077         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14078
14079         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14080         (write, read, close): Likewise.
14081         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14082
14083 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14084
14085         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14086         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14087         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14088         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14089         <bits/signalfd.h>.
14090         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14091         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14092         bits/signalfd.h.
14093
14094 2012-02-14  Marek Polacek  <polacek@redhat.com>
14095
14096         * sysdeps/x86_64/crti.S: New file.
14097         * sysdeps/x86_64/crtn.S: New file.
14098         * sysdeps/x86_64/elf/initfini.c: Remove file.
14099
14100 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14101
14102         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14103         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14104         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14105         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14106         <bits/inotify.h>.
14107         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14108         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14109         bits/inotify.h.
14110
14111 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14112
14113         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14114         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14115         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14116         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14117         <bits/eventfd.h>.
14118         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14119         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14120         bits/eventfd.h.
14121
14122 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14123
14124         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14125         __feraiseexcept instead of feraiseexcept.
14126
14127         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14128         nanosleep invocations.
14129         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14130         strings, and add error checking for a nanosleep invocations.
14131
14132 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14133
14134         Replace FSF snail mail address with URLs, as per GNU coding standards.
14135         Most of the snail mail addresses were wrong anyway, and omitting
14136         them makes the source code easier to maintain.  Almost all of the
14137         changes are to license notices and to locale LC_IDENTIFICATION
14138         addresses, except for this one:
14139         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14140         not its snail mail address.
14141
14142 2012-02-09  Richard Henderson  <rth@twiddle.net>
14143
14144         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14145         of kernel-features.h.
14146
14147         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14148
14149 2012-02-08  Marek Polacek  <polacek@redhat.com>
14150
14151         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14152         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14153         * sysdeps/gnu/_G_config.h: Likewise.
14154         * sysdeps/generic/_G_config.h: Likewise.
14155
14156 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14157
14158         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14159         tests.
14160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14161
14162         * sysdeps/powerpc/powerpc32/crti.S: New file.
14163         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14164         * sysdeps/powerpc/powerpc64/crti.S: New file.
14165         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14166
14167         * Makeconfig (have-initfini): Don't set.
14168         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14169         * configure.in (nopic_initfini): Don't substitute.
14170         * config.h.in (HAVE_INITFINI): Don't #undef.
14171         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14172         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14173
14174 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14175
14176         Support crti.S and crtn.S provided directly by architectures.
14177         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14178         [crti.S in sysdirs] (omit-deps): Likewise.
14179         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14180         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14181         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14182         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14183         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14184         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14185         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14186         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14187         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14188         compiler output for sysdeps/generic/initfini.c.
14189         * sysdeps/i386/elf/Makefile: Remove file.
14190         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14191
14192 2012-02-07  Marek Polacek  <polacek@redhat.com>
14193
14194         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14195         * sysdeps/gnu/_G_config.h: Likewise.
14196         * sysdeps/mach/hurd/_G_config.h: Likewise.
14197
14198 2012-02-07  Marek Polacek  <polacek@redhat.com>
14199
14200         * math/Makefile (tests): Add tst-CMPLX2.
14201         * math/tst-CMPLX2.c: New file.
14202
14203 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14204
14205         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14206
14207         * math/libm-test.inc (jn_test): Add missing L suffix.
14208
14209 2012-02-06  Marek Polacek  <polacek@redhat.com>
14210
14211         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14212         * sysdeps/i386/fpu/e_powf.S: Likewise.
14213         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14214         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14215         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14216         * sysdeps/i386/fpu/e_pow.S: Likewise.
14217         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14218         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14219         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14220         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14221         * sysdeps/i386/fpu/e_log2.S: Likewise.
14222         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14223         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14224         * sysdeps/i386/fpu/e_powl.S: Likewise.
14225         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14226         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14227         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14228         * sysdeps/i386/fpu/e_logl.S: Likewise.
14229         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14230         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14231         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14232         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14233         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14234         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14235         * sysdeps/i386/fpu/e_log.S: Likewise.
14236         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14237         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14238         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14239         * sysdeps/i386/fpu/e_logf.S: Likewise.
14240         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14241         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14242         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14243         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14244         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14245         * sysdeps/i386/fpu/e_log10.S: Likewise.
14246         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14247         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14248         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14249         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14250         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14251         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14252         * sysdeps/i386/asm-syntax.h: Likewise.
14253         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14254         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14255         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14256         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14257         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14258         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14259         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14260         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14261         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14262         * sysdeps/powerpc/sysdep.h: Likewise.
14263         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14264         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14265
14266 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14267
14268         [BZ #411]
14269         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14270
14271 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14272
14273         * sysdeps/i386/sysdep.h: Include <features.h>.
14274         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14275         version.
14276
14277 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14278
14279         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14280         Define.
14281         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14282         LOAD_PIC_REG_STR.
14283
14284 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14285
14286         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14287         (SETUP_PIC_REG): Use GET_PC_THUNK.
14288         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14289         macro.
14290
14291 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14292
14293         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14294         for non-PIC compilation.
14295         (SETUP_PIC_REG): Add .p2align directive.
14296         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14297         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14298         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14299         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14300         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14301         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14302         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14303         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14304         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14305         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14306         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14307         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14308         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14309         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14310         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14311         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14312         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14313         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14314         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14315         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14316         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14317         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14318         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14319         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14320         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14321         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14322         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14323         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14324         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14325         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14326         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14327         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14328         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14329         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14330         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14331         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14332         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14333         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14334         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14335         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14336         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14337
14338 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14339
14340         * math/tst-CMPLX.c: Include <stdio.h>.
14341
14342 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14343
14344         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14345         float.
14346         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14347         * sysdeps/sparc/bits/mathdef.h: Likewise.
14348
14349 2012-01-31  Marek Polacek  <polacek@redhat.com>
14350
14351         * libio/libio.h: Don't define _PARAMS.
14352         * locale/programs/config.h: Don't define PARAMS.
14353         * stdlib/strtol_l.c: Likewise.
14354         (__strtol_l): Remove PARAMS from the prototype.
14355
14356 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14357
14358         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14359         names.  Just use the correct names.  Remove unnecessary wrapper
14360         functions.
14361         * malloc/arena.c: Likewise.
14362         * malloc/hooks.c: Likewise.
14363
14364         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14365         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14366         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14367
14368 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14369
14370         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14371         into tail calls.
14372         (update_get_addr): New function.
14373         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14374         GET_ADDR_MODULE parameter.
14375
14376 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14377
14378         * crypt/cert.c: Remove __STDC__ conditionals.
14379         * crypt/crypt-entry.c: Likewise.
14380         * crypt/crypt_util.c: Likewise.
14381         * libio/filedoalloc.c: Likewise.
14382         * libio/fileops.c: Likewise.
14383         * libio/genops.c: Likewise.
14384         * libio/iofclose.c: Likewise.
14385         * libio/iofdopen.c: Likewise.
14386         * libio/iofopen.c: Likewise.
14387         * libio/iofopen64.c: Likewise.
14388         * libio/iogetdelim.c: Likewise.
14389         * libio/iopopen.c: Likewise.
14390         * libio/obprintf.c: Likewise.
14391         * libio/oldfileops.c: Likewise.
14392         * libio/oldiofclose.c: Likewise.
14393         * libio/oldiofdopen.c: Likewise.
14394         * libio/oldiofopen.c: Likewise.
14395         * libio/oldiopopen.c: Likewise.
14396         * libio/wfiledoalloc.c: Likewise.
14397         * libio/wgenops.c: Likewise.
14398         * locale/programs/xmalloc.c: Likewise.
14399         * misc/syslog.c: Likewise.
14400         * stdio-common/xbug.c: Likewise.
14401         * string/memchr.c: Likewise.
14402         * string/memcmp.c: Likewise.
14403         * string/memrchr.c: Likewise.
14404         * string/rawmemchr.c: Likewise.
14405         * sysdeps/posix/getcwd.c: Likewise.
14406         * time/strftime_l.c: Likewise.
14407
14408 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14409
14410         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14411         * config.make.in (config-cflags-sse2avx): Define.
14412         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14413         Fix typo.
14414
14415 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14416
14417         * scripts/config.guess: Update from upstream config git repository.
14418         * scripts/config.sub: Likewise.
14419
14420 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14421
14422         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14423         (EM_NUM): Update.
14424         (R_TILEPRO_*, R_TILEGX_*): New macros.
14425
14426         * scripts/firstversions.awk: Fix bug in version range handling.
14427
14428         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14429
14430         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14431
14432         * include/sys/epoll.h: New file.
14433         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14434         libc_hidden_def.
14435
14436 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14437
14438         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14439         Avoid unnecessary __WORDSIZE == 64 test.
14440         (fmaxf): Use VEX format if possible.
14441         (fmax): Likewise.
14442         (fminf): Likewise.
14443         (fmin): Likewise.
14444
14445         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14446         * math/math_private.h: Remove libc_fegetround* and
14447         libc_fesetround*.
14448         * sysdeps/i386/configure.in: Check for -msse2avx.
14449         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14450         also if SSE2AVX is defined.
14451         Remove libc_fegetround* and libc_fesetround*.
14452         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14453         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14454         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14455         of HAS_YMM_USABLE.
14456         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14457         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14458         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14459         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14460         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14461
14462         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14463
14464 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14465
14466         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14467         size is not set.
14468         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14469
14470 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14471
14472         [BZ #13618]
14473         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14474         relocation.
14475         * Makeconfig (libm): Define.
14476         * elf/Makefile: Add rules to build and run tst-relsort1.
14477         * elf/tst-relsort1.c: New file.
14478         * elf/tst-relsort1mod1.c: New file.
14479         * elf/tst-relsort1mod2.c: New file.
14480
14481 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14482
14483         * math/s_ldexp.c: Remove __STDC__ conditionals.
14484         * math/s_ldexpf.c: Likewise.
14485         * math/s_ldexpl.c: Likewise.
14486         * math/s_nextafter.c: Likewise.
14487         * math/s_nexttowardf.c: Likewise.
14488         * math/s_significand.c: Likewise.
14489         * math/s_significandf.c: Likewise.
14490         * math/s_significandl.c: Likewise.
14491         * math/w_jnl.c: Likewise.
14492         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14493         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14494         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14495         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14496         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14497         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14498         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14499         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14500         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14501         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14502         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14503         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14504         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14505         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14506         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14507         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14508         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14509         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14510         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14511         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14512         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14513         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14514         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14515         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14516         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14517         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14518         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14519         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14520         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14521         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14522         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14523         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14524         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14525         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14526         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14527         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14528         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14529         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14530         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14531         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14532         * sysdeps/ieee754/k_standard.c: Likewise.
14533         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14534         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14535         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14536         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14537         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14538         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14539         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14540         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14541         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14542         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14543         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14544         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14545         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14546         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14547         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14548         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14549         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14550         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14551         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14552         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14553         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14554         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14555         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14556         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14557         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14558         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14559         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14560         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14561         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14562         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14563         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14564         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14565         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14566         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14567         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14568         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14569         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14570         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14571         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14572         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14573         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14574         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14575         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14576         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14577         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14578         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14579         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14580         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14581         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14582         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14583         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14584         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14585         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14586         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14587         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14588         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14589         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14590         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14591         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14592         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14593         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14594         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14595         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14596         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14597         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14598         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14599         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14600         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14601         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14602         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14603         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14604         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14605         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14606         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14607         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14608         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14609         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14610         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14611         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14612         * sysdeps/ieee754/s_matherr.c: Likewise.
14613         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14614         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14615         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14616         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14617
14618 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14619
14620         * crypt/md5.h: Remove __STDC__ conditionals.
14621         * libio/libioP.h: Likewise.
14622         * locale/programs/config.h: Likewise.
14623         * sysdeps/generic/sysdep.h: Likewise.
14624         * sysdeps/i386/asm-syntax.h: Likewise.
14625         * sysdeps/s390/asm-syntax.h: Likewise.
14626         * sysdeps/unix/sysdep.h: Likewise.
14627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14629
14630 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14631
14632         * libio/libio.h: Remove __STDC__ conditionals.
14633         * malloc/obstack.h: Likewise.
14634         * math/complex.h: Likewise.
14635         * math/math.h: Likewise.
14636         * sysdeps/generic/_G_config.h: Likewise.
14637         * sysdeps/gnu/_G_config.h: Likewise.
14638         * sysdeps/mach/hurd/_G_config.h: Likewise.
14639         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14640         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14641         * sysdeps/sparc/bits/mathdef.h: Likewise.
14642
14643 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14644
14645         [BZ #13583]
14646         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14647         Clean up HAS_* macros.
14648         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14649         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14650         possible.
14651         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14652         HAS_AVX.
14653         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14654         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14655         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14656         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14657         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14658
14659 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14660
14661         * elf/tst-unique3.cc (gets): Remove declaration.
14662         * elf/tst-unique3lib.cc (gets): Likewise.
14663         * elf/tst-unique3lib2.cc (gets): Likewise.
14664         * elf/tst-unique4.cc (gets): Likewise.
14665
14666 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14667
14668         * include/stdio.h: Add C++ protection.  Add gets declarations and
14669         definitions.
14670         * debug/tst-chk1.c: Don't declare gets here.
14671         * stdio-common/tst-gets.c: Likewise.
14672
14673 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14674
14675         * posix/glob: Remove directory.
14676
14677 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14678
14679         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14680
14681 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14682
14683         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14684         of the non-standard EPFNOSUPPORT.
14685
14686 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14687
14688         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14689         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14690         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14691
14692 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14693
14694         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14695
14696 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14697
14698         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14699         transient errors.
14700         * nscd/grpcache.c (cache_addgr): Likewise.
14701         * nscd/hstcache.c (cache_addhst): Likewise.
14702         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14703         * nscd/pwdcache.c (cache_addpw): Likewise.
14704         * nscd/servicescache.c (cache_addserv): Likewise.
14705
14706 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14707
14708         * malloc/malloc.c: Various cleanups.
14709         * malloc/hooks.c: Likewise.
14710
14711         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14712         * stdlib/bug-fmtmsg1.c: New file.
14713
14714         * stdlib/fmtmsg.c (init): Add missing unlock.
14715         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14716
14717 2012-01-12  Marek Polacek  <polacek@redhat.com>
14718
14719         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14720         and _GNU_SOURCE.
14721
14722 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14723
14724         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14725         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14726         macro to ensure uniqueness of label name.
14727         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14728         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14729
14730 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14731
14732         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14733
14734         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14735         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14736         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14737         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14738
14739 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14740
14741         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14742
14743         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14744         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14745         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14746
14747         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14748
14749         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14750         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14751         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14752         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14753
14754         * math/bits/math-finite.h: Add ldexp support.
14755
14756 2012-01-10  Marek Polacek  <polacek@redhat.com>
14757
14758         * locale/programs/localedef.h (show_archive_content): Add noreturn
14759         attribute.
14760
14761 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14762
14763         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14764
14765 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14766
14767         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14768
14769         * io/Makefile (headers): Add bits/poll2.h.
14770
14771 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14772
14773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14774         typo #include statement.
14775
14776 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14777
14778         * include/sys/cdefs.h: Define __attribute_alloc_size.
14779         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14780         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14781         * elf/pldd.c: Likewise.
14782         * iconv/iconv_charmap.c: Likewise.
14783         * iconv/iconvconfig.c: Likewise.
14784         * iconv/strtab.c: Likewise.
14785         * locale/programs/locale.c: Likewise.
14786         * locale/programs/localedef.h: Likewise.
14787         * locale/programs/simple-hash.c: Likewise.
14788         * nscd/nscd.h: Likewise.
14789         * nss/makedb.c: Likewise.
14790         * sysdeps/generic/ldconfig.h: Likewise.
14791         * locale/programs/localedef.c: Remove xmalloc prototype.
14792         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14793
14794 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14795
14796         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14797         appropriate.
14798
14799 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14800
14801         * math/Makefile (tests): Add tst-CMPLX.
14802         * math/tst-CMPLX.c: New file.
14803
14804         * math/complex.h (CMPLXL): Fix typo.
14805
14806         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14807         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14808         GLIBC_2.16.
14809         * debug/tst-chk1.c: Add poll and ppoll tests.
14810         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14811         * include/sys/poll.h: Add hidden proto for ppoll.
14812         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14813         * sysdeps/mach/hurd/ppoll.c: Likewise.
14814         * io/ppoll.c: Likewise.
14815         * debug/poll_chk.c: New file.
14816         * debug/ppoll_chk.c: New file.
14817         * include/bits/poll2.h: New file.
14818         * io/bits/poll2.h: New file.
14819
14820         [BZ #1350]
14821         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14822
14823         * configure.in: static is always set to yes.  Remove.
14824         * config.make.in: Don't set build-static.
14825         * Makeconfig: Remove use of build-static.
14826         * dlfcn/Makefile: Likewise.
14827         * elf/Makefile: Likewise.
14828         * math/Makefile: Likewise.
14829         * misc/Makefile: Likewise.
14830         * nptl/Makefile: Likewise.
14831         * sysdeps/mach/hurd/Makefile: Likewise.
14832
14833         * configure.in: PWD_P is not used anymore.
14834         * config.make.in: Remove PWD_P entry.
14835
14836         * configure.in: Remove last remnants of RANLIB.
14837         No need to check for signed size_t anymore.
14838         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14839         and IA-64.
14840         Remove __builtin_expect test because we require at least gcc 3.4.
14841         * aclocal.m4: Likewise.
14842
14843         * wcsmbs/mbrtoc16.c: Implement using towc function.
14844         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14845         * wcsmbs/wcsmbsload.c: Likewise.
14846         * iconv/gconv_simple.c: Likewise.
14847         * iconv/gconv_int.h: Likewise.
14848         * iconv/gconv_builtin.h: Likewise.
14849         * iconv/iconv_prog.c: Remove CHAR16 handling.
14850
14851         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14852
14853         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14854
14855         * configure.in: Remove --with-elf and --enable-bounded options.
14856         Dont set base_machine for ia64.  More non-ELF conditions removed.
14857         Remove testing and setting of leading underscore information.
14858         * config.make.in (build-bounded): Set to no.
14859         * config.h.in: Remove NO_UNDERSCORES entry.
14860         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14861         them.
14862         * csu/start.c: Remove !NO_UNDERSCORE code.
14863         * locale/localeinfo.h: Likewise.
14864         * sysdeps/generic/machine-gmon.h: Likewise.
14865         * sysdeps/generic/sysdep.h: Likewise.
14866         * sysdeps/i386/sysdep.h: Likewise.
14867         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14868         * sysdeps/mach/sysdep.h: Likewise.
14869         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14870         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14871         * sysdeps/sh/sysdep.h: Likewise.
14872         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14873         * sysdeps/unix/i386/sysdep.S: Likewise.
14874         * sysdeps/unix/sparc/start.c: Likewise.
14875         * sysdeps/unix/sparc/sysdep.S: Likewise.
14876         * sysdeps/unix/sparc/sysdep.h: Likewise.
14877         * sysdeps/unix/start.c: Likewise.
14878         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14879         * sysdeps/x86_64/sysdep.h: Likewise.
14880
14881 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14882
14883         [BZ #13553]
14884         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14885         for non-gcc.
14886         * argp/argp-fmtstream.h: Use const instead __const.
14887         * argp/argp.h: Likewise.
14888         * assert/assert.h: Likewise.
14889         * bits/fenv.h: Likewise.
14890         * bits/sched.h: Likewise.
14891         * bits/sigset.h: Likewise.
14892         * bits/sigthread.h: Likewise.
14893         * catgets/nl_types.h: Likewise.
14894         * conform/data/pthread.h-data: Likewise.
14895         * crypt/crypt-private.h: Likewise.
14896         * crypt/crypt.h: Likewise.
14897         * crypt/crypt_util.c: Likewise.
14898         * ctype/ctype.h: Likewise.
14899         * debug/execinfo.h: Likewise.
14900         * debug/mbsnrtowcs_chk.c: Likewise.
14901         * debug/mbsrtowcs_chk.c: Likewise.
14902         * debug/wcsnrtombs_chk.c: Likewise.
14903         * debug/wcsrtombs_chk.c: Likewise.
14904         * debug/wcstombs_chk.c: Likewise.
14905         * dirent/dirent.h: Likewise.
14906         * dlfcn/dlfcn.h: Likewise.
14907         * elf/neededtest4.c: Likewise.
14908         * grp/grp.h: Likewise.
14909         * gshadow/gshadow.h: Likewise.
14910         * iconv/gconv.h: Likewise.
14911         * iconv/gconv_int.h: Likewise.
14912         * iconv/gconv_simple.c: Likewise.
14913         * iconv/iconv.h: Likewise.
14914         * iconv/loop.c: Likewise.
14915         * iconv/skeleton.c: Likewise.
14916         * include/aio.h: Likewise.
14917         * include/aliases.h: Likewise.
14918         * include/argz.h: Likewise.
14919         * include/arpa/inet.h: Likewise.
14920         * include/assert.h: Likewise.
14921         * include/dirent.h: Likewise.
14922         * include/dlfcn.h: Likewise.
14923         * include/execinfo.h: Likewise.
14924         * include/fcntl.h: Likewise.
14925         * include/fenv.h: Likewise.
14926         * include/glob.h: Likewise.
14927         * include/grp.h: Likewise.
14928         * include/libintl.h: Likewise.
14929         * include/mntent.h: Likewise.
14930         * include/netdb.h: Likewise.
14931         * include/pwd.h: Likewise.
14932         * include/rpc/netdb.h: Likewise.
14933         * include/sched.h: Likewise.
14934         * include/search.h: Likewise.
14935         * include/shadow.h: Likewise.
14936         * include/signal.h: Likewise.
14937         * include/stdio.h: Likewise.
14938         * include/stdlib.h: Likewise.
14939         * include/string.h: Likewise.
14940         * include/sys/socket.h: Likewise.
14941         * include/sys/stat.h: Likewise.
14942         * include/sys/statfs.h: Likewise.
14943         * include/sys/statvfs.h: Likewise.
14944         * include/sys/syslog.h: Likewise.
14945         * include/sys/time.h: Likewise.
14946         * include/sys/uio.h: Likewise.
14947         * include/time.h: Likewise.
14948         * include/unistd.h: Likewise.
14949         * include/utmp.h: Likewise.
14950         * include/wchar.h: Likewise.
14951         * include/wctype.h: Likewise.
14952         * inet/aliases.h: Likewise.
14953         * inet/arpa/inet.h: Likewise.
14954         * inet/netinet/ether.h: Likewise.
14955         * inet/netinet/in.h: Likewise.
14956         * intl/libintl.h: Likewise.
14957         * io/bits/fcntl2.h: Likewise.
14958         * io/fcntl.h: Likewise.
14959         * io/ftw.h: Likewise.
14960         * io/sys/poll.h: Likewise.
14961         * io/sys/stat.h: Likewise.
14962         * io/sys/statfs.h: Likewise.
14963         * io/sys/statvfs.h: Likewise.
14964         * io/utime.h: Likewise.
14965         * libio/bits/stdio.h: Likewise.
14966         * libio/bits/stdio2.h: Likewise.
14967         * libio/libio.h: Likewise.
14968         * libio/libioP.h: Likewise.
14969         * libio/stdio.h: Likewise.
14970         * locale/lc-ctype.c: Likewise.
14971         * locale/locale.h: Likewise.
14972         * login/utmp.h: Likewise.
14973         * malloc/arena.c: Likewise.
14974         * malloc/malloc.c: Likewise.
14975         * malloc/malloc.h: Likewise.
14976         * malloc/mcheck.c: Likewise.
14977         * malloc/mtrace.c: Likewise.
14978         * math/bits/mathcalls.h: Likewise.
14979         * math/fenv.h: Likewise.
14980         * math/math_private.h: Likewise.
14981         * misc/bits/error.h: Likewise.
14982         * misc/bits/syslog.h: Likewise.
14983         * misc/err.h: Likewise.
14984         * misc/error.h: Likewise.
14985         * misc/fstab.h: Likewise.
14986         * misc/mntent.h: Likewise.
14987         * misc/regexp.h: Likewise.
14988         * misc/search.h: Likewise.
14989         * misc/sgtty.h: Likewise.
14990         * misc/sys/mman.h: Likewise.
14991         * misc/sys/syslog.h: Likewise.
14992         * misc/sys/uio.h: Likewise.
14993         * misc/sys/xattr.h: Likewise.
14994         * misc/ttyent.h: Likewise.
14995         * nis/rpcsvc/ypclnt.h: Likewise.
14996         * nss/nss.h: Likewise.
14997         * posix/bits/unistd.h: Likewise.
14998         * posix/fnmatch.h: Likewise.
14999         * posix/glob.h: Likewise.
15000         * posix/sched.h: Likewise.
15001         * posix/spawn.h: Likewise.
15002         * posix/sys/wait.h: Likewise.
15003         * posix/unistd.h: Likewise.
15004         * posix/wordexp.h: Likewise.
15005         * pwd/pwd.h: Likewise.
15006         * resolv/netdb.h: Likewise.
15007         * resource/sys/resource.h: Likewise.
15008         * rt/aio.h: Likewise.
15009         * rt/bits/mqueue2.h: Likewise.
15010         * rt/mqueue.h: Likewise.
15011         * shadow/shadow.h: Likewise.
15012         * signal/signal.h: Likewise.
15013         * socket/send.c: Likewise.
15014         * socket/sendto.c: Likewise.
15015         * socket/sys/socket.h: Likewise.
15016         * stdio-common/printf.h: Likewise.
15017         * stdlib/bits/stdlib.h: Likewise.
15018         * stdlib/fmtmsg.h: Likewise.
15019         * stdlib/monetary.h: Likewise.
15020         * stdlib/stdlib.h: Likewise.
15021         * stdlib/ucontext.h: Likewise.
15022         * streams/stropts.h: Likewise.
15023         * string/argz.h: Likewise.
15024         * string/bits/string2.h: Likewise.
15025         * string/string.h: Likewise.
15026         * string/strings.h: Likewise.
15027         * sunrpc/rpc/auth.h: Likewise.
15028         * sunrpc/rpc/auth_des.h: Likewise.
15029         * sunrpc/rpc/clnt.h: Likewise.
15030         * sunrpc/rpc/netdb.h: Likewise.
15031         * sunrpc/rpc/pmap_clnt.h: Likewise.
15032         * sunrpc/rpc/xdr.h: Likewise.
15033         * sysdeps/generic/inttypes.h: Likewise.
15034         * sysdeps/generic/net/if.h: Likewise.
15035         * sysdeps/generic/sys/swap.h: Likewise.
15036         * sysdeps/gnu/net/if.h: Likewise.
15037         * sysdeps/gnu/utmpx.h: Likewise.
15038         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15039         * sysdeps/i386/i486/bits/string.h: Likewise.
15040         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15041         * sysdeps/s390/bits/string.h: Likewise.
15042         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15043         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15044         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15045         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15046         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15047         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15048         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15049         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15050         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15051         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15052         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15053         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15054         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15055         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15056         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15057         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15058         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15059         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15060         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15061         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15062         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15063         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15064         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15065         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15066         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15067         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15068         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15069         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15070         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15071         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15072         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15073         * sysvipc/sys/ipc.h: Likewise.
15074         * sysvipc/sys/msg.h: Likewise.
15075         * sysvipc/sys/sem.h: Likewise.
15076         * sysvipc/sys/shm.h: Likewise.
15077         * termios/termios.h: Likewise.
15078         * time/sys/time.h: Likewise.
15079         * time/time.h: Likewise.
15080         * wcsmbs/bits/wchar2.h: Likewise.
15081         * wcsmbs/uchar.h: Likewise.
15082         * wcsmbs/wchar.h: Likewise.
15083         * wctype/wctype.h: Likewise.
15084
15085         [BZ #13551]
15086         * Makeconfig: Remove all but ELF support including AIX support.
15087         * Makerules: Likewise.
15088         * config.h.in: Likewise.
15089         * config.make.in: Likewise.
15090         * configure: Likewise.
15091         * configure.in: Likewise.
15092         * csu/Makefile: Likewise.
15093         * csu/version.c: Likewise.
15094         * debug/Makefile: Likewise.
15095         * dlfcn/Makefile: Likewise.
15096         * elf/Makefile: Likewise.
15097         * extra-lib.mk: Likewise.
15098         * iconv/Makefile: Likewise.
15099         * include/libc-symbols.h: Likewise.
15100         * include/shlib-compat.h: Likewise.
15101         * resolv/Makefile: Likewise.
15102         * resolv/res_libc.c: Likewise.
15103         * rt/Makefile: Likewise.
15104         * sysdeps/i386/asm-syntax.h: Likewise.
15105         * sysdeps/i386/sysdep.h: Likewise.
15106         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15107         * sysdeps/mach/sysdep.h: Likewise.
15108         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15109         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15110         * sysdeps/s390/asm-syntax.h: Likewise.
15111         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15112         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15113         * sysdeps/sh/sysdep.h: Likewise.
15114         * sysdeps/unix/sparc/sysdep.h: Likewise.
15115         * sysdeps/wordsize-32/divdi3.c: Likewise.
15116         * sysdeps/x86_64/sysdep.h: Likewise.
15117
15118         * argp/Versions: Remove _argp_unlock_xxx.
15119
15120         [BZ #13559]
15121         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15122         * abilist/libBrokenLocale.abilist: Likewise.
15123         * abilist/libanl.abilist: Likewise.
15124         * abilist/libc.abilist: Likewise.
15125         * abilist/libcrypt.abilist: Likewise.
15126         * abilist/libdl.abilist: Likewise.
15127         * abilist/libm.abilist: Likewise.
15128         * abilist/libnsl.abilist: Likewise.
15129         * abilist/libpthread.abilist: Likewise.
15130         * abilist/libresolv.abilist: Likewise.
15131         * abilist/librt.abilist: Likewise.
15132         * abilist/libthread_db.abilist: Likewise.
15133         * abilist/libutil.abilist: Likewise.
15134         * abilist/libnss_db.abilist: New file.
15135
15136         * scripts/abilist.awk: Add support for indirect functions.
15137
15138         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15139
15140         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15141
15142         * shlib-versions: Remove entries for ports architectures.
15143
15144         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15145         files in ports.
15146         * elf/stackguard-macros.h: Remove support for IA-64.
15147         * elf/tst-auditmod1.c: Likewise.
15148         * sysdeps/generic/ldsodefs.h: Likewise.
15149
15150         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15151         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15152         configure files.
15153
15154         [BZ #13552]
15155         * configure.in: Remove --enable-omitfp support.
15156         * FAQ.in: Adjust.
15157         * config.make.in: Likewise.
15158         * Makeconfig: Likewise.
15159         * manual/install.texi: Likewise.
15160
15161         In case anyone cares, the IA-64 architecture could move to ports.
15162         * sysdeps/ia64/*: Removed.
15163         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15164         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15165
15166         [BZ #13555]
15167         * configure.in: Remove entries for unsupported architectures.
15168
15169         [BZ #13533]
15170         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15171         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15172         routines.
15173         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15174         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15175         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15176         fall back to using wcrtomb.
15177         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15178         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15179         renaming.
15180         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15181         * wcsmbs/tst-c16c32-1.c: New file.
15182
15183         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15184         local variable.
15185
15186         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15187
15188         * elf/tst-unique3.cc: Add explicit declaration of gets.
15189         * elf/tst-unique3lib.cc: Likewise.
15190         * elf/tst-unique3lib2.cc: Likewise.
15191         * elf/tst-unique4.cc: Likewise.
15192
15193         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15194
15195 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15196
15197         [BZ #13566]
15198         * assert/assert.h (static_assert): Don't define for C++.
15199         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15200         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15201
15202 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15203
15204         * iconv/loop.c (single loop): Fix assertion in storing of
15205         remaining bytes.
15206
15207         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15208
15209 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15210
15211         * posix/getconf.c: Update copyright year.
15212         * nss/getent.c: Likewise.
15213         * nss/makedb.c: Likewise.
15214         * iconv/iconvconfig.c: Likewise.
15215         * iconv/iconv_prog.c: Likewise.
15216         * elf/ldconfig.c: Likewise.
15217         * elf/pldd.c: Likewise.
15218         * elf/sotruss.ksh: Likewise.
15219         * catgets/gencat.c: Likewise.
15220         * csu/version.c: Likewise.
15221         * elf/ldd.bash.in: Likewise.
15222         * elf/sprof.c (print_version): Likewise.
15223         * locale/programs/locale.c: Likewise.
15224         * locale/programs/localedef.c: Likewise.
15225         * login/programs/pt_chown.c: Likewise.
15226         * nscd/nscd.c (print_version): Likewise.
15227         * debug/xtrace.sh: Likewise.
15228         * malloc/memusage.sh: Likewise.
15229         * malloc/mtrace.pl: Likewise.
15230         * debug/catchsegv.sh: Likewise.
15231
15232 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15233
15234         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15235         pure attribute.
15236
15237 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15238
15239         [BZ #13533]
15240         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15241         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15242         transformations.
15243         * iconv/gconv_int.h: Likewise.
15244         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15245         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15246         from libc for GLIBC_2.16.
15247         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15248         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15249         * wcsmbs/uchar.h: Really define mbstate_t.
15250         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15251         * wcsmbs/c16rtomb.c: New file.
15252         * wcsmbs/mbrtoc16.c: New file.
15253         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15254         for C/POSIX locale.
15255         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15256         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15257
15258         * wcsmbs/wchar.h: Add missing __restrict.
15259
15260 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15261
15262         [BZ #13532]
15263         * time/Makefile (routines): Add timespec_get.
15264         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15265         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15266         timespec for ISO C11.
15267         * time/timespec_get.c: New file.
15268         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15269         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15270
15271         [BZ #13531]
15272         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15273         * stdlib/stdlib.h: Declare aligned_alloc.
15274         * Versions.def: Add GLIBC_2.16 for libc.
15275         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15276
15277         [BZ 13527]
15278         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15279         ISO C11.
15280
15281         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15282         code.
15283
15284         [BZ #13528]
15285         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15286
15287         [BZ #13529]
15288         * assert/assert.h (static_assert): Define.
15289
15290         * version.h: Update for 2.16 development version.
15291
15292         [BZ #13526]
15293         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15294         _ISOC11_SOURCE.
15295
15296         * version.h (RELEASE): Bump for 2.15 release.
15297         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15298
15299         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15300         Patch by Marek Polacek <mpolacek@redhat.com>.
15301
15302         * bits/byteswap.h: Protect long long constants with __extension__.
15303         * sysdeps/i386/bits/byteswap.h: Likewise.
15304         * sysdeps/ia64/bits/byteswap.h: Likewise.
15305         * sysdeps/s390/bits/byteswap.h: Likewise.
15306         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15307
15308 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15309
15310         [BZ #13540]
15311         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15312         destination buffer.
15313         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15314
15315 2011-12-23  Marek Polacek  <polacek@redhat.com>
15316
15317         * elf/dl-addr.c (determine_info): Add inline keyword.
15318         * elf/tst-auditmod4b.c (check_avx): Likewise.
15319         * elf/tst-auditmod6b.c (check_avx): Likewise.
15320         * elf/tst-auditmod6c.c (check_avx): Likewise.
15321         * elf/tst-auditmod7b.c (check_avx): Likewise.
15322
15323 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15324
15325         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15326         !__SSE_MATH__.
15327
15328 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15329
15330         [BZ #13540]
15331         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15332         processing for last bytes.
15333
15334 2011-08-06  Bruno Haible  <bruno@clisp.org>
15335
15336         [BZ #13061]
15337         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15338         U+0385, not to U+1FEE.
15339
15340         [BZ #13062]
15341         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15342         entry for U+00A5 U+0301.
15343
15344 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15345
15346         [BZ #13166]
15347         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15348         buffer for the output is too small.
15349
15350         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15351         optimization.
15352
15353         [BZ #13185]
15354         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15355         SSE flags if possible.
15356
15357 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15358
15359         [BZ #13540]
15360         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15361         processing for last bytes.
15362
15363 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15364
15365         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15366         (syscall-list-default-options, syscall-list-default-condition)
15367         (syscall-list-includes): Define.
15368         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15369         list of ABIs and options and #if conditions for each ABI.  Do not
15370         handle common syscalls between ABIs specially.
15371         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15372         Remove.
15373         (syscall-list-variants, syscall-list-32bit-options)
15374         (syscall-list-32bit-condition, syscall-list-64bit-options)
15375         (syscall-list-64bit-condition): Define.
15376         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15377         (syscall-list-variants, syscall-list-32bit-options)
15378         (syscall-list-32bit-condition, syscall-list-64bit-options)
15379         (syscall-list-64bit-condition): Define.
15380         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15381         Remove.
15382         (syscall-list-variants, syscall-list-32bit-options)
15383         (syscall-list-32bit-condition, syscall-list-64bit-options)
15384         (syscall-list-64bit-condition): Define.
15385         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15386         Remove.
15387         (syscall-list-variants, syscall-list-32bit-options)
15388         (syscall-list-32bit-condition, syscall-list-64bit-options)
15389         (syscall-list-64bit-condition): Define.
15390
15391 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15392
15393         * locale/iso-639.def: Add brx entry.
15394
15395         [BZ #13328]
15396         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15397         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15398
15399         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15400         __feraiseexcept_renamed.
15401
15402 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15403
15404         [BZ #13538]
15405         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15406         EPOLLET with unsigned values.
15407         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15408         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15409
15410         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15411         to large cancellation.
15412         * math/s_cacoshf.c: Likewise.
15413         * math/s_cacoshl.c: Likewise.
15414
15415 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15416
15417         [BZ #13305]
15418         [BZ #12786]
15419         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15420         * math/s_cacoshf.c: Likewise.
15421         * math/s_cacoshl.c: Likewise.
15422
15423 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15424
15425         [BZ #13439]
15426         * iconv/gconv.h: Define __GCONV_SWAP.
15427         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15428         * iconvdata/utf-16.c: Likewise.
15429         * iconvdata/utf-32.c: Likewise.
15430
15431 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15432
15433         [BZ #13524]
15434         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15435         numerator after shifting it by one limb.
15436
15437 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15438
15439         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15440         under [__USE_EXTERN_INLINES].
15441
15442 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15443
15444         [BZ #13446]
15445         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15446
15447 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15448
15449         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15450         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15451         optimized code.
15452         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15453         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15454         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15455         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15456         for strncasecmp/strncasecmp_l compilation.
15457         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15458         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15459
15460 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15461
15462         [BZ #13484]
15463         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15464         of __asm__.
15465
15466 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15467
15468         [BZ #13506]
15469         * time/tzfile.c (__tzfile_read): Check values from file header.
15470
15471 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15472
15473         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15474         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15475         * powerpc/powerpc32/dl-start.S: Likewise.
15476         * powerpc/powerpc32/elf/start.S: Likewise.
15477         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15478         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15479         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15480         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15481         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15482         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15483         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15484         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15485         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15486         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15487         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15488         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15489         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15490         * powerpc/powerpc32/memset.S: Likewise.
15491         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15492         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15493         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15494         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15495         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15496         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15497         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15498         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15499         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15500         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15501         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15502         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15503         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15504
15505 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15506
15507         * math/libm-test.inc: Added more nearbyint tests.
15508         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15509         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15510         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15511         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15512
15513 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15514
15515         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15516         FD_CLOEXEC.
15517
15518 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15519
15520         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15521         Add wcscpy-ssse3 wcscpy-c.
15522         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15523         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15524         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15525         * sysdeps/x86_64/wcschr.S: New file.
15526         * sysdeps/x86_64/wcsrchr.S: New file.
15527         * string/test-strcmp.c: Remove checking of wcscmp function for
15528         wrong alignments.
15529         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15530         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15531         wcsrchr-sse2 wcsrchr-c.
15532         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15533         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15534         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15535         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15536         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15537         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15538         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15539         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15540         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15541         * wcsmbc/wcschr.c (WCSCHR): New macro.
15542
15543 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15544
15545         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15546         * wcsmbs/test-wcsrchr.c: New file.
15547         * string/test-strrchr.c: Add wcsrchr support.
15548         (WIDE): New macro.
15549         * wcsmbs/test-wcscpy.c: New file.
15550         * string/test-strcpy.c: Add wcscpy support.
15551         (WIDE): New macro.
15552
15553 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15554
15555         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15556         the inner loop.
15557
15558 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15559
15560         [BZ #13472]
15561         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15562
15563 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15564
15565         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15566         Minor optimizations.
15567
15568         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15569         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15570         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15571
15572 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15573
15574         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15575         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15576         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15577         for gcc to avoid warnings.
15578         * inet/Makefile (tests): Add tst-checks.
15579         * inet/tst-checks.c: New file.
15580
15581         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15582         warning.
15583
15584         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15585         __wmemcmp_sse2.
15586
15587         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15588         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15589
15590         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15591
15592 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15593
15594         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15595         problem.
15596
15597         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15598
15599 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15600
15601         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15602         conditional on GCC version.
15603         (__arch_compare_and_exchange_val_8_acq)
15604         (__arch_compare_and_exchange_val_16_acq)
15605         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15606         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15607         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15608
15609 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15610
15611         * sysdeps/sh/backtrace.c: New file.
15612
15613 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15614
15615         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15616         parenthesis.
15617
15618 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15619
15620         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15621         falling back to utime.
15622
15623 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15624
15625         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15626         expectations for float.
15627
15628 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15629
15630         * locale/weight.h (findidx): Add parameter len.
15631         * locale/weightwc.h (findidx): Likewise.
15632         * posix/fnmatch_loop.c (FCT): Adjust caller.
15633         * posix/regcomp.c (build_equiv_class): Likewise.
15634         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15635         * posix/regexec.c (check_node_accept_bytes): Likewise.
15636         * string/strcoll_l.c (STRCOLL): Likewise.
15637         * string/strxfrm_l.c (STRXFRM): Likewise.
15638
15639 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15640
15641         * Makefile.in: Remove CVSOPT handling.
15642         * configure.in: Remove use of AC_REVISION.
15643         * iconvdata/Makefile (distribute): No need to filter out CVS.
15644         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15645         handling.
15646
15647 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15648
15649         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15650         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15651         [USE_AS_STRNCASECMP_L]: Likewise.
15652         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15653         NO_TLS_DIRECT_SEG_REFS.
15654         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15655         Fix argument offsets for non-PIC.
15656         [USE_AS_STRNCASECMP_L]: Likewise.
15657         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15658         NO_TLS_DIRECT_SEG_REFS.
15659
15660 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15661
15662         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15663         O_CLOEXEC.
15664         * locale/loadlocale.c (_nl_load_locale): Likewise.
15665
15666 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15667
15668         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15669         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15670         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15671         (SYSCALL_GETTIME): Set errno on error.
15672
15673         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15674         count references to noai6ai_cached.
15675
15676 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15677
15678         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15679
15680         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15681         FD_CLOEXEC for /proc/self/maps.
15682
15683         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15684         FD_CLOEXEC for /proc/meminfo.
15685
15686         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15687         gai.conf.
15688
15689         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15690         FD_CLOEXEC for given file.
15691
15692         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15693
15694         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15695         FD_CLOEXEC for /etc/hosts.
15696         (_gethtent): Likewise.
15697
15698         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15699
15700         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15701         cancellation and set FD_CLOEXEC for /etc/netgroup.
15702
15703         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15704         reading /etc/publickey.
15705
15706         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15707         allow cancellation when reading /etc/group.
15708
15709         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15710         cancellation.
15711         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15712
15713         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15714         when using data file.
15715
15716         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15717
15718         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15719         (write_nis_obj): Use "c" and "e" in fopen.
15720
15721         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15722
15723         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15724
15725         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15726
15727         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15728
15729         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15730         locale.alias.
15731
15732         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15733
15734         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15735
15736         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15737
15738         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15739         file parsing and set FD_CLOEXEC.
15740
15741 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15742
15743         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15744
15745 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15746
15747         * malloc/arena.c (arena_get2): Don't call reused_arena when
15748         _int_new_arena failed.
15749
15750 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15751
15752         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15753         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15754         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15755         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15756         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15757         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15758         to compile strcasecmp and strncasecmp.
15759         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15760         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15761
15762         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15763
15764 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15765
15766         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15767         locale-defines.sym to gen-as-const-headers.
15768         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15769         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15770         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15771         to compile strcasecmp and strncasecmp.
15772         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15773         strcasecmp_l and strncasecmp_l.
15774         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15775         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15776         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15777         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15778         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15779         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15780         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15781         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15782         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15783         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15784         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15785
15786 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15787
15788         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15789         result of SYSDEP_GETTIME_CPU to retval.
15790         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15791         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15792
15793         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15794         variable.
15795
15796         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15797         mantissa words.
15798         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15799
15800         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15801         from unused variable.
15802
15803         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15804         DWARF definitions.
15805         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15806         for assembling.
15807
15808         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15809         over namespaces.
15810
15811         * sunrpc/rpc_prot.c (rejected): Fix case value.
15812
15813         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15814         unsigned long long int to avoid warnings in shift.
15815
15816         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15817         of use of trans.
15818         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15819         variable tmp.
15820
15821         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15822         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15823         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15824
15825         * nis/nis_table.c (nis_list): Use variable of correct type for
15826         result of __follow_path call.
15827
15828 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15829
15830         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15831         of math functions ceil, trunc, floor, round, and sqrt, when
15832         avaliable on the platform.
15833         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15834         name clash.
15835         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15836         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15837         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15838
15839 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15840
15841         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15842         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15843
15844 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15845
15846         * include/unistd.h: Fix __readlink return type.
15847         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15848
15849 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15850
15851         * stdlib/ucontext.h: Undo last change for makecontext.
15852
15853 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15854
15855         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15856
15857         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15858         * setjmp/setjmp.h: Mark functions as non-leaf.
15859         * setjmp/bits/setjmp2.h: Likewise.
15860         * stdlib/ucontext.h: Likewise.
15861
15862 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15863
15864         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15865         (reused_arena): Don't check arena limit.
15866         (arena_get2): Atomically check arena limit.
15867
15868 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15869
15870         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15871         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15872
15873         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15874         instructions.
15875
15876 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15877
15878         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15879         handler when locking.
15880
15881         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15882         Fix size of allocated buffer.
15883
15884 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15885
15886         [BZ #10103]
15887         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15888         declarations for long double functions.
15889         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15890
15891         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15892
15893 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15894
15895         * nscd/nscd.c (main): Don't start AVC thread until credentials are
15896         installed.
15897
15898         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
15899         is disabled.
15900
15901 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15902
15903         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
15904
15905 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15906
15907         * include/alloca.h (stackinfo_alloca_round): Define.
15908         (extend_alloca): Use it.
15909         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
15910         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
15911         here.
15912
15913         * scripts/check-local-headers.sh: Ignore libaudit.h.
15914
15915         * nscd/Makefile (extra-objs): Make recursively expanded.
15916
15917 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
15918
15919         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
15920         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15921
15922         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15923         * posix/tst-rfc3484-2.c: Likewise.
15924         * posix/tst-rfc3484-3.c: Likewise.
15925
15926         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15927         process_vm_writev.
15928         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15929         process_vm_writev.
15930         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15931         process_vm_writev from libc using GLIBC_2.15 version.
15932
15933         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15934
15935 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15936
15937         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15938         stack usage.
15939
15940 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15941
15942         [BZ #13367]
15943         * nss/getent.c (initgroups_keys): Show error message in case no group
15944         names are given.
15945
15946         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15947         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15948         __bump_nl_timestamp.
15949         * nscd/connections (nscd_init): When host database is served open
15950         netlink socket and request notification about configuration changes.
15951         (main_loop_poll): Track netlink file descriptor and bump timestamp
15952         in case data becomes available.
15953         (main_loop_epoll): Likewise.
15954         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15955         (database_pers_head): Add extra_data fileds.
15956         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15957         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15958         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15959         Adjust caller.
15960         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15961         in6ai data, call __free_in6ai.
15962         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15963         Add -DHAVE_NETLINK.
15964         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15965         interface information.  Reuse previous data if netlink timestamp
15966         is not changed.
15967         (__bump_nl_timestamp): New function.
15968         (__free_in6ai): New function.
15969
15970 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15971
15972         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15973         close_not_cancel_no_status here.
15974         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15975
15976 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15977
15978         [BZ #13276]
15979         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15980         return value.
15981
15982         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15983         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15984         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15985
15986 2011-07-03  Andreas Jaeger  <aj@suse.de>
15987
15988         [BZ #10709]
15989         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15990         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15991         * math/libm-test.inc (sin_test): Add test case.
15992
15993 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15994
15995         [BZ #13337]
15996         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15997         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15998
15999         * elf/chroot_canon.c (chroot_canon): Cleanups.
16000
16001         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16002
16003         [BZ #13335]
16004         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16005         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16006
16007         * string/test-strchr.c: Make usable for strchrnul testing.
16008         * string/test-strchrnul.c: New file.
16009         * string/Makefile (strop-tests): Add strchrnul.
16010
16011         * po/it.po: Update from translation team.
16012         * po/es.po: Likewise.
16013
16014 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16015
16016         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16017         the three constants needed as parameters.  Drop the others.
16018         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16019         __m128i_strloadu_tolower.
16020         Create and initialize variable zero and use it in all the places
16021         where _mm_setzero_si128 was used.
16022
16023         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16024         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16025         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16026         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16027         anymore.
16028         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16029         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16030         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16031         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16032         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16033         __mpranred, __mptan.
16034         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16035         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16036         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16037         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16038         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16039         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16040         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16041         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16042         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16043
16044 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16045
16046         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16047         redefine if SHARED.
16048         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16049
16050         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16051         wide char related routines to wcsmbs subdir.
16052
16053 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16054
16055         [BZ #13344]
16056         * misc/sys/cdefs.h (__THROWNL): Define.
16057         * posix/unistd.h: Use __THREADNL instead of __THREAD
16058         for memory synchronization functions.
16059
16060 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16061
16062         [BZ #13349]
16063         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16064         doesn't exist.
16065         * manual/stdio.texi (Obstack Streams): Node removed.
16066
16067 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16068
16069         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16070         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16071         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16072
16073         * math/math_private.h (math_force_eval): Allow non-addressable
16074         arguments.
16075         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16076
16077 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16078
16079         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16080         file is not needed.
16081
16082         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16083         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16084         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16085         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16086         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16087         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16088         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16089         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16090         Add AVX variants.
16091         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16092         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16093         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16094         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16095         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16096         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16097         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16098         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16099         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16100         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16101         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16102         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16103         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16104         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16105         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16106         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16107         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16108         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16109         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16110
16111         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16112         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16113
16114         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16115         place.  Use VEX encoding when compiling for AVX.
16116
16117 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16118
16119         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16120         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16121
16122         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16123
16124 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16125
16126         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16127         useless if() expression.
16128         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16129         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16130         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16131         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16132         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16133         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16134         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16135         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16136         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16137         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16138         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16139         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16140         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16141         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16142         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16143         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16144         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16145         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16146         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16147
16148         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16149
16150 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16151
16152         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16153         condition.
16154         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16155
16156 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16157
16158         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16159         .text section.  Avoid duplicate constants.
16160         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16161         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16162         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16163         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16164         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16165         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16166         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16167         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16168         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16169         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16170         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16171         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16172         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16173         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16174         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16175         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16176         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16177         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16178         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16179         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16180         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16181         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16182         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16183         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16184         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16185         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16186         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16187         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16188         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16189         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16190         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16191         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16192         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16193         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16194         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16195         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16196         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16197         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16198         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16199         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16200         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16201         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16202         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16203         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16204         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16205
16206 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16207
16208         * sysdeps/x86_64/dla.h: Move to ...
16209         * sysdeps/x86_64/fpu/dla.h: ...here.
16210         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16211         situations.  Use __builtin_fma only for gcc 4.6 and up.
16212
16213         * config.make.in: Add have-mfma4 entry.
16214         * configure.in: Substitute libc_cv_cc_fma4.
16215         * math/Makefile (dbl-only-routines): Add sincostab.
16216         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16217         Use __sincostab not sincos.
16218         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16219         name is a macro.
16220         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16221         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16222         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16223         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16224         using __copysign.
16225         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16226         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16227         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16228         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16229         and __inv.
16230         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16231         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16232         __copysign.
16233         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16234         define aliases when function name is a macro.
16235         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16236         sysdeps/ieee754/dbl-64/sincos.tbl.
16237         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16238         fma4-enabled routines.
16239         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16240         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16241         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16242         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16243         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16244         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16245         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16246         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16247         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16248         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16249         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16250         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16251         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16252         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16253         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16254         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16255         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16256         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16257         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16258         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16259         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16260         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16261         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16262         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16263         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16264         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16265         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16266         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16267         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16268         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16269
16270         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16271         rename.
16272         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16273         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16274         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16275         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16276         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16277         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16278         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16279         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16280
16281 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16282
16283         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16284
16285 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16286
16287         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16288
16289         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16290         prediction.
16291         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16292
16293         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16294         Remove unused variable magic_bits.
16295         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16296
16297         * string/strnlen.c: Define and use STRNLEN macro.
16298         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16299         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16300         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16301         * wcsmbs/wcslen.c: Define and use WCSLEN.
16302         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16303         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16304         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16305         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16306         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16307         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16308         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16309
16310 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16311
16312         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16313         strnlen-sse2-no-bsf.
16314         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16315         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16316         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16317         Add strnlen support.
16318         (USE_AS_STRNLEN): New macro.
16319         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16320         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16321         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16322         * sysdeps/x86_64/wcslen.S: New file.
16323
16324 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16325
16326         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16327         XMM-moves are used for copying on small sizes.
16328
16329 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16330
16331         * wcsmbs/Makefile (strop-tests): Add wcschr.
16332         * wcsmbs/test-wcschr.c: New file.
16333         * string/test-strchr.c: Update.
16334         Add wcschr support.
16335         (WIDE): New macro.
16336
16337 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16338
16339         * wcsmbs/Makefile (strop-tests): Add wcslen.
16340         * wcsmbs/test-wcslen.c: New file.
16341         * string/test-strlen.c: Update.
16342         Add wcslen support.
16343         (WIDE): New macro.
16344
16345 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16346
16347         * po/it.po: Update from translation team.
16348
16349 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16350
16351         * sysdeps/x86_64/wcscmp.S: Update.
16352         Fix wrong comparison semantics.
16353         wcscmp shall use signed comparison not unsigned.
16354         Don't use substraction to avoid overflow bug.
16355         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16356         * wcsmbc/wcscmp.c: Likewise.
16357         * string/test-strcmp.c: Likewise.
16358         Add new tests to check cases with negative values.
16359
16360 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16361
16362         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16363         * sysdeps/x86_64/dla.h: ...here.  New file.
16364         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16365         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16366         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16367         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16368         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16369         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16370         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16371         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16372         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16373
16374 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16375
16376         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16377         __ynl_finite aliases.
16378
16379 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16380
16381         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16382
16383         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16384         define DLA_FMA.
16385         [DLA_FMA] (EMULV): Use DLA_FMA.
16386         [DLA_FMA] (MUL12): Use EMULV.
16387         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16388         that are not needed.
16389         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16390         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16391         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16392         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16393         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16394         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16395         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16396
16397 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16398
16399         * math/s_nan.c: Undef __nan.
16400         * math/s_nanf.c: Undef __nanf.
16401         * math/s_nanl.c: Undef __nanl.
16402         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16403         "math_private.h".
16404
16405 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16406
16407         * math/s_catan.c: Add branch predictions.
16408         * math/s_catanf.c: Likewise.
16409         * math/s_catanh.c: Likewise.
16410         * math/s_catanhf.c: Likewise.
16411         * math/s_catanhl.c: Likewise.
16412         * math/s_catanl.c: Likewise.
16413         * math/s_cexp.c: Likewise.
16414         * math/s_cexpf.c: Likewise.
16415         * math/s_cexpl.c: Likewise.
16416         * math/s_clog.c: Likewise.
16417         * math/s_clog10.c: Likewise.
16418         * math/s_clog10f.c: Likewise.
16419         * math/s_clog10l.c: Likewise.
16420         * math/s_clogf.c: Likewise.
16421         * math/s_clogl.c: Likewise.
16422         * math/s_csqrt.c: Likewise.
16423         * math/s_csqrtf.c: Likewise.
16424         * math/s_csqrtl.c: Likewise.
16425         * math/s_ctanf.c: Likewise.
16426         * math/s_ctanh.c: Likewise.
16427         * math/s_ctanhf.c: Likewise.
16428         * math/s_ctanhl.c: Likewise.
16429         * math/s_ctanl.c: Likewise.
16430
16431         * math/math_private.h: Define __nan, __nanf, __nanl.
16432         * math/s_cacosh.c: Include <math_private.h>.
16433         * math/s_cacoshl.c: Likewise.
16434         * math/s_casinh.c: Likewise.
16435         * math/s_casinhf.c: Likewise.
16436         * math/s_casinhl.c: Likewise.
16437         * math/s_ccos.c: Rely entire on ccosh.
16438         * math/s_ccosf.c: Rely entire on ccoshf.
16439         * math/s_ccosl.c: Rely entirely on ccoshl.
16440         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16441         Remove tests for FE_INVALID.
16442         * math/s_ccoshf.c: Likewise.
16443         * math/s_ccoshl.c: Likewise.
16444         * math/s_csin.c: Likewise.
16445         * math/s_csinf.c: Likewise.
16446         * math/s_csinh.c Likewise.
16447         * math/s_csinhf.c: Likewise.
16448         * math/s_csinhl.c: Likewise.
16449         * math/s_csinl.c: Likewise.
16450         * math/s_ctan.c: Likewise.
16451         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16452         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16453         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16454
16455 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16456
16457         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16458         compilation problems.
16459
16460         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16461         __builtin_expect.
16462
16463 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16464
16465         * sysdeps/i386/configure.in: Test for -mfma4 option.
16466         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16467         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16468         COMMON_CPUID_INDEX_80000001.
16469         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16470         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16471         use it if FMA3 is not supported.
16472         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16473
16474         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16475         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16476
16477 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16478
16479         [BZ #12892]
16480         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16481         it would create a cycle with a link time dependency.
16482
16483 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16484
16485         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16486         instruction.
16487         * string/Makefile (strop-tests): Add rawmemchr.
16488         * string/test-rawmemchr.c: New file.
16489
16490         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16491         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16492         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16493         when compiling str{,n}casecmp and when AVX is available.  Hook up
16494         new optimized code in initializers.
16495
16496 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16497
16498         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16499         __feraiseexcept instead of feraiseexcept.
16500
16501 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16502
16503         * math/math_private.h: Define defaults for libc_fetestexcept and
16504         libc_feupdateenv.
16505         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16506         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16507         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16508         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16509         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16510         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16511         libc_fetestexcept and libc_feupdateenv.
16512
16513         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16514         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16515         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16516         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16517         libc_feholdexcept_setround.
16518
16519         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16520         Add s_nearbyint-c and s_nearbyintf-c.
16521         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16522         nearbyintf inlines.
16523         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16524         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16525         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16526         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16527
16528         * math/math_private.h: Define defaults for libc_fegetround,
16529         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16530         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16531         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16532         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16533         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16534         standard functions.
16535         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16536         Remove comments and hacks for old compiler versions.
16537         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16538         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16539         libc_feholdexceptl.
16540
16541 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16542
16543         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16544         (__feraiseexcept_renamed): Add __NTH.
16545         (feraiseexcept): Add __NTH.  Rename local variables to fix
16546         namespace violations.
16547
16548 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16549
16550         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16551
16552         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16553
16554         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16555         recently added interfaces.
16556         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16557
16558         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16559         about macro parameter expansion.
16560
16561         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16562         __NO_MATH_INLINES is defined.  Cleanups.
16563
16564         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16565         and __floorf is target has SSE4.1.
16566         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16567         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16568         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16569         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16570
16571         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16572         name.
16573         (floorf): Likewise.
16574
16575         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16576
16577 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16578
16579         * misc/sys/cdefs.h: Fix last change.
16580
16581         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16582         database lookup.
16583
16584 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16585
16586         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16587
16588         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16589         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16590         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16591         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16592         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16593         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16594         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16595         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16596         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16597         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16598         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16599         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16600         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16601         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16602         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16603         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16604         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16605         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16606         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16607         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16608         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16609         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16610
16611         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16612         ceil, ceilf, floor, floorf.
16613
16614         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16615         Perform IRELATIVE relocations last.
16616
16617         * elf/do-rel.h: Add another parameter nrelative, replacing the
16618         local variable with the same name.  Change name of the function
16619         to end in Rel or Rela (uppercase).
16620         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16621         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16622         elf_dynamic_do_##reloc function.
16623
16624 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16625
16626         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16627         is sufficient, at least on modern CPUs.
16628
16629         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16630
16631         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16632         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16633
16634         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16635         __expl_finite.
16636         * math/bits/math-finite.h: Add entries for exp.
16637         * math/e_expl.c: Add __*_finite alias.
16638         * sysdeps/i386/fpu/e_exp.S: Likewise.
16639         * sysdeps/i386/fpu/e_expf.S: Likewise.
16640         * sysdeps/i386/fpu/e_expl.c: Likewise.
16641         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16642         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16643         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16644         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16645         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16646         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16647         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16648
16649         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16650         is sufficient, at least on modern CPUs.
16651
16652         * ctype/ctype-info.c (__ctype_init): Define.
16653         * include/ctype.h (__ctype_init): Declare.
16654         (__ctype_b_loc): The variable is always initialized.
16655         (__ctype_toupper_loc): Likewise.
16656         (__ctype_tolower_loc): Likewise.
16657         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16658         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16659
16660 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16661
16662         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16663
16664         * configure.in: Also look in $cxxmachine/include for C++ system
16665         headers.
16666
16667 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16668
16669         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16670         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16671         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16672         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16673         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16674         (USE_AS_WMEMCMP): New macro.
16675         Fixing indents.
16676         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16677         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16678         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16679         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16680         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16681         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16682         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16683         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16684         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16685         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16686         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16687         (USE_AS_WMEMCMP): New macro.
16688         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16689         * sysdeps/string/test-memcmp.c: Update.
16690         Fix simple_wmemcmp.
16691         Add new tests.
16692         * wcsmbs/wmemcmp.c: Update.
16693         (WMEMCMP): New macro.
16694         Fix overflow bug.
16695
16696 2011-10-12  Andreas Jaeger  <aj@suse.de>
16697
16698         [BZ #13268]
16699         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16700
16701 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16702
16703         * libio/iofwide.c (do_length): Avoid warning.
16704
16705         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16706
16707 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16708
16709         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16710
16711         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16712         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16713         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16714         * sysdeps/i386/i686/fpu/e_log.S: New file.
16715         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16716         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16717
16718         * ctype/ctype.h: Add support for inlined isXXX functions when
16719         compiling C++ code.
16720
16721 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16722
16723         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16724
16725         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16726
16727 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16728
16729         [BZ #13291]
16730         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16731
16732 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16733
16734         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16735         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16736         feraiseexcept.
16737
16738         * sysdeps/x86_64/memrchr.S: Check for zero size.
16739
16740         * string/stratcliff.c: Add memrchr tests.
16741
16742 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16743
16744         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16745         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16746         rawmemchr-sse2 rawmemchr-sse2-bsf.
16747         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16748         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16749         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16750         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16751         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16752         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16753         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16754         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16755         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16756         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16757         * string/memrchr.c (MEMRCHR): New macro.
16758
16759 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16760
16761         Add integration with gcc's -ffinite-math-only and optimize wrapper
16762         functions in libm.
16763         * Versions.def: Define GLIBC_2.15 version for libm.
16764         * math/Makefile (headers): Add bits/math-finite.h.
16765         * math/bits/math-finite.h: New file.
16766         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16767         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16768         * math/e_acoshl.c: Add __*_finite alias.
16769         * math/e_acosl.c: Likewise.
16770         * math/e_asinl.c: Likewise.
16771         * math/e_atan2l.c: Likewise.
16772         * math/e_atanhl.c: Likewise.
16773         * math/e_coshl.c: Likewise.
16774         * math/e_exp10.c: Likewise.
16775         * math/e_exp10f.c: Likewise.
16776         * math/e_exp10l.c: Likewise.
16777         * math/e_exp2l.c: Likewise.
16778         * math/e_fmodl.c: Likewise.
16779         * math/e_gammal_r.c: Likewise.
16780         * math/e_hypotl.c: Likewise.
16781         * math/e_j0l.c: Likewise.
16782         * math/e_j1l.c: Likewise.
16783         * math/e_jnl.c: Likewise.
16784         * math/e_lgammal_r.c: Likewise.
16785         * math/e_log10l.c: Likewise.
16786         * math/e_log2l.c: Likewise.
16787         * math/e_logl.c: Likewise.
16788         * math/e_powl.c: Likewise.
16789         * math/e_sinhl.c: Likewise.
16790         * math/e_sqrtl.c: Likewise.
16791         * math/e_scalb.c: Completely rewritten and optimized.
16792         * math/e_scalbf.c: Likewise.
16793         * math/e_scalbl.c: Likewise.
16794         * math/w_acos.c: Likewise.
16795         * math/w_acosf.c: Likewise.
16796         * math/w_acosl.c: Likewise.
16797         * math/w_acosh.c: Likewise.
16798         * math/w_acoshf.c: Likewise.
16799         * math/w_acoshl.c: Likewise.
16800         * math/w_asin.c: Likewise.
16801         * math/w_asinf.c: Likewise.
16802         * math/w_asinl.c: Likewise.
16803         * math/w_atan2.c: Likewise.
16804         * math/w_atan2f.c: Likewise.
16805         * math/w_atan2l.c: Likewise.
16806         * math/w_atanh.c: Likewise.
16807         * math/w_atanhf.c: Likewise.
16808         * math/w_atanhl.c: Likewise.
16809         * math/w_exp10.c: Likewise.
16810         * math/w_exp10f.c: Likewise.
16811         * math/w_exp10l.c: Likewise.
16812         * math/w_fmod.c: Likewise.
16813         * math/w_fmodf.c: Likewise.
16814         * math/w_fmodl.c: Likewise.
16815         * math/w_j0.c: Likewise.
16816         * math/w_j0f.c: Likewise.
16817         * math/w_j0l.c: Likewise.
16818         * math/w_j1.c: Likewise.
16819         * math/w_j1f.c: Likewise.
16820         * math/w_j1l.c: Likewise.
16821         * math/w_jn.c: Likewise.
16822         * math/w_jnf.c: Likewise.
16823         * math/w_log.c: Likewise.
16824         * math/w_logf.c: Likewise.
16825         * math/w_logl.c: Likewise.
16826         * math/w_log10.c: Likewise.
16827         * math/w_log10f.c: Likewise.
16828         * math/w_log10l.c: Likewise.
16829         * math/w_log2.c: Likewise.
16830         * math/w_log2f.c: Likewise.
16831         * math/w_log2l.c: Likewise.
16832         * math/w_pow.c: Likewise.
16833         * math/w_powf.c: Likewise.
16834         * math/w_powl.c: Likewise.
16835         * math/w_remainder.c: Likewise.
16836         * math/w_remainderf.c: Likewise.
16837         * math/w_remainderl.c: Likewise.
16838         * math/w_scalb.c: Likewise.
16839         * math/w_scalbf.c: Likewise.
16840         * math/w_scalbl.c: Likewise.
16841         * math/w_sqrt.c: Likewise.
16842         * math/w_sqrtf.c: Likewise.
16843         * math/w_sqrtl.c: Likewise.
16844         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16845         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16846         used.
16847         * math/math_private.h: Declare __kernel_standard_f.
16848         * math/w_cosh.c: Remove cruft and optimize a bit.
16849         * math/w_coshf.c: Likewise.
16850         * math/w_coshl.c: Likewise.
16851         * math/w_exp2.c: Likewise.
16852         * math/w_exp2f.c: Likewise.
16853         * math/w_exp2l.c: Likewise.
16854         * math/w_hypot.c: Likewise.
16855         * math/w_hypotf.c: Likewise.
16856         * math/w_hypotl.c: Likewise.
16857         * math/w_lgamma.c: Likewise.
16858         * math/w_lgamma_r.c: Likewise.
16859         * math/w_lgammaf.c: Likewise.
16860         * math/w_lgammaf_r.c: Likewise.
16861         * math/w_lgammal.c: Likewise.
16862         * math/w_lgammal_r.c: Likewise.
16863         * math/w_sinh.c: Likewise.
16864         * math/w_sinhf.c: Likewise.
16865         * math/w_sinhl.c: Likewise.
16866         * math/w_tgamma.c: Likewise.
16867         * math/w_tgammaf.c: Likewise.
16868         * math/w_tgammal.c: Likewise.
16869         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16870         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16871         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16872         Minor optimizations.  Pretty printing.  Remove cruft.
16873         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16874         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16875         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16876         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16877         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16878         * sysdeps/i386/fpu/e_asin.S: Likewise.
16879         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16880         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16881         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16882         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16883         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16884         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16885         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16886         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16887         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16888         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16889         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16890         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16891         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16892         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16893         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16894         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16895         * sysdeps/i386/fpu/e_hypot.S: Likewise.
16896         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
16897         * sysdeps/i386/fpu/e_log.S: Likewise.
16898         * sysdeps/i386/fpu/e_log10.S: Likewise.
16899         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16900         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16901         * sysdeps/i386/fpu/e_log2.S: Likewise.
16902         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16903         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16904         * sysdeps/i386/fpu/e_logf.S: Likewise.
16905         * sysdeps/i386/fpu/e_logl.S: Likewise.
16906         * sysdeps/i386/fpu/e_pow.S: Likewise.
16907         * sysdeps/i386/fpu/e_powf.S: Likewise.
16908         * sysdeps/i386/fpu/e_powl.S: Likewise.
16909         * sysdeps/i386/fpu/e_remainder.S: Likewise.
16910         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
16911         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
16912         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16913         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16914         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16915         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
16916         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
16917         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
16918         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16919         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16920         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16921         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16922         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16923         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16924         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16925         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16926         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16927         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16928         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16929         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16930         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16931         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16932         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16933         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16934         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16935         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16936         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16937         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16938         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16939         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16940         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16941         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16942         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16943         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16944         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16945         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16946         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16947         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16948         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16949         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16950         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16951         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16952         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16953         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16954         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16955         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16956         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16957         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16958         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16959         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16960         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16961         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16962         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16963         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16964         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16965         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16966         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16967         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16968         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16969         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16970         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16971         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16972         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16973         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16974         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16975         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16976         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16977         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16978         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16979         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16980         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16981         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16982         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16983         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16984         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16985         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16986         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16987         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16988         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16989         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16990         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16991         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16992         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16993         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16994         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16995         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16996         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16997         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16998         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16999         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17000         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17001         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17002         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17003         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17004         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17005         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17006         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17007         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17008         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17009         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17010         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17011         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17012         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17013         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17014         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17015         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17016         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17017         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17018         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17019         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17020         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17021         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17022         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17023         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17024         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17025         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17026         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17027         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17028         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17029         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17030         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17031         (__isnanf): Likewise.
17032         (__isinf_ns): Likewise.
17033         (__isinf_nsf): Likewise.
17034         (__finite): Likewise.
17035         (__finitef): Likewise.
17036         (__ieee754_sqrt): Define as macro.
17037         (__ieee754_sqrtf): Define as macro.
17038         (__ieee754_sqrtl): Define as macro.
17039         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17040         inlined copy.
17041         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17042         __FINITE_MATH_ONLY__ consistent.
17043         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17044
17045 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17046
17047         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17048         of rawmemchr.
17049
17050         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17051
17052 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17053
17054         * po/ja.po: Update from translation team.
17055
17056 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17057
17058         * locale/programs/locarchive.c (prepare_address_space): New function.
17059         (create_archive, enlarge_archive, open_archive): Use it.
17060
17061         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17062         inside [SHARED], where it is used.
17063
17064         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17065
17066         * nss/getent.c (netgroup_keys): Remove unused variable.
17067         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17068
17069 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17070
17071         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17072         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17073         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17074         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17075         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17076         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17077         * math/Makefile (libm-calls): Add s_isinf_ns.
17078         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17079         * math/multc3.c: Likewise.
17080         * math/s_casin.c: Likewise.
17081         * math/s_casinf.c: Likewise.
17082         * math/s_casinl.c: Likewise.
17083         * math/s_ccos.c: Likewise.
17084         * math/s_ccosf.c: Likewise.
17085         * math/s_ccosl.c: Likewise.
17086         * math/s_ctan.c: Likewise.
17087         * math/s_ctanf.c: Likewise.
17088         * math/s_ctanh.c: Likewise.
17089         * math/s_ctanhf.c: Likewise.
17090         * math/s_ctanhl.c: Likewise.
17091         * math/s_ctanl.c: Likewise.
17092         * math/w_fmod.c: Likewise.
17093         * math/w_fmodf.c: Likewise.
17094         * math/w_fmodl.c: Likewise.
17095         * math/w_remainder.c: Likewise.
17096         * math/w_remainderf.c: Likewise.
17097         * math/w_remainderl.c: Likewise.
17098         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17099         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17100         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17101         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17102         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17103         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17104         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17105         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17106
17107         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17108         of the number.
17109         * stdio-common/printf_fphex.c: Likewise.
17110         * stdio-common/printf_size.c: Likewise.
17111
17112         * math/e_exp10.c: Include math_private.h using <...> not "...".
17113         * math/e_exp10f.c: Likewise.
17114         * math/e_exp10l.c: Likewise.
17115         * math/e_exp2l.c: Likewise.
17116         * math/e_j0l.c: Likewise.
17117         * math/e_j1l.c: Likewise.
17118         * math/e_jnl.c: Likewise.
17119         * math/e_lgammal_r.c: Likewise.
17120         * math/e_rem_pio2l.c: Likewise.
17121         * math/e_scalb.c: Likewise.
17122         * math/e_scalbf.c: Likewise.
17123         * math/e_scalbl.c: Likewise.
17124         * math/k_cosl.c: Likewise.
17125         * math/k_sinl.c: Likewise.
17126         * math/k_tanl.c: Likewise.
17127         * math/s_cacoshf.c: Likewise.
17128         * math/s_catan.c: Likewise.
17129         * math/s_catanf.c: Likewise.
17130         * math/s_catanh.c: Likewise.
17131         * math/s_catanhf.c: Likewise.
17132         * math/s_catanhl.c: Likewise.
17133         * math/s_catanl.c: Likewise.
17134         * math/s_ccosh.c: Likewise.
17135         * math/s_ccoshf.c: Likewise.
17136         * math/s_ccoshl.c: Likewise.
17137         * math/s_cexp.c: Likewise.
17138         * math/s_cexpf.c: Likewise.
17139         * math/s_cexpl.c: Likewise.
17140         * math/s_clog.c: Likewise.
17141         * math/s_clog10.c: Likewise.
17142         * math/s_clog10f.c: Likewise.
17143         * math/s_clog10l.c: Likewise.
17144         * math/s_clogf.c: Likewise.
17145         * math/s_clogl.c: Likewise.
17146         * math/s_csin.c: Likewise.
17147         * math/s_csinf.c: Likewise.
17148         * math/s_csinh.c: Likewise.
17149         * math/s_csinhf.c: Likewise.
17150         * math/s_csinhl.c: Likewise.
17151         * math/s_csinl.c: Likewise.
17152         * math/s_csqrt.c: Likewise.
17153         * math/s_csqrtf.c: Likewise.
17154         * math/s_csqrtl.c: Likewise.
17155         * math/s_ctan.c: Likewise.
17156         * math/s_ctanf.c: Likewise.
17157         * math/s_ctanh.c: Likewise.
17158         * math/s_ctanhf.c: Likewise.
17159         * math/s_ctanhl.c: Likewise.
17160         * math/s_ctanl.c: Likewise.
17161         * math/s_ldexp.c: Likewise.
17162         * math/s_ldexpf.c: Likewise.
17163         * math/s_ldexpl.c: Likewise.
17164         * math/s_significand.c: Likewise.
17165         * math/s_significandf.c: Likewise.
17166         * math/s_significandl.c: Likewise.
17167         * math/w_acos.c: Likewise.
17168         * math/w_acosf.c: Likewise.
17169         * math/w_acosh.c: Likewise.
17170         * math/w_acoshf.c: Likewise.
17171         * math/w_acoshl.c: Likewise.
17172         * math/w_acosl.c: Likewise.
17173         * math/w_asin.c: Likewise.
17174         * math/w_asinf.c: Likewise.
17175         * math/w_asinl.c: Likewise.
17176         * math/w_atan2.c: Likewise.
17177         * math/w_atan2f.c: Likewise.
17178         * math/w_atan2l.c: Likewise.
17179         * math/w_atanh.c: Likewise.
17180         * math/w_atanhf.c: Likewise.
17181         * math/w_atanhl.c: Likewise.
17182         * math/w_cosh.c: Likewise.
17183         * math/w_coshf.c: Likewise.
17184         * math/w_coshl.c: Likewise.
17185         * math/w_dremf.c: Likewise.
17186         * math/w_exp10.c: Likewise.
17187         * math/w_exp10f.c: Likewise.
17188         * math/w_exp10l.c: Likewise.
17189         * math/w_exp2.c: Likewise.
17190         * math/w_exp2f.c: Likewise.
17191         * math/w_fmod.c: Likewise.
17192         * math/w_fmodf.c: Likewise.
17193         * math/w_fmodl.c: Likewise.
17194         * math/w_hypot.c: Likewise.
17195         * math/w_hypotf.c: Likewise.
17196         * math/w_hypotl.c: Likewise.
17197         * math/w_j0.c: Likewise.
17198         * math/w_j0f.c: Likewise.
17199         * math/w_j0l.c: Likewise.
17200         * math/w_j1.c: Likewise.
17201         * math/w_j1f.c: Likewise.
17202         * math/w_j1l.c: Likewise.
17203         * math/w_jn.c: Likewise.
17204         * math/w_jnf.c: Likewise.
17205         * math/w_jnl.c: Likewise.
17206         * math/w_lgamma.c: Likewise.
17207         * math/w_lgamma_r.c: Likewise.
17208         * math/w_lgammaf.c: Likewise.
17209         * math/w_lgammaf_r.c: Likewise.
17210         * math/w_lgammal.c: Likewise.
17211         * math/w_lgammal_r.c: Likewise.
17212         * math/w_log.c: Likewise.
17213         * math/w_log10.c: Likewise.
17214         * math/w_log10f.c: Likewise.
17215         * math/w_log10l.c: Likewise.
17216         * math/w_log2.c: Likewise.
17217         * math/w_log2f.c: Likewise.
17218         * math/w_log2l.c: Likewise.
17219         * math/w_logf.c: Likewise.
17220         * math/w_logl.c: Likewise.
17221         * math/w_pow.c: Likewise.
17222         * math/w_powf.c: Likewise.
17223         * math/w_powl.c: Likewise.
17224         * math/w_remainder.c: Likewise.
17225         * math/w_remainderf.c: Likewise.
17226         * math/w_remainderl.c: Likewise.
17227         * math/w_scalb.c: Likewise.
17228         * math/w_scalbf.c: Likewise.
17229         * math/w_scalbl.c: Likewise.
17230         * math/w_sinh.c: Likewise.
17231         * math/w_sinhf.c: Likewise.
17232         * math/w_sinhl.c: Likewise.
17233         * math/w_sqrt.c: Likewise.
17234         * math/w_sqrtf.c: Likewise.
17235         * math/w_sqrtl.c: Likewise.
17236         * math/w_tgamma.c: Likewise.
17237         * math/w_tgammaf.c: Likewise.
17238         * math/w_tgammal.c: Likewise.
17239
17240         * po/ja.po: Update from translation team.
17241
17242 2011-09-29  Andreas Jaeger  <aj@suse.de>
17243
17244         [BZ #13179]
17245         * sunrpc/netname.c (netname2host): Fix logic.
17246
17247         [BZ #6779]
17248         [BZ #6783]
17249         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17250         correctly.
17251         * math/w_remainder.c (__remainder): Likewise.
17252         * math/w_remainderf.c (__remainderf): Likewise.
17253         * math/libm-test.inc (remainder_test): Add test cases.
17254
17255 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17256
17257         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17258         sdiv_qrnnd.
17259
17260 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17261
17262         * string/test-memcmp.c: Avoid unncessary #defines.
17263         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17264
17265 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17266
17267         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17268         Use new sse2 version for core i3 - i7 as it's faster
17269         than sse42 version.
17270         (bit_Prefer_PMINUB_for_stringop): New.
17271         * sysdeps/x86_64/rawmemchr.S: Update.
17272         Replace with faster SSE2 version.
17273         * sysdeps/x86_64/memrchr.S: New file.
17274         * sysdeps/x86_64/memchr.S: Update.
17275         Replace with faster SSE2 version.
17276
17277 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17278
17279         * elf/dl-load.c (lose): Add cast to avoid warning.
17280
17281 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17282
17283         * po/ca.po: Update from translation team.
17284
17285         * inet/getnetgrent_r.c: Hook up nscd.
17286         * nscd/Makefile (routines): Add nscd_netgroup.
17287         (nscd-modules): Add netgroupcache.
17288         (CFLAGS-netgroupcache.c): Define.
17289         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17290         (cache_search): Add const to second parameter.
17291         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17292         INNETGR.
17293         (dbs): Add netgrdb entry.
17294         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17295         (verify_persistent_db): Handle netgrdb.
17296         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17297         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17298         GETFDNETGR.
17299         (netgroup_response_header): Define.
17300         (innetgroup_response_header): Define.
17301         (datahead): Add netgroup_response_header and innetgroup_response_header
17302         elements.
17303         * nscd/nscd.conf: Add entries for netgroup cache.
17304         * nscd/nscd.h (dbtype): Add netgrdb.
17305         (_PATH_NSCD_NETGROUP_DB): Define.
17306         (netgroup_iov_disabled): Declare.
17307         (xmalloc, xcalloc, xrealloc): Move declarations here.
17308         (cache_search): Adjust prototype.
17309         Add netgroup-related prototypes.
17310         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17311         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17312         (__nscd_innetgr): Declare.
17313         * nscd/selinux.c (perms): Use access_vector_t as element type and
17314         add netgroup-related initializers.
17315         * nscd/netgroupcache.c: New file.
17316         * nscd/nscd_netgroup.c: New file.
17317         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17318         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17319         For four parameters use innetgr.
17320         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17321         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17322         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17323         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17324
17325         * nscd/connections.c (register_traced_file): Don't register file
17326         for disabled databases.
17327
17328 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17329
17330         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17331
17332         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17333         from tree and freeing node.
17334
17335 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17336
17337         * nss/nsswitch.c (__nss_database_lookup): Handle
17338         nss_parse_service_list out of memory case.
17339
17340 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17341
17342         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17343         out of memory case.
17344
17345 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17346
17347         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17348         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17349         pass it down.
17350         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17351         elf_machine_rela, elf_machine_lazy_rel.
17352         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17353         (ELF_DYNAMIC_DO_REL): Likewise.
17354         (ELF_DYNAMIC_DO_RELA): Likewise.
17355         (ELF_DYNAMIC_RELOCATE): Likewise.
17356         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17357         to ELF_DYNAMIC_DO_REL.
17358         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17359         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17360         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17361         elf_machine_rela.
17362         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17363         skip_ifunc, don't call ifunc function if non-zero.
17364         (elf_machine_rela): Likewise.
17365         (elf_machine_lazy_rel): Likewise.
17366         (elf_machine_lazy_rela): Likewise.
17367         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17368         (elf_machine_lazy_rel): Likewise.
17369         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17370         Likewise.
17371         (elf_machine_lazy_rel): Likewise.
17372         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17373         Likewise.
17374         (elf_machine_lazy_rel): Likewise.
17375         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17376         (elf_machine_lazy_rel): Likewise.
17377         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17378         (elf_machine_lazy_rel): Likewise.
17379         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17380         (elf_machine_lazy_rel): Likewise.
17381         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17382         (elf_machine_lazy_rel): Likewise.
17383         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17384         (elf_machine_lazy_rel): Likewise.
17385         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17386         (elf_machine_lazy_rel): Likewise.
17387
17388 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17389
17390         * nss/nss_files/files-init.c (_nss_files_init): Use static
17391         initialization for all the *_traced_file variables.
17392
17393 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17394
17395         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17396
17397 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17398
17399         [BZ #13226]
17400         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17401
17402 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17403
17404         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17405         Reread the line before reparsing it.
17406
17407 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17408
17409         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17410
17411 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17412             Maxim Kuvyrkov  <maxim@codesourcery.com>
17413             Joseph Myers  <joseph@codesourcery.com>
17414
17415         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17416         if needed for __stack_chk_guard.
17417
17418 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17419
17420         * sysdeps/posix/spawni.c (script_execute): Always define it.
17421         It will be optimized away if unused.
17422         (maybe_script_execute): New function.
17423         (__spawni): Call it.
17424
17425         * Makerules: Don't include tls.make.
17426         (config-tls): Always set to thread.
17427         * tls.make.c: File removed.
17428
17429 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17430
17431         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17432         * config.make.in (CPPFLAGS-config): New substituted variable.
17433
17434 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17435
17436         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17437
17438         [BZ #13192]
17439         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17440         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17441
17442 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17443
17444         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17445         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17446         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17447         (CALL_FAIL): Likewise.
17448         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17449         (CALL_FAIL): Macro removed.
17450         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17451
17452 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17453
17454         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17455         for __FINITE_MATH_ONLY__ == 1.
17456
17457 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17458
17459         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17460         __ieee754_sqrt instead of sqrt.
17461         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17462         __ieee754_sqrtf instead of sqrtf.
17463         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17464         __floorf instead of floorf.
17465         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17466         __floorf, __truncf instead of floorf, truncf.
17467
17468 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17469
17470         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17471
17472         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17473         __extern_always_inline.
17474         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17475         32-bit.
17476
17477 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17478
17479         * elf/rtld.c (dl_main): Also relocate in dependency order when
17480         doing symbol dependency testing.
17481
17482 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17483
17484         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17485         Always define `refsym'.
17486
17487 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17488
17489         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17490         (__FD_ELT): Renamed from __FDELT.
17491         * misc/bits/select2.h (__FD_ELT): Likewise.
17492         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17493         __FD_MASK instead of __FDELT, __FDMASK.
17494         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17495         Likewise.
17496         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17497         Likewise.
17498
17499         * elf/Makefile (gen-ldd): Fix pattern.
17500
17501         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17502         (init_tls): Likewise.
17503
17504 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17505
17506         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17507
17508 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17509
17510         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17511         `struct cmsghdr *' instead of `void *'.
17512         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17513         Likewise.
17514
17515 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17516
17517         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17518         if non-absolute.
17519         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17520         ldd_rewrite_script.
17521
17522 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17523
17524         * configure.in: Remove --with-tls option.
17525         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17526         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17527         out in case it is missing.
17528         * sysdeps/ia64/elf/configure.in: Likewise.
17529         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17530         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17531         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17532         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17533         * sysdeps/sh/elf/configure.in: Likewise.
17534         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17535         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17536         * sysdeps/x86_64/elf/configure.in: Likewise.
17537         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17538         * sysdeps/mach/hurd/tls.h: Likewise.
17539
17540         [BZ #13067]
17541         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17542
17543         [BZ #13090]
17544         * configure.in: Fix use of AC_INIT.
17545
17546         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17547
17548 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17549
17550         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17551         __set_errno.
17552         * malloc/hooks.c: Likewise.
17553
17554         [BZ #11929]
17555         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17556         variables statically.
17557         (narenas): Initialize.
17558         (list_lock): Initialize.
17559         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17560         initializtion of main_arena and list_lock.  Small cleanups.
17561         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17562         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17563         Add initializers to main_arena and mp_.
17564         (malloc_state): Remove pagesize member.  Change all users to use
17565         GLRO(dl_pagesize).
17566
17567         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17568         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17569         is always initialized.
17570
17571         * malloc/malloc.c: Removed unused configurations and dead code.
17572         * malloc/arena.c: Likewise.
17573         * malloc/hooks.c: Likewise.
17574         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17575
17576         * include/tls.h: Removed.  USE___THREAD must always be defined.
17577         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17578         * elf/dl-libc.c: Likewise.
17579         * elf/dl-tsd.c: Likewise.
17580         * include/errno.h: Likewise.
17581         * include/netdb.h: Likewise.
17582         * include/resolv.h: Likewise.
17583         * inet/herrno-loc.c: Likewise.
17584         * inet/herrno.c: Likewise.
17585         * malloc/arena.c: Likewise.
17586         * malloc/hooks.c: Likewise.
17587         * malloc/malloc.c: Likewise.
17588         * resolv/res-state.c: Likewise.
17589         * resolv/res_libc.c: Likewise.
17590         * sysdeps/i386/dl-machine.h: Likewise.
17591         * sysdeps/ia64/dl-machine.h: Likewise.
17592         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17593         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17594         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17595         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17596         * sysdeps/sh/dl-machine.h: Likewise.
17597         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17598         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17599         * sysdeps/unix/i386/sysdep.S: Likewise.
17600         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17601         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17602         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17603         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17604         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17605         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17606         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17607         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17608         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17609         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17610         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17611         * sysdeps/x86_64/dl-machine.h: Likewise.
17612         * tls.make.c: Likewise.
17613
17614         * configure.in: Remove --with-__thread option.  Make tests for
17615         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17616         tls_model attribute fail if no support is available.  Remove
17617         USE_IN_LIBIO.
17618         * Makeconfig: Adjust for dropped configure option.  All features are
17619         now mandatory.
17620         * Makerules: Likewise.
17621         * Versions.def: Likewise.
17622         * argp/argp-fmtstream.c: Likewise.
17623         * argp/argp-fmtstream.h: Likewise.
17624         * argp/argp-help.c: Likewise.
17625         * assert/assert.c: Likewise.
17626         * config.h.in: Likewise.
17627         * config.make.in: Likewise.
17628         * configure: Likewise.
17629         * configure.in: Likewise.
17630         * csu/Versions: Likewise.
17631         * csu/init.c: Likewise.
17632         * elf/tst-audit2.c: Likewise.
17633         * elf/tst-tls10.c: Likewise.
17634         * elf/tst-tls10.h: Likewise.
17635         * elf/tst-tls11.c: Likewise.
17636         * elf/tst-tls12.c: Likewise.
17637         * elf/tst-tls14.c: Likewise.
17638         * elf/tst-tlsmod11.c: Likewise.
17639         * elf/tst-tlsmod12.c: Likewise.
17640         * elf/tst-tlsmod13.c: Likewise.
17641         * elf/tst-tlsmod13a.c: Likewise.
17642         * elf/tst-tlsmod14a.c: Likewise.
17643         * elf/tst-tlsmod15b.c: Likewise.
17644         * elf/tst-tlsmod16a.c: Likewise.
17645         * elf/tst-tlsmod16b.c: Likewise.
17646         * elf/tst-tlsmod7.c: Likewise.
17647         * elf/tst-tlsmod8.c: Likewise.
17648         * elf/tst-tlsmod9.c: Likewise.
17649         * gmon/gmon.c: Likewise.
17650         * grp/fgetgrent_r.c: Likewise.
17651         * grp/putgrent.c: Likewise.
17652         * hurd/fopenport.c: Likewise.
17653         * include/libc-symbols.h: Likewise.
17654         * include/tls.h: Likewise.
17655         * intl/gettextP.h: Likewise.
17656         * intl/loadinfo.h: Likewise.
17657         * locale/global-locale.c: Likewise.
17658         * locale/localeinfo.h: Likewise.
17659         * mach/devstream.c: Likewise.
17660         * malloc/arena.c: Likewise.
17661         * malloc/set-freeres.c: Likewise.
17662         * misc/err.c: Likewise.
17663         * misc/getttyent.c: Likewise.
17664         * misc/mntent_r.c: Likewise.
17665         * posix/getopt.c: Likewise.
17666         * posix/wordexp.c: Likewise.
17667         * pwd/fgetpwent_r.c: Likewise.
17668         * resolv/Versions: Likewise.
17669         * resolv/res_hconf.c: Likewise.
17670         * shadow/fgetspent_r.c: Likewise.
17671         * shadow/putspent.c: Likewise.
17672         * stdio-common/printf_fphex.c: Likewise.
17673         * stdio-common/tmpfile.c: Likewise.
17674         * stdlib/abort.c: Likewise.
17675         * stdlib/fmtmsg.c: Likewise.
17676         * sunrpc/auth_unix.c: Likewise.
17677         * sunrpc/clnt_perr.c: Likewise.
17678         * sunrpc/clnt_tcp.c: Likewise.
17679         * sunrpc/clnt_udp.c: Likewise.
17680         * sunrpc/clnt_unix.c: Likewise.
17681         * sunrpc/openchild.c: Likewise.
17682         * sunrpc/svc_simple.c: Likewise.
17683         * sunrpc/svc_tcp.c: Likewise.
17684         * sunrpc/svc_udp.c: Likewise.
17685         * sunrpc/svc_unix.c: Likewise.
17686         * sunrpc/xdr.c: Likewise.
17687         * sunrpc/xdr_array.c: Likewise.
17688         * sunrpc/xdr_rec.c: Likewise.
17689         * sunrpc/xdr_ref.c: Likewise.
17690         * sunrpc/xdr_stdio.c: Likewise.
17691
17692 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17693
17694         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17695
17696 2011-07-03  Andreas Jaeger  <aj@suse.de>
17697
17698         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17699         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17700         regenerate with gen-libm-tests.pl.
17701
17702 2010-05-12  Petr Baudis  <pasky@suse.cz>
17703
17704         [BZ #11589]
17705         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17706         around j0() zero points by switching to j1().
17707         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17708         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17709         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17710         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17711
17712 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17713
17714         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17715         instead of 0.
17716         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17717         instead of 0.                              .
17718         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17719         Patch in part by Pavel Roskin <proski@gnu.org>.
17720
17721         [BZ #13138]
17722         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17723         realloc.
17724         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17725         Free memory block if necessary.
17726
17727         [BZ #12847]
17728         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17729         be NULL.  Don't lock in this case.
17730
17731 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17732
17733         * elf/elf.h (ELFOSABI_GNU): New macro.
17734         (ELFOSABI_LINUX): Define to that.
17735
17736 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17737
17738         * string/strncat.c (strncat): Undef the symbol in case it has been
17739         defined in bits/string.h.
17740
17741 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17742
17743         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17744
17745         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17746         link map.
17747
17748 2011-08-17  Andreas Jaeger  <aj@suse.de>
17749
17750         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17751
17752 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17753             Ian Lance Taylor  <iant@google.com>
17754
17755         * math/libm-test.inc (lround_test): New testcase.
17756         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17757
17758 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17759
17760         * Makefile: Remove support for automatic cvs check-ins.
17761         * Makerules: Likewise.
17762         * config.make.in: Likewise.
17763         * configure.in: Likewise.
17764         * intl/Makefile: Likewise.
17765         * locale/Makefile: Likewise.
17766         * po/Makefile: Likewise.
17767         * posix/Makefile: Likewise.
17768         * sysdeps/gnu/Makefile: Likewise.
17769         * sysdeps/mach/hurd/Makefile: Likewise.
17770         * sysdeps/sparc/sparc32/Makefile: Likewise.
17771
17772         [BZ #13118]
17773         * posix/Makefile (bug-regex32-ENV): Define.
17774         Patch by John Stanley <jpsinthemix@verizon.net>.
17775
17776         * misc/Makefile (headers): Add bits/select2.h.
17777         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17778         * misc/bits/select2.h: New file.
17779         * include/bits/select2.h: New file.
17780         * debug/Makefile (routines): Add fdelt_chk.
17781         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17782         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17783         FD_ISSET.
17784         * debug/fdelt_chk.c: New file.
17785
17786         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17787         * wcsmbs/test-wmemcmp.c: Likewise.
17788         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17789         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17790
17791 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17792
17793         * string/Makefile (strop-tests): Add memcmp.
17794         * string/test-wmemcmp.c: New file.
17795         * string/test-memcmp.c: Add wmemcmp support.
17796
17797 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17798
17799         [BZ #13153]
17800         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17801         2011-07-19 change.
17802
17803         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17804         garbage value in a __mach_port_mod_refs call in the cases of the
17805         task-self and thread-self ports.
17806
17807 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17808
17809         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17810
17811 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17812
17813         * elf/dl-load.c (lose): Check for non-null L.
17814
17815 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17816
17817         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17818
17819         * elf/dl-libc.c (dlerror_run): Pass back error code from
17820         dl_catch_error.
17821
17822         [BZ #13123]
17823         * elf/dl-load.c (lose): Free l_origin if it is valid.
17824
17825         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17826         names.
17827         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17828         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17829         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17830         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17831         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17832         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17833
17834 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17835
17836         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17837         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17838         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17839         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17840         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17841         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17842         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17843         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17844         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17845         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17846
17847 2011-08-15  Alan Modra  <amodra@gmail.com>
17848
17849         [BZ #13092]
17850         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17851         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17852         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17853         ppc_mcount to static-only-routines.
17854         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17855         __mcount_internal.
17856         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17857         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17858
17859 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17860
17861         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17862         for finite and infinity parameters.
17863
17864 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17865
17866         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17867         and add nop instructions for throughput optimization.
17868         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17869
17870 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17871
17872         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17873         aligned copy for power7 with vector-scalar instructions.
17874         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17875
17876 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17877
17878         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17879         AVX check.
17880
17881 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17882
17883         [BZ #13144]
17884         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17885         last change.
17886
17887 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17888
17889         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17890         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17891         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17892         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17893         clock_gettime.
17894
17895 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17896
17897         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
17898         Forgot to demangle the pointer.
17899
17900         * sysdeps/i386/sysdep.h: Define atom_text_section.
17901         * sysdeps/x86_64/sysdep.h: Likewise.
17902         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
17903         section with atom_text_section.
17904         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17905         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17906         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
17907         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17908         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
17909
17910         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
17911         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
17912         already be defined.  Change to take two parameters and don't assign
17913         result to variable.  Adjust all users.
17914         Define INTERNAL_GETTIME if not already defined.
17915         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
17916         call.
17917         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
17918         HAVE_CLOCK_GETTIME_VSYSCALL.
17919         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
17920
17921         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17922         gettimeofday vsyscall, just use time.
17923
17924 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17925
17926         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17927         <errno.h>.
17928
17929 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17930
17931         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17932         syscall on x86-64.
17933         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17934         syscall.
17935         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17936         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17937         syscall if possible.
17938
17939 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17940
17941         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17942         e_ident.  Don't pass to find_mapsXX.
17943         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17944
17945 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17946
17947         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17948         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17949         * sysdeps/x86_64/multiarch/strchr.S: Update.
17950         Check bit_slow_BSF bit.
17951         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17952         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17953         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17954
17955 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17956
17957         [BZ #13134]
17958         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17959         before glibc 2.15.
17960         (tryshell): Define.
17961         (__spawni): Change last parameter to be flag.  Test
17962         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17963         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17964         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17965         * posix/spawni.c: Likewise.
17966         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17967         * posix/spawnp.c: Likewise.  Change normal version to use
17968         SPAWN_XFLAGS_USE_PATH.
17969         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17970         SPAWN_XFLAGS_TRY_SHELL.
17971
17972         [BZ #13150]
17973         * posix/glob.h: Remove gcc 1.x support.
17974
17975         [BZ #13068]
17976         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17977
17978 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17979
17980         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17981         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17982         strrchr-sse2-bsf
17983         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17984         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17985         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17986         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17987         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17988         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17989
17990 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17991
17992         * sysdeps/x86_64/wcscmp.S: New file.
17993
17994         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17995         wcscmp-c wcscmp-sse2
17996         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17997         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17998         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17999         * wcsmbs/wcscmp.c: Allow renaming.
18000
18001 2011-09-05  David S. Miller  <davem@davemloft.net>
18002
18003         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18004         stack slot, rather than the struct return pointer slot.
18005         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18006         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18007         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18008         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18009
18010 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18011
18012         * po/ja.po: Update from translation team.
18013
18014         [BZ #13144]
18015         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18016         kernel in 64-bit binaries.
18017
18018 2011-09-01  David S. Miller  <davem@davemloft.net>
18019
18020         * elf/elf.h (HWCAP_SPARC_*): Move to..
18021         * sysdeps/sparc/sysdep.h: this new file and add new values.
18022         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18023         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18024         _DL_HWCAP_COUNT to 24.
18025         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18026         entries.
18027         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18028         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18029         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18030         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18031         instead of magic constants.
18032         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18033
18034 2011-08-31  David S. Miller  <davem@davemloft.net>
18035
18036         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18037         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18038         Reimplement to do errno handling inline.
18039         (SYSCALL_ERROR_HANDLER): New macro.
18040         (__SYSCALL_STRING): Do not do errno handling in asm.
18041         (__CLONE_SYSCALL_STRING): Delete.
18042         (__INTERNAL_SYSCALL_STRING): Delete.
18043         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18044         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18045         (PSEUDO): Reimplement to do errno handling inline.
18046         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18047         (SYSCALL_ERROR_HANDLER): New macro.
18048         (__SYSCALL_STRING): Do not do errno handling in asm.
18049         (__CLONE_SYSCALL_STRING): Delete.
18050         (__INTERNAL_SYSCALL_STRING): Delete.
18051         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18052         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18053         i386.
18054         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18055         (inline_syscall*): Add 'err' argument.
18056         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18057         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18058         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18059         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18060
18061         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18062         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18063
18064 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18065
18066         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18067
18068 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18069
18070         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18071         directive.
18072
18073 2011-08-24  David S. Miller  <davem@davemloft.net>
18074
18075         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18076
18077 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18078
18079         * elf/Makefile: Add rules to build and run unload8 test.
18080         * elf/unload8.c: New file.
18081         * elf/unload8mod1.c: New file.
18082         * elf/unload8mod1x.c: New file.
18083         * elf/unload8mod2.c: New file.
18084         * elf/unload8mod3.c: New file.
18085
18086         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18087         it wasn't used.
18088
18089 2011-08-23  David S. Miller  <davem@davemloft.net>
18090
18091         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18092         subtract stack bias.
18093         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18094         %sp not %fp in calculations.
18095         (_JMPBUF_UNWINDS_ADJ): Likewise.
18096
18097         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18098         (aio_suspend): Call it to force an exception region around the
18099         AIO_MISC_WAIT() invocation.
18100
18101 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18102
18103         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18104         backslash.
18105
18106 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18107
18108         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18109         protection macro.
18110         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18111         and <dl-machine.h>.
18112         (Elf64_FuncDesc): Remove.
18113
18114 2011-08-22  David S. Miller  <davem@davemloft.net>
18115
18116         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18117         sigaltstack check, add missing cfi directives.
18118         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18119         missing cfi directives, and sigaltstack handling.
18120
18121 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18122
18123         [BZ #11724]
18124         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18125         object is seen twice.
18126         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18127
18128         * elf/Makefile (distribute): Add tst-initorder2.c.
18129         (tests): Add tst-initorder2.
18130         (modules-names): Add tst-initorder2a tst-initorder2b
18131         tst-initorder2c tst-initorder2d.  Add rules to build them.
18132         ($(objpfx)tst-initorder2.out): New rule.
18133         * elf/tst-initorder2.c: New file.
18134         * elf/tst-initorder2.exp: New file.
18135
18136 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18137
18138         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18139
18140         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18141         dependencies back to end of function.
18142
18143         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18144         $(elfobjdir)/ld.so.
18145
18146 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18147
18148         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18149         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18150         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18151         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18152         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18153         of __vdso_gettimeofday.
18154         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18155         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18156         attribute_hidden.
18157         (_libc_vdso_platform_setup): Remove initialization of
18158         __vdso_gettimeofday and __vdso_time.
18159
18160 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18161
18162         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18163         and fgetc_unlocked.
18164         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18165         getc_unlocked.
18166
18167         * elf/dl-open.c (add_to_global): Report additions to the global scope
18168         for LD_DEBUG=scopes.
18169         (dl_open_worker): Also print scope of newly loaded dependencies.
18170         (_dl_show_scope): Indicate if there is no scope.
18171
18172         [BZ #13114]
18173         * stdio-common/Makefile (tests): Add bug24.
18174         * stdio-common/bug24.c: New file.
18175
18176 2011-08-19  Andreas Jaeger  <aj@suse.de>
18177
18178         [BZ #13114]
18179         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18180         non-existant file when using close-on-exec mode.
18181
18182 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18183
18184         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18185         the very first instruction.
18186
18187         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18188         the CFI state in the end.
18189         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18190         inclusion of dl-trampoline.h.
18191         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18192
18193 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18194
18195         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18196         expectations for long double.
18197
18198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18199         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18200
18201 2011-08-14  David S. Miller  <davem@davemloft.net>
18202
18203         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18204         artificual limit depends upon the system page size.
18205
18206 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18207
18208         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18209         * resolv/Makefile: Define CFLAGS-libresolv.
18210
18211 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18212
18213         * nss/makedb.c (compute_tables): Make variables used in nested
18214         function static.
18215
18216 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18217
18218         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18219         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18220         if buffer was too small.
18221
18222         * elf/pldd.c (main): Attach to all threads in the process.
18223         Rewrite /proc handling to use *at functions.
18224
18225 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18226
18227         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18228         specifies first scope to show.
18229         (dl_open_worker): Update callers.  Move printing scope of new
18230         object to before the relocation.
18231         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18232         * sysdeps/generic/ldsodefs.h: Update declaration.
18233
18234         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18235         string for the scope number.
18236
18237 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18238
18239         * nscd/servicescache.c (cache_addserv): Make sure written is always
18240         initialized.
18241
18242 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18243
18244         * sysdeps/i386/i486/bits/atomic.h
18245         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18246         statement expression, so as to suppress "set but not used" warning.
18247         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18248
18249         * string/strncat.c (STRNCAT): Use prototype definition.
18250
18251         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18252         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18253         -Iprograms here.
18254         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18255         (localedef-modules): Add localedef.
18256         (locale-modules): Add locale.
18257
18258         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18259         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18260         to avoid a warning.
18261
18262 2011-08-14  David S. Miller  <davem@davemloft.net>
18263
18264         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18265         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18266
18267 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18268
18269         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18270         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18271         * elf/rtld.c (dl_main): Set l_name of vDSO.
18272         Call _dl_show_scope when DL_DEBUG_SCOPES.
18273         (process_dl_debug): Recognize scopes flag and also set it for all.
18274         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18275         Declare _dl_show_scope.
18276
18277         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18278         (do_dlopen): Pass caller_dlopen to dl_open.
18279         (__libc_dlopen_mode): Initialize caller_dlopen.
18280
18281         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18282         of libc.  Make tolower call locale-independent.  Optimize a bit by
18283         using isdigit instead of isalnum.
18284         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18285
18286 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18287
18288         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18289         was a dependency or dynamically loaded.
18290
18291 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18292
18293         * intl/l10nflist.c: Allow architecture-specific pop function.
18294         * sysdeps/x86_64/l10nflist.c: New file.
18295
18296         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18297         classification.
18298
18299 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18300
18301         * include/dirent.h: Add libc_hidden_proto for scandirat and
18302         scandirat64.  Don't declare __scandirat64.
18303         * dirent/scandirat.c: Add libc_hidden_def.
18304         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18305         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18306
18307 2011-08-10  David S. Miller  <davem@davemloft.net>
18308
18309         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18310         enum.
18311         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18312         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18313         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18314
18315 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18316
18317         * Versions.def [libc]: Add GLIBC_2.15.
18318         * dirent/Makefile (routines): Add scandirat and scandirat64.
18319         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18320         GLIBC_2.15.
18321         * dirent/dirent.h: Declare scandirat and scandirat64.
18322         * dirent/scandirat.c: New file.
18323         * dirent/scandirat64.c: New file.
18324         * sysdeps/wordsize-64/scandirat.c: New file.
18325         * sysdeps/wordsize-64/scandirat64.c: New file.
18326         * dirent/opendir.c: Define opendirat.
18327         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18328         using scandirat.
18329         * dirent/scandir64.c: Adjust for scandir.c change.
18330         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18331         __scandirat64, and __scandir_cancel_handler.
18332         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18333         additional parameter and use openat instead of open (outside of ld.so).
18334         Add new __opendir as wrapper around __opendirat.
18335         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18336         here without requiring old scandirat implementation.
18337
18338 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18339
18340         * dirent/scandir.c (cancel_handler): Renamed to
18341         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18342         defined.  Adjust users.
18343         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18344         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18345
18346 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18347
18348         * string/test-string.h (IMPL): Use __STRING to expand name and then
18349         stringify it.
18350
18351         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18352         of cleanups.
18353
18354 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18355
18356         * string/Makefile: Update.
18357         (strop-tests): Append strncat.
18358         * string/test-wcscmp.c: New file.
18359         New comprehensive test for wcscmp.
18360         * string/test-strcmp.c: Update.
18361         (WIDE): New define.
18362
18363 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18364
18365         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18366         line.
18367
18368 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18369
18370         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18371         encoding to ACE if AI_IDN.
18372
18373 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18374
18375         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18376         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18377
18378 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18379
18380         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18381         Fix overflow bug in strncat.
18382         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18383
18384         * string/test-strncat.c: Update.
18385         Add new tests for checking overflow bugs.
18386
18387 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18388
18389         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18390         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18391         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18392         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18393         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18394         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18395         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18396         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18397         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18398
18399         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18400         (USE_AS_STRCAT): Define.
18401         Add strcat and strncat support.
18402         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18403
18404 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18405
18406         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18407         __n bigger than INT_MAX+1.
18408         (__strncmp_g): Likewise.
18409
18410 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18411
18412         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18413         * libio/stido.h: Likewise.
18414
18415         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18416         (AF_NFC): Define.
18417         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18418         (AF_NFC): Define.
18419
18420         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18421         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18422         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18423         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18424         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18425
18426         [BZ #13021]
18427         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18428         installed.
18429
18430         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18431         typo.
18432         (_dl_x86_64_save_sse): Likewise.
18433
18434 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18435
18436         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18437         OSXSAVE.
18438         (_dl_x86_64_save_sse): Likewise.
18439
18440         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18441
18442         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18443
18444 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18445
18446         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18447         change.
18448         (_dl_x86_64_save_sse): Use correct AVX check.
18449
18450 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18451
18452         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18453         bug in strncpy/strncat.
18454         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18455
18456 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18457
18458         * string/tester.c (test_strcat): Add tests for different alignments
18459         of source and destination.
18460         (test_strncat): Likewise.
18461
18462 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18463
18464         [BZ #12852]
18465         * posix/glob.c (glob): Check passed in values before using them in
18466         expressions to avoid some overflows.
18467         (glob_in_dir): Likewise.
18468
18469         [BZ #13007]
18470         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18471         check for AVX enablement so that we don't crash with old kernels and
18472         new hardware.
18473         * elf/tst-audit4.c: Add same checks here.
18474         * elf/tst-audit6.c: Likewise.
18475
18476         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18477
18478 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18479
18480         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18481
18482 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18483
18484         * po/cs.po: Update from translation team.
18485         * po/bg.po: Likewise.
18486
18487 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18488
18489         * misc/sys/cdefs.h: Add support for const attribute.
18490         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18491         to gnu_dev_{major,minor,makedev} functions.
18492
18493 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18494
18495         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18496
18497 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18498
18499         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18500         strlen results.
18501
18502 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18503
18504         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18505         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18506         register in order to avoid conflicts with the soft frame pointer
18507         being held in r11 when necessary.
18508         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18509         (INTERNAL_VSYSCALL_NCS): Likewise.
18510
18511 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18512
18513         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18514         * elf/dl-fini.c (_dl_fini): Adjust caller.
18515         * elf/dl-close.c (_dl_close_worker): Likewise.
18516         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18517
18518 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18519
18520         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18521         "aux_cache->nlibs < 0".
18522
18523         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18524         in the reload-count case.
18525
18526 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18527
18528         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18529         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18530         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18531         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18532         * sysdeps/x86_64/multiarch/strcat.S: New file.
18533         * sysdeps/x86_64/multiarch/strncat.S: New file.
18534         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18535         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18536         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18537         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18538         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18539         (USE_AS_STRCAT): Define.
18540         Add strcat and strncat support.
18541         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18542         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18543         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18544         * string/strncat.c: Update.
18545         (USE_AS_STRNCAT): Define.
18546         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18547         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18548         and i7.
18549         * sysdeps/x86_64/multiarch/init-arch.h
18550         (bit_Prefer_PMINUB_for_stringop): New.
18551         (index_Prefer_PMINUB_for_stringop): Likewise.
18552         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18553         bit_Prefer_PMINUB_for_stringop.
18554
18555 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18556
18557         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18558         buffer64.
18559         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18560         of casting of buffer.
18561         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18562         buffer32 and buffer64.
18563         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18564         writes instead of casting of buffer.
18565         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18566         buffer32.
18567         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18568         casting of buffer.
18569
18570 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18571
18572         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18573
18574 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18575
18576         * nscd/nscd.c (termination_handler): Don't do anything for a database
18577         if it has not yet been initialized.
18578
18579 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18580
18581         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18582
18583 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18584
18585         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18586
18587 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18588
18589         * po/nl.po: Update from translation team.
18590         * po/sv.po: Likewise.
18591
18592 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18593
18594         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18595         now disallowed by GCC.
18596
18597         * configure.in (use-default-link): Default to yes if a test -shared
18598         link meets our qualifications.
18599         * configure: Regenerated.
18600
18601         * config.make.in (output-format): New variable.
18602         * configure.in: Check for ld --print-output-format support.
18603         * configure: Regenerated.
18604         * Makerules ($(common-objpfx)format.lds)
18605         [$(output-format) != unknown]: Just use $(output-format),
18606         instead of the linker-script munging.
18607
18608 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18609
18610         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18611         of $(common-objpfx)shlib.lds.
18612         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18613
18614         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18615         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18616
18617         * configure.in (-z relro check): Adjust test code to add a large
18618         writable data section after it.
18619         * configure: Regenerated.
18620
18621 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18622
18623         * configure.in (-z relro check): Fix test code to make the variable
18624         truly const.
18625         * configure: Regenerated.
18626
18627 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18628
18629         * nscd/nscd.h (struct traced_file): Define.
18630         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18631         elements.  Add traced_files.
18632         (inotify_fd): Declare.
18633         (register_traced_file): Declare.
18634         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18635         (inotify_fd): Export.
18636         (resolv_conf_descr): Remove.
18637         (nscd_init): Move inotify descriptor creation to main.
18638         Don't register files for notification here.
18639         (register_traced_file): New function.
18640         (invalidate_cache): Don't use reset_res to determine whether to call
18641         res_init, go through the list of registered files.
18642         (main_loop_poll): The inotify descriptors are now stored in the
18643         structures for the traced files.
18644         (main_loop_epoll): Likewise
18645         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18646         to __nss_disable_nscd.
18647         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18648         for a database anymore.  Check the records for all the registered
18649         files instead.
18650         * nss/Makefile (libnss_files-routines): Add files-init.
18651         (libnss_db-routines): Add db-init.
18652         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18653         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18654         * nss/nss_db/db-init.c: New file.
18655         * nss/nss_files/files-init.c: New file.
18656         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18657         __nss_lookup_function.
18658         (__nss_lookup_function): Call nss_load_library.
18659         (nss_load_all_libraries): New function.
18660         (__nss_disable_nscd): Take parameter with callback function for files
18661         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18662         used for the cached services.
18663         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18664         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18665         options for features to all the files in nscd.
18666
18667         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18668
18669 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18670
18671         * csu/elf-init.c (__libc_csu_init): Comment typo.
18672
18673 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18674
18675         * po/pl.po: Update from translation team.
18676         * po/ja.po: Likewise.
18677         * po/ru.po: Likewise.
18678         * po/ko.po: Likewise.
18679         * po/fr.po: Likewise.
18680
18681 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18682
18683         * configure.in (.ctors/.dtors header and trailer check):
18684         Use an empirical test on a built program.
18685         * configure: Regenerated.
18686
18687         * configure.in (-z relro check): Use an empirical test on a built DSO.
18688         Detect, but do not require, on ia64.
18689         * configure: Regenerated.
18690
18691         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18692         Update tests that use readelf to use $READELF instead.
18693         * configure: Regenerated.
18694
18695 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18696
18697         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18698         if the result is not used.
18699
18700 2011-07-05  Andreas Jaeger  <aj@suse.de>
18701
18702         [BZ#9696]
18703         * stdlib/tst-strtod.c: Add testcase.
18704
18705 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18706
18707         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18708         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18709         The latter has a higher limit.  Take additional parameter to pass to
18710         the new function.
18711         (__pathconf): Pass file to __statfs_link_max.
18712         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18713         __statfs_link_max.
18714         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18715         __statfs_link_max.
18716
18717         [BZ #12868]
18718         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18719         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18720         Handle Lustre.
18721         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18722         (__statfs_filesize_max): Likewise.
18723         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18724
18725 2011-07-05  Andreas Jaeger  <aj@suse.de>
18726
18727         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18728
18729 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18730
18731         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18732         `status' variable.
18733         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18734         Likewise.
18735
18736 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18737
18738         * Makefile (strop-tests): Add strncat.
18739         * string/test-strncat.c: New file.
18740
18741 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18742
18743         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18744
18745 2011-06-21  Andreas Jaeger  <aj@suse.de>
18746
18747         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18748         Copy rule from iconvdata/Makefile.
18749
18750 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18751
18752         [BZ #12922]
18753         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18754         but no long options are defined, just return 'W'.
18755
18756 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18757
18758         [BZ #9696]
18759         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18760
18761 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18762
18763         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18764         netgroups to read.
18765         (innetgr): Likewise.
18766
18767 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18768
18769         * config.make.in (install_root): Default to $(DESTDIR).
18770
18771 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18772
18773         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18774
18775 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18776
18777         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18778
18779         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18780         containing directory rather than embedding absolute directory names.
18781
18782         * scripts/check-local-headers.sh: Rewritten using awk.
18783         Match by word, not by line.  Print error messages for matches.
18784         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18785
18786         * Makerules [shlib-lds-flags empty]:
18787         ($(common-objpfx)libc_pic.opts): New target.
18788         ($(common-objpfx)libc_pic.os.clean): New target.
18789         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18790
18791         * config.make.in (OBJCOPY): New variable.
18792         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18793         * configure: Regenerated.
18794
18795         * config.make.in (use-default-link): New variable.
18796         * configure.in (use_default_link): Grok --with-default-link to set it.
18797         * configure: Regenerated.
18798         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18799         (shlib-lds, shlib-lds-flags): Define to empty.
18800
18801         * Makerules (shlib-lds): New variable.
18802         (shlib-lds-flags): New variable.
18803         (build-shlib, build-moduile, build-module-asneeded): Use it.
18804         ($(common-objpfx)libc.so): Use $(shlib-lds).
18805         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18806         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18807
18808         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18809         DT_FLAGS/DT_FLAGS_1 with zero flags.
18810
18811         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18812         linker script munging.
18813
18814 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18815
18816         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18817         as 128-bit value.
18818         * crypt/sha512.c (sha512_process_block): Perform total addition using
18819         128-bit if possible.
18820         (__sha512_finish_ctx): Likewise.
18821         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18822         as 64-bit value.
18823         * crypt/sha256.c (SWAP64): Define.
18824         (sha256_process_block): Perform total addition using 64-bit if
18825         possible.
18826         (__sha256_finish_ctx): Likewise.
18827
18828 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18829
18830         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18831         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18832         * nscd/hstcache.c (cache_addhst): Likewise.
18833         * nscd/grpcache.c (cache_addgr): Likewise.
18834         * nscd/aicache.c (addhstaiX): Likewise
18835         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18836
18837 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18838
18839         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18840         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18841         * nscd/hstcache.c (cache_addhst): Likewise.
18842         * nscd/grpcache.c (cache_addgr): Likewise.
18843         * nscd/aicache.c (addhstaiX): Likewise
18844
18845 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18846
18847         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18848         domain only when needed.
18849
18850 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18851
18852         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18853         is always restored.
18854
18855 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18856
18857         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18858         are re-adding the entry.
18859         * nscd/servicescache.c (cache_addserv): Likewise.
18860
18861 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18862
18863         * sysdeps/generic/dl-irel.h: fix protection against multiple
18864         inclusions.
18865         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18866
18867 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18868
18869         [BZ #12935]
18870         * malloc/memusage.sh: Fix quoting in message.
18871         * debug/xtrace.sh: Likewise.
18872
18873         * configure.in: Remove support for --experimental-malloc option, make
18874         it the default.
18875         * config.make.in: Likewise.
18876         * malloc/Makefile: Likewise.
18877
18878 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18879
18880         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18881         two-byte characters.
18882
18883 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18884
18885         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18886         AC_CACHE_CHECK invocation.
18887         * configure: Regenerated.
18888
18889         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18890
18891 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18892
18893         [BZ #12350]
18894         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18895         bit from old_res_options.
18896
18897         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
18898
18899         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
18900         value type for setfct.
18901
18902 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18903
18904         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18905         __gettimeofday instead of gettimeofday.
18906
18907 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
18908
18909         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
18910
18911 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18912
18913         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
18914
18915         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
18916         info.
18917
18918 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18919
18920         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18921         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18922         strcpy-sse2-unaligned strncpy-sse2-unaligned
18923         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18924         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18925         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18926         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18927         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18928         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18929         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18930         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18931         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18932         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18933         (STRCPY): Support SSE2 and SSSE3 versions.
18934
18935 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18936
18937         [BZ #12874]
18938         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18939         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18940         kernels which artificially limit size of requests.
18941
18942 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18943
18944         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18945         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18946         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18947         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18948         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18949         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18950         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18951         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18952         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18953         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18954         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18955         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18956         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18957         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18958         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18959         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18960         Enable unaligned load optimization for Intel Core i3, i5 and i7
18961         processors.
18962         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18963         Define.
18964         (index_Fast_Unaligned_Load): Define.
18965         (HAS_FAST_UNALIGNED_LOAD): Define.
18966
18967 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18968
18969         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18970
18971 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18972
18973         [BZ #12907]
18974         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18975         until it is clear that the information is realy needed.
18976         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18977
18978 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18979
18980         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18981
18982 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18983
18984         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18985         /sys/devices/system/cpu/online if it is usable.
18986
18987         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18988         reading the information from the /proc filesystem to once a second.
18989
18990 2011-06-21  Andreas Jaeger  <aj@suse.de>
18991
18992         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18993         NULL after inclusion of kernel headers.
18994
18995 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18996
18997         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18998         calls to internal_setent.
18999
19000         [BZ #12885]
19001         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19002         addresses using gethostbyname4_r ignore IPv4 addresses.
19003
19004         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19005         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19006
19007         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19008
19009 2011-06-20  David S. Miller  <davem@davemloft.net>
19010
19011         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19012         inclusions.
19013         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19014
19015         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19016         (elf_irel): Use it.
19017         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19018         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19019         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19020         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19021         * sysdeps/x86_64/dl-irel.h: Likewise.
19022
19023         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19024         * elf/dl-sym.c: Likewise.
19025
19026 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19027
19028         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19029         need to dereference resplen2.
19030
19031 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19032
19033         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19034
19035 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19036
19037         * Makeconfig: Define vardbdir and inst_vardbdir.
19038         * nss/Makefile: Add rules to install db-Makefile.
19039
19040         * nss/nss_db/db-XXX.c: Cleanup.
19041
19042         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19043         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19044         GLIBC_PRIVATE.
19045         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19046         * nss/makedb.c: Implement -g option to specify that value strings
19047         are generated and should not be added to table iterated over for
19048         get*ent calls.
19049         * nss/nss_db/db-initgroups.c: New file.
19050
19051         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19052         interface.
19053
19054         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19055         (internal_getgrouplist): Adjust to name change.
19056         Update use_initgroups_entry if this is not the first call.
19057         * nss/databases.def: Add initgroups entry.
19058
19059         * nss/makedb.c (compute_tables): Check result of multiple hash table
19060         sizes to minimize maximum chain length.
19061
19062 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19063
19064         * Versions.def: Add entry for libnss_db.
19065         * shlib-versions: Likewise.
19066         * nss/Makefile: Add rules to build libnss_db.
19067         * nss/Versions: Add libnss_db information.  Organize libnss_files
19068         entries better.
19069         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19070         makedb progra.  Some minor improvements to generate smaller files.
19071         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19072         here from...
19073         * nss/makedb.c: ...here.
19074         Improve database format to be smaller and require less memory at
19075         runtime.
19076         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19077         db anymore.
19078         * nss/nss_db/db-netgrp.c: Likewise.
19079         * nss/nss_db/db-open.c: Likewise.
19080         * nss/nss_files/flies-XXX.x: Adjust comments.
19081         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19082         * nss/nss_files/files-grp.c: Likewise.
19083         * nss/nss_files/files-hosts.c: Likewise.
19084         * nss/nss_files/files-network.c: Likewise.
19085         * nss/nss_files/files-proto.c: Likewise.
19086         * nss/nss_files/files-pwd.c: Likewise.
19087         * nss/nss_files/files-rpc.c: Likewise.
19088         * nss/nss_files/files-service.c: Likewise.
19089         * nss/nss_files/files-sgrp.c: Likewise.
19090         * nss/nss_files/files-spwd.c: Likewise.
19091         * nss/nss_db/db-alias.c: Removed.
19092         * nss/nss_db/dummy-db.h: Removed.
19093
19094 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19095
19096         * nss/makedb.c: Rewritten to not use database library.
19097         * nss/Makefile: Update to build new makedb program.
19098
19099 2011-06-14  Andreas Jaeger  <aj@suse.de>
19100
19101         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19102         memset declaration.
19103
19104 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19105
19106         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19107         tmpbuf.
19108
19109 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19110
19111         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19112         * elf/Makefile ($(objpfx)ld.so): Likewise.
19113
19114         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19115         Don't list ld.so twice in dependencies.
19116
19117         * posix/bug-regex31.c: Include <stdlib.h>.
19118
19119         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19120
19121         * nis/nss_compat/compat-spwd.c
19122         (getspent_next_nss_netgr): Remove unused variable.
19123         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19124
19125         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19126         nonmembers" output to use the right array.
19127
19128         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19129
19130         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19131
19132         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19133         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19134         * catgets/gencat.c (read_input_file): Likewise.
19135         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19136
19137         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19138         variable definition inside #if's controlling its use.
19139
19140         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19141
19142         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19143
19144         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19145
19146         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19147         unreachable code.
19148
19149         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19150
19151         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19152         * configure: Regenerated.
19153
19154         * Makerules: Revert last change.
19155         * elf/Makefile: Likewise.
19156
19157 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19158
19159         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19160         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19161         (reloc-link): Likewise.
19162
19163 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19164
19165         * elf/Makefile: Add rules to build pldd.
19166         * elf/pldd.c: New file.
19167         * elf/pldd-xx.c: New file.
19168
19169 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19170
19171         * version.h: Update for 2.15 development version.
19172
19173 2011-06-07  David S. Miller  <davem@davemloft.net>
19174
19175         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19176         ifuncs.
19177         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19178         elf_machine_lazy_rel): Likewise.
19179         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19180         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19181         elf_machine_lazy_rel): Likewise.
19182         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19183         dl_hwcap via passed in argument.
19184         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19185         Likewise.
19186
19187 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19188
19189         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19190
19191 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19192
19193         [BZ #12849]
19194         * manual/fdl-1.1.texi: New file, verbatim from:
19195         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19196         * manual/lgpl-2.1.texi: New file, verbatim from:
19197         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19198         * manual/Makefile (licenses): New variable, list those new file names.
19199         (texis): Use it.
19200         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19201
19202         * manual/fdl.texi: File removed.
19203         * manual/lesser.texi: File removed.
19204         * manual/libc.texinfo (Copying, Documentation License):
19205         Use new @include file names, put @appendix directive before @include.
19206
19207 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19208
19209         [BZ #12841]
19210         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19211         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19212         (mq_open): Add __NTH.
19213
19214 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19215
19216         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19217         Assume Intel Core i3/i5/i7 processor if AVX is available.
19218
19219 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19220
19221         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19222         typo.
19223
19224 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19225
19226         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19227         memory.  Use alloca_account.  Fix memory leak when retrying.
19228
19229 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19230
19231         * version.h (RELEASE): Bump for 2.14 release.
19232         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19233
19234         * config.make.in (RANLIB): Remove entry.
19235
19236 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19237
19238         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19239         (libc.pot): Work around missing support for .ksh extension in xgettext.
19240
19241         [BZ #12684]
19242         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19243         if both request failed.
19244         (send_dg): In case of server errors clear resplen or *resplen2.
19245
19246         [BZ #12454]
19247         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19248         when there are multiple maps.
19249         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19250         (_dl_fini): Remove test here.
19251
19252         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19253
19254 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19255
19256         [BZ #12350]
19257         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19258         bit from old_res_options.
19259         (gaih_inet): Likewise.
19260
19261         [BZ #11099]
19262         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19263         as signed.
19264
19265         * resolv/res_init.c (res_setoptions): Make the code more compact.
19266
19267         [BZ #11558]
19268         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19269         set RES_USEVC.
19270
19271         [BZ #11634]
19272         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19273
19274         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19275
19276         [BZ #11781]
19277         * malloc/malloc.h: Declare malloc hook variables as volatile.
19278
19279         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19280         in last patch.
19281
19282         [BZ #11799]
19283         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19284         raise in the comment.
19285         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19286         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19287         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19288
19289 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19290
19291         [BZ #12811]
19292         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19293         grow the buffers more if it already has to be sufficient.
19294         (build_wcs_upper_buffer): Likewise.
19295         * posix/regexec.c (check_matching): Likewise.
19296         (clean_state_log_if_needed): Likewise.
19297         (extend_buffers): Don't enlarge buffers beyond size of the input
19298         buffer.
19299         Patches mostly by Emil Wojak <emil@wojak.eu>.
19300         * posix/bug-regex32.c: New file.
19301         * posix/Makefile (tests): Add bug-regex32.
19302
19303         * locale/findlocale.c (_nl_find_locale): Return right away if
19304         _nl_explode_name failed.
19305         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19306
19307         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19308
19309         * debug/xtrace.sh: Unify messages.
19310         * malloc/memusage.sh: Likewise.
19311
19312         [BZ #12813]
19313         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19314         time symbol from vDSO.  Substitute with vsyscall if not available.
19315         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19316         __vdso_time.
19317
19318         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19319         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19320         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19321         Add sendmmsg and internal_sendmmsg.
19322         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19323         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19324         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19325
19326         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19327         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19328         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19329
19330 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19331
19332         [BZ #12813]
19333         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19334         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19335         available.
19336         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19337         __vdso_getcpu.
19338
19339         [BZ #12814]
19340         * iconvdata/Makefile (tests): Add bug-iconv9.
19341         * iconvdata/bug-iconv9.c: New file.
19342
19343 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19344
19345         [BZ #12814]
19346         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19347
19348 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19349
19350         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19351         (struct user_regs_struct): Change intcs field back to cs.
19352
19353 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19354
19355         * po/ja.po: Update from translation team.
19356
19357 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19358
19359         [BZ #12795]
19360         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19361         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19362
19363 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19364
19365         * stdlib/longlong.h: Update from GCC.
19366
19367 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19368
19369         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19370         parameter name.
19371         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19372         Add parameter name.
19373         (__sysconf): Pass it down.
19374
19375 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19376
19377         [BZ #12671]
19378         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19379         some situations.
19380         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19381         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19382         add in in __libc_use_alloca calls.  Adjust callers.
19383         (glob): Use malloc in some situations.
19384
19385         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19386         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19387         pltexit.
19388
19389 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19390
19391         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19392         and CLOCK_BOOTTIME_ALARM.
19393
19394         [BZ #12782]
19395         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19396         is returned.
19397
19398         * string/_strerror.c (__strerror_r): Print negative errors as signed
19399         numbers.
19400
19401         [BZ #12777]
19402         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19403         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19404         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19405
19406         * configure.in: Fix typo in redirection and correct removal of test
19407         files in two cases.
19408
19409         [BZ #12788]
19410         * locale/setlocale.c (new_composite_name): Fix test to check for
19411         identical name of all categories.
19412
19413         [BZ #12792]
19414         * libio/filedoalloc.c (local_isatty): New function.
19415         (_IO_file_doallocate): Use local_isatty.
19416         * stdio-common/perror.c (perror): In case a new stream is used
19417         forward the stream error.
19418         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19419         error flag.
19420
19421 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19422
19423         [BZ #11869]
19424         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19425         alloca.
19426         * include/alloca.h (extend_alloca_account): Define.
19427
19428         [BZ #11857]
19429         * posix/regex.h: Fix comments with documentation of user-accessible
19430         fields after compilation and describe correct free'ing of pattern
19431         after re_compile_pattern.
19432         Patch by Reuben Thomas <rrt@sc3d.org>.
19433
19434 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19435
19436         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19437         and -mno-altivec to prevent the compiler from using Altivec and/or
19438         VSX instructions when the corresponding registers are not available.
19439
19440 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19441
19442         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19443
19444 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19445
19446         * libio/freopen.c (freopen): Use __dup2, not dup2.
19447         * libio/freopen64.c (freopen64): Likewise.
19448
19449 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19450
19451         [BZ #12775]
19452         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19453         * math/Makefile (tests): Add test-powl.
19454         (CFLAGS-test-powl.c): Define.
19455         * math/test-powl.c: New file.
19456
19457 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19458
19459         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19460
19461 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19462
19463         [BZ #11837]
19464         * iconvdata/gb18030.c: Update to GB18020-2005.
19465
19466 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19467
19468         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19469         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19470         Patch by Aharon Robbins <arnold@skeeve.com>.
19471
19472         [BZ #11892]
19473         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19474         on the stack.
19475
19476         [BZ #11895]
19477         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19478         through underflows.
19479
19480         [BZ #12766]
19481         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19482         point to strings before performing equality test for error_one_per_line
19483         mode.
19484
19485         [BZ #11697]
19486         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19487
19488         [BZ #11820]
19489         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19490         (struct user_fpregs_struct): Avoid __uint*_t types.
19491
19492         [BZ #6420]
19493         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19494         symbol info.  Use it instead of calling _dl_addr locally.
19495         (lock_and_info): New function.
19496         (tr_freehook): Call lock_and_info and pass symbol info as additional
19497         parameter to tr_where.
19498         (tr_mallochook): Likewise.
19499         (tr_reallochook): Likewise.
19500         (tr_memalignhook): Likewise.
19501
19502         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19503         used and couldn't be at all thread-safe.
19504
19505 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19506
19507         * libio/freopen.c (freopen): Don't close old file descriptor
19508         before the new one is opened.  Instead dup the new file descriptor
19509         to the old one after the new stream is created.
19510         * libio/freopen64.c (freopen64): Likewise.
19511         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19512         * libio/fileops.c (_IO_new_file_close_it): Handle new
19513         _IO_FLAGS2_NOCLOSE flag.
19514         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19515         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19516         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19517         _IO_FLAGS2_NOCLOSE flag.
19518         * include/unistd.h: Add hidden_proto for dup3.
19519         Define __have_dup3.
19520         * io/dup3.c: Define hidden symbol.
19521         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19522
19523         [BZ #7101]
19524         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19525         when an incomplete long option is used.
19526         * posix/tst-getopt_long1.c: New file.
19527         * posix/Makefile (tests): Add tst-getopt_long1.
19528
19529         [BZ #10138]
19530         * scripts/config.guess: Update from autoconf-2.68.
19531         * scripts/config.sub: Likewise.
19532
19533         [BZ #10157]
19534         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19535         tests into ...
19536         (has_cpuclock): ...this.  New function.
19537         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19538         macro here based on has_cpuclock code.
19539
19540         [BZ #10149]
19541         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19542         First byte (not low byte) is now always NUL.
19543         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19544
19545         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19546         Use non-cancelable interfaces.
19547
19548         [BZ #9809]
19549         * locale/iso-639.def: Add entry for Sorani.
19550
19551         [BZ #11901]
19552         * include/stdlib.h: Move include protection to the right place.
19553         Define abort_msg_s.  Declare __abort_msg with it.
19554         * stdlib/abort.c (__abort_msg): Adjust type.
19555         * assert/assert.c (__assert_fail_base): New function.  Majority
19556         of code from __assert_fail.  Allocate memory for __abort_msg with
19557         mmap.
19558         (__assert_fail): Now call __assert_fail_base.
19559         * assert/assert-perr.c: Remove bulk of implementation.  Use
19560         __assert_fail_base.
19561         * include/assert.hL Declare __assert_fail_base.
19562         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19563         mmap.
19564         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19565
19566 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19567
19568         [BZ #11952]
19569         [BZ #12453]
19570         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19571         until all modules are registered in the DTV.
19572         * elf/Makefile: Add rules to build and run tst-tls19.
19573         * elf/tst-tls19.c: New file.
19574         * elf/tst-tls19mod1.c: New file.
19575         * elf/tst-tls19mod2.c: New file.
19576         * elf/tst-tls19mod3.c: New file.
19577         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19578
19579         [BZ #12083]
19580         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19581         correctly.
19582
19583         [BZ #12601]
19584         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19585         two-byte sequence errors.
19586         * iconvdata/Makefile (tests): Add bug-iconv8.
19587         * iconvdata/bug-iconv8.c: New file.
19588
19589         [BZ #12626]
19590         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19591         buf2 definition.
19592
19593         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19594
19595         [BZ #12432]
19596         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19597         (dummy_getcfa): New function.
19598         (init): Get _Unwind_GetCFA address, use dummy if not found.
19599         (backtrace_helper): In recursion check, also check whether CFA changes.
19600         (__backtrace): Completely initialize arg.
19601
19602         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19603         storing incomplete byte sequence in state object.  Avoid testing for
19604         guaranteed too small input if we know there is enough data available.
19605
19606 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19607
19608         * Makeconfig (+link-pie): Indent.
19609         * Rules (binaries-pie): Define if $(have-fpie) and
19610         $(build-shared).
19611         (binaries-shared): Also filter out $(binaries-pie).
19612         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19613         * nscd/Makefile (others-pie): Add nscd.
19614         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19615         ($(objpfx)nscd): Remove command override.
19616         * login/Makefile (others-pie): Add pt_chown.
19617         ($(objpfx)pt_chown): Remove command override.
19618         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19619         remove command overrides.
19620
19621 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19622
19623         * libio/tst_putwc.c: Fix error messages.
19624
19625         [BZ #12724]
19626         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19627         currently writing and seek to current position when not.
19628         * libio/Makefile (tests): Add bug-fclose1.
19629         * libio/bug-fclose1.c: New file.
19630
19631 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19632
19633         [BZ #12511]
19634         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19635         don't set DF_1_NODELETE here.
19636         (do_lookup_x): When entering new entry test for copy relocation
19637         and if necessary set DF_1_NODELETE flag.
19638         * elf/tst-unique4.cc: New file.
19639         * elf/tst-unique4.h: New file.
19640         * elf/tst-unique4lib.cc: New file.
19641         * elf/Makefile: Add rules to build and run tst-unique4.
19642         Patch by Piotr Bury <pbury@goahead.com>.
19643
19644 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19645
19646         [BZ #12052]
19647         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19648
19649         [BZ #12625]
19650         * misc/mntent_r.c (addmntent): Flush the stream after the output
19651
19652         [BZ #12393]
19653         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19654         (is_trusted_path_normalize): Skip initial colon.  Append slash
19655         to empty buffer.  Duplicate is_trusted_path code but allow
19656         constructed patch to be prefix.
19657         (is_dst): Allow $ORIGIN followed by /.
19658         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19659         Correct testing of result of is_trusted_path_normalize
19660         (decompose_rpath): Fix warning.
19661
19662 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19663
19664         [BZ #11257]
19665         * grp/initgroups.c (internal_getgrouplist): When we found the service
19666         list through the initgroups entry in nsswitch.conf do not always
19667         continue on a successful lookup.  Don't always use the
19668         __nss_group_database value if it is set.
19669         * nss/nsswitch.conf (initgroups): Change action for successful db
19670         lookup to continue for compatibility.
19671
19672 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19673
19674         [BZ #11532]
19675         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19676         and CP774 modules.
19677         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19678         and CP774 modules.
19679         * iconvdata/tst-tables.sh: Likewise.
19680         * iconvdata/cp770.c: New file.
19681         * iconvdata/cp771.c: New file.
19682         * iconvdata/cp772.c: New file.
19683         * iconvdata/cp773.c: New file.
19684         * iconvdata/cp774.c: New file.
19685         * iconvdata/testdata/CP770: New file.
19686         * iconvdata/testdata/CP770..UTF8: New file.
19687         * iconvdata/testdata/CP771: New file.
19688         * iconvdata/testdata/CP771..UTF8: New file.
19689         * iconvdata/testdata/CP772: New file.
19690         * iconvdata/testdata/CP772..UTF8: New file.
19691         * iconvdata/testdata/CP773: New file.
19692         * iconvdata/testdata/CP773..UTF8: New file.
19693         * iconvdata/testdata/CP774: New file.
19694         * iconvdata/testdata/CP774..UTF8: New file.
19695
19696         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19697         END CHARMAP line.
19698         * iconvdata/gen-8bit-gap.sh: Likewise.
19699         * iconvdata/gen-8bit.sh: Likewise.
19700
19701         * locale/iso-639.def: Add ary entry.
19702
19703         [BZ #11258]
19704         * locale/C-translit.h.in: Add U20A1 transliteration.
19705
19706         [BZ #12178]
19707         * locale/iso-639.def: Add wae entry.
19708         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19709
19710         [BZ #12545]
19711         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19712         for n.
19713
19714         [BZ #12711]
19715         * locale/C-translit.h.in: Add entry for U20B9.
19716         Patch by pravin.d.s@gmail.com.
19717
19718 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19719
19720         [BZ #12713]
19721         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19722         ENAMETOOLONG use generic getcwd.
19723         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19724         in rtld.  Use *stat64.
19725         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19726         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19727         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19728         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19729         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19730         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19731         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19732         __fstatat64 macros.
19733         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19734         * dirent/rewinddir.c: Add libc_hidden_def.
19735         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19736         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19737
19738         * include/dirent.h (__alloc_dir): Add flags parameter.
19739         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19740         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19741         __alloc_dir.
19742         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19743         from fdopendir if O_CLOEXEC is already set.
19744
19745 2011-03-15  Alan Modra  <amodra@gmail.com>
19746
19747         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19748         l_tls_firstbyte_offset non-zero.  Save padding offset in
19749         l_tls_firstbyte_offset for later use.
19750         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19751         freeing static tls block.
19752
19753 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19754
19755         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19756         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19757         being defined by the kernel headers.
19758
19759 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19760
19761         [BZ #12734]
19762         * resolv/resolv.h: Define RES_NOTLDQUERY.
19763         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19764         no-tld-query and set RES_NOTLDQUERY.
19765         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19766         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19767         modern BIND to search name as TLD unless forbidden.
19768
19769 2011-05-07  Petr Baudis  <pasky@suse.cz>
19770             Ulrich Drepper  <drepper@gmail.com>
19771
19772         [BZ #12393]
19773         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19774         (is_trusted_path): ...to here.
19775         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19776         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19777         using is_trusted_path_normalize() in setuid scripts.
19778
19779 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19780
19781         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19782         __BEGIN/__END_DECLS.
19783
19784 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19785
19786         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19787         NSS_STATUS_NOTFOUND if no record was found.
19788
19789 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19790
19791         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19792         (headers-not-in-tirpc): Remove rpc/netdb.h
19793         * resolv/netdb.h: Revert last change.
19794
19795 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19796
19797         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19798         circular dependency between libgcc.a and libc.a.
19799
19800 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19801
19802         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19803         * nis/Makefile: Don't install rpcsvc/*.
19804         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19805         instead of <rpc/types.h>.
19806         (MAXHOSTNAMELEN): Define.
19807
19808 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19809
19810         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19811
19812 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19813
19814         [BZ #12714]
19815         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19816         gethostbyname4_r when IPv6 results are possible.
19817
19818 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19819
19820         [BZ #12723]
19821         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19822         _PC_PIPE_BUF handling.
19823
19824 2011-04-30  Bruno Haible  <bruno@clisp.org>
19825
19826         [BZ #12717]
19827         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19828         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19829         to 'int'.
19830         * inet/getnameinfo.c (getnameinfo): Likewise.
19831
19832 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19833
19834         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19835         to groups setting in database lookup.
19836         * nss/nsswitch.conf: Add initgroups entry.
19837
19838 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19839
19840         [BZ #12685]
19841         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19842         mode string.
19843         Patch by Eric Blake <eblake@redhat.com>.
19844
19845 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19846
19847         * sunrpc/Makefile (need-export-routines): Add svc_run.
19848         (routines): Remove svc_run.
19849         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19850         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19851         * sunrpc/svc_run.c (svc_run): Likewise.
19852         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19853
19854 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19855
19856         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19857         problem in reallocation in last patch.
19858
19859 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19860
19861         * sunrpc/Makefile: Move inclusion of Rules.
19862
19863 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19864
19865         * nss/nss_files/files-initgroups.c: New file.
19866         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19867         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19868         _nss_files_initgroups_dyn.
19869
19870 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19871
19872         * elf/elf.h (R_ARM_IRELATIVE): Define.
19873
19874 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19875
19876         * po/ru.po: Update from translation team.
19877
19878 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19879
19880         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19881         dependencies.
19882
19883 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19884
19885         [BZ #12653]
19886         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19887         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19888         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19889         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19890         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19891
19892 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19893
19894         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19895         differing bytes.
19896         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
19897         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
19898         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19899
19900 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19901
19902         [BZ #12420]
19903         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
19904         storing it.
19905         * stdlib/bug-getcontext.c: New file.
19906         * stdlib/Makefile: Add rules to build and run bug-getcontext.
19907
19908 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19909
19910         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
19911         instructions into .machine "z9-109".
19912         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19913         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19914
19915 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19916
19917         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
19918         between environment variables and auxiliary vector.
19919
19920 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
19921
19922         * Makefile: Add rules to build linkobj/libc.so.
19923         * include/libc-symbols.h: Define libc_hidden_nolink.
19924         * include/rpc/auth.h: Mark functions which are to be hidden.
19925         * include/rpc/auth_des.h: Likewise.
19926         * include/rpc/auth_unix.h: Likewise.
19927         * include/rpc/clnt.h: Likewise.
19928         * include/rpc/des_crypt.h: Likewise.
19929         * include/rpc/key_prot.h: Likewise.
19930         * include/rpc/pmap_clnt.h: Likewise.
19931         * include/rpc/pmap_prot.h: Likewise.
19932         * include/rpc/pmap_rmt.h: Likewise.
19933         * include/rpc/rpc_msg.h: Likewise.
19934         * include/rpc/svc.h: Likewise.
19935         * include/rpc/svc_auth.h: Likewise.
19936         * include/rpc/xdr.h: Likewise.
19937         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19938         * nss/Makefile: Likewise.
19939         * sunrpc/Makefile: Don't install headers.  Build library with normal
19940         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19941         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19942         for the compat linking library.  Remove use of INTDEF/INTUSE.
19943         * sunrpc/auth_none.c: Likewise.
19944         * sunrpc/auth_unix.c: Likewise.
19945         * sunrpc/authdes_prot.c: Likewise.
19946         * sunrpc/authuxprot.c: Likewise.
19947         * sunrpc/clnt_gen.c: Likewise.
19948         * sunrpc/clnt_perr.c: Likewise.
19949         * sunrpc/clnt_raw.c: Likewise.
19950         * sunrpc/clnt_simp.c: Likewise.
19951         * sunrpc/clnt_tcp.c: Likewise.
19952         * sunrpc/clnt_udp.c: Likewise.
19953         * sunrpc/clnt_unix.c: Likewise.
19954         * sunrpc/des_crypt.c: Likewise.
19955         * sunrpc/des_soft.c: Likewise.
19956         * sunrpc/get_myaddr.c: Likewise.
19957         * sunrpc/key_call.c: Likewise.
19958         * sunrpc/key_prot.c: Likewise.
19959         * sunrpc/netname.c: Likewise.
19960         * sunrpc/pm_getmaps.c: Likewise.
19961         * sunrpc/pm_getport.c: Likewise.
19962         * sunrpc/pmap_clnt.c: Likewise.
19963         * sunrpc/pmap_prot.c: Likewise.
19964         * sunrpc/pmap_prot2.c: Likewise.
19965         * sunrpc/pmap_rmt.c: Likewise.
19966         * sunrpc/publickey.c: Likewise.
19967         * sunrpc/rpc_cmsg.c: Likewise.
19968         * sunrpc/rpc_common.c: Likewise.
19969         * sunrpc/rpc_dtable.c: Likewise.
19970         * sunrpc/rpc_prot.c: Likewise.
19971         * sunrpc/rpc_thread.c: Likewise.
19972         * sunrpc/rtime.c: Likewise.
19973         * sunrpc/svc.c: Likewise.
19974         * sunrpc/svc_auth.c: Likewise.
19975         * sunrpc/svc_authux.c: Likewise.
19976         * sunrpc/svc_raw.c: Likewise.
19977         * sunrpc/svc_run.c: Likewise.
19978         * sunrpc/svc_simple.c: Likewise.
19979         * sunrpc/svc_tcp.c: Likewise.
19980         * sunrpc/svc_udp.c: Likewise.
19981         * sunrpc/svc_unix.c: Likewise.
19982         * sunrpc/svcauth_des.c: Likewise.
19983         * sunrpc/xcrypt.c: Likewise.
19984         * sunrpc/xdr.c: Likewise.
19985         * sunrpc/xdr_array.c: Likewise.
19986         * sunrpc/xdr_float.c: Likewise.
19987         * sunrpc/xdr_intXX_t.c: Likewise.
19988         * sunrpc/xdr_mem.c: Likewise.
19989         * sunrpc/xdr_rec.c: Likewise.
19990         * sunrpc/xdr_ref.c: Likewise.
19991         * sunrpc/xdr_sizeof.c: Likewise.
19992         * sunrpc/xdr_stdio.c: Likewise.
19993
19994 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19995
19996         [BZ #12650]
19997         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19998         * sysdeps/ia64/dl-tls.h: Likewise.
19999         * sysdeps/powerpc/dl-tls.h: Likewise.
20000         * sysdeps/s390/dl-tls.h: Likewise.
20001         * sysdeps/sh/dl-tls.h: Likewise.
20002         * sysdeps/sparc/dl-tls.h: Likewise.
20003         * sysdeps/x86_64/dl-tls.h: Likewise.
20004         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20005
20006 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20007
20008         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20009         rpath element also skip the following colon.
20010         (expand_dynamic_string_token): Add is_path parameter and pass
20011         down to DL_DST_REQUIRED and _dl_dst_substitute.
20012         (decompose_rpath): Call expand_dynamic_string_token with
20013         non-zero is_path.  Ignore empty rpaths.
20014         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20015         with zero is_path.
20016
20017 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20018
20019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20020         Make cancelable.
20021
20022 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20023
20024         [BZ #12655]
20025         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20026         Patch by Filipe David Manana <fdmanana@apache.org>.
20027
20028 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20029
20030         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20031         Maintain aligned stack.
20032         (CHECK_RSP): Remove unused macro.
20033
20034 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20035
20036         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20037         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20038
20039 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20040
20041         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20042
20043         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20044
20045 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20046
20047         [BZ #12518]
20048         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20049         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20050         * sysdeps/x86_64/memmove.c: New file.
20051         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20052         (memcpy): Renamed to ...
20053         (__new_memcpy): This.
20054         (memcpy): Provide GLIBC_2_14 memcpy.
20055         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20056         (memcpy): Provide GLIBC_2_2_5 memcpy.
20057
20058 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20059
20060         [BZ #12631]
20061         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20062
20063 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20064
20065         * misc/syncfs.c: New file.
20066         * misc/Makefile (routines): Add syncfs.
20067         * posix/unistd.h: Declare syncfs.
20068         * sysdeps/unix/syscalls.list: Add syncfs.
20069
20070 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20071
20072         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20073         open_by_handle_at.
20074         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20075         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20076         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20077         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20078         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20079         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20080         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20081
20082 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20083
20084         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20085         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20086         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20087         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20088         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20089         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20090         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20091
20092         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20093         sync_file_range.c with -fexceptions.
20094         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20095         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20096         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20097         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20098         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20099         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20100         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20101         sync_file_range as cancellation point
20102         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20103         now a wrapper around __call_sync_file_range with cancellation handling.
20104         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20105         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20106         function name to __call_sync_file_range.
20107         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20108         Add call_sync_file_range.
20109
20110 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20111
20112         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20113         bits/timex.h.
20114
20115 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20116
20117         * iconv/iconv.h: Fix typo in comment.
20118         * io/fcntl.h: Likewise.
20119         * libio/stdio.h: Likewise.
20120         * posix/spawn.h: Likewise.
20121         * posix/unistd.h: Likewise.
20122         * stdlib/stdlib.h: Likewise.
20123         * time/time.h: Likewise.
20124         * wcsmbs/wchar.h: Likewise.
20125
20126         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20127         open_by_handle): Add.
20128         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20129         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20130         Augment a few comments.
20131         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20132         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20133         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20134         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20135         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20136         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20137         open_by_handle.
20138
20139         * io/fcntl.h (AT_EMPTY_PATH): Define.
20140
20141 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20142
20143         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20144         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20145         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20146         to...
20147         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20148         * Versions.def: Add GLIBC_2.14.
20149         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20150         Export.
20151
20152 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20153
20154         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20155         round counter.
20156         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20157
20158 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20159
20160         [BZ #12597]
20161         * string/test-strncmp.c (do_page_test): New function.
20162         (check2): Likewise.
20163         (test_main): Call check2.
20164         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20165
20166 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20167
20168         [BZ #12587]
20169         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20170         Handle cache information in CPU leaf 4.
20171         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20172
20173 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20174
20175         [BZ #12583]
20176         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20177         character representation.
20178         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20179
20180 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20181
20182         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20183         END(__isnan) to END(__isnanf) to match function entry point/label
20184         EALIGN(__isnanf,...).
20185
20186 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20187
20188         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20189
20190 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20191
20192         [BZ #12510]
20193         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20194         copy from the symbol referenced in the relocation to initialize the
20195         used variable.
20196         Patch by Piotr Bury <pbury@goahead.com>.
20197         * elf/Makefile: Add rules to build and tst-unique3.
20198         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20199         * elf/tst-unique3.cc: New file.
20200         * elf/tst-unique3.h: New file.
20201         * elf/tst-unique3lib.cc: New file.
20202         * elf/tst-unique3lib2.cc: New file.
20203
20204         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20205
20206 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20207
20208         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20209         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20210         to _start.
20211
20212 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20213
20214         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20215         to-be-loaded object along a path to loader is ld.so.
20216
20217 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20218             Ulrich Drepper  <drepper@gmail.com>
20219
20220         * sysdeps/x86_64/memset.S: After aligning destination, code
20221         branches to different locations depending on the value of
20222         misalignment, when multiarch is enabled. Fix this.
20223
20224 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20225
20226         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20227         Set _x86_64_preferred_memory_instruction for AMD processsors.
20228         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20229         Set bit_Prefer_SSE_for_memop for AMD processors.
20230
20231 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20232
20233         * libio/fmemopen.c (fmemopen): Optimize a bit.
20234
20235 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20236
20237         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20238
20239 2011-03-03  Roland McGrath  <roland@redhat.com>
20240
20241         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20242
20243 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20244
20245         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20246         __bzero_ultra1 instead of __memset_ultra1.
20247
20248 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20249             Ulrich Drepper  <drepper@gmail.com>
20250
20251         [BZ #12509]
20252         * include/link.h (struct link_map): Add l_orig_initfini.
20253         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20254         returning unsuccessfully.
20255         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20256         close of a file loaded at startup, restore the original l_initfini
20257         list.
20258         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20259         list, store the pointer.
20260         * elf/Makefile ($(objpfx)noload-mem): New rule.
20261         (noload-ENV): Define.
20262         (tests): Add $(objpfx)noload-mem.
20263         * elf/noload.c: Include <memcheck.h>.
20264         (main): Call mtrace.  Close all opened handles.
20265
20266 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20267
20268         [BZ #12454]
20269         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20270         dependencies are missing.
20271
20272 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20273
20274         Fix __if_freereq crash: Unlike the generic version which uses free,
20275         Hurd needs munmap.
20276         * sysdeps/mach/hurd/ifreq.h: New file.
20277
20278 2011-01-27  Petr Baudis  <pasky@suse.cz>
20279             Ulrich Drepper  <drepper@gmail.com>
20280
20281         [BZ 12445]#
20282         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20283         to extend_alloca().
20284         * stdio-common/bug23.c: New file.
20285         * stdio-common/Makefile (tests): Add bug23.
20286
20287 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20288             Ulrich Drepper  <drepper@gmail.com>
20289
20290         [BZ #12489]
20291         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20292         before performing relro protection.  At old place add assertion
20293         to make sure nothing changed.
20294
20295 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20296             Glauber de Oliveira Costa  <glommer@gmail.com>
20297
20298         * elf/elf.h: Add new ARM TLS relocs.
20299
20300 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20301
20302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20303         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20304         cast from r3.
20305         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20306         'tests' variable.
20307         * sysdeps/wordsize-64/tst-writev.c: New file.
20308
20309 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20310
20311         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20312         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20313         insns in _dl_start to prevent a TOC reference before relocs are
20314         resolved.
20315
20316 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20317
20318         [BZ #12469]
20319         * Makeconfig: Remove RANLIB definition.
20320         * Makerules: Don't use RANLIB.
20321         * aclocal.m4: Remove ranlib test.
20322         * configure.in: No need to check for ranlib.
20323         * elf/rtld-Rules: Don't use RANLIB.
20324
20325 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20326
20327         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20328         protection macro.
20329         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20330         inclusion protection macro.
20331
20332         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20333         SIGRTMIN and SIGRTMAX and print information in that case only when
20334         SIGRTMIN is defined.
20335
20336 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20337
20338         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20339         arginfo fn returning -1.
20340
20341         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20342         and thousands string is zero terminated.
20343
20344 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20345
20346         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20347         sysdeps/unix/sysv/linux/bits/socket.h.
20348
20349 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20350
20351         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20352         (__CPU_COUNT): Remove old macros.
20353         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20354         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20355         (__CPU_ALLOC, __CPU_FREE): Add macros.
20356         (__sched_cpualloc, __sched_cpufree): Add declarations.
20357
20358 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20359
20360         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20361         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20362         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20363         (readdhstai): Return value of addhstaiX call.
20364         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20365         (addgrbyX): Return value returned by cache_addgr.
20366         (readdgrbyname): Return value returned by addgrbyX.
20367         (readdgrbygid): Likewise.
20368         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20369         (addpwbyX): Return value returned by cache_addpw.
20370         (readdpwbyname): Return value returned by addhstbyX.
20371         (readdpwbyuid): Likewise.
20372         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20373         (addservbyX): Return value returned by cache_addserv.
20374         (readdservbyname): Return value returned by addservbyX:
20375         (readdservbyport): Likewise.
20376         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20377         (addhstbyX): Return value returned by cache_addhst.
20378         (readdhstbyname): Return value returned by addhstbyX.
20379         (readdhstbyaddr): Likewise.
20380         (readdhstbynamev6): Likewise.
20381         (readdhstbyaddrv6): Likewise.
20382         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20383         (readdinitgroups): Return value returned by addinitgroupsX.
20384         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20385         (prune_cache): Keep track of timeout value of re-added entries.
20386         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20387         * nscd/nscd.h: Adjust prototypes of readd* functions.
20388
20389 2011-02-04  Roland McGrath  <roland@redhat.com>
20390
20391         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20392         (nis_stats): Likewise.
20393         * nis/nis_modify.c (nis_modify): Likewise.
20394         * nis/nis_remove.c (nis_remove): Likewise.
20395         * nis/nis_add.c (nis_add): Likewise.
20396
20397         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20398
20399         * posix/fnmatch_loop.c: Add some consts.
20400
20401         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20402
20403 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20404
20405         [BZ #12460]
20406         * config.make.in (config-cflags-novzeroupper): Define.
20407         * configure.in: Substitute libc_cv_cc_novzeroupper.
20408         * elf/Makefile (AVX-CFLAGS): Define.
20409         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20410         (CFLAGS-tst-auditmod4a.c): Likewise.
20411         (CFLAGS-tst-auditmod4b.c): Likewise.
20412         (CFLAGS-tst-auditmod6b.c): Likewise.
20413         (CFLAGS-tst-auditmod6c.c): Likewise.
20414         (CFLAGS-tst-auditmod7b.c): Likewise.
20415         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20416
20417 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20418
20419         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20420         function to the callback.
20421         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20422
20423 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20424
20425         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20426         of errno.
20427
20428 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20429
20430         [BZ #11724]
20431         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20432         of constructors.
20433         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20434         of destructors.
20435         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20436
20437         [BZ #11724]
20438         * elf/Makefile: Add rules to build and run new test.
20439         * elf/tst-initorder.c: New file.
20440         * elf/tst-initorder.exp: New file.
20441         * elf/tst-initordera1.c: New file.
20442         * elf/tst-initordera2.c: New file.
20443         * elf/tst-initordera3.c: New file.
20444         * elf/tst-initordera4.c: New file.
20445         * elf/tst-initorderb1.c: New file.
20446         * elf/tst-initorderb2.c: New file.
20447         * elf/tst-order-a1.c: New file.
20448         * elf/tst-order-a2.c: New file.
20449         * elf/tst-order-a3.c: New file.
20450         * elf/tst-order-a4.c: New file.
20451         * elf/tst-order-b1.c: New file.
20452         * elf/tst-order-b2.c: New file.
20453         * elf/tst-order-main.c: New file.
20454         New test case by George Gensure <werkt0@gmail.com>.
20455
20456 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20457
20458         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20459         decoding ACE if AI_CANONIDN.
20460
20461 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20462
20463         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20464
20465 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20466
20467         * version.h (RELEASE): Bump for 2.13 release.
20468         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20469
20470         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20471
20472         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20473         MADV_NOHUGEPAGE.
20474         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20475         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20476         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20477         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20478         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20479         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20480
20481         * posix/getconf.c: Update copyright year.
20482         * catgets/gencat.c: Likewise.
20483         * csu/version.c: Likewise.
20484         * debug/catchsegv.sh: Likewise.
20485         * debug/xtrace.sh: Likewise.
20486         * elf/ldconfig.c: Likewise.
20487         * elf/ldd.bash.in: Likewise.
20488         * elf/sprof.c (print_version): Likewise.
20489         * iconv/iconv_prog.c: Likewise.
20490         * iconv/iconvconfig.c: Likewise.
20491         * locale/programs/locale.c: Likewise.
20492         * locale/programs/localedef.c: Likewise.
20493         * malloc/memusage.sh: Likewise.
20494         * malloc/mtrace.pl: Likewise.
20495         * nscd/nscd.c (print_version): Likewise.
20496         * nss/getent.c: Likewise.
20497
20498         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20499         PF_CAIF, and PF_ALG.
20500         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20501
20502 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20503
20504         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20505         (modules-names): Use them.
20506         (ifunc-test-modules, ifunc-pie-tests): Define.
20507         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20508         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20509         (test-extras): Likewise.
20510         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20511         $(compile-command.c).
20512         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20513         (all-built-dso): Define.
20514         (check-textrel.out, check-execstack.out): Depend on it.
20515
20516         * configure.in: Don't override --enable-multi-arch.
20517
20518 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20519
20520         [BZ #6812]
20521         * nscd/hstcache.c (tryagain): Define.
20522         (cache_addhst): Return tryagain not notfound for temporary errors.
20523         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20524         failed.
20525
20526 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20527
20528         [BZ #10563]
20529         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20530         to make the syscall.
20531         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20532
20533         [BZ #12378]
20534         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20535         and fall back to matching as normal character if the string ends before
20536         the matching ']' is found.  This is what POSIX requires.
20537         * posix/testfnm.c: Adjust test result.
20538         * posix/globtest.sh: Adjust test result.  Add new test.
20539         * posix/tst-fnmatch.input: Likewise.
20540         * posix/tst-fnmatch2.c: Add new test.
20541
20542 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20543
20544         * elf/Makefile (check-execstack): Revert last change.  Depend on
20545         check-execstack.h.
20546         (check-execstack.h): New target.
20547         (generated): Add check-execstack.h.
20548         * elf/check-execstack.c: Include "check-execstack.h".
20549         (main): Revert last change.
20550         (handle_file): Return zero if GNU_STACK is absent and
20551         DEFAULT_STACK_PERMS doesn't include PF_X.
20552
20553 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20554
20555         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20556         in child fails because the descriptor is already closed.
20557         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20558         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20559         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20560
20561         [BZ #12397]
20562         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20563         syscall.
20564
20565         [BZ #10484]
20566         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20567         temporary buffer used to handle multi lookups locally.
20568         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20569
20570 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20571
20572         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20573         loader is ld.so.
20574
20575 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20576
20577         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20578         alignment for SSE2.
20579
20580 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20581
20582         [BZ #12394]
20583         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20584         characters.  When rounding increased number of integer digits recompute
20585         number of groups.
20586         * stdio-common/tst-grouping.c: New file.
20587         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20588
20589 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20590
20591         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20592         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20593
20594         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20595         void.
20596         * bits/select.h: Likewise.
20597
20598 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20599
20600         * po/ja.po: Update from translation team.
20601
20602 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20603
20604         [BZ #11155]
20605         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20606         implementation just like for lxstat, fxstatat, et al.
20607
20608 2010-12-27  Jim Meyering  <meyering@redhat.com>
20609
20610         [BZ #12348]
20611         * posix/regexec.c (build_trtable): Return failure indication upon
20612         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20613
20614 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20615
20616         [BZ #12201]
20617         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20618         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20619         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20620         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20621
20622         [BZ #12207]
20623         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20624
20625         [BZ #12204]
20626         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20627         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20628
20629 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20630
20631         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20632         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20633         script has SORT_BY_INIT_PRIORITY.
20634         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20635         NO_CTORS_DTORS_SECTIONS is defined.
20636         * elf/soinit.c: Likewise.
20637         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20638         NO_CTORS_DTORS_SECTIONS is defined.
20639         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20640         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20641         * sysdeps/sh/init-first.c: Likewise.
20642         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20643
20644 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20645
20646         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20647         always use the slow path.
20648
20649 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20650
20651         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20652         similar rule which adds the sysdep directories to the header search in
20653         order to pick up the correct platform stackinfo.h.
20654         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20655         perform test if it is, otherwise return successfully without testing.
20656         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20657         DEFAULT_STACK_PERMS define in stackinfo.h.
20658         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20659         defined in stackinfo.h.
20660         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20661         DEFAULT_STACK_PERMS defined in stackinfo.h.
20662         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20663         * sysdeps/ia64/stackinfo.h: Likewise.
20664         * sysdeps/s390/stackinfo.h: Likewise.
20665         * sysdeps/sh/stackinfo.h: Likewise.
20666         * sysdeps/sparc/stackinfo.h: Likewise.
20667         * sysdeps/x86_64/stackinfo.h: Likewise.
20668         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20669         PF_X for powerpc64.  Retain PF_X for powerpc32.
20670
20671 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20672
20673         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20674         accurately.
20675         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20676         GETDENTS_64BIT_ALIGNED.
20677
20678 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20679
20680         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20681
20682 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20683
20684         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20685         _GNU_SOURCE.
20686
20687         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20688         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20689         Remove __restrict.
20690         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20691         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20692
20693 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20694
20695         [BZ #11655]
20696         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20697         are initialized.
20698
20699 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20700
20701         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20702
20703 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20704
20705         * po/it.po: Update from translation team.
20706
20707 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20708
20709         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20710         unused codes.
20711
20712 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20713
20714         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20715
20716 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20717
20718         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20719         specially.
20720         (gaih_getanswer_slice): Likewise.
20721
20722 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20723
20724         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20725
20726 2010-05-31  Petr Baudis  <pasky@suse.cz>
20727
20728         [BZ #11149]
20729         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20730         silently even in the chroot mode.
20731
20732 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20733
20734         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20735         last patch a bit.  Pretty printing
20736
20737 2010-05-31  Petr Baudis <pasky@suse.cz>
20738
20739         [BZ #10085]
20740         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20741         initialization of skip_initgroups_dyn.
20742
20743 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20744
20745         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20746         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20747
20748 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20749
20750         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20751
20752 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20753
20754         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20755         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20756         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20757         ($(objpfx)tst-fnmatch-mem): New rule.
20758         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20759         * posix/tst-fnmatch.c (main): Call mtrace.
20760
20761 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20762
20763         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20764         Support Intel processor model 6 and model 0x2c.
20765
20766 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20767
20768         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20769           signed comparison.
20770
20771 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20772
20773         [BZ #12205]
20774         * string/test-strncasecmp.c (check_result): New function.
20775         (do_one_test): Use it.
20776         (check1): New function.
20777         (test_main): Use it.
20778         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20779         Support strcasecmp and strncasecmp.
20780
20781 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20782
20783         [BZ #12194]
20784         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20785         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20786
20787 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20788
20789         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20790         IFUNC support.
20791         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20792         memset-x86-64.
20793         * sysdeps/x86_64/multiarch/bzero.S: New file.
20794         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20795         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20796         * sysdeps/x86_64/multiarch/memset.S: New file.
20797         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20798         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20799         Set bit_Prefer_SSE_for_memop for Intel processors.
20800         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20801         Define.
20802         (index_Prefer_SSE_for_memop): Define.
20803         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20804
20805 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20806
20807         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20808         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20809
20810 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20811
20812         [BZ #12191]
20813         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20814         (__x86_64_raw_data_cache_size_half): Likewise.
20815         (__x86_64_raw_shared_cache_size): Likewise.
20816         (__x86_64_raw_shared_cache_size_half): Likewise.
20817
20818         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20819         (__x86_64_raw_data_cache_size_half): Likewise.
20820         (__x86_64_raw_shared_cache_size): Likewise.
20821         (__x86_64_raw_shared_cache_size_half): Likewise.
20822         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20823         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20824         and __x86_64_raw_shared_cache_size_half.  Round
20825         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20826         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20827         to multiple of 256 bytes.
20828
20829 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20830
20831         [BZ #12167]
20832         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20833         of inacessible symlinks.  Verify result of symlink before returning it.
20834         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20835         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20836
20837 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20838
20839         * math/math.h (isinf): Fix typo in comment.
20840
20841 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20842
20843         * po/da.po: Update from translation team.
20844
20845 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20846
20847         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20848         is added to the list.
20849
20850 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20851             Ulrich Drepper  <drepper@gmail.com>
20852
20853         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20854         the global list here.  Move code to...
20855         (_dl_add_to_namespace_list): ...here.  New function.
20856         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20857         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20858         * elf/dl-load.c (lose): Don't remove the element from the list.
20859         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20860         (_dl_map_object): Likewise.
20861
20862 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20863
20864         [BZ #12159]
20865         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20866         into all bytes of SSE register.
20867         Patch by Richard Li <richardpku@gmail.com>.
20868
20869 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20870
20871         [BZ #12140]
20872         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20873         perturbing.
20874
20875 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20876
20877         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20878         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20879         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20880         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20882         submachine.
20883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20884
20885 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20886
20887         * include/dlfcn.h (__RTLD_SECURE): Define.
20888         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20889         mode & __RTLD_SECURE instead.
20890         (open_path): Rename preloaded parameter to secure.
20891         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20892         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20893         * elf/dl-deps.c (openaux): Likewise.
20894         * elf/rtld.c (struct map_args): Remove is_preloaded.
20895         (map_doit): Don't use it.
20896         (dl_main): Likewise.
20897         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
20898         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
20899
20900 2010-09-09  Andreas Schwab  <schwab@redhat.com>
20901
20902         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
20903         (sysd-rules-targets): Remove duplicates.
20904         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
20905         rtld-%.$o dependency.
20906
20907 2010-10-18  Andreas Schwab  <schwab@redhat.com>
20908
20909         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
20910         _dl_map_object do it.
20911
20912 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
20913
20914         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
20915         fast fma builtins, define the macros in the C99 standard.
20916         (FP_FAST_FMAF): Likewise.
20917         (FP_FAST_FMAL): Likewise.
20918         * sysdeps/x86_64/bits/mathdef.h: Likewise.
20919
20920         * bits/mathdef.h: Update copyright year.
20921         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20922
20923 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20924
20925         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20926         builtins, define the macros in the C99 standard.
20927         (FP_FAST_FMAF): Likewise.
20928         (FP_FAST_FMAL): Likewise.
20929         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20930         multiply/add.
20931         (FP_FAST_FMAF): Likewise.
20932
20933 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20934
20935         [BZ #3268]
20936         * math/libm-test.inc (fma_test): Some new testcases.
20937         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20938         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20939         y and infinite z.  Do multiplication by C already in long double.
20940         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20941         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20942         y and infinite z.  Do bitwise or of inexact bit into u.d.
20943         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20944         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20945         * sysdeps/i386/fpu/s_fma.S: Removed.
20946         * sysdeps/i386/fpu/s_fmal.S: Removed.
20947
20948 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20949
20950         [BZ #3268]
20951         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20952         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20953         computation is not scheduled after fetestexcept.  Fix value
20954         of minimum denormal long double.
20955
20956 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20957
20958         [BZ #3268]
20959         * math/libm-test.inc (fma_test): Add some more tests.
20960         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20961         correctly.
20962
20963 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20964
20965         * scripts/data/localplt-s390-linux-gnu.data: New file.
20966         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20967
20968 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20969
20970         [BZ #3268]
20971         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20972         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20973         instead of dbl-64.
20974         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20975         inlines.
20976         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20977         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20978         if one of x and y is very large and the other is subnormal.
20979         * sysdeps/s390/fpu/s_fmaf.c: New file.
20980         * sysdeps/s390/fpu/s_fma.c: New file.
20981         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20982         * sysdeps/powerpc/fpu/s_fma.S: New file.
20983         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20984         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20985         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20986
20987 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20988
20989         [BZ #3268]
20990         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20991         fma tests.
20992         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20993         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20994         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20995         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20996         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20997         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20998         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20999
21000 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21001
21002         [BZ #12078]
21003         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21004         * posix/bug-regex31.input: Add test case.
21005
21006 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21007
21008         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21009         * posix/bug-regex31.input: New file.
21010
21011         [BZ #12078]
21012         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21013         (parse_sub_exp): Fix last change, use postorder.
21014
21015         * posix/bug-regex31.c: New file.
21016         * posix/Makefile: Add rules to build and run bug-regex31.
21017
21018         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21019
21020         [BZ #12078]
21021         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21022
21023         [BZ #12108]
21024         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21025         to have entries in sys_siglist.
21026
21027         [BZ #12093]
21028         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21029         be NULL.
21030
21031 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21032
21033         [BZ #3268]
21034         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21035         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21036         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21037         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21038         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21039         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21040         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21041         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21042         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21043         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21044         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21045         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21046         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21047         * math/ftestexcept.c (fetestexcept): Likewise.
21048         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21049         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21050         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21051         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21052         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21053         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21054         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21055
21056 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21057
21058         [BZ #12107]
21059         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21060         newline.
21061
21062 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21063
21064         * string/bug-strstr1.c: New file.
21065         * string/Makefile: Add rules to build and run bug-strstr1.
21066
21067 2010-10-05  Eric Blake  <eblake@redhat.com>
21068
21069         [BZ #12092]
21070         * string/str-two-way.h (two_way_long_needle): Always clear memory
21071         when skipping input due to the shift table.
21072
21073 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21074
21075         [BZ #12005]
21076         * malloc/mcheck.c: Handle large requests.
21077
21078         [BZ #12077]
21079         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21080         for strncmp and strncasecmp.
21081         * string/stratcliff.c: Add tests for strcmp and strncmp.
21082         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21083
21084 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21085
21086         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21087         __set_fpscr.
21088
21089 2010-09-30  Andreas Jaeger  <aj@suse.de>
21090
21091         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21092         (CGROUP_SUPER_MAGIC): Define.
21093         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21094         Handle btrfs and cgroup file systems.
21095         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21096         Likewise.
21097
21098 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21099
21100         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21101         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21102
21103 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21104
21105         [BZ #12067]
21106         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21107         trying to locate the ELF header.
21108
21109 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21110
21111         [BZ #11611]
21112         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21113         Mask out sign-bit copies when constructing f_fsid.
21114
21115 2010-09-24  Petr Baudis <pasky@suse.cz>
21116
21117         * debug/stack_chk_fail_local.c: Add missing licence exception.
21118         * debug/warning-nop.c: Likewise.
21119
21120 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21121
21122         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21123         implementing getdents64 using getdents syscall, set d_type if
21124         __ASSUME_GETDENTS32_D_TYPE.
21125
21126 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21127
21128         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21129         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21130
21131 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21132
21133         [BZ #12037]
21134         * posix/unistd.h: Undo change of feature selection for ftruncate from
21135         2010-01-11.
21136
21137 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21138
21139         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21140         detection.
21141
21142 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21143
21144         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21145         fanotify_mark.
21146         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21147
21148 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21149
21150         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21151         variables after CHECK_SP call.
21152         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21153
21154 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21155             Ulrich Drepper  <drepper@redhat.com>
21156
21157         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21158         re-relocationg ld.so.
21159         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21160         _dl_init_paths call.
21161         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21162         here anymore.
21163
21164 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21165
21166         * resolv/res_init.c (__res_vinit): Count the default server we added.
21167
21168 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21169             Ulrich Drepper  <drepper@redhat.com>
21170
21171         [BZ #11968]
21172         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21173         (____longjmp_chk): Use %ebx for saving value across system call.
21174         Add unwind info.
21175
21176 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21177
21178         * manual/Makefile: Don't mix pattern rules with normal rules.
21179
21180 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21181
21182         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21183         operation.
21184         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21185         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21186         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21187         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21188         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21189         Likewise.
21190
21191 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21192
21193         [BZ #11979]
21194         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21195         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21196
21197 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21198
21199         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21200         * sysdeps/x86_64/addmul_1.S: Likewise.
21201         * sysdeps/x86_64/lshift.S: Likewise.
21202         * sysdeps/x86_64/mul_1.S: Likewise.
21203         * sysdeps/x86_64/rshift.S: Likewise.
21204         * sysdeps/x86_64/sub_n.S: Likewise.
21205         * sysdeps/x86_64/submul_1.S: Likewise.
21206
21207 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21208
21209         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21210         Define __sched_param instead of SCHED_* and sched_param when
21211         <bits/sched.h> is included with __need_schedparam defined.
21212         * bits/sched.h [__need_schedparam]
21213         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21214         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21215         (__defined_schedparam): Define to 1.
21216         (__sched_param): New structure, identical to sched_param.
21217         (__need_schedparam): Undefine.
21218
21219 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21220
21221         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21222         (epoll_create1): Declare.
21223
21224         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21225
21226 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21227
21228         [BZ #7066]
21229         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21230         shifting retval into place.
21231
21232 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21233
21234         * nis/rpcsvc/nis.h: Update copyright notice.
21235         * nis/rpcsvc/nis.x: Likewise.
21236         * nis/rpcsvc/nis_callback.h: Likewise.
21237         * nis/rpcsvc/nis_callback.x: Likewise.
21238         * nis/rpcsvc/nis_object.x: Likewise.
21239         * nis/rpcsvc/nis_tags.h: Likewise.
21240         * nis/rpcsvc/yp.h: Likewise.
21241         * nis/rpcsvc/yp.x: Likewise.
21242         * nis/rpcsvc/ypupd.h: Likewise.
21243         * nis/yp_xdr.c: Likewise.
21244         * nis/ypupdate_xdr.c: Likewise.
21245
21246         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21247         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21248         (pmap_getport): Use __libc_rpc_getport.
21249         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21250         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21251         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21252
21253 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21254
21255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21256         fanotify_mark.
21257
21258 2010-08-27  Roland McGrath  <roland@redhat.com>
21259
21260         * sysdeps/i386/i686/multiarch/Makefile
21261         (CFLAGS-varshift.c): New variable.
21262
21263 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21264
21265         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21266         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21267
21268         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21269
21270         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21271
21272 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21273
21274         * sysdeps/x86_64/strlen.S: Unroll the loop.
21275         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21276         strlen-sse2 strlen-sse2-bsf.
21277         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21278         __strlen_no_bsf if bit_Slow_BSF is set.
21279         (__strlen_sse42): Removed.
21280         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21281         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21282
21283 2010-08-25  Roland McGrath  <roland@redhat.com>
21284
21285         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21286         * sysdeps/x86_64/multiarch/varshift.c: New file.
21287         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21288         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21289         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21290         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21291
21292 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21293
21294         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21295         strlen-sse2 strlen-sse2-bsf.
21296         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21297         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21298         (__strlen_sse2): Removed.
21299         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21300         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21301         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21302         bit_Slow_BSF for Atom.
21303         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21304         (index_Slow_BSF): Define.
21305         (HAS_SLOW_BSF): Define.
21306
21307 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21308
21309         [BZ #10851]
21310         * resolv/res_init.c (__res_vinit): When no server address at all
21311         is given default to loopback.
21312
21313 2010-08-24  Roland McGrath  <roland@redhat.com>
21314
21315         * configure.in: Remove config-name.h generation.
21316         * configure: Regenerated.
21317         * config-name.in: File removed.
21318         * scripts/config-uname.sh: New file.
21319         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21320         ($(objdir)config-name.h): New target.
21321
21322         * sunrpc/rpc_parse.h: Avoid nested comment.
21323
21324 2010-08-24  Richard Henderson  <rth@redhat.com>
21325             Ulrich Drepper  <drepper@redhat.com>
21326             H.J. Lu  <hongjiu.lu@intel.com>
21327
21328         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21329         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21330         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21331         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21332         _mm_alignr_epi8 with _mm_loadu_si128.
21333         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21334         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21335         (__m128i_shift_right): Removed.
21336         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21337         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21338         * sysdeps/x86_64/multiarch/varshift.h: New file.
21339         * sysdeps/x86_64/multiarch/varshift.S: New file.
21340
21341 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21342
21343         * configure.in: Move assembler checks to before sysdep dir checking.
21344
21345 2010-08-20  Petr Baudis  <pasky@suse.cz>
21346
21347         * LICENSES: Sync the sunrpc license.
21348
21349 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21350
21351         * sunrpc/auth_des.c: Update copyright notice once again.
21352         * sunrpc/auth_none.c: Likewise.
21353         * sunrpc/auth_unix.c: Likewise.
21354         * sunrpc/authdes_prot.c: Likewise.
21355         * sunrpc/authuxprot.c: Likewise.
21356         * sunrpc/bindrsvprt.c: Likewise.
21357         * sunrpc/clnt_gen.c: Likewise.
21358         * sunrpc/clnt_perr.c: Likewise.
21359         * sunrpc/clnt_raw.c: Likewise.
21360         * sunrpc/clnt_simp.c: Likewise.
21361         * sunrpc/clnt_tcp.c: Likewise.
21362         * sunrpc/clnt_udp.c: Likewise.
21363         * sunrpc/clnt_unix.c: Likewise.
21364         * sunrpc/des_crypt.c: Likewise.
21365         * sunrpc/des_soft.c: Likewise.
21366         * sunrpc/get_myaddr.c: Likewise.
21367         * sunrpc/getrpcport.c: Likewise.
21368         * sunrpc/key_call.c: Likewise.
21369         * sunrpc/key_prot.c: Likewise.
21370         * sunrpc/openchild.c: Likewise.
21371         * sunrpc/pm_getmaps.c: Likewise.
21372         * sunrpc/pm_getport.c: Likewise.
21373         * sunrpc/pmap_clnt.c: Likewise.
21374         * sunrpc/pmap_prot.c: Likewise.
21375         * sunrpc/pmap_prot2.c: Likewise.
21376         * sunrpc/pmap_rmt.c: Likewise.
21377         * sunrpc/rpc/auth.h: Likewise.
21378         * sunrpc/rpc/auth_unix.h: Likewise.
21379         * sunrpc/rpc/clnt.h: Likewise.
21380         * sunrpc/rpc/des_crypt.h: Likewise.
21381         * sunrpc/rpc/key_prot.h: Likewise.
21382         * sunrpc/rpc/netdb.h: Likewise.
21383         * sunrpc/rpc/pmap_clnt.h: Likewise.
21384         * sunrpc/rpc/pmap_prot.h: Likewise.
21385         * sunrpc/rpc/pmap_rmt.h: Likewise.
21386         * sunrpc/rpc/rpc.h: Likewise.
21387         * sunrpc/rpc/rpc_des.h: Likewise.
21388         * sunrpc/rpc/rpc_msg.h: Likewise.
21389         * sunrpc/rpc/svc.h: Likewise.
21390         * sunrpc/rpc/svc_auth.h: Likewise.
21391         * sunrpc/rpc/types.h: Likewise.
21392         * sunrpc/rpc/xdr.h: Likewise.
21393         * sunrpc/rpc_clntout.c: Likewise.
21394         * sunrpc/rpc_cmsg.c: Likewise.
21395         * sunrpc/rpc_common.c: Likewise.
21396         * sunrpc/rpc_cout.c: Likewise.
21397         * sunrpc/rpc_dtable.c: Likewise.
21398         * sunrpc/rpc_hout.c: Likewise.
21399         * sunrpc/rpc_main.c: Likewise.
21400         * sunrpc/rpc_parse.c: Likewise.
21401         * sunrpc/rpc_parse.h: Likewise.
21402         * sunrpc/rpc_prot.c: Likewise.
21403         * sunrpc/rpc_sample.c: Likewise.
21404         * sunrpc/rpc_scan.c: Likewise.
21405         * sunrpc/rpc_scan.h: Likewise.
21406         * sunrpc/rpc_svcout.c: Likewise.
21407         * sunrpc/rpc_tblout.c: Likewise.
21408         * sunrpc/rpc_util.c: Likewise.
21409         * sunrpc/rpc_util.h: Likewise.
21410         * sunrpc/rpcinfo.c: Likewise.
21411         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21412         * sunrpc/rpcsvc/key_prot.x: Likewise.
21413         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21414         * sunrpc/rpcsvc/mount.x: Likewise.
21415         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21416         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21417         * sunrpc/rpcsvc/rex.x: Likewise.
21418         * sunrpc/rpcsvc/rstat.x: Likewise.
21419         * sunrpc/rpcsvc/rusers.x: Likewise.
21420         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21421         * sunrpc/rpcsvc/spray.x: Likewise.
21422         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21423         * sunrpc/rtime.c: Likewise.
21424         * sunrpc/svc.c: Likewise.
21425         * sunrpc/svc_auth.c: Likewise.
21426         * sunrpc/svc_authux.c: Likewise.
21427         * sunrpc/svc_raw.c: Likewise.
21428         * sunrpc/svc_run.c: Likewise.
21429         * sunrpc/svc_simple.c: Likewise.
21430         * sunrpc/svc_tcp.c: Likewise.
21431         * sunrpc/svc_udp.c: Likewise.
21432         * sunrpc/svc_unix.c: Likewise.
21433         * sunrpc/svcauth_des.c: Likewise.
21434         * sunrpc/xcrypt.c: Likewise.
21435         * sunrpc/xdr.c: Likewise.
21436         * sunrpc/xdr_array.c: Likewise.
21437         * sunrpc/xdr_float.c: Likewise.
21438         * sunrpc/xdr_mem.c: Likewise.
21439         * sunrpc/xdr_rec.c: Likewise.
21440         * sunrpc/xdr_ref.c: Likewise.
21441         * sunrpc/xdr_sizeof.c: Likewise.
21442         * sunrpc/xdr_stdio.c: Likewise.
21443
21444         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21445         handling.
21446
21447 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21448
21449         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21450
21451 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21452
21453         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21454         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21455         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21456         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21457         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21458         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21459         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21460         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21461         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21462         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21463         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21464         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21465         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21466         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21467
21468 2010-07-26  Anton Blanchard  <anton@samba.org>
21469
21470         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21471         * malloc/arena.c (heap_trim): Likewise.
21472
21473 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21474
21475         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21476         here.  Not...
21477         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21478         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21479
21480 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21481
21482         * sysdeps/i386/elf/Makefile: New file.
21483
21484 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21485
21486         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21487         from fanotify_init.
21488         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21489         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21490
21491 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21492
21493         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21494         of strncasecmp_l.
21495         * sysdeps/multiarch/strcmp.S: Likewise.
21496
21497 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21498
21499         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21500         strncase_l-nonascii.
21501         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21502         Add strncase_l-ssse3.
21503         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21504         * sysdeps/x86_64/strcmp.S: Likewise.
21505         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21506         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21507         * sysdeps/x86_64/strncase.S: New file.
21508         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21509         * sysdeps/x86_64/strncase_l.S: New file.
21510         * string/Makefile (strop-tests): Add strncasecmp.
21511         * string/test-strncasecmp.c: New file.
21512
21513         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21514         warning.
21515
21516         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21517         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21518
21519 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21520
21521         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21522
21523 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21524
21525         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21526         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21527         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21528
21529 2010-05-01  Alan Modra  <amodra@gmail.com>
21530
21531         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21532         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21533         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21534         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21535         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21536         tidying.  Don't tail-call __sigjmp_save for static lib.
21537         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21538         save location.
21539         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21540         (CALL_MCOUNT): Add eh info, and nop after bl.
21541         (TAIL_CALL_SYSCALL_ERROR): New macro.
21542         (PSEUDO_RET): Use it.
21543         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21544         Correct save location of integer regs and cr.
21545         (_dl_profile_resolve): Correct cr save location.  Delete nops
21546         after bl when SHARED.  Reduce cfi size a little by better
21547         placement of cfi directives.
21548         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21549         make a stack frame.  Instead use parm save area as a temp.
21550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21551         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21553         Don't make a stack frame for parent, use parm save area.
21554         Increase child stack frame to 112 bytes.  Don't save unused reg,
21555         and adjust reg usage.  Set up cfi on error recovery and
21556         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21558         (__makecontext): Add dummy nop after jump to exit.
21559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21560         Use correct parm save area and cr save, reduce stack frame.
21561         Correct cfi for possible PSEUDO_RET frame setup.
21562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21563         Branch to local label emitted by PSEUDO_RET rather than
21564         __syscall_error.
21565
21566 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21567
21568         [BZ #11904]
21569         * locale/programs/locale.c (print_assignment): New function.
21570         (show_locale_vars): Use it.
21571
21572 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21573
21574         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21575         field.
21576         (struct statfs64): Likewise.
21577         (_STATFS_F_FLAGS): Define.
21578         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21579         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21580         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21581         (ST_VALID): Define locally.
21582         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21583         __statvfs_getflags, use the provided value.
21584         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21585         __ASSUME_STATFS_F_FLAGS.
21586
21587         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21588
21589         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21590         Add sys/fanotify.h.
21591         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21592         fanotify_mask for GLIBC_2.13.
21593         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21594         fanotify_init and fanotify_mark.
21595         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21596         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21597
21598         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21599         Add prlimit.
21600         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21601         prlimit64 for GLIBC_2.13.
21602         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21603         prlimit64.
21604         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21605         syscall.
21606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21607         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21608         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21609         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21610         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21611         add prlimit alias.
21612         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21613
21614         [BZ #11903]
21615         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21616         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21617
21618         * nss/Makefile: Add rules to build and run tst-nss-test1.
21619         * shlib-versions: Add entry for libnss_test1.
21620         * nss/nss_test1.c: New file.
21621         * nss/tst-nss-test1.c: New file.
21622
21623         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21624         (__nss_configure_lookup): Set appropriate entry in
21625         __nss_configure_lookup to true.
21626         * nss/nsswitch.h: Define enum with indeces of databases in
21627         databases and __nss_database_custom arrays.  Declare
21628         __nss_database_custom.
21629         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21630         to avoid using nscd when custom rules are installed.
21631         * nss/getXXbyYY_r.c: Likewise.
21632         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21633
21634         * nss/nss_files/files-parse.c: Whitespace fixes.
21635
21636 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21637
21638         [BZ #11883]
21639         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21640         * posix/fnmatch_loop.c: Likewise.
21641
21642 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21643
21644         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21645         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21646         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21647         * Versions.def [GLIBC_2.13]: Add.
21648
21649 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21650
21651         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21652         Also fail if tpwd after pwuid call is NULL.
21653
21654 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21655
21656         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21657         when converting to ms.
21658
21659 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21660
21661         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21662         EOPNOTSUPP errors with ENOTTY.
21663         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21664         EOPNOTSUPP errors with ENOTTY.
21665
21666 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21667
21668         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21669         Add strcasecmp_l-ssse3.
21670         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21671         strcasecmp.
21672         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21673         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21674         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21675
21676 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21677
21678         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21679
21680         * string/Makefile (strop-tests): Add strcasecmp.
21681         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21682         strcasecmp_l-nonascii.
21683         (gen-as-const-headers): Add locale-defines.sym.
21684         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21685         * sysdeps/x86_64/strcasecmp.S: New file.
21686         * sysdeps/x86_64/strcasecmp_l.S: New file.
21687         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21688         * sysdeps/x86_64/locale-defines.sym: New file.
21689         * string/test-strcasecmp.c: New file.
21690
21691         * string/test-strcasestr.c: Test both ends of the range of characters.
21692         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21693
21694 2010-07-29  Roland McGrath  <roland@redhat.com>
21695
21696         [BZ #11856]
21697         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21698
21699 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21700
21701         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21702         for ld.so.
21703
21704 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21705
21706         * manual/memory.texi (Malloc Tunable Parameters): Document
21707         M_PERTURB.
21708
21709 2010-07-26  Roland McGrath  <roland@redhat.com>
21710
21711         [BZ #11840]
21712         * configure.in (-fgnu89-inline check): Set and substitute
21713         gnu89_inline, not libc_cv_gnu89_inline.
21714         * configure: Regenerated.
21715         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21716
21717 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21718
21719         * string/test-strnlen.c: New file.
21720         * string/Makefile (strop-tests): Add strnlen.
21721         * string/tester.c (test_strnlen): Add a few more test cases.
21722         * string/tst-strlen.c: Better error reporting.
21723
21724         * sysdeps/x86_64/strnlen.S: New file.
21725
21726 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21727
21728         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21729         lower-latency instructions.
21730
21731 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21732
21733         * string/test-strcasestr.c: New file.
21734         * string/test-strstr.c: New file.
21735         * string/Makefile (strop-tests): Add strstr and strcasestr.
21736         * string/str-two-way.h: Don't undefine MAX.
21737         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21738
21739 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21740
21741         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21742         strcasestr-nonascii.
21743         (CFLAGS-strcasestr-nonascii.c): Define.
21744         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21745         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21746         Remove unused attribute.
21747
21748 2010-07-20  Roland McGrath  <roland@redhat.com>
21749
21750         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21751         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21752         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21753         like LD_HWCAP_MASK can disable hwcaps.
21754
21755 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21756
21757         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21758
21759 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21760
21761         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21762         call in strcasestr.
21763         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21764         __strcasestr_sse42_nonascii.
21765         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21766         strcasestr-nonascii.c.
21767         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21768
21769 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21770
21771         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21772         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21773         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21774         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21775
21776 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21777
21778         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21779         fcntl.
21780
21781 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21782
21783         [BZ #11577]
21784         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21785         dl_signal_cerror.
21786
21787 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21788
21789         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21790         _PC_PIPE_BUF using F_GETPIPE_SZ.
21791
21792 2010-07-05  Roland McGrath  <roland@redhat.com>
21793
21794         * manual/arith.texi (Rounding Functions): Fix rint description
21795         implicit in round description.
21796
21797 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21798
21799         * elf/Makefile: Fix linking for a few tests to make recent linker
21800         happy.
21801
21802 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21803
21804         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21805         $(common-objpfx)libc_nonshared.a.
21806
21807 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21808
21809         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21810         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21811         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21812         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21813         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21814         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21815         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21816         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21831         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21832         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21833         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21834         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21835         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21836         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21837         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21838         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21839         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21840         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21841         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21842         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21857
21858 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21859
21860         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21861         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21862         * string/memmove.c (memmove): Renamed to ...
21863         (MEMMOVE): ...this.  Default to memmove.
21864         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21865         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21866         (END_CHK): Define.
21867         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21868         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21869         mempcpy-ssse3-back memmove-ssse3-back.
21870         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21871         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21872         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21873         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21874         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21875         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21876         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21877         * sysdeps/x86_64/multiarch/memmove.c: New file.
21878         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21879         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21880         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21881         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21882         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21883         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21884         Define.
21885         (index_Fast_Copy_Backward): Define.
21886         (HAS_ARCH_FEATURE): Define.
21887         (HAS_FAST_REP_STRING): Define.
21888         (HAS_FAST_COPY_BACKWARD): Define.
21889
21890 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21891
21892         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21893         Restore proper fallback handling.
21894
21895 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
21896
21897         [BZ #11701]
21898         * posix/group_member.c (__group_member): Correct checking loop.
21899
21900         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
21901         OOM in getpwuid_r correctly.  Return error number when the caller
21902         should return, otherwise -1.
21903         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
21904         call returning > 0 value.
21905         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
21906
21907 2010-06-07  Andreas Schwab  <schwab@redhat.com>
21908
21909         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
21910         libc_nonshared.a from targets in modules-names.
21911
21912 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
21913
21914         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
21915         requires it.
21916
21917 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
21918
21919         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
21920         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
21921         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21922         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21923
21924 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21925
21926         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21927
21928 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21929
21930         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21931         and F_GETPIPE_SZ.
21932         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21933         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21934         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21935         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21936         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21937         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21938
21939 2010-06-14  Roland McGrath  <roland@redhat.com>
21940
21941         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21942
21943 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21944
21945         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21946         __REDIRECT followed by __THROW.
21947         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21948         * posix/getopt.h (getopt): Likewise.
21949
21950 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21951
21952         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21953         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21954         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21955         in AT_FLAGS.
21956         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21957         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21958
21959 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21960
21961         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21962
21963 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21964
21965         [BZ #11640]
21966         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21967         Properly check family and model.
21968
21969 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21970
21971         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21972
21973 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21974
21975         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21976
21977 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21978
21979         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21980         symbol reference.
21981
21982 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21983
21984         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21985         symbol reference.
21986
21987 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21988
21989         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21990         and internal_recvmmsg.
21991         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21992         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21993         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21994         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21995
21996         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21997         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21998         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21999
22000 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22001
22002         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22003
22004 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22005
22006         POWER7 optimizations.
22007         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22008         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22009
22010 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22011
22012         * version.h: Update for 2.13 development version.
22013
22014 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22015
22016         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22017         exceptions.  Return 0.
22018
22019 2010-05-07  Roland McGrath  <roland@redhat.com>
22020
22021         * elf/ldconfig.c (main): Add a const.
22022
22023 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22024
22025         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22026         (args_options): Add no-idn option.
22027         (ahosts_keys_int): Add idn_flags to ai_flags.
22028         (parse_option): Handle 'i' option to clear idn_flags.
22029
22030         * malloc/malloc.c (_int_free): Possible race in the most recently
22031         added check.  Only act on the data if no current modification
22032         happened.
22033
22034 See ChangeLog.17 for earlier changes.