conformtest: Fix setenv / unsetenv expectations.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
2
3         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
4         not expect.
5         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
6
7         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
8         Change function return type to int.
9
10         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
11         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
12         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
13         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
14         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
15         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
16         [!POSIX] (posix_madvise): Likewise.
17         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
18         && !UNIX98].
19         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
20         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
21         (mode_t): Likewise.
22         (posix_mem_offset): Likewise.
23         (posix_typed_mem_get_info): Likewise.
24         (posix_typed_mem_open): Likewise.
25
26         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
27         Change condition to [XOPEN2K8].
28
29         * conform/conformtest.pl: Preprocess allow-header data with -x c
30         instead of from stdin.
31         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
32         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
33         [C99-based standards] (cerfc): Likewise.
34         [C99-based standards] (cexp2): Likewise.
35         [C99-based standards] (cexpm1): Likewise.
36         [C99-based standards] (clog10): Likewise.
37         [C99-based standards] (clog1p): Likewise.
38         [C99-based standards] (clog2): Likewise.
39         [C99-based standards] (clgamma): Likewise.
40         [C99-based standards] (ctgamma): Likewise.
41         [C99-based standards] (cerff): Likewise.
42         [C99-based standards] (cerfcf): Likewise.
43         [C99-based standards] (cexp2f): Likewise.
44         [C99-based standards] (cexpm1f): Likewise.
45         [C99-based standards] (clog10f): Likewise.
46         [C99-based standards] (clog1pf): Likewise.
47         [C99-based standards] (clog2f): Likewise.
48         [C99-based standards] (clgammaf): Likewise.
49         [C99-based standards] (ctgammaf): Likewise.
50         [C99-based standards] (cerfl): Likewise.
51         [C99-based standards] (cerfcl): Likewise.
52         [C99-based standards] (cexp2l): Likewise.
53         [C99-based standards] (cexpm1l): Likewise.
54         [C99-based standards] (clog10l): Likewise.
55         [C99-based standards] (clog1pl): Likewise.
56         [C99-based standards] (clog2l): Likewise.
57         [C99-based standards] (clgammal): Likewise.
58         [C99-based standards] (ctgammal): Likewise.
59         * conform/data/inttypes.h-data [C99-based standards]: Include
60         stdint.h-data.  Remove all expectations for stdint.h contents.
61         [C99-based standards] (PRI*): Do not allow.
62         [C99-based standards] (SCN*): Likewise.
63         [C99-based standards] (*_t): Likewise.
64         [C99-based-standards] (PRId8): Expect macro.
65         [C99-based-standards] (PRIi8): Likewise.
66         [C99-based-standards] (PRIo8): Likewise.
67         [C99-based-standards] (PRIu8): Likewise.
68         [C99-based-standards] (PRIx8): Likewise.
69         [C99-based-standards] (PRIX8): Likewise.
70         [C99-based-standards] (SCNd8): Likewise.
71         [C99-based-standards] (SCNi8): Likewise.
72         [C99-based-standards] (SCNo8): Likewise.
73         [C99-based-standards] (SCNu8): Likewise.
74         [C99-based-standards] (SCNx8): Likewise.
75         [C99-based-standards] (PRIdLEAST8): Likewise.
76         [C99-based-standards] (PRIiLEAST8): Likewise.
77         [C99-based-standards] (PRIoLEAST8): Likewise.
78         [C99-based-standards] (PRIuLEAST8): Likewise.
79         [C99-based-standards] (PRIxLEAST8): Likewise.
80         [C99-based-standards] (PRIXLEAST8): Likewise.
81         [C99-based-standards] (SCNdLEAST8): Likewise.
82         [C99-based-standards] (SCNiLEAST8): Likewise.
83         [C99-based-standards] (SCNoLEAST8): Likewise.
84         [C99-based-standards] (SCNuLEAST8): Likewise.
85         [C99-based-standards] (SCNxLEAST8): Likewise.
86         [C99-based-standards] (PRIdFAST8): Likewise.
87         [C99-based-standards] (PRIiFAST8): Likewise.
88         [C99-based-standards] (PRIoFAST8): Likewise.
89         [C99-based-standards] (PRIuFAST8): Likewise.
90         [C99-based-standards] (PRIxFAST8): Likewise.
91         [C99-based-standards] (PRIXFAST8): Likewise.
92         [C99-based-standards] (SCNdFAST8): Likewise.
93         [C99-based-standards] (SCNiFAST8): Likewise.
94         [C99-based-standards] (SCNoFAST8): Likewise.
95         [C99-based-standards] (SCNuFAST8): Likewise.
96         [C99-based-standards] (SCNxFAST8): Likewise.
97         [C99-based-standards] (PRId16): Likewise.
98         [C99-based-standards] (PRIi16): Likewise.
99         [C99-based-standards] (PRIo16): Likewise.
100         [C99-based-standards] (PRIu16): Likewise.
101         [C99-based-standards] (PRIx16): Likewise.
102         [C99-based-standards] (PRIX16): Likewise.
103         [C99-based-standards] (SCNd16): Likewise.
104         [C99-based-standards] (SCNi16): Likewise.
105         [C99-based-standards] (SCNo16): Likewise.
106         [C99-based-standards] (SCNu16): Likewise.
107         [C99-based-standards] (SCNx16): Likewise.
108         [C99-based-standards] (PRIdLEAST16): Likewise.
109         [C99-based-standards] (PRIiLEAST16): Likewise.
110         [C99-based-standards] (PRIoLEAST16): Likewise.
111         [C99-based-standards] (PRIuLEAST16): Likewise.
112         [C99-based-standards] (PRIxLEAST16): Likewise.
113         [C99-based-standards] (PRIXLEAST16): Likewise.
114         [C99-based-standards] (SCNdLEAST16): Likewise.
115         [C99-based-standards] (SCNiLEAST16): Likewise.
116         [C99-based-standards] (SCNoLEAST16): Likewise.
117         [C99-based-standards] (SCNuLEAST16): Likewise.
118         [C99-based-standards] (SCNxLEAST16): Likewise.
119         [C99-based-standards] (PRIdFAST16): Likewise.
120         [C99-based-standards] (PRIiFAST16): Likewise.
121         [C99-based-standards] (PRIoFAST16): Likewise.
122         [C99-based-standards] (PRIuFAST16): Likewise.
123         [C99-based-standards] (PRIxFAST16): Likewise.
124         [C99-based-standards] (PRIXFAST16): Likewise.
125         [C99-based-standards] (SCNdFAST16): Likewise.
126         [C99-based-standards] (SCNiFAST16): Likewise.
127         [C99-based-standards] (SCNoFAST16): Likewise.
128         [C99-based-standards] (SCNuFAST16): Likewise.
129         [C99-based-standards] (SCNxFAST16): Likewise.
130         [C99-based-standards] (PRId32): Likewise.
131         [C99-based-standards] (PRIi32): Likewise.
132         [C99-based-standards] (PRIo32): Likewise.
133         [C99-based-standards] (PRIu32): Likewise.
134         [C99-based-standards] (PRIx32): Likewise.
135         [C99-based-standards] (PRIX32): Likewise.
136         [C99-based-standards] (SCNd32): Likewise.
137         [C99-based-standards] (SCNi32): Likewise.
138         [C99-based-standards] (SCNo32): Likewise.
139         [C99-based-standards] (SCNu32): Likewise.
140         [C99-based-standards] (SCNx32): Likewise.
141         [C99-based-standards] (PRIdLEAST32): Likewise.
142         [C99-based-standards] (PRIiLEAST32): Likewise.
143         [C99-based-standards] (PRIoLEAST32): Likewise.
144         [C99-based-standards] (PRIuLEAST32): Likewise.
145         [C99-based-standards] (PRIxLEAST32): Likewise.
146         [C99-based-standards] (PRIXLEAST32): Likewise.
147         [C99-based-standards] (SCNdLEAST32): Likewise.
148         [C99-based-standards] (SCNiLEAST32): Likewise.
149         [C99-based-standards] (SCNoLEAST32): Likewise.
150         [C99-based-standards] (SCNuLEAST32): Likewise.
151         [C99-based-standards] (SCNxLEAST32): Likewise.
152         [C99-based-standards] (PRIdFAST32): Likewise.
153         [C99-based-standards] (PRIiFAST32): Likewise.
154         [C99-based-standards] (PRIoFAST32): Likewise.
155         [C99-based-standards] (PRIuFAST32): Likewise.
156         [C99-based-standards] (PRIxFAST32): Likewise.
157         [C99-based-standards] (PRIXFAST32): Likewise.
158         [C99-based-standards] (SCNdFAST32): Likewise.
159         [C99-based-standards] (SCNiFAST32): Likewise.
160         [C99-based-standards] (SCNoFAST32): Likewise.
161         [C99-based-standards] (SCNuFAST32): Likewise.
162         [C99-based-standards] (SCNxFAST32): Likewise.
163         [C99-based-standards] (PRId64): Likewise.
164         [C99-based-standards] (PRIi64): Likewise.
165         [C99-based-standards] (PRIo64): Likewise.
166         [C99-based-standards] (PRIu64): Likewise.
167         [C99-based-standards] (PRIx64): Likewise.
168         [C99-based-standards] (PRIX64): Likewise.
169         [C99-based-standards] (SCNd64): Likewise.
170         [C99-based-standards] (SCNi64): Likewise.
171         [C99-based-standards] (SCNo64): Likewise.
172         [C99-based-standards] (SCNu64): Likewise.
173         [C99-based-standards] (SCNx64): Likewise.
174         [C99-based-standards] (PRIdLEAST64): Likewise.
175         [C99-based-standards] (PRIiLEAST64): Likewise.
176         [C99-based-standards] (PRIoLEAST64): Likewise.
177         [C99-based-standards] (PRIuLEAST64): Likewise.
178         [C99-based-standards] (PRIxLEAST64): Likewise.
179         [C99-based-standards] (PRIXLEAST64): Likewise.
180         [C99-based-standards] (SCNdLEAST64): Likewise.
181         [C99-based-standards] (SCNiLEAST64): Likewise.
182         [C99-based-standards] (SCNoLEAST64): Likewise.
183         [C99-based-standards] (SCNuLEAST64): Likewise.
184         [C99-based-standards] (SCNxLEAST64): Likewise.
185         [C99-based-standards] (PRIdFAST64): Likewise.
186         [C99-based-standards] (PRIiFAST64): Likewise.
187         [C99-based-standards] (PRIoFAST64): Likewise.
188         [C99-based-standards] (PRIuFAST64): Likewise.
189         [C99-based-standards] (PRIxFAST64): Likewise.
190         [C99-based-standards] (PRIXFAST64): Likewise.
191         [C99-based-standards] (SCNdFAST64): Likewise.
192         [C99-based-standards] (SCNiFAST64): Likewise.
193         [C99-based-standards] (SCNoFAST64): Likewise.
194         [C99-based-standards] (SCNuFAST64): Likewise.
195         [C99-based-standards] (SCNxFAST64): Likewise.
196         [C99-based-standards] (PRIdMAX): Likewise.
197         [C99-based-standards] (PRIiMAX): Likewise.
198         [C99-based-standards] (PRIoMAX): Likewise.
199         [C99-based-standards] (PRIuMAX): Likewise.
200         [C99-based-standards] (PRIxMAX): Likewise.
201         [C99-based-standards] (PRIXMAX): Likewise.
202         [C99-based-standards] (SCNdMAX): Likewise.
203         [C99-based-standards] (SCNiMAX): Likewise.
204         [C99-based-standards] (SCNoMAX): Likewise.
205         [C99-based-standards] (SCNuMAX): Likewise.
206         [C99-based-standards] (SCNxMAX): Likewise.
207         [C99-based-standards] (PRIdPTR): Likewise.
208         [C99-based-standards] (PRIiPTR): Likewise.
209         [C99-based-standards] (PRIoPTR): Likewise.
210         [C99-based-standards] (PRIuPTR): Likewise.
211         [C99-based-standards] (PRIxPTR): Likewise.
212         [C99-based-standards] (PRIXPTR): Likewise.
213         [C99-based-standards] (SCNdPTR): Likewise.
214         [C99-based-standards] (SCNiPTR): Likewise.
215         [C99-based-standards] (SCNoPTR): Likewise.
216         [C99-based-standards] (SCNuPTR): Likewise.
217         [C99-based-standards] (SCNxPTR): Likewise.
218         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
219         allow.
220         * conform/data/stdint.h-data: Update comments to clarify
221         requirements.
222         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
223         type.
224         [C99-based standards] (INT8_MAX): Likewise.
225         [C99-based standards] (INT16_MIN): Likewise.
226         [C99-based standards] (INT16_MAX): Likewise.
227         [C99-based standards] (INT32_MIN): Likewise.
228         [C99-based standards] (INT32_MAX): Likewise.
229         [C99-based standards] (INT64_MIN): Likewise.
230         [C99-based standards] (INT64_MAX): Likewise.
231         [C99-based standards] (UINT8_MAX): Likewise.
232         [C99-based standards] (UINT16_MAX): Likewise.
233         [C99-based standards] (UINT32_MAX): Likewise.
234         [C99-based standards] (UINT64_MAX): Likewise.
235         [C99-based standards] (INT_LEAST8_MIN): Likewise.
236         [C99-based standards] (INT_LEAST8_MAX): Likewise.
237         [C99-based standards] (INT_LEAST16_MIN): Likewise.
238         [C99-based standards] (INT_LEAST16_MAX): Likewise.
239         [C99-based standards] (INT_LEAST32_MIN): Likewise.
240         [C99-based standards] (INT_LEAST32_MAX): Likewise.
241         [C99-based standards] (INT_LEAST64_MIN): Likewise.
242         [C99-based standards] (INT_LEAST64_MAX): Likewise.
243         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
244         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
245         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
246         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
247         [C99-based standards] (INT_FAST8_MIN): Likewise.
248         [C99-based standards] (INT_FAST8_MAX): Likewise.
249         [C99-based standards] (INT_FAST16_MIN): Likewise.
250         [C99-based standards] (INT_FAST16_MAX): Likewise.
251         [C99-based standards] (INT_FAST32_MIN): Likewise.
252         [C99-based standards] (INT_FAST32_MAX): Likewise.
253         [C99-based standards] (INT_FAST64_MIN): Likewise.
254         [C99-based standards] (INT_FAST64_MAX): Likewise.
255         [C99-based standards] (UINT_FAST8_MAX): Likewise.
256         [C99-based standards] (UINT_FAST16_MAX): Likewise.
257         [C99-based standards] (UINT_FAST32_MAX): Likewise.
258         [C99-based standards] (UINT_FAST64_MAX): Likewise.
259         [C99-based standards] (INTPTR_MIN): Likewise.
260         [C99-based standards] (INTPTR_MAX): Likewise.
261         [C99-based standards] (UINTPTR_MAX): Likewise.
262         [C99-based standards] (INTMAX_MIN): Likewise.
263         [C99-based standards] (INTMAX_MAX): Likewise.
264         [C99-based standards] (UINTMAX_MAX): Likewise.
265         [C99-based standards] (PTRDIFF_MIN): Likewise.
266         [C99-based standards] (PTRDIFF_MAX): Likewise.
267         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
268         [C99-based standards] (SIZE_MAX): Likewise.
269         [C99-based standards] (WCHAR_MAX): Likewise.
270         [C99-based standards] (WINT_MAX): Likewise.
271         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
272         constraint on value.
273         [C99-based standards] (WCHAR_MIN): Likewise.
274         [C99-based standards] (WINT_MIN): Likewise.
275         [C99-based standards] (*_t): Allow.
276         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
277         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
278         Include math.h-data and complex.h-data.  Remove all expectations
279         of math.h and complex.h contents.
280         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
281         at end of line.
282         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
283         (struct tm): Expect tag.
284         [C99-based-standards] (wcstof): Expect function.
285         [C99-based-standards] (wcstold): Likewise.
286         [C99-based-standards] (wcstoll): Likewise.
287         [C99-based-standards] (wcstoull): Likewise.
288         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
289         macro-int-constant.  Specify type.
290         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
291         constraint on value.
292         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
293         Specify type.
294         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
295         Specify value.
296         [ISO C standards]: Do not allow headers.
297         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
298         wcs[abcdefghijklmnopqrstuvwxyz]*.
299         [ISO C standards] (*_t): Do not allow.
300         * conform/data/wctype.h-data [C99-based standards] (iswblank):
301         Expect function.
302         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
303         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
304         Specify type.
305         [ISO C standards]: Do not allow headers.
306         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
307         is[abcdefghijklmnopqrstuvwxyz]*.
308         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
309         to[abcdefghijklmnopqrstuvwxyz]*.
310         [ISO C standards] (*_t): Do not allow.
311         * conform/data/stdalign.h-data: New file.
312         * conform/data/stdbool.h-data: Likewise.
313         * conform/data/stdnoreturn.h-data: Likewise.
314
315 2012-11-07  Andreas Jaeger  <aj@suse.de>
316
317         [BZ #14809]
318         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
319         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
320         guards are changed.  Only define if not yet defined, #undef back
321         after including linux/sysctl.h if defined here.
322
323 2012-11-07  Roland McGrath  <roland@hack.frob.com>
324
325         [BZ #14815]
326         * manual/filesys.texi (Directory Entries): Typo fix.
327         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
328
329 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
330
331         * elf/elf.h (EM_AARCH64): New macro.
332         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
333         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
334         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
335         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
336         (R_AARCH64_TLSDESC): Likewise.
337         (NT_ARM_TLS): Likewise.
338         (NT_ARM_HW_BREAK): Likewise.
339         (NT_ARM_HW_WATCH): Likewise.
340
341 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
342
343         [BZ #14811]
344         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
345         (__ieee754_powl): Saturate nonzero exponents with absolute value
346         below 0x1p-79 to +/- 0x1p-79.
347         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
348         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
349         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
350         nonzero exponents with absolute value below 0x1p-32 to +/-
351         0x1p-32.
352         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
353         (__ieee754_powl): Saturate nonzero exponents with absolute value
354         below 0x1p-79 to +/- 0x1p-79.
355         * math/libm-test.inc (pow_test): Add more tests.
356
357 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
358
359         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
360         _dl_s390_cap_flags with kernel. Increase string length.
361         (_dl_s390_platforms): Add z196 and zEC12.
362
363 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
364
365         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
366         Change XOPEN21K to XOPEN2K.
367
368 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
369
370         * string/memmove.c: Use memcpy when possible.
371
372 2012-11-06  Andreas Jaeger  <aj@suse.de>
373
374         * po/eo.po: Update from translation team.
375
376 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
377
378         [BZ #14793]
379         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
380         exponent and small x and y exponents, scale x or y up.  Increase
381         by 2 the exponent used in scaling up.
382         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
383         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
384         * math/libm-test.inc (fma_test): Add more tests.
385         (fma_test_towardzero): Likewise.
386         (fma_test_downward): Likewise.
387         (fma_test_upward): Likewise.
388
389 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
390
391         [BZ #14805]
392         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
393         fenv_t *.
394
395         [BZ #14801]
396         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
397         namespace for names of struct fields.
398         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
399         fenv_t fields.
400         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
401         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
402
403 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
404
405         [BZ #3665]
406         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
407
408 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
409
410         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
411         PTR_DEMANGLE.
412
413         [BZ #5246]
414         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
415         PTR_DEMANGLE.
416
417 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
418
419         [BZ #14797]
420         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
421         definitely overflow as x * y not x * y + z.
422         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
423         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
424         * math/libm-test.inc (fma_test): Add more tests.
425         (fma_test_towardzero): Likewise.
426         (fma_test_downward): Likewise.
427         (fma_test_upward): Likewise.
428
429 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
430
431         [BZ #157]
432
433         * include/stub-tag.h: Remove file.
434         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
435         '#include' of it.
436         * manual/maint.texi (Porting): Don't reference it.
437         * Makerules ($(objpfx)stubs): Likewise.
438         * dirent/closedir.c: Don't include <stub-tag.h>.
439         * dirent/dirfd.c: Likewise.
440         * dirent/fdopendir.c: Likewise.
441         * dirent/getdents.c: Likewise.
442         * dirent/getdents64.c: Likewise.
443         * dirent/opendir.c: Likewise.
444         * dirent/readdir.c: Likewise.
445         * dirent/readdir64.c: Likewise.
446         * dirent/readdir64_r.c: Likewise.
447         * dirent/readdir_r.c: Likewise.
448         * dirent/rewinddir.c: Likewise.
449         * dirent/seekdir.c: Likewise.
450         * dirent/telldir.c: Likewise.
451         * gmon/profil.c: Likewise.
452         * grp/setgroups.c: Likewise.
453         * inet/if_index.c: Likewise.
454         * io/access.c: Likewise.
455         * io/chdir.c: Likewise.
456         * io/chmod.c: Likewise.
457         * io/chown.c: Likewise.
458         * io/close.c: Likewise.
459         * io/dup.c: Likewise.
460         * io/dup2.c: Likewise.
461         * io/dup3.c: Likewise.
462         * io/euidaccess.c: Likewise.
463         * io/faccessat.c: Likewise.
464         * io/fchdir.c: Likewise.
465         * io/fchmod.c: Likewise.
466         * io/fchmodat.c: Likewise.
467         * io/fchown.c: Likewise.
468         * io/fchownat.c: Likewise.
469         * io/fcntl.c: Likewise.
470         * io/flock.c: Likewise.
471         * io/fstatfs.c: Likewise.
472         * io/fstatfs64.c: Likewise.
473         * io/fstatvfs.c: Likewise.
474         * io/fstatvfs64.c: Likewise.
475         * io/futimens.c: Likewise.
476         * io/fxstat.c: Likewise.
477         * io/fxstat64.c: Likewise.
478         * io/fxstatat.c: Likewise.
479         * io/fxstatat64.c: Likewise.
480         * io/getcwd.c: Likewise.
481         * io/isatty.c: Likewise.
482         * io/lchmod.c: Likewise.
483         * io/lchown.c: Likewise.
484         * io/link.c: Likewise.
485         * io/linkat.c: Likewise.
486         * io/lseek.c: Likewise.
487         * io/lseek64.c: Likewise.
488         * io/lxstat64.c: Likewise.
489         * io/mkdir.c: Likewise.
490         * io/mkdirat.c: Likewise.
491         * io/mkfifo.c: Likewise.
492         * io/mkfifoat.c: Likewise.
493         * io/open.c: Likewise.
494         * io/open64.c: Likewise.
495         * io/openat.c: Likewise.
496         * io/openat64.c: Likewise.
497         * io/pipe.c: Likewise.
498         * io/pipe2.c: Likewise.
499         * io/poll.c: Likewise.
500         * io/posix_fadvise.c: Likewise.
501         * io/posix_fadvise64.c: Likewise.
502         * io/posix_fallocate.c: Likewise.
503         * io/posix_fallocate64.c: Likewise.
504         * io/read.c: Likewise.
505         * io/readlink.c: Likewise.
506         * io/readlinkat.c: Likewise.
507         * io/rmdir.c: Likewise.
508         * io/sendfile.c: Likewise.
509         * io/sendfile64.c: Likewise.
510         * io/statfs.c: Likewise.
511         * io/statfs64.c: Likewise.
512         * io/statvfs.c: Likewise.
513         * io/statvfs64.c: Likewise.
514         * io/symlink.c: Likewise.
515         * io/symlinkat.c: Likewise.
516         * io/ttyname.c: Likewise.
517         * io/ttyname_r.c: Likewise.
518         * io/umask.c: Likewise.
519         * io/unlink.c: Likewise.
520         * io/unlinkat.c: Likewise.
521         * io/utime.c: Likewise.
522         * io/utimensat.c: Likewise.
523         * io/write.c: Likewise.
524         * io/xmknod.c: Likewise.
525         * io/xmknodat.c: Likewise.
526         * io/xstat.c: Likewise.
527         * io/xstat64.c: Likewise.
528         * login/getpt.c: Likewise.
529         * login/grantpt.c: Likewise.
530         * login/unlockpt.c: Likewise.
531         * math/e_acoshl.c: Likewise.
532         * math/e_acosl.c: Likewise.
533         * math/e_asinl.c: Likewise.
534         * math/e_atan2l.c: Likewise.
535         * math/e_atanhl.c: Likewise.
536         * math/e_coshl.c: Likewise.
537         * math/e_expl.c: Likewise.
538         * math/e_fmodl.c: Likewise.
539         * math/e_gammal_r.c: Likewise.
540         * math/e_hypotl.c: Likewise.
541         * math/e_j0l.c: Likewise.
542         * math/e_j1l.c: Likewise.
543         * math/e_jnl.c: Likewise.
544         * math/e_lgammal_r.c: Likewise.
545         * math/e_log10l.c: Likewise.
546         * math/e_log2l.c: Likewise.
547         * math/e_logl.c: Likewise.
548         * math/e_powl.c: Likewise.
549         * math/e_rem_pio2l.c: Likewise.
550         * math/e_sinhl.c: Likewise.
551         * math/e_sqrtl.c: Likewise.
552         * math/fclrexcpt.c: Likewise.
553         * math/fedisblxcpt.c: Likewise.
554         * math/feenablxcpt.c: Likewise.
555         * math/fegetenv.c: Likewise.
556         * math/fegetexcept.c: Likewise.
557         * math/fegetround.c: Likewise.
558         * math/feholdexcpt.c: Likewise.
559         * math/fesetenv.c: Likewise.
560         * math/fesetround.c: Likewise.
561         * math/feupdateenv.c: Likewise.
562         * math/fgetexcptflg.c: Likewise.
563         * math/fraiseexcpt.c: Likewise.
564         * math/fsetexcptflg.c: Likewise.
565         * math/ftestexcept.c: Likewise.
566         * math/k_cosl.c: Likewise.
567         * math/k_rem_pio2l.c: Likewise.
568         * math/k_sinl.c: Likewise.
569         * math/k_tanl.c: Likewise.
570         * math/s_asinhl.c: Likewise.
571         * math/s_atanl.c: Likewise.
572         * math/s_cbrtl.c: Likewise.
573         * math/s_erfl.c: Likewise.
574         * math/s_expm1l.c: Likewise.
575         * math/s_log1pl.c: Likewise.
576         * math/s_tanhl.c: Likewise.
577         * misc/acct.c: Likewise.
578         * misc/brk.c: Likewise.
579         * misc/chflags.c: Likewise.
580         * misc/chroot.c: Likewise.
581         * misc/fchflags.c: Likewise.
582         * misc/fgetxattr.c: Likewise.
583         * misc/flistxattr.c: Likewise.
584         * misc/fremovexattr.c: Likewise.
585         * misc/fsetxattr.c: Likewise.
586         * misc/fsync.c: Likewise.
587         * misc/ftruncate.c: Likewise.
588         * misc/futimes.c: Likewise.
589         * misc/futimesat.c: Likewise.
590         * misc/getdomain.c: Likewise.
591         * misc/getdtsz.c: Likewise.
592         * misc/gethostid.c: Likewise.
593         * misc/gethostname.c: Likewise.
594         * misc/getloadavg.c: Likewise.
595         * misc/getpagesize.c: Likewise.
596         * misc/getsysstats.c: Likewise.
597         * misc/getxattr.c: Likewise.
598         * misc/gtty.c: Likewise.
599         * misc/ioctl.c: Likewise.
600         * misc/lgetxattr.c: Likewise.
601         * misc/listxattr.c: Likewise.
602         * misc/llistxattr.c: Likewise.
603         * misc/lremovexattr.c: Likewise.
604         * misc/lsetxattr.c: Likewise.
605         * misc/lutimes.c: Likewise.
606         * misc/madvise.c: Likewise.
607         * misc/mincore.c: Likewise.
608         * misc/mlock.c: Likewise.
609         * misc/mlockall.c: Likewise.
610         * misc/mmap.c: Likewise.
611         * misc/mprotect.c: Likewise.
612         * misc/msync.c: Likewise.
613         * misc/munlock.c: Likewise.
614         * misc/munlockall.c: Likewise.
615         * misc/munmap.c: Likewise.
616         * misc/preadv.c: Likewise.
617         * misc/preadv64.c: Likewise.
618         * misc/ptrace.c: Likewise.
619         * misc/pwritev.c: Likewise.
620         * misc/pwritev64.c: Likewise.
621         * misc/readv.c: Likewise.
622         * misc/reboot.c: Likewise.
623         * misc/remap_file_pages.c: Likewise.
624         * misc/removexattr.c: Likewise.
625         * misc/revoke.c: Likewise.
626         * misc/select.c: Likewise.
627         * misc/setdomain.c: Likewise.
628         * misc/setegid.c: Likewise.
629         * misc/seteuid.c: Likewise.
630         * misc/sethostid.c: Likewise.
631         * misc/sethostname.c: Likewise.
632         * misc/setregid.c: Likewise.
633         * misc/setreuid.c: Likewise.
634         * misc/setxattr.c: Likewise.
635         * misc/sstk.c: Likewise.
636         * misc/stty.c: Likewise.
637         * misc/swapoff.c: Likewise.
638         * misc/swapon.c: Likewise.
639         * misc/sync.c: Likewise.
640         * misc/syncfs.c: Likewise.
641         * misc/syscall.c: Likewise.
642         * misc/truncate.c: Likewise.
643         * misc/ualarm.c: Likewise.
644         * misc/usleep.c: Likewise.
645         * misc/ustat.c: Likewise.
646         * misc/utimes.c: Likewise.
647         * misc/vhangup.c: Likewise.
648         * misc/writev.c: Likewise.
649         * posix/_exit.c: Likewise.
650         * posix/alarm.c: Likewise.
651         * posix/execve.c: Likewise.
652         * posix/fexecve.c: Likewise.
653         * posix/fork.c: Likewise.
654         * posix/fpathconf.c: Likewise.
655         * posix/getaddrinfo.c: Likewise.
656         * posix/getegid.c: Likewise.
657         * posix/geteuid.c: Likewise.
658         * posix/getgid.c: Likewise.
659         * posix/getgroups.c: Likewise.
660         * posix/getlogin.c: Likewise.
661         * posix/getlogin_r.c: Likewise.
662         * posix/getpgid.c: Likewise.
663         * posix/getpid.c: Likewise.
664         * posix/getppid.c: Likewise.
665         * posix/getresgid.c: Likewise.
666         * posix/getresuid.c: Likewise.
667         * posix/getsid.c: Likewise.
668         * posix/getuid.c: Likewise.
669         * posix/glob64.c: Likewise.
670         * posix/nanosleep.c: Likewise.
671         * posix/pathconf.c: Likewise.
672         * posix/pause.c: Likewise.
673         * posix/posix_madvise.c: Likewise.
674         * posix/pread.c: Likewise.
675         * posix/pread64.c: Likewise.
676         * posix/pwrite.c: Likewise.
677         * posix/pwrite64.c: Likewise.
678         * posix/sched_getaffinity.c: Likewise.
679         * posix/sched_getp.c: Likewise.
680         * posix/sched_gets.c: Likewise.
681         * posix/sched_primax.c: Likewise.
682         * posix/sched_primin.c: Likewise.
683         * posix/sched_rr_gi.c: Likewise.
684         * posix/sched_setaffinity.c: Likewise.
685         * posix/sched_setp.c: Likewise.
686         * posix/sched_sets.c: Likewise.
687         * posix/sched_yield.c: Likewise.
688         * posix/setgid.c: Likewise.
689         * posix/setlogin.c: Likewise.
690         * posix/setpgid.c: Likewise.
691         * posix/setresgid.c: Likewise.
692         * posix/setresuid.c: Likewise.
693         * posix/setsid.c: Likewise.
694         * posix/setuid.c: Likewise.
695         * posix/sleep.c: Likewise.
696         * posix/spawni.c: Likewise.
697         * posix/sysconf.c: Likewise.
698         * posix/times.c: Likewise.
699         * posix/wait.c: Likewise.
700         * posix/wait3.c: Likewise.
701         * posix/wait4.c: Likewise.
702         * posix/waitpid.c: Likewise.
703         * resolv/gai_sigqueue.c: Likewise.
704         * resource/getpriority.c: Likewise.
705         * resource/getrlimit.c: Likewise.
706         * resource/getrusage.c: Likewise.
707         * resource/nice.c: Likewise.
708         * resource/setpriority.c: Likewise.
709         * resource/setrlimit.c: Likewise.
710         * resource/ulimit.c: Likewise.
711         * rt/aio_cancel.c: Likewise.
712         * rt/aio_fsync.c: Likewise.
713         * rt/aio_read.c: Likewise.
714         * rt/aio_sigqueue.c: Likewise.
715         * rt/aio_suspend.c: Likewise.
716         * rt/aio_write.c: Likewise.
717         * rt/clock_getres.c: Likewise.
718         * rt/clock_gettime.c: Likewise.
719         * rt/clock_nanosleep.c: Likewise.
720         * rt/clock_settime.c: Likewise.
721         * rt/lio_listio.c: Likewise.
722         * rt/mq_close.c: Likewise.
723         * rt/mq_getattr.c: Likewise.
724         * rt/mq_notify.c: Likewise.
725         * rt/mq_open.c: Likewise.
726         * rt/mq_receive.c: Likewise.
727         * rt/mq_send.c: Likewise.
728         * rt/mq_setattr.c: Likewise.
729         * rt/mq_timedreceive.c: Likewise.
730         * rt/mq_timedsend.c: Likewise.
731         * rt/mq_unlink.c: Likewise.
732         * rt/shm_open.c: Likewise.
733         * rt/shm_unlink.c: Likewise.
734         * rt/timer_create.c: Likewise.
735         * rt/timer_delete.c: Likewise.
736         * rt/timer_getoverr.c: Likewise.
737         * rt/timer_gettime.c: Likewise.
738         * rt/timer_settime.c: Likewise.
739         * setjmp/__longjmp.c: Likewise.
740         * setjmp/setjmp.c: Likewise.
741         * signal/kill.c: Likewise.
742         * signal/killpg.c: Likewise.
743         * signal/raise.c: Likewise.
744         * signal/sigaction.c: Likewise.
745         * signal/sigaltstack.c: Likewise.
746         * signal/sigblock.c: Likewise.
747         * signal/sigignore.c: Likewise.
748         * signal/sigintr.c: Likewise.
749         * signal/signal.c: Likewise.
750         * signal/sigpause.c: Likewise.
751         * signal/sigpending.c: Likewise.
752         * signal/sigqueue.c: Likewise.
753         * signal/sigreturn.c: Likewise.
754         * signal/sigset.c: Likewise.
755         * signal/sigsetmask.c: Likewise.
756         * signal/sigstack.c: Likewise.
757         * signal/sigsuspend.c: Likewise.
758         * signal/sigtimedwait.c: Likewise.
759         * signal/sigvec.c: Likewise.
760         * signal/sigwait.c: Likewise.
761         * signal/sigwaitinfo.c: Likewise.
762         * signal/sysv_signal.c: Likewise.
763         * socket/accept.c: Likewise.
764         * socket/accept4.c: Likewise.
765         * socket/bind.c: Likewise.
766         * socket/connect.c: Likewise.
767         * socket/getpeername.c: Likewise.
768         * socket/getsockname.c: Likewise.
769         * socket/getsockopt.c: Likewise.
770         * socket/isfdtype.c: Likewise.
771         * socket/listen.c: Likewise.
772         * socket/recv.c: Likewise.
773         * socket/recvfrom.c: Likewise.
774         * socket/recvmsg.c: Likewise.
775         * socket/send.c: Likewise.
776         * socket/sendmsg.c: Likewise.
777         * socket/sendto.c: Likewise.
778         * socket/setsockopt.c: Likewise.
779         * socket/shutdown.c: Likewise.
780         * socket/sockatmark.c: Likewise.
781         * socket/socket.c: Likewise.
782         * socket/socketpair.c: Likewise.
783         * stdio-common/ctermid.c: Likewise.
784         * stdio-common/cuserid.c: Likewise.
785         * stdio-common/remove.c: Likewise.
786         * stdio-common/rename.c: Likewise.
787         * stdio-common/renameat.c: Likewise.
788         * stdio-common/tempname.c: Likewise.
789         * stdlib/getcontext.c: Likewise.
790         * stdlib/makecontext.c: Likewise.
791         * stdlib/setcontext.c: Likewise.
792         * stdlib/swapcontext.c: Likewise.
793         * stdlib/system.c: Likewise.
794         * streams/fattach.c: Likewise.
795         * streams/fdetach.c: Likewise.
796         * streams/getmsg.c: Likewise.
797         * streams/getpmsg.c: Likewise.
798         * streams/putmsg.c: Likewise.
799         * streams/putpmsg.c: Likewise.
800         * sysdeps/unix/bsd/getpt.c: Likewise.
801         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
802         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
803         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
805         Likewise.
806         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
807         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
808         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
809         * sysvipc/msgctl.c: Likewise.
810         * sysvipc/msgget.c: Likewise.
811         * sysvipc/msgrcv.c: Likewise.
812         * sysvipc/msgsnd.c: Likewise.
813         * sysvipc/semctl.c: Likewise.
814         * sysvipc/semget.c: Likewise.
815         * sysvipc/semop.c: Likewise.
816         * sysvipc/semtimedop.c: Likewise.
817         * sysvipc/shmat.c: Likewise.
818         * sysvipc/shmctl.c: Likewise.
819         * sysvipc/shmdt.c: Likewise.
820         * sysvipc/shmget.c: Likewise.
821         * termios/tcdrain.c: Likewise.
822         * termios/tcflow.c: Likewise.
823         * termios/tcflush.c: Likewise.
824         * termios/tcgetattr.c: Likewise.
825         * termios/tcgetpgrp.c: Likewise.
826         * termios/tcsendbrk.c: Likewise.
827         * termios/tcsetattr.c: Likewise.
828         * termios/tcsetpgrp.c: Likewise.
829         * time/adjtime.c: Likewise.
830         * time/clock.c: Likewise.
831         * time/getitimer.c: Likewise.
832         * time/gettimeofday.c: Likewise.
833         * time/setitimer.c: Likewise.
834         * time/settimeofday.c: Likewise.
835         * time/stime.c: Likewise.
836         * time/time.c: Likewise.
837
838 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
839
840         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
841         /usr/old/bin.
842
843         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
844         instead of spaces.
845         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
846
847 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
848
849         [BZ #14796]
850         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
851         FE_TONEAREST before applying Dekker multiplication and Knuth
852         addition.  Clear inexact exceptions and check for exact zero
853         results afterwards.
854         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
855         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
856         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
857         * math/libm-test.inc (fma_test): Add more tests.
858         (fma_test_towardzero): Likewise.
859         (fma_test_downward): Likewise.
860         (fma_test_upward): Likewise.
861         * sysdeps/generic/math_private.h (default_libc_fesetround): New
862         function.
863         (libc_fesetround): New macro.
864         (libc_fesetroundf): Likewise.
865         (libc_fesetroundl): Likewise.
866         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
867         function.
868         (libc_fesetround_387): Likewise.
869         (libc_fesetroundf): New macro.
870         (libc_fesetround): Likewise.
871         (libc_fesetroundl): Likewise.
872         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
873         function.
874         (libc_fesetroundf): New macro.
875         (libc_fesetround): Likewise.
876         (libc_fesetroundl): Likewise.
877         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
878         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
879         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
880         libm_hidden_ver.
881         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
882         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
883         libm_hidden_def.
884         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
885         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
886         libm_hidden_ver.
887         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
888         libm_hidden_def.
889
890         [BZ #3439]
891         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
892         integer constant usable in #if and use that to give value to enum
893         constant.
894         (FE_DIVBYZERO): Likewise.
895         (FE_UNDERFLOW): Likewise.
896         (FE_OVERFLOW): Likewise.
897         (FE_INVALID): Likewise.
898         (FE_INVALID_SNAN): Likewise.
899         (FE_INVALID_ISI): Likewise.
900         (FE_INVALID_IDI): Likewise.
901         (FE_INVALID_ZDZ): Likewise.
902         (FE_INVALID_IMZ): Likewise.
903         (FE_INVALID_COMPARE): Likewise.
904         (FE_INVALID_SOFTWARE): Likewise.
905         (FE_INVALID_SQRT): Likewise.
906         (FE_INVALID_INTEGER_CONVERSION): Likewise.
907         (FE_TONEAREST): Likewise.
908         (FE_TOWARDZERO): Likewise.
909         (FE_UPWARD): Likewise.
910         (FE_DOWNWARD): Likewise.
911         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
912         (FE_DIVBYZERO): Likewise.
913         (FE_OVERFLOW): Likewise.
914         (FE_UNDERFLOW): Likewise.
915         (FE_INEXACT): Likewise.
916         (FE_TONEAREST): Likewise.
917         (FE_DOWNWARD): Likewise.
918         (FE_UPWARD): Likewise.
919         (FE_TOWARDZERO): Likewise.
920         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
921         (FE_UNDERFLOW): Likewise.
922         (FE_OVERFLOW): Likewise.
923         (FE_DIVBYZERO): Likewise.
924         (FE_INVALID): Likewise.
925         (FE_TONEAREST): Likewise.
926         (FE_TOWARDZERO): Likewise.
927         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
928         (FE_OVERFLOW): Likewise.
929         (FE_UNDERFLOW): Likewise.
930         (FE_DIVBYZERO): Likewise.
931         (FE_INEXACT): Likewise.
932         (FE_TONEAREST): Likewise.
933         (FE_TOWARDZERO): Likewise.
934         (FE_UPWARD): Likewise.
935         (FE_DOWNWARD): Likewise.
936         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
937         (FE_DIVBYZERO): Likewise.
938         (FE_OVERFLOW): Likewise.
939         (FE_UNDERFLOW): Likewise.
940         (FE_INEXACT): Likewise.
941         (FE_TONEAREST): Likewise.
942         (FE_DOWNWARD): Likewise.
943         (FE_UPWARD): Likewise.
944         (FE_TOWARDZERO): Likewise.
945
946 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
947
948         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
949
950 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
951
952         * scripts/cross-test-ssh.sh (command): Use newlines to separate
953         commands.  Quote $PWD.
954         (blacklist_exports): Don't use remove_newlines.  Replace "declare
955         -x" by "export".
956         (remove_newlines): Remove.
957
958 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
959
960         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
961         * stdlib/stdlib.h (atof): Moved to ...
962         * include/bits/stdlib-float.h: Here.  New file.
963         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
964         * stdlib/bits/stdlib-float.h: New file.
965         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
966         -mno-sse -mno-mmx.
967         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
968         <xmmintrin.h>.
969
970 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
971
972         * conform/conformtest.pl (@headers): Add fenv.h.
973         * conform/data/fenv.h-data: New file.
974         * include/fenv.h [_ISOMAC]: Disable all contents of file except
975         include of <math/fenv.h>.
976
977         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
978         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
979         && !UNIX98].  Enables tests for XOPEN2K8.
980         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
981         POSIX2008]: Likewise.
982
983         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
984         (struct rusage): Do not expect type or its members.
985
986         [BZ #3439]
987         * math/math.h (FP_NAN): Define macro to integer constant usable in
988         #if and use that to give value to enum constant.
989         (FP_INFINITE): Likewise.
990         (FP_ZERO): Likewise.
991         (FP_SUBNORMAL): Likewise.
992         (FP_NORMAL): Likewise.
993
994 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
995
996         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
997         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
998         arguments.
999
1000 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1001
1002         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1003         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1004         autoconf-time if not.
1005         * configure.in: Remove AC_PREREQ.
1006
1007 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1008
1009         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1010         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1011         of the internal implementation.
1012
1013 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1014
1015         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1016         except include of <misc/sys/syslog.h>.
1017
1018 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1019
1020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1021         function returns with a NULL context exit with zero.
1022
1023 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1024
1025         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1026
1027 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1028
1029         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1030         (run_program_cmd): This.
1031         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1032         (tst_langinfo): New variable.  Use it.
1033
1034 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1035
1036         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1037         floating point opcodes.
1038
1039 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1040
1041         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1042         variable.
1043
1044         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1045
1046         * sysdeps/mach/hurd/powerpc: Remove directory.
1047         * sysdeps/mach/powerpc: Likewise.
1048
1049 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1050
1051         * scripts/check-local-headers.sh: Ignore c++ headers.
1052
1053 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1054
1055         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1056         __libc_cleanup_region_start argument.
1057
1058 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1059
1060         [BZ #14784]
1061         [BZ #14785]
1062         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1063         x * y using scaling, not as x * y + z.
1064         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1065         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1066         * math/libm-test.inc (fma_test): Add more tests.
1067         (fma_test_towardzero): Likewise.
1068         (fma_test_downward): Likewise.
1069         (fma_test_upward): Likewise.
1070
1071 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1072
1073         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1074
1075 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1076
1077         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1078         New variable.
1079
1080 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1081
1082         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1083
1084 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1085
1086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1087         Fix sort order.
1088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1089         Likewise.
1090
1091 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1092
1093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1094         Fix the order of the list for glibc 2.17.
1095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1096         Likewise.
1097
1098 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1099
1100         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1101
1102 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1103
1104         [BZ #14610]
1105         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1106         for low part of x being zero before using __atanl (y).
1107         * math/libm-test.inc (atan2_test): Add another test.
1108
1109         * manual/install.texi (Configuring and compiling): Document
1110         general use of test-wrapper and test-wrapper-env.
1111         * INSTALL: Regenerated.
1112
1113         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1114         (__fma): Do not extract and scale down low bits on after-rounding
1115         systems when result rounded to normal precision would have normal
1116         exponent.
1117         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1118         (__fmal): Do not extract and scale down low bits on after-rounding
1119         systems when result rounded to normal precision would have normal
1120         exponent.
1121         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1122         (__fmal): Do not extract and scale down low bits on after-rounding
1123         systems when result rounded to normal precision would have normal
1124         exponent.
1125         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1126         macro.
1127         (fma_test): Add more tests.
1128         (fma_test_towardzero): Likewise.
1129         (fma_test_downward): Likewise.
1130         (fma_test_upward): Likewise.
1131
1132 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1133
1134         * sysdeps/i386/tininess.h: Renamed to ...
1135         * sysdeps/x86/tininess.h: This.
1136         * sysdeps/x86_64/tininess.h: Removed.
1137
1138 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1139
1140         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1141         input.  Use $(build-program-cmd).
1142         ($(objpfx)tst-array1-static.out): Likewise.
1143         ($(objpfx)tst-array2.out): Likewise.
1144         ($(objpfx)tst-array3.out): Likewise.
1145         ($(objpfx)tst-array4.out): Likewise.
1146         ($(objpfx)tst-array5.out): Likewise.
1147         ($(objpfx)tst-array5-static.out): Likewise.
1148
1149 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1150
1151         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1152         if defined.
1153
1154         * nss/nsswitch.h (nss_interface_function): Provide new
1155         macro for use with NSS functions.
1156         * grp/initgroups.c: Use new macro.
1157         * nss/getXXbyYY.c: Likewise.
1158         * nss/getXXbyYY_r.c: Likewise.
1159         * nss/getXXent.c: Likewise.
1160         * nss/getXXent_r.c: Likewise.
1161         * sysdeps/posix/getaddrinfo.c: Likewise.
1162
1163 2012-10-30  Andreas Jaeger  <aj@suse.de>
1164
1165         * po/ru.po: Update Russion translation from translation project.
1166
1167 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1168
1169         [BZ #14152]
1170         [BZ #14783]
1171         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1172         result and shift together with sticky bit instead of replicating
1173         round-to-nearest rounding.
1174         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1175         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1176         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1177         missing underflow exceptions.
1178         (fma_test_towardzero): Add more tests.
1179         (fma_test_downward): Likewise.
1180         (fma_test_upward): Likewise.
1181
1182         [BZ #14047]
1183         * sysdeps/generic/tininess.h: New file.
1184         * sysdeps/i386/tininess.h: Likewise.
1185         * sysdeps/sh/tininess.h: Likewise.
1186         * sysdeps/x86_64/tininess.h: Likewise.
1187         * stdlib/tst-strtod-underflow.c: Likewise.
1188         * stdlib/tst-tininess.c: Likewise.
1189         * stdlib/strtod_l.c: Include <tininess.h>.
1190         (round_and_return): Do not set errno for exact underflow cases.
1191         Force an underflow exception when setting errno for underflow.
1192         Determine underflow based on rounding to normal precision if
1193         TININESS_AFTER_ROUNDING.
1194         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1195         ERANGE for exact underflow cases.
1196         * stdlib/Makefile (tests): Add tst-tininess and
1197         tst-strtod-underflow.
1198         ($(objpfx)tst-tininess): Use $(link-libm).
1199         ($(objpfx)tst-strtod-underflow): Likewise.
1200
1201 2012-10-30  Andreas Jaeger  <aj@suse.de>
1202
1203         [BZ#14767]
1204         * elf/Makefile (tests): Remove conditional for have-initfini-array
1205         since this is now always required and the variable does not exist
1206         anymore.
1207         (tests-static): Likewise.
1208         (modules-names): Likewise.
1209
1210         * po/eo.po: Add Esperanto translation from translation project.
1211
1212         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1213         merged with constructor/destructor.
1214         (init_array): Likewise.
1215         * elf/tst-array2dep.c (fini_array): Likewise.
1216         (init_array): Likewise.
1217
1218 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1219
1220         * manual/message.texi: Delete @cartouche tags.
1221
1222 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1223
1224         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1225         EOPNOTSUPP.
1226         * sysdeps/mach/hurd/fsync.c: Likewise.
1227
1228         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1229         [_POSIX_REALTIME_SIGNALS]: Change condition to
1230         [_POSIX_REALTIME_SIGNALS > 0].
1231
1232 2012-10-27  Andreas Jaeger  <aj@suse.de>
1233
1234         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1235         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1236         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1237         [__WORDSIZE != 64]: Likewise.
1238
1239 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1240
1241         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1242         *  iconvdata/tst-tables.sh: Likewise.
1243
1244 2012-10-25  David S. Miller  <davem@davemloft.net>
1245
1246         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1247         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1248         of strtoull.
1249
1250         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1251         ifunc-impl-list.c
1252         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1253         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1254         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1255         file.
1256
1257 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1258
1259         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1260         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1261         __getdirentries.
1262
1263 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1264             Jim Blandy  <jimb@codesourcery.com>
1265
1266         * scripts/cross-test-ssh.sh: New file.
1267         * manual/install.texi (Configuring and compiling): Document use of
1268         cross-test-ssh.sh.
1269         * INSTALL: Regenerated.
1270
1271 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1272
1273         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1274         EOPNOTSUPP.
1275
1276 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1277
1278         * Makeconfig (run-program-prefix): Fix comment.
1279
1280 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1281             Jim Blandy  <jimb@codesourcery.com>
1282
1283         * Makeconfig (test-wrapper): New variable,
1284         (test-wrapper-env): Likewise.
1285         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1286         (run-built-tests): Define to yes.
1287         (run-program-prefix): Use $(test-wrapper).
1288         (built-program-cmd): Likewise.
1289         * Rules (make-test-out): Use $(test-wrapper-env) and
1290         $(host-built-program-cmd).
1291         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1292         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1293         tst-pathopt.sh.
1294         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1295         $(test-wrapper-env) to tst-rtld-load-self.sh.
1296         ($(objpfx)order2.out): Use $(test-wrapper).
1297         ($(objpfx)tst-initorder.out): Likewise.
1298         ($(objpfx)tst-initorder2.out): Likewise.
1299         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1300         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1301         (test_wrapper_env): New variable.  Use it to run ld.so.
1302         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1303         Use it to run ld.so.
1304         (test_wrapper_env): Likewise.
1305         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1306         $(test-wrapper) to run-iconv-test.sh.
1307         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1308         (ICONV): Use $test_wrapper.
1309         * posix/Makefile ($(objpfx)globtest.out): Pass
1310         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1311         globtest.sh, not $(run-program-prefix).
1312         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1313         (test_wrapper): Likewise.
1314         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1315         set together with run_via_rtld_prefix.
1316         (run_program_prefix): Define in terms of test_wrapper and
1317         run_via_rtld_prefix.
1318
1319 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1320
1321         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1322         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1323         Targets removed.
1324
1325         [BZ #14743]
1326         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1327         Declare __clock_getres, __clock_gettime, __clock_settime,
1328         __clock_nanosleep, and __clock_getcpuclockid.
1329         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1330         Remove librt_hidden_def (clock_gettime).
1331         * sysdeps/unix/clock_gettime.c: Likewise.
1332         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1333         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1334         * rt/clock_getres.c: Define __clock_getres as an alias.
1335         * sysdeps/posix/clock_getres.c: Likewise.
1336         * rt/clock_settime.c: Define __clock_settime as an alias.
1337         * sysdeps/unix/clock_settime.c: Likewise.
1338         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1339         * sysdeps/unix/clock_nanosleep.c: Likewise.
1340         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1341         * rt/clock-compat.c: New file.
1342         * rt/Makefile (librt-routines): Add clock-compat and move
1343         $(clock-routines) to ...
1344         (routines): ... here, new variable.
1345         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1346         Don't add get_clockfreq here.
1347         * rt/Versions (libc: GLIBC_2.17): New version set.
1348         Add clock_* symbols here.
1349         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1350         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1351         (GLIBC_2.17): Add clock_* symbols.
1352         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1353         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1354         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1356         Likewise.
1357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1358         Likewise.
1359         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1360         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1361         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1362         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1363         * NEWS: Mention the move.
1364
1365         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1366         Use __open, __read, __close rather than their public counterparts.
1367         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1368         (__get_clockfreq_via_cpuinfo): Likewise.
1369         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1370         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1371
1372         * config.h.in (HAVE_IFUNC): New #undef.
1373         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1374         was successful.
1375         * configure: Regenerated.
1376
1377 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1378
1379         * configure.in: Move READELF check to start of file.
1380         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1381         libc_cv_asm_gnu_indirect_function in the process.
1382         * configure: Regenerated.
1383
1384 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1385
1386         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1387         send the output to /dev/null.
1388         (libc_cv_cc_with_libunwind): Likewise.
1389         (libc_cv_as_noexecstack): Likewise.
1390         * configure: Regenerate.
1391
1392 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1393
1394         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1395
1396         * posix/globtest.sh (TMPDIR): Do not set.
1397         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1398         (testout): Likewise.
1399
1400 2012-10-24  Andreas Jaeger  <aj@suse.de>
1401
1402         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1403         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1404         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1405         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1406         posix_fadvise64, posix_fallocate64.
1407
1408         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1409         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1410         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1411         Likewise.
1412         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1413         Likewise.
1414         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1415
1416         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1417         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1418         <bits/fcntl-linux.h>.
1419         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1420
1421         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1422         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1423         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1424         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1425         [__WORDSIZE != 64]: Likewise.
1426
1427 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1428
1429         * Makeconfig (run-built-tests): New variable.
1430         * Rules [$(cross-compiling) = yes]: Change condition to
1431         [$(run-built-tests) = no].
1432         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1433         to [$(run-built-tests) = yes].
1434         * elf/Makefile [$(cross-compiling) = no]: Likewise
1435         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1436         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1437         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1438         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1439         * io/Makefile [$(cross-compiling) = no]: Likewise.
1440         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1441         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1442         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1443         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1444         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1445         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1446         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1447         * string/Makefile [$(cross-compiling) = no]: Likewise.
1448
1449         * posix/Makefile ($(objpfx)globtest.out): Pass
1450         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1451         $(rtld-installed-name).
1452         * posix/globtest.sh (elf_objpfx): Remove variable.
1453         (rtld_installed_name): Likewise.
1454         (library_path): Likewise.
1455         (run_program_prefix): New variable.  Use for running globtest
1456         binary.
1457
1458 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1459             Joseph Myers  <joseph@codesourcery.com>
1460
1461         * Makeconfig (host-built-program-cmd): New variable.
1462         * elf/Makefile (tst-stackguard1-ARGS): Use
1463         $(host-built-program-cmd).
1464         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1465         (tst-spawn-ARGS): Likewise.
1466         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1467
1468 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1469             Jim Blandy  <jimb@codesourcery.com>
1470
1471         * Makeconfig (run-via-rtld-prefix): New variable.
1472         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1473         (built-program-cmd): Likewise.
1474
1475 2012-10-22  Andreas Jaeger  <aj@suse.de>
1476
1477         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1478         __O_RSYNC if it exists, otherwise to O_SYNC.
1479
1480 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1481             Joseph Myers  <joseph@codesourcery.com>
1482
1483         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1484         /dev/null.
1485         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1486         from /dev/null
1487         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1488         /dev/null.
1489
1490 2012-10-22  Andreas Jaeger  <aj@suse.de>
1491
1492         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1493         Define always.
1494         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1495
1496         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1497         bits/fcntl-linux.h.
1498
1499         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1500         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1501
1502         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1503         to __O_LARGEFILE.
1504         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1505         to __O_LARGEFILE.
1506
1507 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1508             Joseph Myers  <joseph@codesourcery.com>
1509
1510         * config.make.in (NM): New variable.
1511
1512 2012-10-21  Andreas Jaeger  <aj@suse.de>
1513
1514         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1515         definitions and declarations that are provided by
1516         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1517
1518 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1519
1520         [BZ #14683]
1521         * elf/Makefile (tests-static): Add tst-leaks1-static.
1522         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1523         ($(objpfx)tst-leaks1-static): New rule.
1524         ($(objpfx)tst-leaks1-static-mem): Likewise.
1525         (tst-leaks1-static-ENV): New macro.
1526         * elf/dl-open.c (dl_open_worker): Check the main application
1527         only if SHARED is defined.
1528         * elf/tst-leaks1-static.c: New file.
1529
1530 2012-10-20  Andreas Jaeger  <aj@suse.de>
1531
1532         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1533         generic values for Linux.
1534         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1535         and declarations that are provided by <bits/fcntl-linux.h> and
1536         include <bits/fcntl-linux.h>.
1537         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1538         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1539
1540 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1541
1542         * io/fcntl.h: Move include of <bits/types.h> to the top and
1543         include it unconditionally.
1544
1545 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1546
1547         * wcsmbs/Makefile (tests-ifunc): New variable.
1548         (tests): Add $(tests-ifunc).
1549         * wcsmbs/test-wcschr-ifunc.c: New file.
1550         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1551         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1552         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1553         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1554         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1555
1556         * string/Makefile (tests-ifunc): New variable.
1557         (tests): Add $(tests-ifunc).
1558         * string/test-memccpy.c (TEST_NAME): New macro.
1559         * string/test-memchr.c (TEST_NAME): Likewise.
1560         * string/test-memcmp.c (TEST_NAME): Likewise.
1561         * string/test-memcpy.c (TEST_NAME): Likewise.
1562         * string/test-memmem.c (TEST_NAME): Likewise.
1563         * string/test-memmove.c (TEST_NAME): Likewise.
1564         * string/test-memset.c (TEST_NAME): Likewise.
1565         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1566         * string/test-stpcpy.c (TEST_NAME): Likewise.
1567         * string/test-stpncpy.c (TEST_NAME): Likewise.
1568         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1569         * string/test-strcasestr.c (TEST_NAME): Likewise.
1570         * string/test-strcat.c (TEST_NAME): Likewise.
1571         * string/test-strchr.c (TEST_NAME): Likewise.
1572         * string/test-strcmp.c(TEST_NAME): Likewise.
1573         * string/test-strcpy.c (TEST_NAME): Likewise.
1574         * string/test-strcspn.c (TEST_NAME): Likewise.
1575         * string/test-strlen.c (TEST_NAME): Likewise.
1576         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1577         * string/test-strncmp.c (TEST_NAME): Likewise.
1578         * string/test-strncpy.c (TEST_NAME): Likewise.
1579         * string/test-strnlen.c (TEST_NAME): Likewise.
1580         * string/test-strpbrk.c (TEST_NAME): Likewise.
1581         * string/test-strrchr.c (TEST_NAME): Likewise.
1582         * string/test-strspn.c (TEST_NAME): Likewise.
1583         * string/test-strstr.c (TEST_NAME): Likewise.
1584         * string/test-bcopy-ifunc.c: New file.
1585         * string/test-bzero-ifunc.c: Likewise.
1586         * string/test-memccpy-ifunc.c: Likewise.
1587         * string/test-memchr-ifunc.c: Likewise.
1588         * string/test-memcmp-ifunc.c: Likewise.
1589         * string/test-memcpy-ifunc.c: Likewise.
1590         * string/test-memmem-ifunc.c: Likewise.
1591         * string/test-memmove-ifunc.c: Likewise.
1592         * string/test-mempcpy-ifunc.c: Likewise.
1593         * string/test-memset-ifunc.c: Likewise.
1594         * string/test-rawmemchr-ifunc.c: Likewise.
1595         * string/test-stpcpy-ifunc.c: Likewise.
1596         * string/test-stpncpy-ifunc.c: Likewise.
1597         * string/test-strcasecmp-ifunc.c: Likewise.
1598         * string/test-strcasestr-ifunc.c: Likewise.
1599         * string/test-strcat-ifunc.c: Likewise.
1600         * string/test-strchr-ifunc.c: Likewise.
1601         * string/test-strchrnul-ifunc.c: Likewise.
1602         * string/test-strcmp-ifunc.c: Likewise.
1603         * string/test-strcpy-ifunc.c: Likewise.
1604         * string/test-strcspn-ifunc.c: Likewise.
1605         * string/test-strlen-ifunc.c: Likewise.
1606         * string/test-strncasecmp-ifunc.c: Likewise.
1607         * string/test-strncat-ifunc.c: Likewise.
1608         * string/test-strncmp-ifunc.c: Likewise.
1609         * string/test-strncpy-ifunc.c: Likewise.
1610         * string/test-strnlen-ifunc.c: Likewise.
1611         * string/test-strpbrk-ifunc.c: Likewise.
1612         * string/test-strrchr-ifunc.c: Likewise.
1613         * string/test-strspn-ifunc.c: Likewise.
1614         * string/test-strstr-ifunc.c: Likewise.
1615
1616         * debug/Makefile (tests-ifunc): New variable.
1617         (tests): Add $(tests-ifunc).
1618         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1619         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1620         * debug/test-stpcpy_chk-ifunc.c: New file.
1621         * debug/test-strcpy_chk-ifunc.c: Likewise.
1622
1623 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1624
1625         [BZ #13601]
1626         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1627         header is not read in.
1628
1629 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1630
1631         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1632         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1633         directly.  Pass built executable to script as
1634         $(built-program-cmd).
1635         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1636         $testprogram without using LD_LIBRARY_PATH and $ldso.
1637
1638         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1639         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1640         $(rtld-installed-name).
1641         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1642         (rtld_installed_name): Likewise.
1643         (library_path): Likewise.
1644         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1645         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1646         $(run-program-prefix) to tst-tables.sh.
1647         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1648         it to run tst-table-from and tst-table-to.
1649         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1650         Pass it to tst-table.sh.
1651         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1652         $(run-program-prefix) to tst-gettext.sh.
1653         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1654         tst-translit.sh.
1655         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1656         tst-gettext2.sh.
1657         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1658         to run tst-gettext.
1659         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1660         to run tst-gettext2.
1661         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1662         to run tst-translit.
1663         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1664         $(run-program-prefix) to tst-mtrace.sh.
1665         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1666         to run tst-mtrace.
1667         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1668         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1669         $(rtld-installed-name).
1670         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1671         (rtld_installed_name): Likewise.
1672         (run_program_prefix): New variable.  Use it to run wordexp-test.
1673
1674         * Makeconfig (ARCH): Remove all definitions.
1675         (machine): Likewise.
1676         [ARCH]: Remove conditional code.
1677         [!objdir]: Give error.
1678         [!objdir] (objpfx): Remove.
1679         [!objdir] (common-objpfx): Likewise.
1680         [!objdir] (common-objdir): Likewise.
1681         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1682         AC_CONFIG_FILES call.
1683         * configure: Regenerated.
1684
1685         [BZ #13888]
1686         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1687         or TMPDIR.
1688         (testout): Likewise.
1689
1690         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1691         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1692         $(rtld-installed-name).
1693         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1694         (rtld_installed_name): Likwise.
1695         (runit): Remove function.
1696         (run_getconf): New variable,  Use it for running getconf binary.
1697
1698 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1699
1700         [BZ #14716]
1701         * string/test-memmem.c (check_result): New function.
1702         (do_one_test): Use it.
1703         (check1): New function.
1704         (test_main): Use it.
1705
1706 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1707
1708         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1709
1710 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1711
1712         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1713         (_G_LSEEK64): Likewise.
1714         (_G_MMAP64): Likewise.
1715         (_G_FSTAT64): Likewise.
1716         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1717         (_G_LSEEK64): Likewise.
1718         (_G_MMAP64): Likewise.
1719         (_G_FSTAT64): Likewise.
1720         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1721         unconditional.  Call __mmap64 directly.
1722         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1723         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1724         __lseek64 directly.
1725         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1726         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1727         __mmap64 directly.
1728         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1729         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1730         __lseek64 directly.
1731         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1732         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1733         __lseek64 directly.
1734         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1735         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1736         __lseek64 directly.
1737         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1738         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1739         __fxstat64 directly.
1740         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1741         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1742         unconditional.
1743         (freopen64) [!_G_OPEN64]: Remove conditional code.
1744         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1745         unconditional.
1746         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1747         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1748         unconditional.
1749         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1750         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1751         unconditional.
1752         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1753         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1754         unconditional.
1755         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1756         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1757         unconditional.
1758         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1759         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1760         unconditional.
1761         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1762         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1763         unconditional.
1764         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1765
1766 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1767
1768         [BZ #12140]
1769         * manual/memory.texi (Malloc Tunable Parameters): Add note
1770         about free list pointers overwriting some perturb bytes.
1771         Wording suggested by Roland McGrath.
1772
1773 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1774
1775         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1776         (lgamma_test): Likewise.
1777         (tgamma_test): Likewise.
1778
1779 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1780
1781         [BZ #14700]
1782         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1783         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1784
1785 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1786
1787         * NEWS: Mention BZ #14716.
1788         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1789         when removing AVAILABLE1_USES_J macro.
1790
1791 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1792
1793         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1794         (__bswap_64): __uint64_t for unsigned 64-bit int.
1795
1796 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1797
1798         * include/string.h (memmem): Declare libc hidden alias.
1799         * string/memmem.c (memmem): Define libc hidden alias.
1800         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1801         __read, __close instead of open, read, close.
1802
1803 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1804
1805         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1806         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1807         global and hidden.
1808         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1809         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1810         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1811         Likewise.
1812         (__rawmemchr_sse2): Likewise.
1813         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1814         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1815         (__strchr_sse2): Likewise.
1816         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1817         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1818         (__strcasecmp_sse2): Likewise.
1819         (__strncasecmp_sse2): Likewise.
1820         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1821         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1822         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1823         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1824         (__strrchr_sse2): Likewise.
1825         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1826         ifunc-impl-list.c.
1827         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1828         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1829         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1830         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1831         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1832         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1833         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1834         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1835         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1836         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1837         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1838         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1839         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1840         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1841         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1842         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1843         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1844         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1845         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1846         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1847         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1848         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1849         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1850         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1851         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1852         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1853         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1854         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1855         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1856         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1857
1858         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1859         global and hidden.
1860         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1861         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1862         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1863         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1864         Likewise.
1865         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1866         Likewise.
1867         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1868         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1869         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1870         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1871         ifunc-impl-list.c.
1872         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1873         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1874         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1875         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1876         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1877         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1878         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1879         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1880         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1881         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1882         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1883         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1884         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1885         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1886         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1887         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1888         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1889         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1890         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1891         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1892         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1893         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1894         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1895         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1896         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1897         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1898         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1899         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1900         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1901         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1902         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1903         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1904         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1905         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1906         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1907         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1908         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1909         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1910         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1911         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1912         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1913
1914         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1915         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1916         * include/ifunc-impl-list.h: New file.
1917         * misc/ifunc-impl-list.c: Likewise.
1918         * misc/Makefile (routines): Add ifunc-impl-list.
1919         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
1920         * string/test-string.h: Include <ifunc-impl-list.h>.
1921         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
1922         impl_array): New variables.
1923         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
1924         are defined.
1925         (test_init): Call __libc_ifunc_impl_list to initialize
1926         func_list if TEST_IFUNC and TEST_NAME are defined.
1927
1928         * string/Makefile (strop-tests): Add bcopy and bzero.
1929         * string/test-bcopy.c: New file.
1930         * string/test-bzero.c: Likewise.
1931         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
1932         defined.
1933         * string/test-memset.c: Support bzero test if TEST_BZERO is
1934         defined.
1935         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
1936         __libc_memmove.
1937         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
1938         __libc_memset.
1939         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
1940         of memset.
1941
1942 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
1943
1944         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1945         * configure: Regenerated.
1946
1947         * Makeconfig (+link-static-before-libc): Don't include
1948         $(link-static-libc).
1949
1950         * libio/libio.h (_IO_pos_t): Remove.
1951
1952 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1953
1954         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1955         McGrath.
1956
1957 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1958
1959         * crypt/crypt-entry.c: Include fips-private.h.
1960         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1961         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1962         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1963         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1964
1965 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1966
1967         * crypt/crypt-private.h: Include stdbool.h.
1968         (_ufc_setup_salt_r): Return bool.
1969         * crypt/crypt-entry.c: Include errno.h.
1970         (__crypt_r): Return NULL with EINVAL for bad salt.
1971         * crypt/crypt_util.c (bad_for_salt): New.
1972         (_ufc_setup_salt_r): Check that salt is long enough and within
1973         the specified alphabet.
1974         * crypt/badsalttest.c: New file.
1975         * crypt/Makefile (tests): Add it.
1976         ($(objpfx)badsalttest): New.
1977
1978 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1979
1980         * NEWS: Add entry for BZ #14602.
1981
1982 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1983
1984         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1985         type-generic.
1986         * math/libm-test.inc: Update comment listing what functions and
1987         macros are tested.
1988         (isgreater_test): New function.
1989         (isgreaterequal_test): Likewise.
1990         (isless_test): Likewise.
1991         (islessequal_test): Likewise.
1992         (islessgreater_test): Likewise.
1993         (isunordered_test): Likewise.
1994         (main): Call the new functions.
1995
1996 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1997
1998         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1999         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2000         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2001         * sysdeps/i386/configure: Regenerated.
2002         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2003         * sysdeps/mach/configure: Regenerated.
2004         * sysdeps/mach/hurd/configure: Regenerated.
2005         * sysdeps/powerpc/configure: Regenerated.
2006         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2007         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2008         * sysdeps/s390/s390-32/configure: Regenerated.
2009         * sysdeps/s390/s390-64/configure: Regenerated.
2010         * sysdeps/sh/configure: Regenerated.
2011         * sysdeps/sparc/configure: Regenerated.
2012         * sysdeps/unix/sysv/linux/configure: Regenerated.
2013         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2014         * sysdeps/x86_64/configure: Regenerated.
2015
2016         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2017         defined.  Don't check if MAP is NULL.
2018
2019 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2020
2021         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2022         (_G_stat64): Likewise.
2023         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2024         (_G_stat64): Likewise.
2025         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2026         instead of struct _G_stat64.
2027         * libio/fileops.c (mmap_remap_check): Likewise.
2028         (decide_maybe_mmap): Likewise.
2029         (_IO_new_file_seekoff): Likewise.
2030         (_IO_file_stat): Likewise.
2031         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2032         _G_off64_t.
2033         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2034         instead of struct _G_stat64.
2035         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2036
2037 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2038
2039         [BZ #14602]
2040         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2041         Replace with ...
2042         (CHECK_EOL): New macro.
2043         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2044         CHECK_EOL.
2045         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2046         Replace with CHECK_EOL.
2047         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2048         Replace with CHECK_EOL.
2049
2050 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2051
2052         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2053         type-generic.
2054         * math/libm-test.inc: Update comment listing what functions and
2055         macros are tested.
2056         (finite_test): New function.
2057         (isinf_test): Likewise.
2058         (isnan_test): Likewise.
2059         (fpclassify_test): Test subnormal input.
2060         (isfinite_test): Likewise.
2061         (isnormal_test): Likewise.
2062         (main): Call the new functions.
2063
2064 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2065
2066         [BZ #14660]
2067         * Makerules (%.dynsym): Force C locale when running
2068         $(OBJDUMP) --dynamic-syms.
2069
2070 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2071
2072         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2073         <stdint.h>.
2074
2075 2012-10-06  David S. Miller  <davem@davemloft.net>
2076
2077         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2078         upper 32-bits of the length value in %o2 since we use branch-on-register
2079         tests which consider the entire 64-bit register.
2080
2081 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2082
2083         * string/test-strstr.c (check2): Add a test for page boundary.
2084
2085 2012-10-05  David S. Miller  <davem@davemloft.net>
2086
2087         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2088         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2089         file.
2090         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2091         sysdep_routines.
2092         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2093         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2094         and bzero when HWCAP_SPARC_CRYPTO is present.
2095
2096 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2097
2098         [BZ #14602]
2099         * string/test-strstr.c (check2): New function.
2100         (test_main): Call check2.
2101
2102         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2103         and bug-strchr1.
2104         * string/bug-strcasestr1.c (do_test): Moved to ...
2105         * string/test-strcasestr.c (check1): Here.  New function.
2106         (do_one_test): Break out result checking code into ...
2107         (check_result): This.  New function.
2108         (do_one_test): Call check_result.
2109         (test_main): Call check1.
2110         * string/bug-strchr1.c (do_test): Moved to ...
2111         * string/test-strchr.c (check1): Here.  New function.
2112         (do_one_test): Break out result checking code into ...
2113         (check_result): This.  New function.
2114         (do_one_test): Call check_result.
2115         (test_main): Call check1.
2116         * string/bug-strstr1.c (main): Moved to ...
2117         * string/test-strchr.c (check1): Here.  New function.
2118         (do_one_test): Break out result checking code into ...
2119         (check_result): This.  New function.
2120         (do_one_test): Call check_result.
2121         (test_main): Call check1.
2122         * string/bug-strcasestr1.c: Removed.
2123         * string/bug-strchr1.c: Likewise.
2124         * string/bug-strstr1.c: Likewise.
2125
2126         * elf/Makefile (dl-routines): Add hwcaps.
2127         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2128         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2129         (_dl_important_hwcaps): Moved to ...
2130         * elf/dl-hwcaps.c: Here.  New file.
2131         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2132
2133         [BZ #14557]
2134         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2135         if IS_IN_rtld isn't defined.
2136
2137         * elf/dl-support.c (_dl_sysinfo_map): New.
2138         Include "get-dynamic-info.h" and "setup-vdso.h".
2139         (_dl_non_dynamic_init): Call setup_vdso.
2140         * elf/dynamic-link.h: Don't include <assert.h>.
2141         (elf_get_dynamic_info): Moved to ...
2142         * elf/get-dynamic-info.h: Here.  New file.
2143         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2144         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2145         * elf/setup-vdso.h: Here.  New file.
2146         * elf/rtld.c: Include "setup-vdso.h".
2147         (dl_main): Call setup_vdso.
2148
2149 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2150
2151         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2152         creal in comment listing functions tested.  List finite, isinf,
2153         isnan, isless, islessequal, isgreater, isgreaterequal,
2154         islessgreater, isunordered, lgamma_r and pow10 as functions and
2155         macros not tested.  Mention which functions not tested are aliases
2156         for other functions.  Fix typo.  Note that signs of NaNs are not
2157         tested.
2158
2159         * scripts/config.guess: Update from config.git.
2160         * scripts/config.sub: Likewise.
2161
2162 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2163
2164         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2165         * misc/madvise.c (madvise): Renamed to __madvise.
2166         Make madvise a weak alias.
2167         * include/sys/mman.h: Declare __madvise.
2168         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2169         * sysdeps/unix/syscalls.list
2170         (madvise): Make __madvise the strong name, and madvise a weak alias.
2171         * sysdeps/unix/sysv/linux/syscalls.list
2172         (madvise, mmap): Remove redundant entries.
2173         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2174         * malloc/malloc.c (mtrim): Likewise.
2175         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2176
2177 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2178
2179         * sysdeps/mach/hurd/dl-cache.c: File removed.
2180         * config.h.in (USE_LDCONFIG): New #undef.
2181         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2182         * configure: Regenerated.
2183         * elf/Makefile (dl-routines): Add dl-cache only under
2184         [$(use-ldconfig) = yes].
2185         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2186         cache on [USE_LDCONFIG].
2187         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2188         [USE_LDCONFIG].
2189         * elf/rtld.c (dl_main): Likewise.
2190
2191 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2192
2193         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2194         _SC_LEVEL4_CACHE_LINESIZE.
2195
2196 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2197
2198         * sysdeps/unix/bsd/confstr.h: File removed.
2199
2200 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2201
2202         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2203         sys/sdt-config.h.
2204
2205 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2206
2207         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2208         Make 'mapoff' field ElfW(Off) rather than off_t.
2209
2210 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2211
2212         * nscd/Makefile: Remove nscd-cflags and all its users.
2213         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2214         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2215
2216         [BZ #10631]
2217         * malloc.c (malloc_printerr): Clarify error message.
2218
2219 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2220
2221         [BZ #14648]
2222         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2223         Set bit_FMA_Usable if FMA is supported.
2224         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2225         macro.
2226         (bit_FMA4_Usable): Updated.
2227         (index_FMA_Usable): New macro.
2228         (CPUID_FMA): Likewise
2229         (HAS_FMA): Defined with bit_FMA_Usable.
2230
2231 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2232
2233         * bits/types.h (__swblk_t): Type removed.
2234         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2235         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2236         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2237         (__SWBLK_T_TYPE): Likewise.
2238         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2239         (__SWBLK_T_TYPE): Likewise.
2240         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2241         (__SWBLK_T_TYPE): Likewise.
2242         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2243         (__SWBLK_T_TYPE): Likewise.
2244
2245 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2246             Honza Horak <hhorak@redhat.com>
2247
2248         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2249         (xdr_mapname): Use YPMAXMAP as maxsize.
2250         (xdr_peername): Use YPMAXPEER as maxsize.
2251         (xdr_keydat): Use YPAXRECORD as maxsize.
2252         (xdr_valdat): Use YPMAXRECORD as maxsize.
2253
2254 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2255
2256         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2257
2258         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2259         * csu/init-first.c: ... here.
2260         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2261         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2262         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2263         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2264         * sysdeps/i386/init-first.c: File removed.
2265         * sysdeps/sh/init-first.c: File removed.
2266
2267 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2268
2269         [BZ #14645]
2270         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2271         if x * y might underflow to zero and z is zero.
2272         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2273         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2274         * math/libm-test.inc (min_subnorm_value): New variable.
2275         (fma_test): Add more tests.
2276         (fma_test_towardzero): Likewise.
2277         (fma_test_downward): Likewise
2278         (fma_test_upward): Likewise.
2279         (initialize): Set min_subnorm_value.
2280
2281 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2282
2283         [BZ #14638]
2284         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2285         0 + 0.
2286         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2287         mode for addition resulting in exact zero.
2288         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2289         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2290         exact 0 + 0.
2291         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2292         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2293         * math/libm-test.inc (fma_test): Add more tests.
2294         (fma_test_towardzero): New function.
2295         (fma_test_downward): Likewise.
2296         (fma_test_upward): Likewise.
2297         (main): Call the new functions.
2298
2299 2012-09-28  David S. Miller  <davem@davemloft.net>
2300
2301         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2302
2303 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2304
2305         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2306         instead of SIGALRM.
2307
2308         * sysdeps/gnu/_G_config.h: Moved to ...
2309         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2310         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2311         * sysdeps/generic/_G_config.h: ... here.
2312
2313         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2314
2315         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2316
2317         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2318         Conditionalize target on [libnss_test1.so-version].
2319
2320         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2321
2322         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2323         (elfobjdir): Move out of conditionals.
2324
2325         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2326         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2327         (__nss_lookup_function): Conditionalize label remove_from_tree on
2328         [!DO_STATIC_NSS || SHARED], matching its only use.
2329
2330 2012-09-28  David S. Miller  <davem@davemloft.net>
2331
2332         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2333         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2334         file.
2335         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2336         sysdep_routines.
2337         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2338         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2339         when HWCAP_SPARC_CRYPTO is present.
2340
2341 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2342
2343         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2344
2345 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2346
2347         [BZ #6530]
2348         * stdio-common/vfprintf.c (process_string_arg): Revert
2349         2000-07-22 change.
2350
2351 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2352
2353         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2354         for testcase.
2355         * stdio-common/tst-sprintf.c: Include <locale.h>
2356         (main): Test sprintf's handling of incomplete multibyte
2357         characters.
2358
2359 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2360
2361         * elf/dl-runtime.c (VERSYMIDX): Removed.
2362         * elf/dl-version.c (VERSYMIDX): Likewise.
2363         * elf/do-rel.h (VERSYMIDX): Likewise.
2364         (VALIDX): Likewise.
2365         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2366         * elf/rtld.c (VALIDX): Likewise.
2367         (ADDRIDX): Likewise.
2368         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2369         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2370         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2371         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2372         (VALIDX): Likewise.
2373         (ADDRIDX): Likewise.
2374
2375 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2376
2377         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2378
2379 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2380
2381         [BZ #11438]
2382         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2383         to global scope.
2384         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2385         addresses are in the same scope as 192.0.2/24.
2386         * posix/gai.conf: Document new scope table defaults.
2387
2388 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2389
2390         [BZ #5298]
2391         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2392         for ftell.  Compute offsets from write pointers instead.
2393         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2394
2395 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2396
2397         [BZ #14543]
2398         * libio/Makefile (tests): New test case tst-fseek.
2399         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2400         combination works in wide mode.
2401         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2402         state when the external buffer state changes.
2403
2404 2012-09-27  David S. Miller  <davem@davemloft.net>
2405
2406         [BZ #14376]
2407         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2408         pass reloc->r_addend in as the 'high' argument to
2409         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2410
2411         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2412
2413 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2414
2415         * rt/tst-aio2.c: Include <pthread.h>.
2416         * rt/tst-aio3.c: Likewise.
2417
2418 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2419
2420         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2421
2422 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2423
2424         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2425         contents on [SHARED].
2426
2427 2012-09-26  Marek Polacek  <polacek@redhat.com>
2428
2429         [BZ #14530]
2430         [BZ #13741]
2431         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2432         for C++ and GCC <4.3 as well as for non GCC compilers.
2433
2434 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2435
2436         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2437
2438 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2439
2440         * Makefile.in (all, install): Declare with .PHONY.
2441         Reported by Michael Hope <michael.hope@linaro.org>.
2442
2443 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2444
2445         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2446         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2447         system header.
2448         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2449         Likewise.
2450         (sydep_routines): Add the new and the internal functions.
2451         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2452         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2454         (GLIBC_2.17): Add the new function.
2455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2456         (GLIBC_2.17): Likewise.
2457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2458         (GLIBC_2.17): Likewise.
2459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2460         (GLIBC_2.17): Likewise.
2461         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2462
2463 2012-09-25  Alan Modra  <amodra@gmail.com>
2464
2465         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2466         Add release barrier before setting once_control to say
2467         initialisation is done.  Add hints on lwarx.  Use macro in
2468         place of isync.
2469         (clear_once_control): Add release barrier.
2470
2471 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2472
2473         [BZ #13629]
2474         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2475         specially.
2476         * math/s_clog10.c (__clog10): Likewise.
2477         * math/s_clog10f.c (__clog10f): Likewise.
2478         * math/s_clog10l.c (__clog10l): Likewise.
2479         * math/s_clogf.c (__clogf): Likewise.
2480         * math/s_clogl.c (__clogl): Likewise.
2481         * math/Makefile (libm-calls): Add x2y2m1.
2482         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2483         (__x2y2m1): Likewise.
2484         (__x2y2m1l): Likewise.
2485         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2486         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2487         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2488         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2489         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2490         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2491         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2492         * sysdeps/i386/fpu/libm-test-ulps: Update.
2493         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2494
2495         [BZ #14621]
2496         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2497         int as type of variable DEPTH.
2498         (glob): Use size_t instead of int as type of variables NEWCOUNT
2499         and OLD_PATHC.
2500
2501 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2502
2503         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2504         Add s_sincosf-sse2.
2505         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2506         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2507         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2508         macros for using routine as __sincosf_ia32.
2509         Use macro for function declaration and weak_alias.
2510         * sysdeps/i386/fpu/libm-test-ulps: Update.
2511
2512         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2513         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2514
2515         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2516         subnormal argument.
2517         * math/s_cexpf.c (__cexpf): Likewise.
2518         * math/s_csinf.c (__csinf): Likewise.
2519         * math/s_csinhf.c (__csinhf): Likewise.
2520         * math/s_ctanf.c (__ctanf): Likewise.
2521         * math/s_ctanhf.c (__ctanhf): Likewise.
2522         * math/s_ccosh.c (__ccoshf): Likewise.
2523         * math/s_cexp.c (__cexpl): Likewise.
2524         * math/s_csin.c (__csin): Likewise.
2525         * math/s_csinh.c (__csinh): Likewise.
2526         * math/s_ctan.c (__ctan): Likewise.
2527         * math/s_ctanh.c (ctanh): Likewise.
2528         * math/s_ccoshl.c (__ccoshl): Likewise.
2529         * math/s_cexpl.c (__cexpl): Likewise.
2530         * math/s_csinl.c (__csinl): Likewise.
2531         * math/s_csinhl.c (__csinhl): Likewise.
2532         * math/s_ctanl.c (__ctanl): Likewise.
2533         * math/s_ctanhl.c (__ctanhl): Likewise.
2534
2535 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2536
2537         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2538         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2539         (_IO_off_t): Define to __off_t, not _G_off_t.
2540         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2541         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2542         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2543         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2544         type of __dummy and __dummy2 fields.
2545         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2546         (_G_ssize_t): Likewise.
2547         (_G_off_t): Likewise.
2548         (_G_pid_t): Likewise.
2549         (_G_uid_t): Likewise.
2550         (_G_wchar_t): Likewise.
2551         (_G_wint_t): Likewise.
2552         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2553         (_G_ssize_t): Likewise.
2554         (_G_off_t): Likewise.
2555         (_G_pid_t): Likewise.
2556         (_G_uid_t): Likewise.
2557         (_G_wchar_t): Likewise.
2558         (_G_wint_t): Likewise.
2559         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2560         (_G_ssize_t): Likewise.
2561         (_G_off_t): Likewise.
2562         (_G_pid_t): Likewise.
2563         (_G_uid_t): Likewise.
2564         (_G_wchar_t): Likewise.
2565         (_G_wint_t): Likewise.
2566
2567 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2568
2569         * malloc/arena.c: Include malloc-sysdep.h.
2570         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2571         is sufficient to shrink the heap or an unmap is needed.
2572         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2573         new function check_may_shrink_heap.
2574         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2575         new function check_may_shrink_heap.
2576
2577 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2578
2579         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2580         comments.
2581
2582 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2583
2584         * catgets/test-gencat.sh: Add "set -e".
2585         * elf/tst-pathopt.sh: Likewise.
2586         * grp/tst_fgetgrent.sh: Likewise.
2587         * iconvdata/run-iconv-test.sh: Likewise.
2588         * intl/tst-gettext.sh: Likewise.
2589         * intl/tst-gettext2.sh: Likewise.
2590         * intl/tst-gettext4.sh: Likewise.
2591         * intl/tst-gettext6.sh: Likewise.
2592         * intl/tst-translit.sh: Likewise.
2593         * io/ftwtest-sh: Likewise.
2594         * libio/test-freopen.sh: Likewise.
2595         * malloc/tst-mtrace.sh: Likewise.
2596         * posix/globtest.sh: Likewise.
2597         * posix/tst-getconf.sh: Likewise.
2598         * posix/wordexp-tst.sh: Likewise.
2599         * stdio-common/tst-printf.sh: Likewise.
2600         * stdio-common/tst-unbputc.sh: Likewise.
2601         * stdlib/tst-fmtmsg.sh: Likewise.
2602         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2603         * catgets/Makefile: Do not specify -e option when running
2604         testsuite shell scripts.
2605         * elf/Makefile: Likewise.
2606         * grp/Makefile: Likewise.
2607         * iconvdata/Makefile: Likewise.
2608         * intl/Makefile: Likewise.
2609         * io/Makefile: Likewise.
2610         * libio/Makefile: Likewise.
2611         * malloc/Makefile: Likewise.
2612         * posix/Makefile: Likewise.
2613         * stdio-common/Makefile: Likewise.
2614         * stdlib/Makefile: Likewise.
2615         * sysdeps/x86_64/Makefile: Likewise.
2616
2617         * io/ftwtest-sh: Add copyright header.
2618         * posix/globtest.sh: Likewise.
2619         * posix/tst-getconf.sh: Likewise.
2620         * posix/wordexp-tst.sh: Likewise.
2621         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2622
2623 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2624
2625         [BZ #13679]
2626         * Makeconfig (+link): Defined as $(+link-static) if
2627         $(build-shared) isn't yes.
2628         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2629         isn't yes.
2630         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2631
2632         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2633
2634         [BZ #14562]
2635         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2636         new chunk size with MALLOC_ALIGN_MASK.
2637
2638 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2639
2640         [BZ #5044]
2641         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2642         <rounding-mode.h>.
2643         (__printf_fphex): Determine rounding using get_rounding_mode and
2644         round_away.
2645         * stdio-common/tst-printf-round.c (struct hex_test): New
2646         structure.
2647         (hex_tests): New variable.
2648         (test_hex_in_one_mode): New function.
2649         (do_test): Also run tests for hex float output.
2650
2651 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2652
2653         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2654         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2655         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2656         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2657         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2658         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2659         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2660         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2661
2662 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2663
2664         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2665         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2666         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2667         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2668
2669 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2670
2671         [BZ #14579]
2672         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2673         mode only.
2674         * elf/tst-rtld-load-self.sh: New test.
2675         * elf/Makefile: Run it.
2676
2677 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2678
2679         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2680         (tst-writev-ENV): Remove.
2681         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2682
2683 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2684
2685         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2686
2687 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2688
2689         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2690         unconditional.
2691         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2692         Likewise.
2693         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2694         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2695         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2696         Likewise.
2697
2698 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2699
2700         [BZ #14587]
2701         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2702         * config.make.in (have-cpp-asm-debuginfo): Removed.
2703         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2704         * configure: Regenerated.
2705
2706 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2707
2708         [BZ #5044]
2709         * stdio-common/printf_fp.c: Include <stdbool.h> and
2710         <rounding-mode.h>.
2711         (___printf_fp): Determine rounding using get_rounding_mode and
2712         round_away.
2713         * stdio-common/tst-printf-round.c: New file.
2714         * stdio-common/Makefile (tests): Add tst-printf-round.
2715         (link-libm): New variable.
2716         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2717
2718 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2719
2720         [BZ #14576]
2721         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2722         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2723         Likewise.
2724         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2725         Likewise.
2726
2727 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2728
2729         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2730         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2731         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2732         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2733
2734 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2735
2736         [BZ #14518]
2737         * include/rounding-mode.h: New file.
2738         * sysdeps/generic/get-rounding-mode.h: Likewise.
2739         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2740         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2741         (MAX_VALUE): New macro.
2742         (MIN_VALUE): Likewise.
2743         (overflow_value): New function.
2744         (underflow_value): Likewise.
2745         (round_and_return): Use overflow_value and underflow_value to
2746         determine return values in overflow and underflow cases.  Use
2747         round_away to determine rounding depending on rounding mode.
2748         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2749         determine return values in overflow and underflow cases.
2750         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2751         (struct test_results): New structure.
2752         (struct test): Use struct test_results to store expected results
2753         for all rounding modes.
2754         (TEST): Include expected results for all rounding modes.
2755         (test_in_one_mode): New function.
2756         (do_test): Use test_in_one_mode to compute and check results.
2757         Check results for all rounding modes.
2758         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2759         $(link-libm).
2760
2761 2012-12-09  Allan McRae  <allan@archlinux.org>
2762
2763         * sysdeps/i386/fpu/libm-test-ulps: Update
2764
2765 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2766
2767         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2768         (_G_int32_t): Likewise.
2769         (_G_uint16_t): Likewise.
2770         (_G_uint32_t): Likewise.
2771         (_G_HAVE_BOOL): Likewise.
2772         (_G_HAVE_ATEXIT): Likewise.
2773         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2774         (_G_HAVE_IO_FILE_OPEN): Likewise.
2775         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2776         (_G_int32_t): Likewise.
2777         (_G_uint16_t): Likewise.
2778         (_G_uint32_t): Likewise.
2779         (_G_HAVE_BOOL): Likewise.
2780         (_G_HAVE_ATEXIT): Likewise.
2781         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2782         (_G_HAVE_IO_FILE_OPEN): Likewise.
2783         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2784         (_G_int32_t): Likewise.
2785         (_G_uint16_t): Likewise.
2786         (_G_uint32_t): Likewise.
2787         (_G_HAVE_BOOL): Likewise.
2788         (_G_HAVE_ATEXIT): Likewise.
2789         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2790         (_G_HAVE_IO_FILE_OPEN): Likewise.
2791
2792 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2793
2794         * csu/libc-tls.c: Update copyright years.
2795
2796 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2797
2798         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2799         [!_G_USING_THUNKS]: Remove conditional code.
2800         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2801         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2802
2803         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2804         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2805         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2806         (_G_VTABLE_LABEL_PREFIX): Likewise.
2807         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2808         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2809         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2810         (_G_VTABLE_LABEL_PREFIX): Likewise.
2811         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2812         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2813         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2814         (_G_VTABLE_LABEL_PREFIX): Likewise.
2815         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2816
2817 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2818
2819         * libio/Makefile: Include ../Makeconfig before tests.
2820         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2821         only if $(build-shared) is yes.
2822
2823         * iconv/gconv_db.c: Update copyright years.
2824
2825 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2826
2827         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2828         unwind info if defined PIC. Fix special cases description.
2829         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2830
2831         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2832         DP_HI_MASK entry.
2833         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2834
2835 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2836
2837         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2838
2839         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2840         is NULL.
2841
2842         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2843         (LDLIBS-tst-chk4): This.
2844         (LDFLAGS-tst-chk5): Renamed to ...
2845         (LDLIBS-tst-chk5): This.
2846         (LDFLAGS-tst-chk6): Renamed to ...
2847         (LDLIBS-tst-chk6): This.
2848         (LDFLAGS-tst-lfschk4): Renamed to ...
2849         (LDLIBS-tst-lfschk4): This.
2850         (LDFLAGS-tst-lfschk5): Renamed to ...
2851         (LDLIBS-tst-lfschk5): This.
2852         (LDFLAGS-tst-lfschk6): Renamed to ...
2853         (LDLIBS-tst-lfschk6): This.
2854
2855         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2856         on $(common-objpfx)soversions.mk.
2857
2858 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2859
2860         [BZ #10014]
2861         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2862         example host name.
2863
2864 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2865
2866         * malloc/arena.c (arena_get_retry): New function that gets
2867         another arena for the caller to try its request on.
2868         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2869         current arena cannot fulfill the request.
2870         (__libc_memalign): Likewise.
2871         (__libc_memalign): Likewise.
2872         (__libc_pvalloc): Likewise.
2873         (__libc_calloc): Likewise.
2874
2875 2012-09-05  John Tobey  <john.tobey@gmail.com>
2876
2877         [BZ #13542]
2878         * manual/arith.texi (Operations on Complex): Fix description
2879         of carg branch cut.
2880
2881 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2882
2883         [BZ #10014]
2884         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2885         host name.
2886
2887         [BZ #10038]
2888         * manual/memory.texi (Memory): Make order of menu items match
2889         order of sections.
2890
2891 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2892
2893         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2894         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2895         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2896
2897 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2898
2899         * csu/libc-tls.c (static_dtv): Renamed to ...
2900         (_dl_static_dtv): This.  Make it global.
2901         (_dl_initial_dtv): Removed.
2902         (__libc_setup_tls): Updated.
2903         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2904         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2905         DL_INITIAL_DTV.
2906
2907 2012-09-06  Petr Machata  <pmachata@redhat.com>
2908
2909         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2910         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2911         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2912         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2913
2914 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2915
2916         [BZ #14545]
2917         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2918         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
2919         freeing dtv[-1].
2920
2921 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2922
2923         [BZ #14544]
2924         * Makeconfig (link-static-before-libc): Replace $(+prector)
2925         with $(+prectorT).
2926         (link-static-after-libc): Replace $(+postctor) with
2927         $(+postctorT).
2928         (link-bounded): Replace $(+prector)/$(+postctor) with
2929         $(+prectorT)/$(+postctorT).
2930         (+prectorT): New macro.
2931         (+postctorT): Likewise.
2932
2933 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2934
2935         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
2936         (round_str): Handle values above the maximum for IBM long double
2937         as inexact.
2938         * stdlib/tst-strtod-round.c (tests): Regenerated.
2939
2940 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2941
2942         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
2943         assembler flag.
2944         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2945         zarch_nohighgprs around the zarch optimized routines.
2946         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2947         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2948         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2949         for zarch.
2950
2951 2012-09-05  David S. Miller  <davem@davemloft.net>
2952
2953         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2954
2955         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2956         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2957         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2958         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2959         entries.
2960
2961 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2962
2963         * malloc/arena.c: Fold copyright years.
2964         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2965
2966 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2967
2968         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2969
2970 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2971
2972         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2973
2974 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2975
2976         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2977         change internal state upon failure.
2978
2979 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2980
2981         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2982         * malloc/memusage.c (mmap): Likewise.
2983         (mmap64, mremap): Likewise.  Adjust name in comment.
2984
2985 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2986
2987         * libio/fileops.c: Fix typos in comments.
2988         * libio/oldfileops.c: Likewise.
2989         * libio/wfileops.c: Likewise.
2990
2991 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2992
2993         [BZ #1349]
2994         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2995         (tst-malloc-usable-ENV): Set environment for test case.
2996         * malloc/hooks.c (malloc_check_get_size): New function to get
2997         requested size.
2998         * malloc/malloc.c (musable): Use malloc_check_get_size.
2999         * malloc/tst-malloc-usable.c: New test case.
3000
3001 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3002
3003         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3004
3005 2012-09-05  Allan McRae  <allan@archlinux.org>
3006
3007         [BZ #13966]
3008         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3009         determine header location.
3010         * configure: Regenerated.
3011
3012 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3013
3014         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3015         float format.
3016         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3017         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3018         format.
3019         (test): Regenerate.
3020
3021 2012-09-04  David S. Miller  <davem@davemloft.net>
3022
3023         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3024         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3025         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3026
3027 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3028
3029         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3030         failures.
3031
3032         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3033
3034 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3035
3036         [BZ #9914]
3037         * libio/iogetdelim.c: Include <limits.h>.
3038         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3039         + len + 1 would overflow.
3040
3041 2012-09-03  Andreas Jaeger  <aj@suse.de>
3042
3043         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3044         * sysdeps/i386/fpu/libm-test-ulps: Update.
3045
3046 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3047
3048         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3049         Add s_sinf-sse2, s_conf-sse2.
3050
3051         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3052         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3053         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3054         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3055
3056         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3057         for using routine as __sinf_ia32.
3058         Use macro for function declaration and weak_alias.
3059         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3060         for using routine as __cosf_ia32.
3061         Use macro for function declaration and weak_alias.
3062
3063         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3064         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3065
3066         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3067         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3068         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3069
3070         * math/libm-test.inc (cos_test): Add more test cases.
3071         (sin_test): Likewise.
3072         (sincos_test): Likewise.
3073
3074 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3075
3076         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3077         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3078         hidden.
3079         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3080
3081 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3082
3083         [BZ #14538]
3084         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3085         first element of the GOT.
3086         (elf_machine_load_address): Return the difference between
3087         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3088
3089 2012-09-01  Allan McRae  <allan@archlinux.org>
3090
3091         [BZ #13412]
3092         * configure.in (AWK): Require gawk version 3.0 or later.
3093         * configure: Regenerated.
3094
3095 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3096
3097         * sysdeps/unix/sysv/linux/kernel-features.h
3098         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3099         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3100         [__NR_clock_getres]: Make code unconditional.
3101         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3102         (clock_getcpuclockid): Remove code left unreachable by removal of
3103         conditionals.
3104         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3105         code unconditional.
3106         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3107         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3108         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3109         Make code unconditional.
3110         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3111         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3112         * sysdeps/unix/sysv/linux/clock_settime.c
3113         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3114         conditional code.
3115         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3116         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3117
3118 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3119
3120         [BZ #14476]
3121         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3122         scripts/test-installation.pl.
3123
3124         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3125         and $ld_so_version if it is set.
3126
3127 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3128
3129         [BZ #14516]
3130         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3131         failure if reading from procfs failed.
3132         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3133
3134 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3135
3136         * sysdeps/unix/sysv/linux/kernel-features.h
3137         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3138         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3139         Remove conditional code.
3140         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3141         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3142         Remove conditional code.
3143         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3144         * sysdeps/unix/sysv/linux/i386/fxstat.c
3145         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3146         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3147         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3148         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3149         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3150         * sysdeps/unix/sysv/linux/i386/lxstat.c
3151         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3152         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3153         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3154         Remove conditional code.
3155         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3156         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3157         Remove conditional code.
3158         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3159         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3160         <kernel-features.h>.
3161         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3162         Remove.
3163         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3164         Remove conditional code.
3165         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3166         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3167         Remove conditional.
3168
3169 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3170
3171         [BZ #5400]
3172         * NEWS: Add fixed bug number.
3173
3174 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3175
3176         [BZ #14519]
3177         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3178         underflowing exponent in case of negative sign.
3179         * stdlib/tst-strtod-round-data: Add more tests.
3180         * stdlib/tst-strtod-round.c (tests): Regenerated.
3181
3182         [BZ #3479]
3183         * stdlib/strtod_l.c (NDIG): Remove.
3184         (HEXNDIG): Likewise.
3185         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3186         smallest representable value.
3187         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3188         lie within an exact representation of 1/2 ulp of the result.
3189         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3190         unconditionally.
3191         (TENS_P9_IDX): Define unconditionally.
3192         (TENS_P9_SIZE): Likewise.
3193         (TENS_P10_IDX): Likewise.
3194         (TENS_P10_SIZE): Likewise.
3195         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3196         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3197         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3198         entries for 10^2^13 and 10^2^14.
3199         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3200         (TENS_P13_IDX): Define.
3201         (TENS_P13_SIZE): Likewise.
3202         (TENS_P14_IDX): Likewise.
3203         (TENS_P14_SIZE): Likewise.
3204         (_fpioconst_pow10): Change array size to
3205         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3206         unconditional.
3207         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3208         1024]: Add entries for 10^2^13 and 10^2^14.
3209         [LAST_POW10 > _LAST_POW10]: Remove #error.
3210         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3211         (_fpioconst_pow10): Change array size to
3212         FPIOCONST_POW10_ARRAY_SIZE.
3213         * stdlib/gen-fpioconst.c: New file.
3214         * stdlib/gen-tst-strtod-round.c: Likewise.
3215         * stdlib/tst-strtod-round-data: Likewise.
3216         * stdlib/tst-strtod-round.c: Likewise.
3217         * stdlib/Makefile (tests): Add tst-strtod-round.
3218
3219         [BZ #14459]
3220         * stdlib/strtod_l.c: Include <stdint.h>.
3221         (NDEBUG): Do not define.
3222         (round_and_return): Change EXPONENT parameter to type intmax_t.
3223         Rearrange calculations to avoid internal overflow possibilities.
3224         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3225         Rearrange calculations to avoid internal overflow possibilities.
3226         Assert that number fits inside MPNSIZE limbs.
3227         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3228         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3229         calculations and add assertions to avoid internal overflow
3230         possibilities.  Add casts to avoid signed/unsigned operations.
3231         * stdlib/tst-strtod-overflow.c: New file.
3232         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3233
3234 2012-08-25  Marek Polacek  <polacek@redhat.com>
3235
3236         * time/time.h: Fix some typos in comments.
3237
3238 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3239
3240         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3241         * posix/tst-rfc3484-2.c: Likewise.
3242         * posix/tst-rfc3484-3.c: Likewise.
3243
3244 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3245
3246         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3247         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3248
3249 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3250
3251         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3252         #include of fxstatat64.c.
3253
3254 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3255
3256         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3257         * shadow/getspent_r.c: Likewise.
3258         * shadow/getspnam.c: Likewise.
3259         * shadow/getspnam_r.c: Likewise.
3260         * gshadow/getsgent.c: Likewise.
3261         * gshadow/getsgent_r.c: Likewise.
3262         * gshadow/getsgnam.c: Likewise.
3263         * gshadow/getsgnam_r.c: Likewise.
3264         * inet/getnetbyad.c: Likewise.
3265         * inet/getnetbyad_r.c: Likewise.
3266         * inet/getnetbynm.c: Likewise.
3267         * inet/getnetbynm_r.c: Likewise.
3268         * inet/getnetent.c: Likewise.
3269         * inet/getnetent_r.c: Likewise.
3270         * inet/getproto.c: Likewise.
3271         * inet/getproto_r.c: Likewise.
3272         * inet/getprtent.c: Likewise.
3273         * inet/getprtent_r.c: Likewise.
3274         * inet/getprtname.c: Likewise.
3275         * inet/getprtname_r.c: Likewise.
3276         * inet/getrpcbyname.c: Likewise.
3277         * inet/getrpcbyname_r.c: Likewise.
3278         * inet/getrpcbynumber.c: Likewise.
3279         * inet/getrpcbynumber_r.c: Likewise.
3280         * inet/getrpcent.c: Likewise.
3281         * inet/getrpcent_r.c: Likewise.
3282         * inet/getaliasent.c: Likewise.
3283         * inet/getaliasent_r.c: Likewise.
3284         * inet/getaliasname.c: Likewise.
3285         * inet/getaliasname_r.c: Likewise.
3286         * nscd/getgrgid_r.c: Likewise.
3287         * nscd/getgrnam_r.c: Likewise.
3288         * nscd/gethstbyad_r.c: Likewise.
3289         * nscd/gethstbynm3_r.c: Likewise.
3290         * nscd/getpwnam_r.c: Likewise.
3291         * nscd/getpwuid_r.c: Likewise.
3292         * nscd/getsrvbynm_r.c: Likewise.
3293         * nscd/getsrvbypt_r.c: Likewise.
3294         * nscd/gai.c: Likewise.
3295
3296         * configure.in (build_nscd): New substituted variable, set
3297         by --disable-build-nscd and defaults to $use_nscd.
3298         * configure: Regenerated.
3299         * config.make.in (build-nscd): New substituted variable.
3300         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3301         Change conditional to require [$(build-nscd) = yes] as well.
3302         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3303
3304         [BZ# 13696]
3305         * configure.in (use_nscd): New substituted variable, set by
3306         --disable-nscd.  If enabled, define USE_NSCD.
3307         * configure: Regenerated.
3308         * config.h.in: Add USE_NSCD.
3309         * config.make.in (use-nscd): New substituted variable.
3310         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3311         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3312         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3313         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3314         (CFLAGS-getgrnam_r.c): Likewise.
3315         (CFLAGS-initgroups.c): Likewise.
3316         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3317         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3318         Variables removed.
3319         * inet/getnetgrent_r.c
3320         (nscd_setnetgrent): New function, broken out of ...
3321         (setnetgrent): ... here.  Call it.
3322         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3323         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3324         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3325         * nscd/Makefile (routines, aux): Move definitions after include of
3326         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3327         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3328         Conditionalize on [USE_NSCD].
3329         (is_nscd, nscd_init_cb): Likewise.
3330         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3331         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3332         * nss/nss_db/db-init.c: Likewise.
3333         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3334         [USE_NSCD].
3335         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3336         (make_request): Use it.
3337         (cache_valid_p): New function.
3338         (__check_pf): Use it.
3339         * NEWS: Add item for --disable-nscd.
3340
3341 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3342
3343         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3344         to support sed >= 4.2.1-20-ga9bf076.
3345         * configure: Regenerated.
3346
3347 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3348
3349         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3350         Conditionalize whole body on [IREL].
3351
3352 2012-08-22  Jeff Law <law@redhat.com>
3353
3354         [BZ #14505]
3355         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3356         if the family is PF_UNSPEC.
3357
3358 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3359
3360         * Makerules (lib-version): Rename from V.
3361         (install-lib-nosubdir): Change V to lib-version.
3362
3363 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3364
3365         [BZ #14252]
3366         * powerpc32/power6/wcschr.c: New file.
3367         * powerpc32/power6/wcscpy.c: New file.
3368         * powerpc32/power6/wcsrchr.c: New file.
3369         * powerpc64/power6/wcschr.c: New file.
3370         * powerpc64/power6/wcscpy.c: New file.
3371         * powerpc64/power6/wcsrchr.c: New file.
3372
3373 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3374
3375         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3376         (two_way_short_needle): Use it.
3377         * string/strstr.c (AVAILABLE1_USES_J): Define.
3378         * string/strcasestr.c: Likewise.
3379
3380         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3381         array references.
3382         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3383
3384         [BZ #11607]
3385         * NEWS: Add an entry.
3386         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3387         define their defaults.
3388         (two_way_short_needle): Detect end-of-string on-the-fly.
3389         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3390         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3391         * string/bug-strcasestr1.c: New test.
3392         * string/Makefile: Run it.
3393
3394 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3395
3396         [BZ #11607]
3397         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3398         the first character.
3399
3400 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3401
3402         * csu/elf-init.c (__libc_csu_irel): Function removed.
3403         * csu/libc-start.c (apply_irel): New function.
3404         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3405
3406 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3407
3408         * sysdeps/unix/sysv/linux/kernel-features.h
3409         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3410         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3411         <kernel-features.h>.
3412         [__NR_fadvise64_64]: Make code unconditional.
3413         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3414         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3415         !__NR_fadvise64_64)]: Likewise.
3416         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3417         !__NR_fadvise64_64))]: Likewise.
3418         [__NR_fadvise64]: Make code unconditional.
3419         [!__NR_fadvise64]: Remove conditional code.
3420         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3421         <kernel-features.h>.
3422         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3423         unconditional.
3424         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3425         conditional code.
3426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3427         not include <kernel-features.h>.
3428         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3429         unconditional.
3430         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3431         conditional code.
3432         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3433         include <kernel-features.h>.
3434         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3435         unconditional.
3436         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3437         conditional code.
3438
3439 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3440
3441         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3442         slight instruction rearrangements per scrollpipe analysis.
3443         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3444
3445 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3446
3447         * manual/syslog.texi (syslog; vsyslog, closelog):
3448         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3449         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3450
3451         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3452         DSOCAPS to match condition on defining it.
3453
3454 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3455
3456         * sysdeps/unix/sysv/linux/kernel-features.h
3457         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3459         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3460         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3462         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3463         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3465         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3466         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3467
3468         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3469         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3470
3471         * sysdeps/unix/sysv/linux/kernel-features.h
3472         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3473         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3474         unconditional.
3475         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3476         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3477         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3478         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3479         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3480         Make code unconditional.
3481         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3482         (__mmap64) [!__NR_mmap2]: Likewise.
3483         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3484         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3485         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3486         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3487         [__NR_mmap2]: Make code unconditional.
3488         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3489         (__mmap64) [!__NR_mmap2]: Likewise.
3490
3491 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3492
3493         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3494
3495 2012-08-18  Andreas Jaeger  <aj@suse.de>
3496
3497         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3498
3499 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3500
3501         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3502         * include/unistd.h (__have_sock_cloexec): Likewise.
3503         (__have_pipe2): Likewise.
3504         (__have_dup3): Likewise.
3505
3506 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3507
3508         [BZ #9685]
3509         * include/unistd.h (__have_pipe2): Change define into an extern int.
3510         (__have_dup3): Likewise.
3511         * socket/have_sock_cloexec.c: Include fcntl.h.
3512         (__have_pipe2): New variable.
3513         (__have_dup3): Likewise.
3514
3515 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3516
3517         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3518
3519 2012-08-17  Marek Polacek  <polacek@redhat.com>
3520
3521         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3522         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3523
3524 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3525
3526         * configure.in: Add AC_SUBST for sysheaders.
3527         * configure: Regenerated.
3528         * config.make.in (sysheaders): New substituted variable.
3529
3530         * sysdeps/unix/mkfifo.c: Moved ...
3531         * sysdeps/posix/mkfifo.c: ... here.
3532         * sysdeps/unix/mkfifoat.c: Moved ...
3533         * sysdeps/posix/mkfifoat.c: ... here.
3534
3535         * sysdeps/unix/utime.c: Moved ...
3536         * sysdeps/posix/utime.c: ... here.
3537
3538         * sysdeps/unix/time.c: Moved ...
3539         * sysdeps/posix/time.c: ... here.
3540         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3541         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3542
3543         * sysdeps/unix/nice.c: Moved ...
3544         * sysdeps/posix/nice.c: ... here.
3545
3546         * sysdeps/unix/alarm.c: Moved ...
3547         * sysdeps/posix/alarm.c: ... here.
3548
3549         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3550
3551 2012-08-17  Jeff Law <law@redhat.com>
3552
3553         * intl/Makefile (codeset_mo): New variable.
3554         ($(codeset_mo)): New target.
3555         (tst-codeset.out): Depend on that.  Remove explicit rule.
3556         (tst-gettext3.out, tst-gettext5.out): Likewise.
3557         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3558         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3559         * intl/tst-codeset.sh: Remove.
3560         * intl/tst-gettext3.sh: Likewise.
3561         * intl/tst-gettext5.sh: Likewise.
3562
3563 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3564
3565         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3566         * sysdeps/unix/syscalls.list: ... here.
3567
3568         * sysdeps/posix/getaddrinfo.c
3569         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3570         (gaiconf_init, gaiconf_reload): Use them.
3571         [!_STATBUF_ST_NSEC]
3572         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3573         Define using time_t rather than struct timespec.
3574
3575         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3576         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3577         Macros removed.
3578         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3579         [!NO_THREADS].
3580         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3581         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3582         Likewise.
3583
3584         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3585         __libc_cleanup_push argument.
3586
3587         * bits/param.h: New file.
3588         * misc/sys/param.h: New file.
3589         * include/sys/param.h: New file.
3590         * misc/Makefile (headers): Add bits/param.h.
3591         * sysdeps/generic/sys/param.h: File removed.
3592         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3593         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3594         * sysdeps/mach/hurd/bits/param.h: New file.
3595         * sysdeps/mach/hurd/sys/param.h: File removed.
3596
3597         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3598         last change.
3599
3600         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3601         [_IO_MTSAFE_IO].
3602         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3603         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3604         New macros.
3605
3606         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3607         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3608         rather than -D_IO_MTSAFE_IO conditionally.
3609         * stdio-common/Makefile (CPPFLAGS): Likewise.
3610         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3611         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3612         Use $(libio-mtsafe).
3613         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3614         of -D_IO_MTSAFE_IO.
3615         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3616         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3617         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3618         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3619         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3620         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3621         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3622         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3623         (CFLAGS-fread_u_chk.c): Likewise.
3624         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3625         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3626         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3627         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3628         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3629         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3630         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3631         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3632         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3633
3634         * libio/Makefile: Test [$(libc-reentrant) = yes]
3635         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3636
3637         * Makeconfig
3638         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3639         * sysdeps/pthread/configure: File removed.
3640         * sysdeps/pthread/Makeconfig: New file.
3641         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3642         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3643
3644 2012-08-16  Gary Benson  <gbenson@redhat.com>
3645
3646         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3647         unmapping the first object in a namespace.
3648
3649 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3650
3651         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3652         (__internal_setnetgrent): ... this.  Add internal_function to
3653         definition.  Add libc_hidden_def.
3654         (setnetgrent): Update caller.
3655         (internal_endnetgrent): Renamed to ...
3656         (__internal_endnetgrent): ... this.  Add internal_function to
3657         definition.  Add libc_hidden_def.
3658         (endnetgrent): Update caller.
3659         (internal_getnetgrent_r): Renamed to ...
3660         (__internal_getnetgrent_r): ... this.  Add internal_function to
3661         definition.  Add libc_hidden_def.
3662         (__getnetgrent_r): Update caller.
3663         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3664
3665 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3666
3667         * stdlib/longlong.h: Update from GCC.
3668
3669 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3670
3671         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3672         on _QL, which is set by umul_ppmm but never used.
3673         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3674         variables, which are set by GMP macros but never used.
3675         * stdio-common/_itowa.c (_itowa): Likewise.
3676         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3677         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3678
3679 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3680
3681         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3682         struct La_sh_regs is not constant.
3683         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3684         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3685         and struct La_sparc64_regs are not constant.
3686
3687 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3688
3689         * sysdeps/unix/sysv/linux/kernel-features.h
3690         (__ASSUME_POSIX_TIMERS): Remove.
3691         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3692         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3693         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3694         Make code unconditional.
3695         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3696         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3697         Make code unconditional.
3698         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3699         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3700         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3701         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3702         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3703         Make code unconditional.
3704         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3705         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3706         (__libc_missing_posix_timers): Remove.
3707
3708 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3709
3710         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3711         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3712
3713         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3714
3715         * elf/dl-sym.c: Include <stdlib.h>.
3716
3717         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3718         constants, which avoids warnings in 32-bit builds.
3719
3720         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3721         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3722
3723         * misc/lseek.c: File moved to ...
3724         * io/lseek.c: ... here.
3725
3726         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3727
3728         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3729         shifting LEN more than 31 bits at once.
3730
3731 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3732
3733         [BZ #14195]
3734         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3735         segmentation fault for a case of two empty input strings.
3736         * string/test-strncasecmp.c (check1): Renamed to...
3737         (bz12205): ...this.
3738         (bz14195): Add new testcase for two empty input strings and N > 0.
3739         (test_main): Call new testcase, adapt for renamed function.
3740
3741 2012-08-15  Andreas Jaeger  <aj@suse.de>
3742
3743         [BZ #14090]
3744         * crypt/md5test2.c: New test, based on test supplied by Serge
3745         Belyshev <belyshev@depni.sinp.msu.ru>.
3746         * crypt/Makefile (xtests): Add md5test-giant..
3747         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3748
3749 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3750
3751         [BZ #14090]
3752         * crypt/md5.c (md5_process_block): Don't assume the buffer
3753         length is less than 2**32.
3754         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3755         length is less than 2**64.
3756
3757 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3758
3759         * string/str-two-way.h: Include <sys/param.h>.
3760         (MAX): Macro removed.
3761
3762         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3763         Move #define and #undef of memmove to just before and after
3764         including <string.h>.
3765
3766         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3767         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3768         and after including <string.h>.  Move declarations of
3769         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3770         to before #include "string/memmove.c".
3771
3772         * include/dirent.h: Declare __getdirentries.
3773
3774         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3775         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3776
3777 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3778
3779         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3780         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3781         * sysdeps/i386/configure: Regenerated.
3782         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3783         STABS_CURRENT_FILE, and STABS_FUN.
3784         (END): Remove call to STABS_FUN_END.
3785         (STABS_CURRENT_FILE1): Delete.
3786         (STABS_CURRENT_FILE): Likewise.
3787         (STABS_FUN): Likewise.
3788         (STABS_FUN_END): Likewise.
3789         (STABS_FUN2): Likewise.
3790         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3791         * sysdeps/x86_64/configure: Regenerated.
3792
3793 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3794
3795         * elf/dl-open.c: Include <atomic.h>.
3796         * elf/dl-lookup.c: Likewise.
3797
3798 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3799
3800         * sysdeps/unix/sysv/linux/kernel-features.h
3801         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3802         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3803         unconditionally.
3804         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3805         unconditionally.
3806         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3807         condition on __ASSUME_CLONE_THREAD_FLAGS.
3808
3809 2012-08-14  Andreas Jaeger  <aj@suse.de>
3810
3811         * sysdeps/i386/fpu/libm-test-ulps: Update.
3812
3813 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3814
3815         * include/atomic.h (atomic_exchange_and_add): Split into ...
3816         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3817         New atomic macros.
3818
3819 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3820
3821         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3822
3823 2012-08-13  Jeff Law <law@redhat.com>
3824
3825         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3826         null byte in the output string.
3827
3828 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3829
3830         * sysdeps/unix/sysv/linux/kernel-features.h
3831         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3832         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3833         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3834         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3835         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3836         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3837         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3838
3839 2012-08-09  Jeff Law <law@redhat.com>
3840
3841         [BZ #13939]
3842         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3843         When avoid_arena is set, don't retry in the that arena.  Pick the
3844         next one, whatever it might be.
3845         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3846         (arena_lock): Pass in new parameter to arena_get2.
3847         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3848         arena_get2.
3849         (__libc_malloc): Unify retrying after main arena failure with
3850         __libc_memalign version.
3851         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3852
3853 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3854
3855         [BZ #14166]
3856         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3857         to __redirect_strstr.
3858         (__strstr_sse42): Use typeof __redirect_strstr.
3859         (__strstr_ia32): Likewise.
3860         (__libc_strstr): New prototype.
3861         (strstr): Renamed to ...
3862         (__libc_strstr): This.
3863         (strstr): New strong alias of __libc_strstr.
3864         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3865         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3866         __redirect_time.
3867         Include <time.h>.
3868         (__libc_time): New prototype.
3869         (time_ifunc): Replace time with __libc_time.
3870         (time): New strong alias and hidden definition of __libc_time.
3871         (__GI_time): Remove strong alias.
3872         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3873         Include <stddef.h>.
3874         (memmove): Redefined to __redirect_memmove.
3875         (__memmove_sse2): Use typeof __redirect_memmove.
3876         (__memmove_ssse3): Likewise.
3877         (__memmove_ssse3_back): Likewise.
3878         (__libc_memmove): New prototype.
3879         (memmove): Renamed to ...
3880         (__libc_memmove): This.
3881         (memmove): New strong alias of __libc_memmove.
3882
3883 2012-08-08  Mark Salter  <msalter@redhat.com>
3884
3885         * elf/elf.h
3886         (R_MN10300_TLS_GD): Define.
3887         (R_MN10300_TLS_LD): Likewise.
3888         (R_MN10300_TLS_LDO): Likewise.
3889         (R_MN10300_TLS_GOTIE): Likewise.
3890         (R_MN10300_TLS_IE): Likewise.
3891         (R_MN10300_TLS_LE): Likewise.
3892         (R_MN10300_TLS_DTPMOD): Likewise.
3893         (R_MN10300_TLS_DTPOFF): Likewise.
3894         (R_MN10300_TLS_TPOFF): Likewise.
3895         (R_MN10300_SYM_DIFF): Likewise.
3896         (R_MN10300_ALIGN): Likewise.
3897         (R_MN10300_NUM): Update.
3898
3899 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3900
3901         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3902         Remove.
3903
3904 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3905
3906         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3907
3908         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3909         sysdeps/unix -> sysdeps/posix move.
3910         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3911
3912 2012-08-07      Allan McRae     <allan@archlinux.org>
3913
3914         [BZ #14303]
3915         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3916         (SUNOS_CPP): Likewise.
3917         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3918         not found.
3919         (open_input): Call CPP using execvp.
3920
3921 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3922
3923         * sysdeps/unix/sysv/linux/kernel-features.h
3924         (__ASSUME_PROT_GROWSUPDOWN): Remove.
3925         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3926         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3927         (__ASSUME_WAITID_SYSCALL): Likewise.
3928         * sysdeps/unix/sysv/linux/dl-execstack.c
3929         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
3930         code unconditional.
3931         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
3932         conditional code.
3933         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
3934         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
3935         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
3936         code.
3937         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
3938         unconditional.
3939         [__ASSUME_WAITID_SYSCALL]: Likewise.
3940         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
3941
3942 2012-08-07  Roland McGrath  <roland@hack.frob.com>
3943
3944         * sysdeps/unix/closedir.c: Renamed to ...
3945         * sysdeps/posix/closedir.c: ... here.
3946         * sysdeps/unix/dirfd.c: Renamed to ...
3947         * sysdeps/posix/dirfd.c: ... here.
3948         * sysdeps/unix/dirstream.h: Renamed to ...
3949         * sysdeps/posix/dirstream.h: ... here.
3950         * sysdeps/unix/fdopendir.c: Renamed to ...
3951         * sysdeps/posix/fdopendir.c: ... here.
3952         * sysdeps/unix/opendir.c: Renamed to ...
3953         * sysdeps/posix/opendir.c: ... here.
3954         * sysdeps/unix/readdir.c: Renamed to ...
3955         * sysdeps/posix/readdir.c: ... here.
3956         * sysdeps/unix/readdir_r.c: Renamed to ...
3957         * sysdeps/posix/readdir_r.c: ... here.
3958         * sysdeps/unix/rewinddir.c: Renamed to ...
3959         * sysdeps/posix/rewinddir.c: ... here.
3960         * sysdeps/unix/seekdir.c: Renamed to ...
3961         * sysdeps/posix/seekdir.c: ... here.
3962         * sysdeps/unix/telldir.c: Renamed to ...
3963         * sysdeps/posix/telldir.c: ... here.
3964         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3965         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3966         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3967         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3968
3969         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3970         * bits/fcntl.h: ... here.
3971
3972         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3973         not 0.
3974         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3975         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3976         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3977         (struct flock): Move l_start, l_len to the beginning.
3978         Use __pid_t for l_pid.
3979         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3980         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3981         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3982         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3983         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3984         [__USE_LARGEFILE64] (struct flock64): New type.
3985         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3986
3987         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3988         * bits/dirent.h: ... here.
3989
3990         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3991         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3992
3993 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3994
3995         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3996         Change from 2.6.0 to 2.6.16.
3997         * sysdeps/unix/sysv/linux/configure: Regenerated.
3998         * sysdeps/unix/sysv/linux/kernel-features.h
3999         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4000         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4001         version.
4002         (__ASSUME_UTIMES): Likewise.
4003         (__ASSUME_CLONE_STOPPED): Remove.
4004         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4005         architectures, not kernel version.
4006         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4007         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4008         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4009         (__ASSUME_WAITID_SYSCALL): Likewise.
4010         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4011         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4012         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4013         refer to older versions.
4014
4015 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4016
4017         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4018         Define alphasort64 as an alias.
4019         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4020         Define versionsort64 as an alias.
4021         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4022         Define scandir64 as an alias.
4023         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4024         Define scandirat64 as an alias.
4025         * dirent/alphasort64.c (alphasort64):
4026         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4027         * dirent/versionsort64.c: Likewise.
4028         * dirent/scandir64.c: Likewise.
4029         * dirent/scandirat64.c: Likewise.
4030         * sysdeps/wordsize-64/alphasort.c: File removed.
4031         * sysdeps/wordsize-64/alphasort64.c: File removed.
4032         * sysdeps/wordsize-64/scandir.c: File removed.
4033         * sysdeps/wordsize-64/scandir64.c: File removed.
4034         * sysdeps/wordsize-64/scandirat.c: File removed.
4035         * sysdeps/wordsize-64/scandirat64.c: File removed.
4036         * sysdeps/wordsize-64/versionsort.c: File removed.
4037         * sysdeps/wordsize-64/versionsort64.c: File removed.
4038         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4039         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4040         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4041         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4042         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4043         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4044         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4045         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4046
4047         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4048         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4049         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4050         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4051         [defined __arch64__ || defined __sparcv9]
4052         (__INO_T_MATCHES_INO64_T): New macro.
4053         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4054         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4055         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4056         * sysdeps/unix/sysv/linux/bits/dirent.h
4057         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4058         (_DIRENT_MATCHES_DIRENT64): New macro.
4059
4060         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4061         Define lockf64 as an alias.
4062         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4063         Define fseeko64 as an alias.
4064         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4065         Define ftello64 as an alias.
4066         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4067         Define _IO_fgetpos64 and fgetpos64 as aliases.
4068         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4069         Define _IO_fsetpos64 and fsetpos64 as aliases.
4070         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4071         Conditionalize body on this.
4072         * libio/fseeko64.c: Likewise.
4073         * libio/ftello64.c: Likewise.
4074         * libio/iofgetpos64.c: Likewise.
4075         * libio/iofsetpos64.c: Likewise.
4076         * sysdeps/wordsize-64/lockf.c: File removed.
4077         * sysdeps/wordsize-64/lockf64.c: File removed.
4078         * sysdeps/wordsize-64/fseeko.c: File removed.
4079         * sysdeps/wordsize-64/fseeko64.c: File removed.
4080         * sysdeps/wordsize-64/ftello.c: File removed.
4081         * sysdeps/wordsize-64/ftello64.c: File removed.
4082         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4083         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4084         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4085         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4086         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4087         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4088         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4089         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4090         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4091         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4092         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4093         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4094         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4095         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4096
4097         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4098         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4099         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4100         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4101         [defined __arch64__ || defined __sparcv9]
4102         (__OFF_T_MATCHES_OFF64_T): New macro.
4103         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4104         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4105         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4106         (__OFF_T_MATCHES_OFF64_T): New macro.
4107
4108 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4109
4110         * stdlib/secure-getenv.c (__secure_getenv): Replace
4111         GLIBC_2_16 with GLIBC_2_17.
4112
4113 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4114
4115         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4116         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4117
4118 2012-08-03  David S. Miller  <davem@davemloft.net>
4119
4120         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4121
4122 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4123
4124         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4125         Remove.
4126         (__ASSUME_CORRECT_SI_PID): Likewise.
4127         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4128         (__ASSUME_TMPFS_NAME): Likewise.
4129         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4130         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4131         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4132         (HAVE_AUX_SECURE): Make definition unconditional.
4133         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4134         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4135
4136 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4137
4138         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4139         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4140         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4141         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4142         __eloop_threshold instead of SYMLOOP_MAX.
4143
4144         * sysdeps/generic/eloop-threshold.h: New file.
4145         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4146         of MAXSYMLINKS.
4147         * elf/chroot_canon.c (chroot_canon): Likewise.
4148
4149 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4150
4151         [BZ #13717]
4152         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4153         Change to 2.6.0 everywhere.
4154         * sysdeps/unix/sysv/linux/configure: Regenerated.
4155         * sysdeps/unix/sysv/linux/kernel-features.h
4156         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4157         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4158         kernel versions.
4159         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4160         (__ASSUME_FUTEX_REQUEUE): Remove.
4161         (__ASSUME_STATFS64): Define unconditionally.
4162         (__ASSUME_AT_SECURE): Likewise.
4163         (__ASSUME_CORRECT_SI_PID): Likewise.
4164         (__ASSUME_TGKILL): Define without depending on kernel version for
4165         i386.
4166         (__ASSUME_UTIMES): Likewise.
4167         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4168         kernel version.
4169         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4170         (__ASSUME_TMPFS_NAME): Likewise.
4171         * README: Update reference to Linux kernel versions.
4172
4173 2012-08-02  Marek Polacek  <polacek@redhat.com>
4174
4175         [BZ# 14150]
4176         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4177         libc_cv_asm_type_prefix with %.
4178         * configure: Regenerated.
4179         * include/libc-symbols.h: Remove comment about
4180         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4181         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4182         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4183         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4184         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4185         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4186         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4187         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4188         * elf/tst-unique2mod1.c: Likewise.
4189         * elf/tst-unique1mod2.c: Likewise.
4190         * elf/tst-unique1mod1.c: Likewise.
4191         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4192         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4193         Replace ASM_TYPE_DIRECTIVE with .type.
4194         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4195         * sysdeps/i386/sysdep.h: Likewise.
4196         * sysdeps/x86_64/sysdep.h: Likewise.
4197         * sysdeps/sh/sysdep.h: Likewise.
4198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4199         Do not define ASM_TYPE_DIRECTIVE.
4200         * sysdeps/powerpc/sysdep.h: Likewise.
4201         * sysdeps/powerpc/powerpc32/sysdep.h:
4202         Replace ASM_TYPE_DIRECTIVE with .type.
4203         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4204         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4205         * sysdeps/i386/fpu/e_powf.S: Likewise.
4206         * sysdeps/i386/fpu/e_expl.S: Likewise.
4207         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4208         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4209         * sysdeps/i386/fpu/e_pow.S: Likewise.
4210         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4211         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4212         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4213         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4214         * sysdeps/i386/fpu/e_log2.S: Likewise.
4215         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4216         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4217         * sysdeps/i386/fpu/e_powl.S: Likewise.
4218         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4219         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4220         * sysdeps/i386/fpu/e_logl.S: Likewise.
4221         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4222         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4223         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4224         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4225         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4226         * sysdeps/i386/fpu/e_log.S: Likewise.
4227         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4228         * sysdeps/i386/fpu/e_logf.S: Likewise.
4229         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4230         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4231         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4232         * sysdeps/i386/fpu/e_log10.S: Likewise.
4233         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4234         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4235         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4236         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4237         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4238         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4239         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4240         * sysdeps/i386/i686/strtok.S: Likewise.
4241         * sysdeps/i386/i386-mcount.S: Likewise.
4242         * sysdeps/i386/strtok.S: Likewise.
4243         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4244         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4245         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4246         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4247         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4248         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4249         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4250         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4251         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4252         * sysdeps/x86_64/_mcount.S: Likewise.
4253         * sysdeps/x86_64/strtok.S: Likewise.
4254         * sysdeps/sh/_mcount.S: Likewise.
4255
4256 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4257
4258         * libio/iofopen.c: Include <fcntl.h>.
4259         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4260         (_IO_fopen64, fopen64): Define as aliases.
4261         * libio/iofopen64.c: Include <fcntl.h>.
4262         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4263         Conditionalize body on this.
4264         * sysdeps/wordsize-64/iofopen.c: File removed.
4265         * sysdeps/wordsize-64/iofopen64.c: File removed.
4266
4267 2012-08-01  Marek Polacek  <polacek@redhat.com>
4268
4269         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4270         Use dlfcn directly instead of a variable.
4271         (binfmt-subdir): Do not define.
4272         (dlfcn): Likewise.
4273
4274 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4275
4276         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4277         Remove all definitions.
4278         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4279         <kernel-features.h>.
4280         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4281         (miss_F_GETOWN_EX): Remove all definitions.
4282         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4283         macro definition.
4284         [!__ASSUME_FCNTL64]: Remove conditional code.
4285         [__ASSUME_FCNTL64]: Make code unconditional.
4286         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4287         <kernel-features.h>.
4288         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4289         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4290         (lockf64) [__NR_fcntl64]: Make code unconditional.
4291         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4292
4293         * sysdeps/unix/sysv/linux/kernel-features.h
4294         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4295         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4296         Make code unconditional.
4297         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4298         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4300         [__NR_vfork]: Make code unconditional.
4301         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4302         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4304         [__NR_vfork]: Make code unconditional.
4305         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4306         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4307
4308 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4309
4310         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4311         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4312
4313         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4314         Define mkstemp64 as an alias.
4315         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4316         Define mkstemps64 as an alias.
4317         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4318         Define mkostemp64 as an alias.
4319         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4320         Define mkostemps64 as an alias.
4321         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4322         Conditionalize body on this.
4323         * misc/mkostemp64.c: Likewise.
4324         * misc/mkostemps64.c: Likewise.
4325         * misc/mkstemps64.c: Likewise.
4326         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4327         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4328         * sysdeps/wordsize-64/mkostemp.c: File removed.
4329         * sysdeps/wordsize-64/mkstemp.c: File removed.
4330         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4331         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4332         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4333         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4334
4335         [BZ #14138]
4336         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4337         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4338         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4339         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4340
4341         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4342         compat_symbol macros from <shlib-compat.h> rather than the underlying
4343         default_symbol_version and symbol_version macros, so that DEFAULT
4344         lines in shlib-versions are respected.
4345         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4346
4347 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4348
4349         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4350         Declare with warn_unused_result.
4351         (setgid, setregid, setegid, setresgid): Likewise.
4352         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4353         Likewise.
4354         * WUR-REPORT: Remove set*id functions.
4355
4356 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4357
4358         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4359
4360 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4361
4362         * include/sys/socket.h (__libc_accept, __libc_accept4):
4363         Add attribute_hidden.
4364         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4365
4366         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4367         use of PTR_MANGLE.
4368         * inet/getnetgrent_r.c (setup): Likewise.
4369
4370         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4371
4372 2012-07-31  David S. Miller  <davem@davemloft.net>
4373
4374         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4375
4376 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4377
4378         [BZ #13629]
4379         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4380         value between 1.0 and 2.0 and smaller part has absolute value less
4381         than 1.0.
4382         * math/s_clog10.c (__clog10): Likewise.
4383         * math/s_clog10f.c (__clog10f): Likewise.
4384         * math/s_clog10l.c (__clog10l): Likewise.
4385         * math/s_clogf.c (__clogf): Likewise.
4386         * math/s_clogl.c (__clogl): Likewise.
4387         * math/libm-test.inc (clog_test): Add more tests.
4388         (clog10_test): Likewise.
4389         * sysdeps/i386/fpu/libm-test-ulps: Update.
4390         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4391
4392 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4393
4394         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4395         Exit with zero in case no suitable GID is found, and write a
4396         message to standard error.
4397
4398 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4399
4400         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4401         rather than to 1.
4402         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4403         (MAXPATHLEN): Removed.
4404         (NOGROUP, NODEV): New macros.
4405         (setbit, clrbit, isset, isclr): New macros.
4406         (howmany, roundup, powerof2): New macros.
4407         (DEV_BSIZE): New macro.
4408
4409         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4410         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4411
4412         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4413         definition on [!__NO_LONG_DOUBLE_MATH].
4414
4415         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4416         PTR_MANGLE and PTR_DEMANGLE.
4417
4418         * socket/accept4.c (accept4): Rename to __libc_accept4.
4419         Define accept4 as a weak alias.
4420
4421         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4422         on [_DIRENT_HAVE_D_TYPE].
4423         * io/ftw.c (ftw_dir): Likewise.
4424
4425         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4426
4427         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4428
4429         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4430         Use the BSD numbers rather than the arbitrary ones we had.
4431         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4432         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4433         (SIGXCPU, SIGXFSZ): New macros.
4434         (_NSIG): Now 32.
4435
4436         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4437         initializer on [_LIBC_REENTRANT].
4438
4439         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4440         definitions inside [_POSIX_MAPPED_FILES].
4441
4442         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4443
4444         * dirent/opendir.c: Include <fcntl.h>.
4445
4446         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4447         (__libc_getspecific): Likewise.
4448         (__libc_key_create): Likewise.
4449
4450         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4451         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4452         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4453         (tmpfile64): Define as alias.
4454         * sysdeps/wordsize-64/tmpfile.c: File removed.
4455         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4456         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4457         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4458
4459         * stdio-common/vfscanf.c: Include <stdbool.h>.
4460         * nss/makedb.c: Likewise.
4461         * stdio-common/_i18n_number.h: Likewise.
4462         * argp/argp-help.c: Likewise.
4463         * posix/wordexp.c: Likewise.
4464         * sysdeps/posix/spawni.c: Likewise.
4465         * nss/nss_files/files-initgroups.c: Likewise.
4466         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4467         * nss/nss_files/files-initgroups.c: Likewise.
4468         * nss/nss_db/db-netgrp.c: Likewise.
4469         * nss/nss_db/db-initgroups.c: Likewise.
4470         * io/fchmodat.c: Include <sys/stat.h>.
4471
4472         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4473         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4474
4475         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4476         [HAVE_MMAP].
4477
4478         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4479         Add multiple inclusion protection.
4480
4481 2012-07-27  David S. Miller  <davem@davemloft.net>
4482
4483         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4484
4485 2012-07-27  Gary Benson  <gbenson@redhat.com>
4486
4487         [BZ #14298]
4488         * elf/rtld.c: Include <stap-probe.h>.
4489         (dl_main): Added static probes "init_start" and "init_complete".
4490         * elf/dl-load.c: Include <stap-probe.h>.
4491         (lose): Take new parameter "nsid".
4492         Added static probe "map_failed".
4493         (_dl_map_object_from_fd): Pass namespace id to lose.
4494         Added static probe "map_start".
4495         (open_verify): Pass namespace id to lose.
4496         * elf/dl-open.c: Include <stap-probe.h>.
4497         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4498         and "reloc_complete".
4499         * elf/dl-close.c: Include <stap-probe.h>.
4500         (_dl_close_worker): Added static probes "unmap_start" and
4501         "unmap_complete".
4502         * elf/rtld-debugger-interface.txt: New file documenting the above.
4503
4504 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4505
4506         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4507         rather than a string variable.
4508         * sunrpc/rpc_main.c (h_output): Likewise.
4509         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4510
4511 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4512
4513         * inet/check_native.c: New file.
4514
4515 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4516
4517         [BZ #13629]
4518         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4519         if larger part has absolute value 1.0.
4520         * math/s_clog10.c (__clog10): Likewise.
4521         * math/s_clog10f.c (__clog10f): Likewise.
4522         * math/s_clog10l.c (__clog10l): Likewise.
4523         * math/s_clogf.c (__clogf): Likewise.
4524         * math/s_clogl.c (__clogl): Likewise.
4525         * math/libm-test.inc (clog_test): Add more tests.
4526         (clog10_test): Likewise.
4527         * sysdeps/i386/fpu/libm-test-ulps: Update.
4528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4529
4530         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4531         (pltexit): Likewise.
4532         (La_regs): Likewise.
4533         (La_retval): Likewise.
4534         (int_retval): Likewise.
4535         Update #error for removed macros to refer only to definitions in
4536         tst-audit.h.
4537         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4538         macro.
4539         (pltexit): Likewise.
4540         (La_regs): Likewise.
4541         (La_retval): Likewise.
4542         (int_retval): Likewise.
4543         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4544         macro.
4545         (pltexit): Likewise.
4546         (La_regs): Likewise.
4547         (La_retval): Likewise.
4548         (int_retval): Likewise.
4549         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4550         macro.
4551         (pltexit): Likewise.
4552         (La_regs): Likewise.
4553         (La_retval): Likewise.
4554         (int_retval): Likewise.
4555         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4556         macro.
4557         (pltexit): Likewise.
4558         (La_regs): Likewise.
4559         (La_retval): Likewise.
4560         (int_retval): Likewise.
4561         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4562         macro.
4563         (pltexit): Likewise.
4564         (La_regs): Likewise.
4565         (La_retval): Likewise.
4566         (int_retval): Likewise.
4567         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4568         macro.
4569         (pltexit): Likewise.
4570         (La_regs): Likewise.
4571         (La_retval): Likewise.
4572         (int_retval): Likewise.
4573         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4574         macro definitions in tst-audit.h.
4575         * sysdeps/i386/tst-audit.h: New file.
4576         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4577         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4578         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4579         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4580         * sysdeps/sh/tst-audit.h: Likewise.
4581         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4582         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4583         * sysdeps/x86_64/tst-audit.h: Likewise.
4584
4585 2012-07-26  Andreas Jaeger  <aj@suse.de>
4586
4587         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4588         ptrace.
4589
4590         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4591         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4592         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4593         PTRACE_O_MASK.
4594         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4595         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4596         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4597
4598         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4599         value.
4600
4601         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4602         _sigsys.
4603         (si_call_addr, si_syscall, si_arch): Define new macro.
4604         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4605         _sigsys.
4606         (si_call_addr, si_syscall, si_arch): Define new marcro.
4607         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4608         _sigsys.
4609         (si_call_addr, si_syscall, si_arch): Define new macro.
4610         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4611         _sigsys.
4612         (si_call_addr, si_syscall, si_arch): Define new macro.
4613
4614 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4615
4616         [BZ #13717]
4617         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4618         Change to 2.4.21 where previously 2.4.1.
4619         * sysdeps/unix/sysv/linux/configure: Regenerated.
4620         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4621         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4622         Linux kernel version.
4623         (__ASSUME_STD_AUXV): Remove.
4624         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4625         kernel version.
4626         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4627         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4628         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4629         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4630         (__ASSUME_NETLINK_SUPPORT): Likewise.
4631         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4632         (__no_netlink_support): Remove conditional definition.
4633         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4634         Remove.
4635         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4636         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4637         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4638         (if_nameindex_ioctl): Remove.
4639         (if_nameindex_netlink): Do not handle __no_netlink_support.
4640         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4641         code.
4642         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4643         Remove conditional code.
4644         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4645         code.
4646         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4647         unconditional.
4648         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4649         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4650         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4651         Remove.
4652         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4653         [!__ASSUME_STD_AUXV]: Remove conditional code.
4654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4655         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4656         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4658         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4659         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4660         code.
4661         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4663         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4664         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4665         conditional code.
4666         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4668         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4669         code.
4670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4671         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4672         conditional code.
4673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4674         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4675         code unconditional.
4676         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4677         conditional code.
4678         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4679         unconditional.
4680         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4681         conditional code.
4682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4683         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4684         unconditional.
4685         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4686         conditional code.
4687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4688         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4689         code unconditional.
4690         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4691         conditional code.
4692         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4693         unconditional.
4694         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4695         conditional code.
4696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4697         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4698         code unconditional.
4699         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4700         conditional code.
4701         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4702         unconditional.
4703         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4704         conditional code.
4705
4706 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4707
4708         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4709         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4710         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4711         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4712         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4713         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4714         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4715         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4716         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4717         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4718         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4719         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4720         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4721         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4722         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4723         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4724         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4725         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4726         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4727         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4728         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4729         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4730         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4731
4732 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4733
4734         * Versions.def: Add GLIBC_2.17.
4735         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4736         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4737         Introduce __libc_secure_getenv.
4738         * stdlib/Versions (2.17): Add secure_getenv
4739         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4740         * stdlib/secure-getenv.c: Rename __secure_getenv to
4741         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4742         symbol __secure_getenv for GLIBC_2.0.
4743         * stdlib/tst-secure-getenv.c: New.
4744         * stdlib/Makefile (tests): Add testcase.
4745         * manual/startup.texi (Environment Access): Document
4746         secure_getenv.
4747         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4748         __libc_secure_getenv.
4749         * inet/ruserpass.c (ruserpass): Likewise.
4750         * malloc/mtrace.c (mtrace): Likewise.
4751         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4752         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4753         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4754         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4755         HAVE_SECURE_GETENV.
4756         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4757         __secure_getenv to __libc_secure_getenv.
4758         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4760         Likewise.
4761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4762         Likewise.
4763         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4764         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4765         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4766         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4767         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4768         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4769         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4770
4771 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4772
4773         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4774         (struct La_i86_retval): Likewise.
4775         (struct La_x86_64_regs): Likewise.
4776         (struct La_x86_64_retval): Likewise.
4777         (struct La_x32_regs): Likewise.
4778         (struct La_x32_retval): Likewise.
4779         (struct La_ppc32_regs): Likewise.
4780         (struct La_ppc32_retval): Likewise.
4781         (struct La_ppc64_regs): Likewise.
4782         (struct La_ppc64_retval): Likewise.
4783         (struct La_sh_regs): Likewise.
4784         (struct La_sh_retval): Likewise.
4785         (struct La_s390_32_regs): Likewise.
4786         (struct La_s390_32_retval): Likewise.
4787         (struct La_s390_64_regs): Likewise.
4788         (struct La_s390_64_retval): Likewise.
4789         (struct La_sparc32_regs): Likewise.
4790         (struct La_sparc32_retval): Likewise.
4791         (struct La_sparc64_regs): Likewise.
4792         (struct La_sparc64_retval): Likewise.
4793         (struct audit_ifaces): Remove architecture-specific pltenter and
4794         pltexit members.
4795         * sysdeps/i386/ldsodefs.h: New file.
4796         * sysdeps/powerpc/ldsodefs.h: Likewise.
4797         * sysdeps/s390/ldsodefs.h: Likewise.
4798         * sysdeps/sh/ldsodefs.h: Likewise.
4799         * sysdeps/sparc/ldsodefs.h: Likewise.
4800         * sysdeps/x86_64/ldsodefs.h: Likewise.
4801
4802 2012-07-25  Marek Polacek  <polacek@redhat.com>
4803
4804         [BZ #6808]
4805         * math/libm-test.inc (yn_test): Add another test.
4806         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4807         to ERANGE when the result is +-Inf.
4808         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4809         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4810         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4811         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4812
4813 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4814
4815         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4816         equal to 0.
4817         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4818         clock_t.
4819         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4820
4821 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4822
4823         * configure.in <sysdeps resolving>: Correct printing
4824         Implies_before.
4825         * configure: Regenerate.
4826
4827 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4828
4829         * math/w_ilogb.c: Include <limits.h>.
4830         * math/w_ilogbl.c: Likewise.
4831
4832 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4833
4834         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4835         va_copy.  Document allowing for unavailable va_copy only as
4836         pre-C99 compatibility.
4837         * manual/string.texi (Copying and Concatenation): Use va_copy
4838         instead of __va_copy in concat example.
4839
4840 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4841
4842         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4843         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4844         it if not null.
4845
4846         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4847         with O_NOLINK passed to __file_name_lookup.
4848
4849         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4850         with O_NOLINK passed to __file_name_lookup.
4851
4852         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4853         negative N or less than NGIDS.
4854
4855         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4856         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4857         enough.  Use memcpy instead of strncpy.
4858
4859 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4860
4861         * elf/Makefile (check-data): Remove.
4862         (localplt.data): New vpath directive.
4863         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4864         instead of $(check-data).
4865         * scripts/data/localplt-generic.data: Move to ...
4866         * sysdeps/generic/localplt.data: ... here.
4867         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4868         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4869         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4871         ... here.
4872         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4874         ... here.
4875         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4876         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4877         ... here.
4878         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4879         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4880         ... here.
4881         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4882         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4883         ... here.
4884         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4885         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4886         ... here.
4887
4888 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4889
4890         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4891         PPC32 and PPC64 files.
4892         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4893         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4894
4895 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4896
4897         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4898         __makecontext_ret to ...
4899         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4900         ... here and call exit if uc_link is NULL.  New file.
4901         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4902         __makecontext_ret.S.
4903         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4904         __makecontext_ret to ...
4905         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4906         ... here and call exit if uc_link is NULL.  New file.
4907         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4908         __makecontext_ret.S.
4909
4910 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4911
4912         * elf/elf.h (R_390_IRELATIVE): New definition.
4913         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4914         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4915         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4916         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4917         (elf_machine_lazy_rel): Likewise.
4918         * sysdeps/s390/dl-irel.h: New file.
4919         * sysdeps/s390/s390-64/memcpy.S: New asm code.
4920         * sysdeps/s390/s390-64/memset.S: New asm code.
4921         * sysdeps/s390/s390-64/memcmp.S: New asm code.
4922         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
4923         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
4924         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
4925         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
4926         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
4927         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
4928         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
4929         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
4930         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
4931         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
4932         * sysdeps/s390/s390-32/memcpy.S: New asm code.
4933         * sysdeps/s390/s390-32/memset.S: New asm code.
4934         * sysdeps/s390/s390-32/memcmp.S: New asm code.
4935
4936 2012-07-17  Marek Polacek  <polacek@redhat.com>
4937
4938         [BZ #14349]
4939         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
4940         * sysdeps/s390/s390-64/configure.in: Likewise.
4941         * sysdeps/sparc/configure.in: Likewise.
4942         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
4943         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
4944         * sysdeps/i386/configure.in: Likewise.
4945         * sysdeps/x86_64/configure.in: Likewise.
4946         * sysdeps/sh/configure.in: Likewise.
4947         * sysdeps/s390/s390-32/configure: Regenerated.
4948         * sysdeps/s390/s390-64/configure: Likewise.
4949         * sysdeps/x86_64/configure: Likewise.
4950         * sysdeps/sh/configure: Likewise.
4951         * sysdeps/powerpc/powerpc64/configure: Likewise.
4952         * sysdeps/powerpc/powerpc32/configure: Likewise.
4953         * sysdeps/sparc/configure: Likwise.
4954         * sysdeps/i386/configure: Likewise.
4955
4956         * elf/dl-open.c: Comment fixes.
4957
4958 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4959
4960         * Makefile [CXX] (check-data): Remove.
4961         [CXX] (c++-types.data): New vpath directive.
4962         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4963         vpath.  Do not allow for C++ type data being missing.
4964         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4965         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4966         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4967         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4968         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4969         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4970         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4972         ... here.
4973         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4975         ... here.
4976         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4977         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4978         ... here.
4979         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4980         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4981         ... here.
4982         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4983         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4984         ... here.
4985         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4986         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4987         ... here.
4988         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4989         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4990         ... here.
4991         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4992         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4993
4994         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4995         definitions to architecture-specific files.
4996         (TLS_IE): Likewise.
4997         (TLS_LD): Likewise.
4998         (TLS_GD): Likewise.
4999         * sysdeps/i386/tls-macros.h: New file.
5000         * sysdeps/powerpc/tls-macros.h: Likewise.
5001         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5002         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5003         * sysdeps/sh/tls-macros.h: Likewise.
5004         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5005         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5006         * sysdeps/x86_64/tls-macros.h: Likewise.
5007
5008 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5009
5010         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5011         zero value for regular exit case.
5012
5013         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5014         (__start_context): Preserve zero value for regular exit case.
5015
5016 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5017             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5018
5019         * manual/setjmp.texi (setcontext): Clarify normal process
5020         termination when uc_link is the null pointer.
5021         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5022         exit call.
5023
5024 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5025
5026         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5027         preprocessor.  Test for each exception mask separately.
5028
5029 2012-07-16  Andreas Jaeger  <aj@suse.de>
5030
5031         * po/ru.po: Update from translation team.
5032
5033 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5034
5035         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5036         equal to 0.
5037         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5038         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5039         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5040         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5041         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5042
5043 2012-07-13  Andreas Jaeger  <aj@suse.de>
5044
5045         * po/fr.po: Update from translation team.
5046
5047 2012-07-12  Marek Polacek  <polacek@redhat.com>
5048
5049         [BZ #14173]
5050         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5051         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5052         loop condition.
5053
5054 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5055
5056         [BZ #13717]
5057         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5058         Change to 2.4.1 where previously 2.4.0.
5059         * sysdeps/unix/sysv/linux/configure: Regenerated.
5060         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5061         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5062         version.
5063         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5064         (__ASSUME_AT_CLKTCK): Remove.
5065         (__ASSUME_AT_PAGESIZE): Likewise.
5066         (__ASSUME_AT_XID): Likewise.
5067         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5068         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5069         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5070         unconditionally.
5071         (HAVE_AUX_PAGESIZE): Likewise.
5072         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5073         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5074         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5075
5076 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5077
5078         [BZ #14307]
5079         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5080         the temporary buffer used to invoke __gethostbyname2_r,
5081         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5082         host_data / struct gaih_addrtuple.
5083         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5084         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5085         header file nss/nsswitch.h.
5086         * nss/nsswitch.h (global scope): Add definition of implementation
5087         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5088         resolv/nss_dns/dns-host.c).
5089
5090 2012-07-11  Andreas Jaeger  <aj@suse.de>
5091
5092         * po/fr.po: Update from translation team.
5093
5094         * po/sv.po: Update from translation team
5095         * po/fr.po: Another update from translation team.
5096
5097 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5098
5099         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5100         for subnormals or multiply small sinh result by itself.
5101         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5102         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5103
5104 2012-07-11  David S. Miller  <davem@davemloft.net>
5105
5106         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5107
5108 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5109
5110         [BZ #14347]
5111         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5112         (INTERNAL_MARK): Shift it here.
5113
5114 2012-07-10  Marek Polacek  <polacek@redhat.com>
5115
5116         [BZ #14151]
5117         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5118         libc_cv_asm_global_directive with .globl.
5119         * configure: Regenerated.
5120         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5121         with .globl.
5122         * sysdeps/i386/configure: Regenerated.
5123         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5124         with .globl.
5125         * sysdeps/x86_64/configure: Regenerated.
5126         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5127         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5128         * elf/tst-unique2mod2.c: Likewise.
5129         * elf/tst-unique2mod1.c: Likewise.
5130         * elf/tst-unique1mod2.c: Likewise.
5131         * elf/tst-unique1mod1.c: Likewise.
5132         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5133         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5134         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5135         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5136         * sysdeps/mach/sysdep.h: Likewise.
5137         * sysdeps/i386/sysdep.h: Likewise.
5138         * sysdeps/i386/i386-mcount.S: Likewise.
5139         * sysdeps/x86_64/_mcount.S: Likewise.
5140         * sysdeps/x86_64/sysdep.h: Likewise.
5141         * sysdeps/sh/_mcount.S: Likewise.
5142         * sysdeps/sh/sysdep.h: Likewise.
5143         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5144         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5145         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5146         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5147         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5148         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5149         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5150         * locale/localeinfo.h: Likewise.
5151         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5152         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5153
5154 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5155
5156         [BZ #14336]
5157         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5158         system".
5159         * manual/message.texi (The Uniforum approach): Likewise.
5160         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5161         (glibc iconv Implementation): Likewise.
5162
5163 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5164
5165         [BZ #14337]
5166         * math/s_clog.c (__clog): Avoid scaling a value down where that
5167         could result in underflow.
5168         * math/s_clog10.c (__clog10): Likewise.
5169         * math/s_clog10f.c (__clog10f): Likewise.
5170         * math/s_clog10l.c (__clog10l): Likewise.
5171         * math/s_clogf.c (__clogf): Likewise.
5172         * math/s_clogl.c (__clogl): Likewise.
5173         * math/libm-test.inc (clog_test): Add more tests.
5174         (clog10_test): Likewise.
5175         * sysdeps/i386/fpu/libm-test-ulps: Update.
5176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5177
5178 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5179
5180         [BZ #14283]
5181         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5182         by 7 not 8 to examine high bit of fractional part.
5183
5184         [BZ #14042]
5185         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5186         for call to __mcount_internal.
5187         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5188         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5189         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5190
5191 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5192
5193         [BZ #14154]
5194         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5195         approximation for values within 0x1p-13f of an odd multiple of
5196         pi/4.
5197         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5198         exception.  Add more tests.
5199         * sysdeps/i386/fpu/libm-test-ulps: Update.
5200
5201         [BZ #6778]
5202         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5203         inputs and return -1 for them.  Do not check for +Inf in case not
5204         reachable for +Inf.
5205         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5206         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5207         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5208         and return -1 for them.  Do not check for +Inf in case not
5209         reachable for +Inf.
5210         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5211         define.
5212         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5213         and return -1 for them.  Do not check for +Inf in case not
5214         reachable for +Inf.
5215         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5216         spurious underflow.
5217         * sysdeps/i386/fpu/libm-test-ulps: Update.
5218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5219
5220 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5221
5222         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5223
5224 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5225
5226         [BZ #14157]
5227         [BZ #14331]
5228         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5229         could result in spurious underflow.  Scale down values above
5230         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5231         * math/s_csqrtf.c (__csqrtf): Likewise.
5232         * math/s_csqrtl.c (__csqrtl): Likewise.
5233         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5234         spurious underflow.
5235         * sysdeps/i386/fpu/libm-test-ulps: Update.
5236         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5237
5238 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5239
5240         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5241         xopen-msg.sed.
5242         * catgets/xopen-msg.awk: New file.
5243         * catgets/xopen-msg.sed: Removed.
5244
5245         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5246         po2text.sed.
5247         * intl/po2test.awk: New file.
5248         * intl/po2test.sed: Removed.
5249
5250 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5251
5252         [BZ #14328]
5253         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5254         or multiply small sinh result by itself.
5255         * math/s_ctanf.c (__ctanf): Likewise.
5256         * math/s_ctanh.c (__ctanh): Likewise.
5257         * math/s_ctanhf.c (__ctanhf): Likewise.
5258         * math/s_ctanhl.c (__ctanhl): Likewise.
5259         * math/s_ctanl.c (__ctanl): Likewise.
5260         * math/libm-test.inc (ctan_test_tonearest): New function.
5261         (ctan_test_towardzero): Likewise.
5262         (ctan_test_downward): Likewise.
5263         (ctan_test_upward): Likewise.
5264         (ctanh_test_tonearest): Likewise.
5265         (ctanh_test_towardzero): Likewise.
5266         (ctanh_test_downward): Likewise.
5267         (ctanh_test_upward): Likewise.
5268         (main): Call these new functions.
5269         * sysdeps/i386/fpu/libm-test-ulps: Update.
5270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5271
5272 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5273
5274         * .gitignore: Delete /ports entry.
5275
5276 2012-07-03  Andreas Jaeger  <aj@suse.de>
5277
5278         * po/bg.po: Update from translation team.
5279         * po/cs.po: Likewise.
5280         * po/de.po: Likewise.
5281         * po/hr.po: Likewise.
5282         * po/nl.pl: Likewise.
5283         * po/pl.po: Likewise.
5284         * po/vi.po: Likewise.
5285
5286 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5287
5288         * Makeconfig [!+link] (+link-before-libc): New variable.
5289         [!+link] (+link-after-libc): Likewise.
5290         [!+link] (+link-tests): Likewise.
5291         [!+link] (+link): Define in terms of $(+link-before-libc) and
5292         $(+link-after-libc).
5293         [!+link-static] (+link-static-before-libc): New variable.
5294         [!+link-static] (+link-static-after-libc): Likewise.
5295         [!+link-static] (+link-static-tests): Likewise.
5296         [!+link-static] (+link-static): Define in terms of
5297         $(+link-static-before-libc) and $(+link-static-after-libc).
5298         [build-shared] (link-libc-before-gnulib): New variable.
5299         [build-shared] (link-libc-tests): Likewise.
5300         [build-shared] (link-libc): Define in terms of
5301         $(link-libc-before-gnulib).
5302         [!build-shared] (link-libc-tests): New variable.
5303         (link-libc-static-tests): New variable.
5304         [!gnulib] (gnulib-arch): New variable.
5305         [!gnulib] (gnulib-tests): Likewise.
5306         [!gnulib] (static-gnulib-arch): Likewise.
5307         [!gnulib] (static-gnulib-tests): Likewise.
5308         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5309         Define with "=" instead of ":=".
5310         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5311         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5312         * Rules (binaries-all-notests): New variable.
5313         (binaries-all-tests): Likewise.
5314         (binaries-static-notests): Likewise.
5315         (binaries-static-tests): Likewise.
5316         (binaries-all): Define using $(binaries-all-notests) and
5317         $(binaries-all-tests).
5318         (binaries-static): Define using $(binaries-static-notests) and
5319         $(binaries-static-tests).
5320         (binaries-shared-tests): New variable.
5321         (binaries-shared-notests): Likewise.
5322         (binaries-shared): Remove variable.
5323         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5324         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5325         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5326         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5327         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5328         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5329         * elf/Makefile (sln-modules): New variable.
5330         (extra-objs): Add $(sln-modules:=.o).
5331         (ldconfig-modules): Add static-stubs.
5332         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5333         * elf/static-stubs.c: New file.
5334
5335         [BZ #14283]
5336         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5337         by 7 not 8 to examine high bit of fractional part.  Use volatile
5338         variables when splitting into final array of floats if
5339         __FLT_EVAL_METHOD__ != 0.
5340         * math/libm-test.inc (cos_test): Add another test.
5341         (sin_test): Likewise.
5342         * sysdeps/i386/fpu/libm-test-ulps: Update.
5343
5344         [BZ #14273]
5345         * math/libm-test.inc (cosh_test): Add more tests.
5346
5347         * version.h (RELEASE): Set to "development".
5348         (VERSION): Set to "2.16.90".
5349
5350 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5351
5352         * NEWS: Update copyright. Remove last-updated date.
5353         Mention math library bug fixes and timezone data changes.
5354         * README: Mention GNU/Hurd, x32, and HPPA support status.
5355
5356 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5357
5358         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5359
5360 2012-06-27  Andreas Jaeger  <aj@suse.de>
5361
5362         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5363
5364 2012-06-25  Andreas Jaeger  <aj@suse.de>
5365
5366         * sysdeps/s390/fpu/libm-test-ulps: Update.
5367
5368 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5369             Thomas Schwinge  <thomas@codesourcery.com>
5370
5371         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5372         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5373         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5374         fanotify_mark.
5375
5376 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5377
5378         * sysdeps/mach/start.c: Remove file.
5379         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5380         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5381         * sysdeps/sh/init-first.c: Likewise.
5382
5383         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5384         registers for frame unwinding purposes, add CFI directives.
5385         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5386         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5387         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5388         Likewise.
5389
5390         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5391         __fortify_fail returning.
5392         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5393
5394         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5395         sysdeps/sh/____longjmp_chk.S.
5396         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5397         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5398         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5399         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5400
5401         * sysdeps/sh/abort-instr.h: New file.
5402         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5403         process in case exit returns.
5404
5405         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5406         initialize the GOT register before use.
5407
5408         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5409         calculation of ARGC > 4.
5410
5411         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5412         meaningful names to some local labels.
5413
5414 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5415             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5416
5417         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5418         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5419         (__arch_compare_and_exchange_val_16_acq): Likewise.
5420         (__arch_compare_and_exchange_val_32_acq): Likewise.
5421         (atomic_exchange_and_add): Fix gUSA sequence.
5422         (atomic_add): Likewise.
5423         (atomic_add_negative): Likewise.
5424         (atomic_add_zero): Likewise.
5425         (atomic_bit_test_set): Likewise.
5426
5427 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5428
5429         [BZ #13579]
5430         * include/link.h (struct link_map): Add l_free_initfini.
5431         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5432         l_initfini.
5433         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5434         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5435         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5436         set.
5437
5438 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5439
5440         * configure.in: Use AC_LANG_SOURCE.
5441         * configure: Regenerate.
5442
5443 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5444
5445         * configure.in (libc_cv_localstatedir): New substituted variable.
5446         * configure: Regenerated.
5447         * config.make.in (localstatedir): New variable, substituted from
5448         libc_cv_localstatedir.
5449         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5450         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5451         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5452         * sysdeps/gnu/configure: Regenerated.
5453
5454 2012-06-21  Jeff Law  <law@redhat.com>
5455
5456         [BZ #14277]
5457         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5458         free.  Simplify list management for _LIBC case.
5459
5460 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5461
5462         [BZ #14273]
5463         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5464         Clear sign bit of 64-bit integer value before comparing against
5465         overflow value.
5466
5467         * sysdeps/mach/configure: Regenerated.
5468
5469 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5470
5471         [BZ #14278]
5472         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5473
5474 2012-06-21  Jeff Law  <law@redhat.com>
5475
5476         [BZ #13882]
5477         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5478         uint16_t for elements in the "seen" array to avoid char overflows.
5479         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5480         * elf/dl-open.c (dl_open_worker): Likewise.
5481
5482 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5483
5484         * scripts/list-sources.sh: Scan PORTS for translations.
5485         * po/libc.pot: Regenerated.
5486
5487 2012-06-21  Andreas Jaeger  <aj@suse.de>
5488
5489         [BZ #12194]
5490         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5491         warning.
5492         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5493         * bits/byteswap-16.h (__bswap_16): Likewise.
5494         * bits/byteswap.h (__bswap_constant_16): Likewise.
5495
5496 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5497
5498         [BZ #14117]
5499         * sysdeps/i386/fpu_control.h: Removed.
5500         * sysdeps/x86_64/fpu_control.h: Moved to ...
5501         * sysdeps/x86/fpu_control.h: Here.
5502
5503         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5504         (_FPU_SETCW): Likewise.
5505
5506 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5507
5508         [BZ #14117]
5509         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5510         * sysdeps/x86/fpu/bits/mathinline.h: This.
5511         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5512
5513         [BZ #14050]
5514         [BZ #14117]
5515         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5516         functions if __x86_64__ is defined.
5517
5518 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5519
5520         * string/endian.h: Add !__ASSEMBLER__ condition for including
5521         conversion interfaces.
5522
5523 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5524
5525         [BZ #14241]
5526         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5527         of ABS(x) in calculating zero to negative powers other than odd
5528         integers.
5529         * math/libm-test.inc (pow_test): Add more tests.
5530
5531 2012-06-15  Andreas Jaeger  <aj@suse.de>
5532
5533         * manual/contrib.texi (Contributors): Update entry of Liubov
5534         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5535         Machado Filho.
5536
5537 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5538
5539         * string/string.h: Add __wur to GNU version of strerror_r.
5540
5541 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5542
5543         [BZ #14229]
5544         * string/Makefile (tests): Add tst-strtok_r.
5545         * string/tst-strtok_r.c: New file.
5546         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5547         RAX_LP/RDX_LP on SAVE_PTR.
5548
5549 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5550
5551         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5552
5553 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5554
5555         * libm_test.inc (csqrt_test): Allow more spurious underflow
5556         exceptions.
5557         (j0_test): Likewise.
5558         (j1_test): Likewise.
5559         (y0_test): Likewise.
5560         (y1_test): Likewise.
5561
5562 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5563
5564         * po/Makefile (libc.pot): Use UTF-8 charset.
5565
5566 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5567
5568         [BZ #14210]
5569         Suppress sign-conversion warning from FD_SET.
5570         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5571         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5572         not unsigned long int.
5573         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5574
5575 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5576
5577         [BZ #14050]
5578         [BZ #14117]
5579         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5580         __extern_always_inline instead of __extern_inline.
5581         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5582         (__signbit): Likewise.
5583         (__signbitl): Support C++ namespace.
5584         (lrintf): New inline function.
5585         (lrint): Likewise.
5586         (llrintf): Likewise.
5587         (llrint): Likewise.
5588         (fmaxf): Likewise.
5589         (fmax): Likewise.
5590         (fminf): Likewise.
5591         (fmin): Likewise.
5592         (rint): Likewise.
5593         (rintf): Likewise.
5594         (ceil): Likewise.
5595         (ceilf): Likewise.
5596         (floor): Likewise.
5597         (floorf): Likewise.
5598         (nearbyint): Likewise.
5599         (nearbyintf): Likewise.
5600
5601 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5602
5603         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5604         non-default versions.
5605
5606 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5607
5608         [BZ #14218]
5609         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5610
5611 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5612
5613         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5614         (FE_UPWARD, FE_DOWNWARD): Don't define.
5615         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5616         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5617
5618         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5619         reading it.
5620         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5621         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5622
5623 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5624
5625         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5626         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5627         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5628         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5629
5630 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5631
5632         [BZ #14117]
5633         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5634         * sysdeps/i386/fpu/Implies: New file.
5635         * sysdeps/x86_64/fpu/Implies: Likewise.
5636         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5637         * sysdeps/x86/fpu/bits/fenv.h: This.
5638
5639         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5640         __SSE_MATH__.
5641
5642 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5643
5644         [BZ #14134]
5645         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5646         character 0xffff that matches the last element of the
5647         conversion table.
5648
5649 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5650
5651         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5652         fmodl commit.
5653
5654 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5655
5656         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5657         values higher than 25.6283.
5658
5659 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5660
5661         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5662         subnormal exponent extraction and add some __builtin_expect.
5663         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5664         Fix for subnormal mantissa calculation.
5665
5666 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5667
5668         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5669         cpu2 is -1 and errno is not ENOSYS.
5670
5671 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5672
5673         [BZ #14117]
5674         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5675         * sysdeps/x86/bits/string.h: This.
5676         * sysdeps/x86_64/bits/string.h: Removed.
5677
5678         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5679         if not compiling for x86-64, but compiling for >= i486.
5680
5681         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5682         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5683
5684         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5685         New macro from Linux kernel 3.4.0.
5686         (FP_XSTATE_MAGIC2): Likewise.
5687         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5688         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5689         (struct _fpx_sw_bytes): New struct.
5690         (struct _xsave_hdr): Likewise.
5691         (struct _ymmh_state): Likewise.
5692         (struct _xstate): Likewise.
5693
5694         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5695         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5696         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5697         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5698         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5699         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5700
5701         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5702         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5703         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5704         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5705         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5706         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5707
5708 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5709
5710         [BZ #13743]
5711         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5712         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5713         (sysdep_headers): Include sys/platform/ppc.h.
5714         * sysdeps/powerpc/test-gettimebase.c: Test for
5715         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5716         * manual/Makefile (appendices): Include platform.texi.
5717         * manual/contrib.texi (Contributors): Update @node pointers.
5718         * manual/maint.texi (Maintenance): Likewise.
5719         (Platform): New node.
5720         * manual/platform.texi: New file.  Document the new features.
5721
5722 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5723             Jakub Jelinek  <jakub@redhat.com>
5724
5725         [BZ #14188]
5726         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5727         where __builtin_expect is unavailable.
5728
5729 2012-06-03  David S. Miller  <davem@davemloft.net>
5730
5731         * stdlib/longlong.h: Updated from GCC.
5732
5733 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5734
5735         [BZ #14042]
5736         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5737         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5738         __mcount_internal.
5739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5740         (GLIBC_2.16): Likewise.
5741
5742 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5743
5744         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5745
5746 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5747
5748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5749         (default-abi): New variable.
5750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5751         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5752         variable.
5753         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5754         Likewise.
5755         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5756         Likewise.
5757         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5758         Likewise.
5759
5760         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5761         definition.  Document in comment.
5762
5763 2012-06-01  David S. Miller  <davem@davemloft.net>
5764
5765         * stdlib/longlong.h: Updated from GCC.
5766
5767 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5768
5769         [BZ #14117]
5770         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5771         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5772         sys/debugreg.h sys/io.h here.
5773         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5774         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5775         sys/io.h.
5776         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5777         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5778         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5779         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5780         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5781         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5782
5783         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5784         Define only if __x86_64__ is defined.
5785
5786 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5787
5788         [BZ #14048]
5789         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5790         Use int64_t for variable i.
5791         * math/libm-test.inc (fmod_test): Add more tests.
5792
5793         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5794         z computation is not scheduled after fetestexcept.
5795         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5796         Use math_force_eval instead of asm to ensure calculation scheduled
5797         before exception test.
5798         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5799         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5800
5801 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5802
5803         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5804         computation is not scheduled after fetestexcept.
5805
5806 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5807
5808         [BZ #14117]
5809         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5810         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5811
5812 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5813
5814         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5815         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5816
5817 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5818
5819         [BZ #14117]
5820         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5821         <bits/wordsize.h>.
5822         (__WCHAR_MIN): Support __WORDSIZE == 64.
5823         (__WCHAR_MAX): Likewise.
5824
5825         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5826         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5827
5828         [BZ #14183]
5829         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5830         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5831
5832         [BZ #14117]
5833         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5834         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5835
5836         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5837         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5838
5839         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5840         Defined to 1 if __x86_64__ isn't defined.
5841         (_STAT_VER_LINUX_OLD): New.
5842         (st_atime): Remove duplicate.
5843         (st_mtime): Likewise.
5844         (st_ctime): Likewise.
5845
5846 2012-05-31  David S. Miller  <davem@davemloft.net>
5847
5848         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5849         entries.
5850
5851 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5852
5853         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5854         gen-libm-test.pl.
5855
5856         [BZ #14132]
5857         * elf/dl-reloc.c: Include <_itoa.h>.
5858         (_dl_reloc_bad_type): Remove use of INTUSE.
5859         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5860         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5861         * stdio-common/psiginfo.c (psiginfo): Likewise.
5862         * stdio-common/psignal.c (psignal): Likewise.
5863         * string/strsignal.c (strsignal): Likewise.
5864         * include/signal.h (_sys_siglist): Declare hidden proto.
5865         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5866         INTVARDEF with libc_hidden_data_def.
5867         * stdio-common/itoa-udigits.c: Likewise.
5868         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5869         (_itoa_lower_digits_internal): Remove declaration.
5870         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5871         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5872         (_sys_sigabbrev_internal): Remove aliases.
5873         (_sys_siglist): Define hidden alias.
5874
5875 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5876
5877         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5878         bits/sysctl.h.
5879
5880 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5881
5882         [BZ #14117]
5883         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5884         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5885
5886         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5887         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5888         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5889         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5890         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5891         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5892
5893         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5894         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5895         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5896
5897         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5898         with __addr.
5899         (insw): Likewise.
5900         (insl): Likewise.
5901         (outsb): Likewise.
5902         (outsw): Likewise.
5903         (outsl): Likewise.
5904
5905         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5906         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5907         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5908
5909         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5910         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5911         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5912         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5913         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5914         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5915
5916         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5917         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5918
5919         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
5920         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
5921
5922         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
5923         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
5924         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
5925
5926         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
5927         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
5928         to ...
5929         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
5930
5931         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
5932         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
5933         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
5934
5935         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
5936         for x86-64.
5937         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
5938
5939 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
5940
5941         * math/math.h (M_El): Use two more decimal places.
5942         (M_LOG2El): Likewise.
5943         (M_LOG10El): Likewise.
5944         (M_LN2l): Likewise.
5945         (M_LN10l): Likewise.
5946         (M_PIl): Likewise.
5947         (M_PI_2l): Likewise.
5948         (M_PI_4l): Likewise.
5949         (M_1_PIl): Likewise.
5950         (M_2_PIl): Likewise.
5951         (M_2_SQRTPIl): Likewise.
5952         (M_SQRT2l): Likewise.
5953         (M_SQRT1_2l): Likewise.
5954
5955 2012-05-31  David S. Miller  <davem@davemloft.net>
5956
5957         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5958         values between float registers.
5959         * sysdeps/sparc/sparc64/memset.S: Likewise.
5960         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5961
5962 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5963
5964         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5965         -D_FORTIFY_SOURCE=1.
5966         (CPPFLAGS-tst-longjmp_chk.c): Define.
5967         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5968         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5969         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5970         CFLAGS-tst-wchar-h.c.
5971
5972 2012-05-31  Marek Polacek  <polacek@redhat.com>
5973
5974         [BZ #14132]
5975         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5976         __endmntent_internal): Remove declaration.
5977         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5978         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5979         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5980
5981 2012-05-30  David S. Miller  <davem@davemloft.net>
5982
5983         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5984         (___Q_simulate_exceptions): Use real FP ops rather than writing
5985         into the %fsr.
5986         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5987         Likewise.
5988
5989 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5990
5991         [BZ #14117]
5992         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5993         * sysdeps/x86/bits/xtitypes.h: This.
5994
5995         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5996         * sysdeps/x86/bits/wordsize.h: This.
5997
5998         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5999         * sysdeps/x86/bits/huge_vall.h: This.
6000
6001         * sysdeps/i386/bits/select.h: Removed.
6002         * sysdeps/x86_64/bits/select.h: Renamed to ...
6003         * sysdeps/x86/bits/select.h: This.
6004
6005         * sysdeps/i386/bits/setjmp.h: Removed.
6006         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6007         * sysdeps/x86/bits/setjmp.h: This.
6008
6009         * sysdeps/i386/bits/mathdef.h: Removed.
6010         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6011         * sysdeps/x86/bits/mathdef.h: This.
6012
6013 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6014
6015         [BZ #14132]
6016         * include/sys/socket.h (__connect_internal)
6017         (__libc_sa_len_internal): Remove declaration.
6018         (__connect, __libc_sa_len): Declare hidden_proto.
6019         (SA_LEN): Remove use of INTUSE.
6020         * socket/connect.c: Add libc_hidden_def.
6021         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6022         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6023         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6024         alias.
6025         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6026         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6027         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6028         of adding _internal alias.
6029
6030 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6031
6032         [BZ #14117]
6033         * sysdeps/i386/bits/link.h: Removed.
6034         * sysdeps/i386/bits/linkmap.h: Likewise.
6035         * sysdeps/x86_64/bits/link.h: Renamed to ...
6036         * sysdeps/x86/bits/link.h: This.
6037         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6038         * sysdeps/x86/bits/linkmap.h: This.
6039
6040         * sysdeps/i386/bits/endian.h: Removed.
6041         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6042         * sysdeps/x86/bits/endian.h: This.
6043
6044         * sysdeps/i386/bits/byteswap.h: Removed.
6045         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6046         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6047         * sysdeps/x86/bits/byteswap.h: This.
6048         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6049         * sysdeps/x86/bits/byteswap-16.h: This.
6050         * sysdeps/i386/Implies: Add x86.
6051         * sysdeps/x86_64/Implies: Likewise.
6052
6053 2012-05-30  David S. Miller  <davem@davemloft.net>
6054
6055         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6056         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6057         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6058         (FP_TRAPPING_EXCEPTIONS): Define.
6059         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6060         (FP_TRAPPING_EXCEPTIONS): Define.
6061         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6062         subnormals only when inexact has been signalled or underflow
6063         exceptions are enabled.
6064         (_FP_PACK_CANONICAL): Likewise.
6065
6066 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6067
6068         [BZ #14183]
6069         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6070         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6071
6072 2012-05-30  Richard Henderson  <rth@twiddle.net>
6073
6074         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6075         with #ifndef NOT_IN_libc.
6076
6077         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6078         marked to avoid plt entry.
6079
6080 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6081
6082         [BZ #14112]
6083         * Makeconfig (default-abi): New macro.
6084         (abi-includes): Likewise.
6085         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6086         $(abi-$(default-abi)-lib-soname) for soname if defined.
6087         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6088         abi-variants.
6089         * Makefile (installed-stubs): Likewise.
6090         * include/stubs-biarch.h: Removed.
6091         * scripts/lib-names.awk: Only handle one library at a time.
6092         * scripts/soversions.awk: Remove WORDSIZE support.
6093         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6094         entries.
6095         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6096         Removed.
6097         (syscall-list-default-condition): Likewise.
6098         (syscall-list-default-condition): Likewise.
6099         (syscall-list-includes): Likewise.
6100         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6101         syscall-list-* with abi-*.  Handle undefined abi-variants.
6102         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6103         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6104         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6105         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6106         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6107         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6108         Removed.
6109         (syscall-list-32-options): Likewise.
6110         (syscall-list-32-condition): Likewise.
6111         (syscall-list-64-options): Likewise.
6112         (syscall-list-64-condition): Likewise.
6113         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6114         macro.
6115         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6116         Renamed to ...
6117         (abi-*): This.
6118         (abi-64-ld-soname): New macro.
6119         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6120         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6121         Renamed to ...
6122         (abi-*): This.
6123         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6124         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6125
6126 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6127
6128         * sysdeps/unix/sysv/linux/kernel-features.h
6129         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6130         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6131         include <kernel-features.h>.
6132         [!__NR_ftruncate64]: Remove conditional code.
6133         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6134         [__NR_ftruncate64]: Make code unconditional.
6135         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6136         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6137         include <kernel-features.h>.
6138         [!__NR_ftruncate64]: Remove conditional code.
6139         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6140         [__NR_ftruncate64]: Make code unconditional.
6141         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6143         include <kernel-features.h>.
6144         [!__NR_ftruncate64]: Remove conditional code.
6145         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6146         [__NR_ftruncate64]: Make code unconditional.
6147         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6149         include <kernel-features.h>.
6150         [!__NR_ftruncate64]: Remove conditional code.
6151         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6152         [__NR_ftruncate64]: Make code unconditional.
6153         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6154
6155         * configure.in (libc_cv_fpie): Weaken to a compile test using
6156         LIBC_TRY_CC_OPTION.
6157         * configure: Regenerated.
6158
6159 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6160
6161         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6162         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6163         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6164         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6165         Refreshed.
6166         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6167         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6168         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6169         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6170         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6171         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6172         Refreshed.
6173
6174 2012-05-27  David S. Miller  <davem@davemloft.net>
6175
6176         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6177         (___Q_zero): New.
6178         (__Q_simulate_exceptions): Return void.  Change to simulate
6179         exceptions by writing into the %fsr.
6180         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6181         (__Qp_handle_exceptions): Likewise.
6182         (numbers): Delete.
6183         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6184         __Qp_handle_exceptions.
6185         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6186         __Qp_handle_exceptions.
6187         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6188         as unused and give dummy FP_RND_NEAREST initializer.
6189         (FP_INHIBIT_RESULTS): Define.
6190         (___Q_simulate_exceptions): Update declaration.
6191         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6192         formatting.
6193         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6194         as unused and give dummy FP_RND_NEAREST initializer.
6195         (__Qp_handle_exceptions): Update declaration.
6196         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6197         formatting.
6198
6199 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6200
6201         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6202         the temporary FPU control word.
6203         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6204         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6205         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6206         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6207         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6208         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6209         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6210         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6211         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6212         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6213         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6214
6215 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6216
6217         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6218         fields.
6219
6220 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6221
6222         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6223         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6224         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6225         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6226         Likewise.
6227         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6228         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6229         Likewise.
6230
6231 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6232
6233         * po/h.po: Update from translation team.
6234
6235 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6236
6237         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6238
6239         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6240         handling of denormals.
6241         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6242         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6243         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6244         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6245         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6246         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6247         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6248         Likewise.
6249
6250 2012-05-26  Marek Polacek  <polacek@redhat.com>
6251
6252         [BZ #14152]
6253         * math/libm-test.inc (fma_test): Don't always expect underflow
6254         exception.
6255
6256 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6257
6258         [BZ #12416]
6259         * elf/tst-execstack.c: Include stackinfo.h.
6260         (do_test): Adjust test case to ensure that pthread_getattr_np
6261         behaviour remains the same after marking stack executable.
6262
6263 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6264
6265         * sysdeps/unix/sysv/linux/kernel-features.h
6266         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6267         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6268         kernel-features.h.
6269         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6270         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6271         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6272         kernel-features.h.
6273         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6274         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6275
6276 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6277
6278         * configure.in: Define the default includes to being none.
6279         * configure: Regenerated.
6280
6281 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6282
6283         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6284         * sysdeps/x86_64/setjmp.S: Likewise.
6285         * sysdeps/i386/bsd-setjmp.S: Likewise.
6286         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6287         * sysdeps/i386/setjmp.S: Likewise.
6288         * sysdeps/i386/__longjmp.S: Likewise.
6289         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6290         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6291
6292         * include/stap-probe.h: New file.
6293         * configure.in: Handle --enable-systemtap.
6294         * configure: Regenerated.
6295         * config.h.in (USE_STAP_PROBE): New #undef.
6296         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6297         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6298         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6299
6300 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6301
6302         [BZ #13717]
6303         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6304         to 2.4.0 where earlier.
6305         * sysdeps/unix/sysv/linux/configure: Regenerated.
6306         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
6315         [__ASSUME_32BITUIDS]: Make code unconditional.
6316         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6317         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6318         <kernel-features.h>.
6319         [__ASSUME_32BITUIDS]: Make code unconditional.
6320         [!__ASSUME_32BITUIDS]: Remove conditional code.
6321         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
6322         <kernel-features.h>.
6323         [__ASSUME_32BITUIDS]: Make code unconditional.
6324         [!__ASSUME_32BITUIDS]: Remove conditional code.
6325         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
6326         <kernel-features.h>.
6327         [__ASSUME_32BITUIDS]: Make code unconditional.
6328         [!__ASSUME_32BITUIDS]: Remove conditional code.
6329         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
6330         <kernel-features.h>.
6331         [__ASSUME_32BITUIDS]: Make code unconditional.
6332         [!__ASSUME_32BITUIDS]: Remove conditional code.
6333         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
6334         <kernel-features.h>.
6335         [__ASSUME_32BITUIDS]: Make code unconditional.
6336         [!__ASSUME_32BITUIDS]: Remove conditional code.
6337         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
6338         <kernel-features.h>.
6339         [__ASSUME_32BITUIDS]: Make code unconditional.
6340         [!__ASSUME_32BITUIDS]: Remove conditional code.
6341         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
6342         <kernel-features.h>.
6343         [__ASSUME_32BITUIDS]: Make code unconditional.
6344         [!__ASSUME_32BITUIDS]: Remove conditional code.
6345         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
6346         <kernel-features.h>.
6347         [__ASSUME_32BITUIDS]: Make code unconditional.
6348         [!__ASSUME_32BITUIDS]: Remove conditional code.
6349         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
6350         <kernel-features.h>.
6351         [__ASSUME_32BITUIDS]: Make code unconditional.
6352         [!__ASSUME_32BITUIDS]: Remove conditional code.
6353         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
6354         <kernel-features.h>.
6355         [__ASSUME_32BITUIDS]: Make code unconditional.
6356         [!__ASSUME_32BITUIDS]: Remove conditional code.
6357         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6358         <kernel-features.h>.
6359         [__NR_setresgid] (__setresgid): Do not declare.
6360         [__ASSUME_32BITUIDS]: Make code unconditional.
6361         [!__ASSUME_32BITUIDS]: Remove conditional code.
6362         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6363         <kernel-features.h>.
6364         [__NR_setresuid] (__setresuid): Do not declare.
6365         [__ASSUME_32BITUIDS]: Make code unconditional.
6366         [!__ASSUME_32BITUIDS]: Remove conditional code.
6367         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6368         <kernel-features.h>.
6369         [__ASSUME_32BITUIDS]: Make code unconditional.
6370         [!__ASSUME_32BITUIDS]: Remove conditional code.
6371         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6372         <kernel-features.h>.
6373         [__ASSUME_32BITUIDS]: Make code unconditional.
6374         [!__ASSUME_32BITUIDS]: Remove conditional code.
6375         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6376         <kernel-features.h>.
6377         [__ASSUME_32BITUIDS]: Make code unconditional.
6378         [!__ASSUME_32BITUIDS]: Remove conditional code.
6379         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6380         <kernel-features.h>.
6381         [__ASSUME_32BITUIDS]: Make code unconditional.
6382         [!__ASSUME_32BITUIDS]: Remove conditional code.
6383         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6384         <kernel-features.h>.
6385         [__ASSUME_32BITUIDS]: Make code unconditional.
6386         [!__ASSUME_32BITUIDS]: Remove conditional code.
6387         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6388         <kernel-features.h>.
6389         [__ASSUME_32BITUIDS]: Make code unconditional.
6390         [!__ASSUME_32BITUIDS]: Remove conditional code.
6391         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6392         <kernel-features.h>.
6393         [__ASSUME_32BITUIDS]: Make code unconditional.
6394         [!__ASSUME_32BITUIDS]: Remove conditional code.
6395         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6396         <kernel-features.h>.
6397         [__ASSUME_32BITUIDS]: Make code unconditional.
6398         [!__ASSUME_32BITUIDS]: Remove conditional code.
6399         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6400         <kernel-features.h>.
6401         [__ASSUME_32BITUIDS]: Make code unconditional.
6402         [!__ASSUME_32BITUIDS]: Remove conditional code.
6403         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6404         <kernel-features.h>.
6405         [__ASSUME_32BITUIDS]: Make code unconditional.
6406         [!__ASSUME_32BITUIDS]: Remove conditional code.
6407         * sysdeps/unix/sysv/linux/kernel-features.h
6408         (__ASSUME_SETRESUID_SYSCALL): Remove.
6409         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6410         (__ASSUME_32BITUIDS): Likewise.
6411         (__ASSUME_LDT_WORKS): Likewise.
6412         (__ASSUME_O_DIRECTORY): Likewise.
6413         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6414         architecture but not kernel version.
6415         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6416         (__ASSUME_MMAP2_SYSCALL): Likewise.
6417         (__ASSUME_STAT64_SYSCALL): Likewise.
6418         (__ASSUME_IPC64): Likewise.
6419         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6420         <kernel-features.h>.
6421         [__ASSUME_32BITUIDS]: Make code unconditional.
6422         [!__ASSUME_32BITUIDS]: Remove conditional code.
6423         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6424         <kernel-features.h>.
6425         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6426         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6427         132096]: Remove conditional code.
6428         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6429         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6430         <kernel-features.h>.
6431         [__ASSUME_32BITUIDS]: Make code unconditional.
6432         [!__ASSUME_32BITUIDS]: Remove conditional code.
6433         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6434         <kernel-features.h>.
6435         [__ASSUME_32BITUIDS]: Make code unconditional.
6436         [!__ASSUME_32BITUIDS]: Remove conditional code.
6437         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6438         <kernel-features.h>.
6439         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6440         unconditional.
6441         (__setresgid): Do not declare.
6442         [__ASSUME_32BITUIDS]: Make code unconditional.
6443         [!__ASSUME_32BITUIDS]: Remove conditional code.
6444         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6445         <kernel-features.h>.
6446         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6447         unconditional.
6448         (__setresuid): Do not declare.
6449         [__ASSUME_32BITUIDS]: Make code unconditional.
6450         [!__ASSUME_32BITUIDS]: Remove conditional code.
6451         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6452         <kernel-features.h>.
6453         [__ASSUME_32BITUIDS]: Make code unconditional.
6454         [!__ASSUME_32BITUIDS]: Remove conditional code.
6455         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6456         <kernel-features.h>.
6457         [__ASSUME_32BITUIDS]: Make code unconditional.
6458         [!__ASSUME_32BITUIDS]: Remove conditional code.
6459
6460 2012-05-25  Richard Henderson  <rth@twiddle.net>
6461
6462         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6463         dl_hwcap to ifunc resolver.
6464         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6465         elf_ifunc_invoke.
6466         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6467         dl_hwcap to ifunc resolver.
6468         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6469
6470 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6471
6472         [BZ #14153]
6473         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6474         for |x| <= 2**-26, not 2**-57.
6475         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6476         exception.
6477
6478 2012-05-24  Jeff Law  <law@redhat.com>
6479
6480         * stdio-common/Makefile (tests): Add bug25.
6481         * stdio-common/bug25.c: New test.
6482
6483 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6484
6485         [BZ #13576]
6486         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6487         multiple of MALLOC_ALIGNMENT in size.
6488         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6489
6490 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6491
6492         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6493         Require >= 256.
6494         (FILENAME_MAX): Use macro-int-constant.
6495         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6496         (_IOFBF): Use macro-int-constant.
6497         (_IOLBF): Likewise.
6498         (_IONBF): Likewise.
6499         (SEEK_CUR): Likewise.
6500         (SEEK_END): Likewise.
6501         (SEEK_SET): Likewise.
6502         (TMP_MAX): Likewise.
6503         (EOF): Use macro-int-constant.  Require < 0.
6504         (NULL): Use macro-constant.  Require == 0.
6505         (stdin): Require type to be FILE *.
6506         (stdout): Likewise.
6507         (stderr): Likewise.
6508         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6509         macro-int-constant.
6510         (EXIT_SUCCESS): Likewise.
6511         (NULL): Use macro-constant.  Require == 0.
6512         (RAND_MAX): Use macro-int-constant.
6513         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6514         [C99-based standards] (strtof): Require function.
6515         [C99-based standards] (strtold): Likewise.
6516         [C99-based standards] (strtoll): Likewise.
6517         [C99-based standards] (strtoull): Likewise.
6518         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6519         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6520         [ISO || ISO99 || ISO11] (math.h): Likewise.
6521         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6522         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6523         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6524
6525 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6526
6527         [BZ #14132]
6528         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6529         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6530         * intl/dgettext.c (DCGETTEXT): Likewise.
6531         * intl/gettext.c (DCGETTEXT): Likewise.
6532         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6533         * posix/regex_internal.h (gettext): Likewise.
6534         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6535         Remove declaration.
6536         * include/argz.h (__argz_count_internal)
6537         (__argz_stringify_internal): Remove declaration.
6538         (__argz_count, __argz_stringify): Declare hidden proto.
6539         * intl/dcgettext.c: Remove use of INTDEF.
6540         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6541         * string/argz-stringify.c: Likewise.
6542         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6543         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6544         Declare hidden proto.
6545         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6546         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6547         Declare hidden proto.
6548         * include/stdio.h (__asprintf_internal): Don't declare.
6549         (__asprintf): Don't define as macro.  Declare hidden proto.
6550         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6551         (__fsetlocking): Declare hidden proto.
6552         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6553         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6554         hidden proto.
6555         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6556         (_IO_setlinebuf): Remove use of INTUSE.
6557         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6558         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6559         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6560         Remove declaration.
6561         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6562         (_IO_do_flush): Remove use of INTUSE.
6563         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6564         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6565         (_IO_adjust_column, _IO_least_wmarker)
6566         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6567         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6568         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6569         (_IO_default_doallocate, _IO_wdefault_doallocate)
6570         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6571         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6572         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6573         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6574         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6575         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6576         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6577         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6578         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6579         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6580         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6581         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6582         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6583         proto.
6584         (_IO_flush_all_internal, _IO_adjust_column_internal)
6585         (_IO_default_uflow_internal, _IO_default_finish_internal)
6586         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6587         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6588         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6589         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6590         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6591         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6592         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6593         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6594         (_IO_file_close_internal, _IO_file_close_it_internal)
6595         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6596         (_IO_file_init_internal, _IO_file_attach_internal)
6597         (_IO_file_fopen_internal, _IO_file_read_internal)
6598         (_IO_file_sync_internal, _IO_file_seek_internal)
6599         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6600         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6601         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6602         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6603         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6604         (_IO_list_all_internal, _IO_link_in_internal)
6605         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6606         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6607         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6608         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6609         (_IO_do_write_internal, _IO_padn_internal)
6610         (_IO_getline_info_internal, _IO_getline_internal)
6611         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6612         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6613         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6614         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6615         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6616         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6617         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6618         with libc_hidden_ver, remove use of INTUSE.
6619         * libio/genops.c: Likewise.
6620         * libio/freopen.c: Likewise.
6621         * libio/freopen64.c: Likewise.
6622         * libio/iofclose.c: Likewise.
6623         * libio/iofdopen.c: Likewise.
6624         * libio/iofflush.c: Likewise.
6625         * libio/iofflush_u.c: Likewise.
6626         * libio/iofgets.c: Likewise.
6627         * libio/iofgets_u.c: Likewise.
6628         * libio/iofopen.c: Likewise.
6629         * libio/iofopncook.c: Likewise.
6630         * libio/iofread.c: Likewise.
6631         * libio/iofread_u.c: Likewise.
6632         * libio/ioftell.c: Likewise.
6633         * libio/iofwrite.c: Likewise.
6634         * libio/iogetline.c: Likewise.
6635         * libio/iogets.c: Likewise.
6636         * libio/iogetwline.c: Likewise.
6637         * libio/iopadn.c: Likewise.
6638         * libio/iopopen.c: Likewise.
6639         * libio/ioseekoff.c: Likewise.
6640         * libio/ioseekpos.c: Likewise.
6641         * libio/iosetbuffer.c: Likewise.
6642         * libio/iosetvbuf.c: Likewise.
6643         * libio/ioungetc.c: Likewise.
6644         * libio/ioungetwc.c: Likewise.
6645         * libio/iovdprintf.c: Likewise.
6646         * libio/iovsprintf.c: Likewise.
6647         * libio/iovsscanf.c: Likewise.
6648         * libio/memstream.c: Likewise.
6649         * libio/obprintf.c: Likewise.
6650         * libio/oldfileops.c: Likewise.
6651         * libio/oldiofclose.c: Likewise.
6652         * libio/oldiofdopen.c: Likewise.
6653         * libio/oldiofopen.c: Likewise.
6654         * libio/oldiopopen.c: Likewise.
6655         * libio/oldstdfiles.c: Likewise.
6656         * libio/putc.c: Likewise.
6657         * libio/setbuf.c: Likewise.
6658         * libio/setlinebuf.c: Likewise.
6659         * libio/stdfiles.c: Likewise.
6660         * libio/strops.c: Likewise.
6661         * libio/vasprintf.c: Likewise.
6662         * libio/vscanf.c: Likewise.
6663         * libio/vsnprintf.c: Likewise.
6664         * libio/vswprintf.c: Likewise.
6665         * libio/wfiledoalloc.c: Likewise.
6666         * libio/wfileops.c: Likewise.
6667         * libio/wgenops.c: Likewise.
6668         * libio/wmemstream.c: Likewise.
6669         * libio/wstrops.c: Likewise.
6670         * libio/__fpurge.c: Likewise.
6671         * libio/__fsetlocking.c: Likewise.
6672         * assert/assert.c: Likewise.
6673         * debug/fgets_chk.c: Likewise.
6674         * debug/fgets_u_chk.c: Likewise.
6675         * debug/fread_chk.c: Likewise.
6676         * debug/fread_u_chk.c: Likewise.
6677         * debug/gets_chk.c: Likewise.
6678         * debug/obprintf_chk.c: Likewise.
6679         * debug/vasprintf_chk.c: Likewise.
6680         * debug/vdprintf_chk.c: Likewise.
6681         * debug/vsnprintf_chk.c: Likewise.
6682         * debug/vsprintf_chk.c: Likewise.
6683         * malloc/mtrace.c: Likewise.
6684         * misc/error.c: Likewise.
6685         * misc/syslog.c: Likewise.
6686         * stdio-common/asprintf.c: Likewise.
6687         * stdio-common/fxprintf.c: Likewise.
6688         * stdio-common/getw.c: Likewise.
6689         * stdio-common/isoc99_fscanf.c: Likewise.
6690         * stdio-common/isoc99_scanf.c: Likewise.
6691         * stdio-common/isoc99_vfscanf.c: Likewise.
6692         * stdio-common/isoc99_vscanf.c: Likewise.
6693         * stdio-common/isoc99_vsscanf.c: Likewise.
6694         * stdio-common/printf-prs.c: Likewise.
6695         * stdio-common/printf_fp.c: Likewise.
6696         * stdio-common/printf_fphex.c: Likewise.
6697         * stdio-common/printf_size.c: Likewise.
6698         * stdio-common/putw.c: Likewise.
6699         * stdio-common/scanf.c: Likewise.
6700         * stdio-common/sprintf.c: Likewise.
6701         * stdio-common/tmpfile.c: Likewise.
6702         * stdio-common/vfprintf.c: Likewise.
6703         * stdio-common/vfscanf.c: Likewise.
6704         * stdlib/strfmon_l.c: Likewise.
6705         * sunrpc/openchild.c: Likewise.
6706         * sunrpc/xdr_stdio.c: Likewise.
6707         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6708         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6709
6710 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6711
6712         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6713
6714         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6715         in the third column, to generate for the shared library an IFUNC
6716         that uses _dl_vdso_vsym.
6717         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6718         * Makeconfig (object-suffixes-noshared): New variable.
6719
6720         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6721         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6722         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6723         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6724
6725         [BZ #14132]
6726         * include/sys/time.h (__gettimeofday): Remove macro.
6727         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6728         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6729         Remove INTDEF.
6730         (__gettimeofday): Add libc_hidden_def.
6731         (gettimeofday): Add libc_hidden_weak.
6732         * sysdeps/mach/gettimeofday.c: Likewise.
6733         * sysdeps/posix/gettimeofday.c: Likewise.
6734         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6735         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6736         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6737         (__gettimeofday_internal): Remove strong_alias.
6738         (__gettimeofday): Add libc_hidden_def.
6739         (gettimeofday): Add libc_hidden_weak.
6740         * sysdeps/unix/syscalls.list (gettimeofday):
6741         Remove __gettimeofday_internal alias.
6742
6743 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6744             H.J. Lu  <hongjiu.lu@intel.com>
6745
6746         [BZ #12495]
6747         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6748         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6749         (largebin_index_32_big): New.
6750         (largebin_index): Use it for 16-byte alignment.
6751         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6752         correction with front_misalign.
6753
6754 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6755
6756         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6757         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6758         Likewise.
6759         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6760         Likewise.
6761         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6762         Likewise.
6763         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6764         Likewise.
6765         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6766         Likewise.
6767         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6768         Likewise.
6769         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6770         Likewise.
6771         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6772         Likewise.
6773         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6774         Likewise.
6775         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6776         Likewise.
6777         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6778         Likewise.
6779         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6780         Likewise.
6781
6782         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6783         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6784
6785 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6786
6787         [BZ #10846]
6788         [BZ #14036]
6789         * math/libm-test.inc (exp_test): Add test from bug 14036.
6790         (pow_test): Add test from bug 10846.
6791
6792         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6793         and other flags.
6794         (special_function): Do not include flags in test name.
6795         (parse_args): Likewise.
6796         * sysdeps/i386/fpu/libm-test-ulps: Update.
6797         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6798         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6799         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6801
6802         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6803         exceptions.
6804         * math/libm-test.inc ("Philosophy"): Update comment about
6805         exception testing.
6806         (UNDERFLOW_EXCEPTION): New macro.
6807         (UNDERFLOW_EXCEPTION_OK): Likewise.
6808         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6809         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6810         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6811         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6812         (INVALID_EXCEPTION_OK): Update value.
6813         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6814         (OVERFLOW_EXCEPTION_OK): Likewise.
6815         (IGNORE_ZERO_INF_SIGN): Likewise.
6816         (test_exceptions): Handle underflow exceptions.
6817         (acos_test): Update for underflow exception expectations.
6818         (cexp_test): Likewise.
6819         (clog_test): Likewise.
6820         (clog10_test): Likewise.
6821         (csqrt_test): Likewise.
6822         (ctan_test): Likewise.
6823         (ctanh_test): Likewise.
6824         (exp_test): Likewise.
6825         (exp10_test): Likewise.
6826         (exp2_test): Likewise.
6827         (expm1_test): Likewise.
6828         (fma_test): Likewise.
6829         (j0_test): Likewise.
6830         (jn_test): Likewise.
6831         (nexttoward_test): Likewise.
6832         (pow_test): Likewise.
6833         (scalbn_test): Likewise.
6834         (scalbln_test): Likewise.
6835         (tan_test): Likewise.
6836         (y1_test): Likewise.
6837         * sysdeps/i386/fpu/libm-test-ulps: Update.
6838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6839
6840 2012-05-23  David S. Miller  <davem@davemloft.net>
6841
6842         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6843         (__libc_sigaction): Remove unused local variables.
6844
6845 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6846
6847         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6848
6849 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6850
6851         mktime: avoid signed integer overflow
6852         * time/mktime.c (__mktime_internal): Do not mishandle the case
6853         where diff == INT_MIN.
6854
6855         mktime: simplify computation of average
6856         * time/mktime.c (ranged_convert): Use new time_t_avg function
6857         instead of rolling our own (probably-slower) code.
6858
6859         mktime: do not assume signed right shift propagates sign bit
6860         * time/mktime.c (isdst_differ): New static function.
6861         (__mktime_internal): No need to normalize tm_isdst now.
6862         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6863         tm_isdst values.
6864
6865         mktime: merge another wrapv change from gnulib
6866         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6867         from some compilers.
6868
6869         mktime: remove incorrect attempt at unusual arithmetics
6870         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6871         The code didn't really work on such machines anyway.
6872         (TYPE_MINIMUM): Assume two's complement.
6873         (twos_complement_arithmetic): Verify that long_int and time_t
6874         are two's complement (or unsigned, in the latter case).
6875
6876         mktime: check signed shifts on long_int and time_t, too
6877         * time/mktime.c (SHR): Check that shifts work as desired
6878         on the types long_int and time_t too, as SHR is used on
6879         such types.
6880
6881         mktime: do not assume 'long' is wide enough
6882         * time/mktime.c (verify): Move decl up.
6883         (long_int): New type.
6884         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6885         to remove assumption in the code that 'long' is wide enough to
6886         store year values.  This assumption is not true on x32 and on
6887         some non-glibc platforms.
6888
6889         mktime: merge wrapv change from gnulib
6890         * time/mktime.c (WRAPV): New macro.
6891         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6892         (guess_time_tm, __mktime_internal): Do not assume that signed
6893         integer overflow wraps around; modern compilers generate code
6894         where this assumption is no longer valid.
6895
6896 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6897
6898         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6899         Replace "jmp L(pseudo_end)" with "ret".
6900         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6901         Likewise.
6902
6903 2012-05-23  Andreas Jaeger  <aj@suse.de>
6904
6905         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6906         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6907
6908 2012-05-23  Andreas Jaeger  <aj@suse.de>
6909             Maximilian Attems  <max@stro.at>
6910
6911         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6912         New macros.
6913
6914 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6915
6916         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6917         code so that pseudo_end is just ret and the stack pointer is
6918         correct also for static library in error case.
6919
6920 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
6921
6922         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
6923         move to syscalls.list.
6924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6928
6929         * manual/install.texi (Running make install): Do not mention Linux
6930         kernel version for which pt_chown is not needed.
6931         (Linux): Do not mention problems with nscd with 2.0 kernels.
6932         * INSTALL: Regenerated.
6933
6934 2012-05-23  Andreas Jaeger  <aj@suse.de>
6935
6936         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
6937         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
6938         macro.
6939         * sysdeps/unix/sysv/linux/s390/bits/mman.h
6940         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6941         * sysdeps/unix/sysv/linux/sh/bits/mman.h
6942         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6943         * sysdeps/unix/sysv/linux/i386/bits/mman.h
6944         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6945         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6946         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6947         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6948         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6949         * sysdeps/unix/sysv/linux/bits/in.h
6950         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6951
6952 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6953
6954         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6955         (PREPARE_VERSION): Just use assert instead, it will be elided
6956         under [NDEBUG] anyway.
6957
6958 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6959
6960         * sysdeps/unix/sysv/linux/Makefile: Include
6961         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6962         (sysdep_routines): Remove sysctl.
6963         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6964         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6965         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6966         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6967         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6968
6969 2012-05-22  Andreas Jaeger  <aj@suse.de>
6970
6971         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6972         that pseudo_end is just ret and the stack pointer is correct also
6973         for static library in error case.
6974
6975 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6976
6977         [BZ #14122]
6978         * nss/nsswitch.c (defconfig_entries): New variable.
6979         (__nss_database_lookup): Don't leak defconfig entries.
6980         (nss_parse_service_list): Don't leak on error paths.
6981         (free_database_entries): New function.
6982         (free_defconfig): New function.
6983         (free_mem): Move common code to free_database_entries.
6984
6985 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6986
6987         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6988         Add arch_prctl.
6989         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6990
6991         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6992         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6993         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6994         New macro.
6995         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6996         (INTERNAL_SYSCALL_TYPES): Likewise.
6997         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6998         (LOAD_REGS_TYPES_[1-6]): Likewise.
6999         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7000         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7001
7002 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7003
7004         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7005         copysignl for GLIBC_2_0.
7006         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7007         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7008         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7009         logbl for GLIBC_2_0.
7010         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7011         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7012
7013 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7014
7015         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7016         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7017
7018         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7019         Use "neg %eax".
7020
7021         * time/mktime.c: Update copyright years.
7022
7023 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7024
7025         mktime: merge comment-quoting-style change from gnulib
7026         * time/mktime.c: Quote 'like this' in comments.
7027         The GNU coding standards suggest that we no longer quote `like this',
7028         as "`" and "'" are typically rendered asymmetrically nowadays.
7029         The typical gnulib style is to quote 'like this' when quoting
7030         code, and "like this" when quoting English.
7031
7032         * time/mktime.c (compile-command): Add "-I.".
7033
7034         mktime: merge mktime-internal.h change from gnulib
7035         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7036
7037         mktime: merge time_r change from gnulib
7038         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7039
7040         mktime: merge DEBUG change from gnulib
7041         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7042         case system <time.h> has a #define.
7043
7044         mktime: merge <sys/types.h> change from gnulib
7045         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7046         since <time.t> is now guaranteed to define time_t.
7047
7048         mktime: merge HAVE_CONFIG_H change from gnulib
7049         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7050
7051 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7052
7053         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7054         Use "neg %eax".
7055
7056         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7057         __rlim_t cast.
7058         (struct rusage): Use anonymous union to pad each field to
7059         __syscall_slong_t.
7060
7061 2012-05-21  David S. Miller  <davem@davemloft.net>
7062
7063         * Makefules (o-iterator): Remove .s cases.
7064         (compile-command.s): Delete.
7065         (COMPILE.s): Delete.
7066         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7067
7068 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7069
7070         * configure.in (libc_cv_predef_stack_protector): Only consider
7071         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7072         * configure: Regenerated.
7073
7074 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7075
7076         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7077         New macro.  Use R*LP on int and pointer.
7078         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7079         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7080         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7081         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7082
7083         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7084         [__WORDSIZE_TIME64_COMPAT32] instead of
7085         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7086         (struct utmp): Likewise.
7087         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7088         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7089         Renamed to ...
7090         (__WORDSIZE_TIME64_COMPAT32): This.
7091         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7092         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7093         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7094         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7095         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7096         (__WORDSIZE_TIME64_COMPAT32): New macro.
7097
7098 2012-05-21  Andreas Jaeger  <aj@suse.de>
7099
7100         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7101         only if [SHARED]. Add prototype for __wcschr_ia32.
7102
7103 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7104
7105         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7106         of %rbp unmolested in the jmp_buf while mangling the low bits.
7107         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7108         unmolested high bits of %rbp while demangling the low bits.
7109         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7110
7111 2012-05-21  Andreas Jaeger  <aj@suse.de>
7112
7113         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7114         * sunrpc/svc_simple.c: Use it for registerrpc.
7115         * sunrpc/xcrypt.c: Use it for passwd2des.
7116
7117         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7118
7119 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7120
7121         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7122         Don't define if [__SYSCALL_WORDSIZE != 32].
7123         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7124         New macro.
7125
7126 2012-05-21  Bruno Haible  <bruno@clisp.org>
7127             Andreas Jaeger  <aj@suse.de>
7128
7129         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7130         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7131         inptr and inend for must_buffer_ch.
7132         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7133         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7134         * stdio-common/Makefile (tests): Remove bug15.
7135         (bug15-ENV): Remove macro.
7136         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7137         anymore.
7138
7139 2012-05-19  Andreas Jaeger  <aj@suse.de>
7140             Roland McGrath  <roland@hack.frob.com>
7141
7142         * manual/contrib.texi: Completely rewritten. It contains now an
7143         alphabetical list of contributors and their contributions.
7144
7145 2012-05-21  Richard Henderson  <rth@twiddle.net>
7146
7147         * misc/getauxval.c (__getauxval): Use unsigned long int.
7148         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7149         (getauxval): Use unsigned long int.
7150
7151 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7152
7153         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7154
7155 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7156
7157         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7158         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7159         __alignof__ (long double).
7160
7161 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7162
7163         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7164
7165 2012-05-20  Richard Henderson  <rth@twiddle.net>
7166
7167         * misc/getauxval.c: New file.
7168         * misc/sys/auxv.h: New file.
7169         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7170         (routines): Add getauxval.
7171         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7172         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7173         * elf/dl-sysdep.c (_dl_auxv): Remove.
7174         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7175         * elf/dl-support.c (_dl_auxv): New variable.
7176         (_dl_aux_init): Initialize it.
7177         * manual/startup.texi (Auxiliary Vector): New node.
7178         * sysdeps/generic/bits/hwcap.h: New file.
7179         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7180         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7181         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7182         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7183         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7184         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7186         Update.
7187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7188         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7189         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7190         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7191         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7192         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7193         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7194         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7195
7196 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7197
7198         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7199
7200 2012-05-19  David S. Miller  <davem@davemloft.net>
7201
7202         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7203
7204 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7205
7206         [BZ #14123]
7207         * math/s_ccosh.c: Include <float.h>
7208         (__ccosh): Avoid internal overflow calculating sinh and cosh
7209         values before multiplying by sin and cos values.
7210         * math/s_ccoshf.c: Likewise.
7211         * math/s_ccoshl.c: Likewise.
7212         * math/s_csin.c: Likewise.
7213         * math/s_csinf.c: Likewise.
7214         * math/s_csinl.c: Likewise.
7215         * math/s_csinh.c: Likewise.
7216         * math/s_csinhf.c: Likewise.
7217         * math/s_csinhl.c: Likewise.
7218         * math/libm-test.inc (ccos_test): Add more tests.
7219         (ccosh_test): Likewise.
7220         (csin_test): Likewise.
7221         (csinh_test): Likewise.
7222         * sysdeps/i386/fpu/libm-test-ulps: Update.
7223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7224
7225 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7226
7227         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7228         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7229
7230         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7231
7232 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7233
7234         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7235         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7236         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7237         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7238         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7239         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7240         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7241         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7242         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7243         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7244         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7245         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7246         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7247         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7248         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7249         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7250         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7251         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7252         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7253         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7254         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7255         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7256         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7257         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7258         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7259         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7260         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7261         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7262         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7263         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7264         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7265
7266 2012-05-18  Andreas Jaeger  <aj@suse.de>
7267
7268         * csu/.gitignore: Delete.
7269
7270 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7271
7272         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7273         (timex): Use __syscall_slong_t.
7274
7275 2012-05-18  Andreas Jaeger  <aj@suse.de>
7276             Carlos O'Donell  <carlos_odonell@mentor.com>
7277
7278         * manual/install.texi (Configuring and compiling): Update
7279         description about files modified in the source directory.
7280         * INSTALL: Regenerated.
7281
7282 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7283
7284         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7285         value.  Use "or" to set return value to -1.
7286         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7287         negate return value.
7288
7289 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7290
7291         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7292         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7293         failure if the compiler has Graphite support disabled.
7294         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7295         Likewise.
7296         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7297         CFLAGS-memmove.c): Likewise.
7298         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7299         Likewise.
7300
7301 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7302
7303         * sysdeps/x86_64/x32/_itoa.h: New file.
7304
7305         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7306         getdents system call only if kernel and user dirents have the
7307         same d_ino and d_off.
7308
7309         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7310         LLONG_MAX != LONG_MAX.
7311         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7312         (_fitoa_word): Likewise.
7313
7314         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7315         years.
7316         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7317         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7318         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7319
7320         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7321         include <bits/wordsize.h>.  Check __x86_64__ instead of
7322         __WORDSIZE.
7323         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7324         if __x86_64__ is defined.  Use anonymous union on fpstate.
7325
7326         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7327         anonymous union.
7328
7329 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7330
7331         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7332         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7333         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7334         Refer to _rtld_local_ro instead of _rtld_global_ro.
7335         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7336         Likewise.
7337         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7338         Likewise.
7339         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7340         Likewise.
7341         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7342         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7343         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7344
7345         * sysdeps/powerpc/powerpc32/dl-machine.c
7346         (__elf_machine_runtime_setup) [PROF]: Don't reference
7347         _dl_prof_resolve.
7348
7349 2012-05-18  Andreas Jaeger  <aj@suse.de>
7350
7351         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7352         function only available for GCCs before 3.4 since GCC 3.4
7353         introduced a builtin.
7354         (lrint): Likewise.
7355         (llrintf): Likewise.
7356         (llrint): Likewise.
7357         (fmaxf): Likewise.
7358         (fmax): Likewise.
7359         (fminf): Likewise.
7360         (fmin): Likewise.
7361         (rint): Likewise.
7362         (rintf): Likewise.
7363         (nearbyint): Likewise.
7364         (nearbyintf): Likewise.
7365         (ceil): Likewise.
7366         (ceilf): Likewise.
7367         (floor): Likewise.
7368         (floorf): Likewise.
7369
7370 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7371
7372         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7373         on both fields and cast pointer to __syscall_ulong_t.
7374
7375         * bits/types.h (__fsword_t): New type.
7376         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7377         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7378         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7379         (__FSWORD_T_TYPE): Likewise.
7380         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7381         (__FSWORD_T_TYPE): Likewise.
7382         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7383         (__FSWORD_T_TYPE): Likewise.
7384         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7385         (__FSWORD_T_TYPE): Likewise.
7386         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7387         __SWORD_TYPE with __fsword_t.
7388         (statfs64): Likewise.
7389
7390 2012-05-17  David S. Miller  <davem@davemloft.net>
7391
7392         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7393
7394 2012-05-17  Andreas Jaeger  <aj@suse.de>
7395
7396         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7397         warning.
7398
7399 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7400
7401         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7402
7403 2012-05-17  Andreas Jaeger  <aj@suse.de>
7404
7405         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7406         when it is used.
7407
7408 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7409
7410         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7411
7412 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7413
7414         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7415         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7416
7417 2012-05-17  Andreas Jaeger  <aj@suse.de>
7418             Carlos O'Donell  <carlos_odonell@mentor.com>
7419
7420         [BZ #14059]
7421         * sysdeps/x86_64/multiarch/init-arch.h
7422         (bit_YMM_Usable): Rename to...
7423         (bit_AVX_Usable): ... this.
7424         (bit_FMA4_Usable): New macro.
7425         (bit_XMM_state): New macro.
7426         (bit_YMM_state): New macro.
7427         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7428         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7429         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7430         (CPUID_OSXSAVE): New macro.
7431         (CPUID_AVX): New macro.
7432         (CPUID_FMA4): New macro.
7433         (index_YMM_Usable): Rename to...
7434         (index_AVX_Usable): ... this.
7435         (HAS_AVX): Use HAS_ARCH_FEATURE.
7436         (HAS_FMA4): Likewise.
7437         (HAS_YMM_USABLE): Remove.
7438         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7439         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7440         are present.
7441         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7442         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7443         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7444         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7445         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7446
7447 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7448
7449         * math/libm-test.c: Support platforms without multiple rounding modes.
7450         * math/bug-nextafter.c: Support platforms without FP exceptions.
7451         * math/bug-nexttoward.c: Likewise.
7452         * math/test-fenv.c: Likewise.
7453         * math/test-misc.c: Likewise.
7454         * stdlib/bug-getcontext.c: Likewise.
7455
7456 2012-05-17  Andreas Jaeger  <aj@suse.de>
7457
7458         * manual/examples/search.c (critter_cmp): Change signature to
7459         avoid warnings.
7460         * manual/string.texi (Collation Functions): Likewise.
7461
7462 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7463
7464         * bits/types.h: Fold copyright years.
7465         * bits/typesizes.h: Likewise.
7466         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7467         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7468         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7469         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7470         * time/time.h: Likewise.
7471
7472 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7473
7474         [BZ #208]
7475         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7476         in instead of returning them.  Return void.
7477         (__libc_mallinfo): Accumulate over all arenas.
7478         (__malloc_stats): Adjust for change in int_mallinfo interface.
7479
7480 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7481
7482         [BZ #10375]
7483         * configure.in (NM): Add AC_CHECK_TOOL for it.
7484         (libc_extra_cflags): New substituted variable.
7485         Check for -fstack-protector being used implicitly.
7486         * configure: Regenerated.
7487         * config.make.in (config-extra-cflags): New variable,
7488         gets @libc_extra_cflags@.
7489         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7490
7491         [BZ #10375]
7492         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7493         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7494         * configure: Regenerated.
7495         * config.make.in (CPPUNDEFS): New substituted variable.
7496         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7497         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7498         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7499
7500 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7501
7502         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7503         (mq_attr): Use __syscall_slong_t.
7504
7505 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7506
7507         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7508         Check __x86_64__ instead of __WORDSIZE.
7509         (_STAT_VER_LINUX): Likewise.
7510         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7511         __syscall_ulong_t and __syscall_slong_t.
7512         (stat64): Likewise.
7513
7514 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7515
7516         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7517
7518 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7519
7520         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7521
7522 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7523
7524         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7525         __syscall_ulong_t.
7526
7527         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7528         include <bits/wordsize.h>.  Check __x86_64__ instead of
7529         __WORDSIZE.
7530         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7531         defined.
7532         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7533
7534         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7535         include <bits/wordsize.h>.  Check __x86_64__ instead of
7536         __WORDSIZE.
7537         (user_regs_struct): Use "__extension__ unsigned long long"
7538         instead of "unsigned long" if __x86_64__ is defined.
7539         (user): Likewise.  Pad after pointer field if __ILP32__ is
7540         defined.
7541
7542 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7543
7544         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7545         versions 5 to 9.
7546         * configure: Regenerated.
7547         * manual/install.texi (texinfo): Increase version requirement to
7548         4.5 or later.
7549         * INSTALL: Regenerated.
7550
7551         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7552
7553 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7554
7555         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7556
7557         * sysdeps/x86_64/x32/ffs.c: New file.
7558
7559         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7560         __syscall_ulong_t.
7561         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7562         defined.  Use __syscall_ulong_t.
7563         (shminfo): Use __syscall_ulong_t.
7564         (shm_info): Likewise.
7565
7566         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7567         __syscall_ulong_t.
7568
7569         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7570         <bits/wordsize.h>.
7571         (msgqnum_t): Use __syscall_ulong_t.
7572         (msglen_t): Likewise.
7573         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7574         __syscall_ulong_t.
7575
7576         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7577         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7578
7579         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7580
7581         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7582         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7583
7584         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7585         __syscall_slong_t.
7586
7587         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7588         include <bits/wordsize.h>.  Check __x86_64__ instead of
7589         __WORDSIZE.
7590
7591         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7592         "unsigned long long int" if __x86_64__ is defined.
7593         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7594
7595         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7596         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7597         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7598
7599         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7600         <stdint.h>.
7601         (GET_PC): Cast to uintptr_t first.
7602         (GET_FRAME): Likewise.
7603         (GET_STACK): Likewise.
7604
7605         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7606         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7607         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7608         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7609         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7610         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7611         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7612         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7613         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7614         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7615         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7616         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7617         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7618         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7619         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7620         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7621         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7622         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7623         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7624         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7625         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7626         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7627         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7628         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7629         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7630         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7631         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7632         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7633         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7634
7635 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7636
7637         * Makerules (+depfiles): Also collect depfiles from .oS in
7638         $(extra-objs).
7639         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7640         .oS, $(libnldbl-routines)).
7641
7642         * Makerules (native-compile-mkdep-flags): Define.
7643         * sunrpc/Makefile (extra-objs): Add $(addprefix
7644         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7645         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7646         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7647         calling $(make-target-directory).
7648
7649 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7650
7651         * bits/types.h (__snseconds_t): Removed.
7652         * time/time.h (struct timespec): Replace __snseconds_t with
7653         __syscall_slong_t.
7654         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7655         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7656         Likewise.
7657         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7658         (__SNSECONDS_T_TYPE): Likewise.
7659         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7660         (__SNSECONDS_T_TYPE): Likewise.
7661         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7662         (__SNSECONDS_T_TYPE): Likewise.
7663
7664 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7665
7666         * sysdeps/mach/hurd/bits/typesizes.h
7667         (__SYSCALL_SLONG_TYPE): New macro.
7668         (__SYSCALL_ULONG_TYPE): Likewise.
7669
7670 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7671
7672         * bits/types.h (__syscall_slong_t): New type.
7673         (__syscall_ulong_t): Likewise.
7674
7675         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7676         (__SYSCALL_ULONG_TYPE): Likewise.
7677         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7678         (__SYSCALL_SLONG_TYPE): Likewise.
7679         (__SYSCALL_ULONG_TYPE): Likewise.
7680         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7681         (__SYSCALL_SLONG_TYPE): Likewise.
7682         (__SYSCALL_ULONG_TYPE): Likewise.
7683         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7684         (__SYSCALL_SLONG_TYPE): Likewise.
7685         (__SYSCALL_ULONG_TYPE): Likewise.
7686
7687 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7688
7689         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7690         Add sigaltstack-offsets.sym.
7691         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7692         <sigaltstack-offsets.h>.
7693         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7694         longjmp_msg pointer.
7695         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7696         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7697         signal stack.
7698         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7699
7700 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7701
7702         * elf/stackguard-macros.h: Remove file.
7703         * sysdeps/generic/stackguard-macros.h: New file.
7704         * sysdeps/i386/stackguard-macros.h: Likewise.
7705         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7706         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7707         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7708         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7709         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7710         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7711         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7712         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7713         <elf/stackguard-macros.h>.
7714
7715         [BZ #14109]
7716         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7717         __aligned__ in attribute.
7718         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7719         (gregset_t): Likewise.
7720
7721 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7722
7723         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7724         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7725         * sysdeps/x86_64/x32/Implies-after: New file.
7726
7727 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7728
7729         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7730         and access return value for _dl_profile_fixup.  Use R10_LP to
7731         load frame size.
7732
7733 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7734
7735         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7736
7737 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7738
7739         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7740         * sysdeps/x86_64/x32/sysdep.h: New file.
7741
7742 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7743
7744         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7745         * sysdeps/x86_64/setjmp.S: Likewise.
7746
7747 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7748
7749         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7750         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7751         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7752         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7753         remove unused global constant.
7754
7755 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7756
7757         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7758         include of <not-cancel.h>.
7759
7760 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7761
7762         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7763
7764 2012-05-15  Jeff Law  <law@redhat.com>
7765             Andreas Jaeger  <aj@suse.de>
7766
7767         [BZ #13594]
7768         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7769         out from...
7770         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7771         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7772         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7773         code changing __hst_map_handle.map.
7774
7775 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7776
7777         * configure.in (sysnames): Look for Implies-before and Implies-after
7778         files.
7779         * configure: Regenerated.
7780
7781 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7782
7783         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7784         8-byte data alignment with LP_SIZE alignment.
7785
7786 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7787
7788         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7789         into R10_LP.
7790
7791 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7792
7793         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7794
7795 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7796
7797         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7798         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7799         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7800         Likewise.
7801         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7802
7803 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7804
7805         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7806         (stackinfo_sub_sp): Likewise.
7807
7808 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7809
7810         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7811         RAX_LP.
7812
7813 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7814
7815         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7816         into R*_LP.
7817
7818 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7819
7820         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7821         sizes into R*_LP.
7822
7823 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7824
7825         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7826
7827 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7828
7829         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7830         into R11_LP and load __x86_64_shared_cache_size_half into
7831         R8_LP.
7832
7833 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7834
7835         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7836         R8_LP.
7837
7838 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7839
7840         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7841         logb for POWER7.
7842         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7843         logbf for POWER7.
7844         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7845         logbl for POWER7.
7846         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7847         powerpc32/power7/fpu/s_logb.c via #include.
7848         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7849         powerpc32/power7/fpu/s_logbf.c via #include.
7850         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7851         powerpc32/power7/fpu/s_logbl.c via #include.
7852
7853 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7854
7855         * README.libm: Remove file.
7856
7857 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7858
7859         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7860         count for x32.  Use R*_LP and omit operand-size suffix.
7861
7862 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7863
7864         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7865         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7866         * sysdeps/x86_64/x32/shlib-versions: New file.
7867
7868 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7869
7870         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7871         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7872         Use _dl_fatal_printf instead.
7873
7874 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7875
7876         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7877         set if not set by the user.  Do not allow for being unset.
7878         * sysdeps/unix/sysv/linux/configure: Regenerated.
7879
7880 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7881
7882         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7883         the `q' suffix from lea and replace .quad with ASM_ADDR.
7884
7885 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7886
7887         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7888         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7889         instead of $17.
7890         (PTR_DEMANGLE): Likewise.
7891
7892 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7893
7894         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7895         (LP_OP): Likewise.
7896         (ASM_ADDR): Likewise.
7897         (RAX_LP): Likewise.
7898         (RBP_LP): Likewise.
7899         (RBX_LP): Likewise.
7900         (RCX_LP): Likewise.
7901         (RDI_LP): Likewise.
7902         (RSI_LP): Likewise.
7903         (RSP_LP): Likewise.
7904         (R8_LP): Likewise.
7905         (R9_LP): Likewise.
7906         (R10_LP): Likewise.
7907         (R10_LP): Likewise.
7908         (R11_LP): Likewise.
7909         (R12_LP): Likewise.
7910         (R13_LP): Likewise.
7911         (R14_LP): Likewise.
7912         (R15_LP): Likewise.
7913
7914 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7915
7916         * sysdeps/x86_64/x32/dl-machine.h: New file.
7917
7918 2012-05-14  Andreas Jaeger  <aj@suse.de>
7919
7920         * manual/Makefile (subdir): Remove export of subdir.
7921         (all): Remove target.
7922         (.PHONY): Remove all from list.
7923         (mkinstalldirs): Remove.
7924         (.PHONY): Remove installdirs from list.
7925         ($(inst_infodir)/libc.info): Use make-target-directory.
7926         (installdirs): Remove.
7927         (subdir_%): Remove.
7928         (glibc-targets): Remove.
7929         (lib): Remove.
7930         (stubs): Remove.
7931         ($(objpfx)stubs ../po/manual.pot): Remove.
7932         ($(objpfx)stamp%): Remove.
7933         (make-target-directory): Remove.
7934         (subdir_install): Remove.
7935         (routines): Remove.
7936         (aux): Remove.
7937         (sources): Remove.
7938         (objects): Remove.
7939         (headers): Remove.
7940
7941         [BZ #13750]
7942         * manual/.gitignore: Remove, it's not needed anymore.
7943         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
7944         all files in it.
7945         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7946         directory.
7947         (texis): Renamed to $(objpfx)texis.
7948         (texis-path): New, contains path to generated files.
7949         (chapters.%): Use texis-path for complete path, add extra argument
7950         libc-texinfo.sh.
7951         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7952         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7953         (summary,texi, stamp-summary): Use complete path of
7954         files. Generate files in build dir.
7955         (dir-add.texi): Build in build dir.
7956         (libm-err.texi,stamp-libm-err): Likewise.
7957         (version.texi, stamp-version): Likewise.
7958         (.%c.texi): Likewise.
7959         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7960         (mostlyclean): Remove target.
7961         (realclean): Remove target.
7962         (generated): Add new variable with contents from mostlyclean and
7963         realclean, remove entries duplicated in common-mostlyclean, add
7964         stamp-libm-err and stamp-version.
7965         (generated-dirs): Add libc directory.
7966         ($(inst_infodir)/libc.info): Install files from build dir.
7967
7968         * manual/install.texi (Configuring and compiling): Adjust since
7969         the info files are not part of the tar ball anymore.
7970
7971 2012-05-14  Andreas Jaeger  <aj@suse.de>
7972
7973         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7974         variable.
7975
7976 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7977
7978         [BZ #13717]
7979         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7980         to 2.2.0 where earlier.
7981         * sysdeps/unix/sysv/linux/configure: Regenerated.
7982         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7983         Remove conditional code.
7984         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7985         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7986         Remove conditional code.
7987         [!__NR_lchown]: Likewise.
7988         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7989         [__NR_lchown]: Likewise.
7990         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7991         comment referencing __ASSUME_LCHOWN_SYSCALL.
7992         * sysdeps/unix/sysv/linux/i386/sigaction.c
7993         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7994         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7995         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7996         Remove conditional code.
7997         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7998         (__protocol_available): Remove #if 0 code.
7999         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8000         conditional code.
8001         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8002         * sysdeps/unix/sysv/linux/kernel-features.h
8003         (__ASSUME_GETCWD_SYSCALL): Don't define.
8004         (__ASSUME_REALTIME_SIGNALS): Likewise.
8005         (__ASSUME_PREAD_SYSCALL): Likewise.
8006         (__ASSUME_PWRITE_SYSCALL): Likewise.
8007         (__ASSUME_POLL_SYSCALL): Likewise.
8008         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8009         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8010         non-SPARC.
8011         (__ASSUME_SIOCGIFNAME): Don't define.
8012         (__ASSUME_MSG_NOSIGNAL): Likewise.
8013         (__ASSUME_SENDFILE): Define unconditionally.
8014         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8015         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8016         conditional code.
8017         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8018         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8019         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8020         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8021         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8022         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8023         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8025         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8026         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8028         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8029         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8031         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8032         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8034         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8035         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8037         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8038         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8040         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8041         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8043         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8044         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8046         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8047         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8048         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8049         Remove conditional code.
8050         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8051         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8052         Remove conditional code.
8053         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8054         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8055         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8056         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8057         Remove conditional code.
8058         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8059         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8060         Remove conditional code.
8061         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8062         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8063         Remove conditional code.
8064         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8065         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8066         Remove conditional code.
8067         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8068         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8069         Remove conditional code.
8070         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8071         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8072         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8073         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8074         * sysdeps/unix/sysv/linux/sigaction.c
8075         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8076         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8077         * sysdeps/unix/sysv/linux/sigpending.c
8078         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8079         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8080         * sysdeps/unix/sysv/linux/sigprocmask.c
8081         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8082         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8083         * sysdeps/unix/sysv/linux/sigsuspend.c
8084         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8085         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8086         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8087         (__libc_missing_rt_sigs): Remove.
8088         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8089         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8090         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8091         Remove conditional code.
8092         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8093         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8094         return 1.
8095         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8096         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8097         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8098         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8099
8100 2012-05-14  Andreas Jaeger  <aj@suse.de>
8101
8102         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8103         it's not used in glibc.
8104         (__coshm1): Likewise.
8105         (__acosh1p): Likewise.
8106         (__sgn): Likewise.
8107
8108         * manual/string.texi (Copying and Concatenation): Add missing
8109         variable in concat example.
8110         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8111
8112 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8113
8114         [BZ #14103]
8115         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8116         __builtin_clzl with __builtin_clzll.
8117
8118 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8119
8120         [BZ #14104]
8121         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8122         libc_freeres_ptr.
8123
8124 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8125
8126         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8127         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8128         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8129         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8130
8131 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8132
8133         * NEWS: Update ia64 info.
8134
8135 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8136
8137         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8138         used as bcopy.
8139
8140 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8141
8142         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8143         * sysdeps/unix/syscalls.list (dup3): Likewise.
8144         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8145         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8146
8147 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8148
8149         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8150         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8151
8152 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8153
8154         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8155         thread pointer.
8156         (TLS_IE): Use mov/add instead of movq/addq to load thread
8157         pointer.
8158         (TLS_GD_PREFIX): New.
8159         (TLS_GD): Use it.
8160
8161 2012-05-11  David S. Miller  <davem@davemloft.net>
8162
8163         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8164         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8165         (_FPU_SETCW): Likewise.
8166
8167 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8168
8169         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8170         is 32-byte aligned.
8171
8172 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8173
8174         [BZ #11837]
8175         * iconvdata/gb18030.c: Update tables.
8176         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8177         characters specially.
8178         (BODY for TO_LOOP): Add encoding of missing ranges.
8179
8180 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8181
8182         [BZ #13673]
8183         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8184         * sysdeps/mach/hurd/dup3.c: Likewise.
8185         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8186         * sysdeps/powerpc/memmove.c:: Likewise.
8187
8188 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8189
8190         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8191         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8192
8193 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8194
8195         * elf/elf.h (R_X86_64_RELATIVE64): New.
8196         (R_X86_64_NUM): Updated.
8197         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8198         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8199         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8200         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8201         tst-quad1pie tst-quad2pie
8202         (modules-names): Add tst-quadmod1 tst-quadmod2.
8203         ($(objpfx)tst-quad1): New dependency.
8204         ($(objpfx)tst-quad2): Likewise.
8205         ($(objpfx)tst-quad1pie): Likewise.
8206         ($(objpfx)tst-quad2pie): Likewise.
8207         * sysdeps/x86_64/tst-quad1.c: New file.
8208         * sysdeps/x86_64/tst-quad1pie.c: New file.
8209         * sysdeps/x86_64/tst-quad2.c: Likewise.
8210         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8211         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8212         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8213         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8214         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8215
8216 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8217
8218         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8219         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8220         * streams/stropts.h (t_scalar_t): Define type.
8221
8222         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8223         (_PATH_PRESERVE): Set to "/var/lib".
8224         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8225
8226         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8227         instead of int.
8228
8229         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8230         if __dir_mkfile succeeded.
8231
8232         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8233         checking for _hurd_dtablesize.  Unlock it right after having
8234         finished _hurd_dtable allocation.
8235
8236 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8237
8238         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8239         * sysdeps/mach/hurd/configure: Regenerated.
8240         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8241         special-casing to...
8242         * sysdeps/gnu/configure.in: ... this new file.
8243         * sysdeps/unix/sysv/linux/configure: Regenerated.
8244         * sysdeps/gnu/configure: New generated file.
8245
8246         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8247         for Linux: use nsec instead of usec, as well as:
8248         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8249         members of type struct timespec.
8250         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8251         New macros.
8252         (struct stat64): Likewise.
8253         (_STATBUF_ST_NSEC): New macro.
8254         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8255
8256         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8257         __strtoul_internal rather than strtoul.
8258
8259 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8260
8261         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8262         and reject them.
8263
8264 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8265
8266         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8267         which preserves existing values.
8268         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8269
8270 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8271
8272         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8273         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8274         greater than FD_SETSIZE.
8275
8276 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8277
8278         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8279         allocated, call __vm_protect to finish enabling the existing space, and
8280         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8281         allocate the remainder.
8282
8283 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8284
8285         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8286         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8287
8288 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8289
8290         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8291         sysdeps/mach/hurd/readlink.c.
8292
8293         * posix/tst-sysconf.c (posix_options): Only use
8294         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8295         _POSIX_SYNCHRONIZED_IO when they are defined
8296         * sysdeps/mach/hurd/bits/posix_opt.h:
8297         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8298         (_XOPEN_REALTIME): Undefine macro.
8299         (_XOPEN_REALTIME_THREADS): Undefine macro.
8300         (_XOPEN_SHM): Undefine macro.
8301         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8302         macro to -1.
8303         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8304         macro to -1.
8305         (_POSIX_ASYNC_IO): Undefine macro.
8306         (_POSIX_PRIORITIZED_IO): Undefine macro.
8307         (_POSIX_SPIN_LOCKS): Define macro to -1.
8308
8309         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8310         SA_NODEFER, SA_RESETHAND.
8311         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8312         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8313         F_DUPFD_CLOEXEC.
8314
8315 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8316
8317         * elf/Makefile (pldd-modules): Define unconditionally.
8318
8319 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8320
8321         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8322
8323 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8324
8325         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8326         Return ENOENT when name is empty.
8327         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8328
8329 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8330
8331         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8332
8333         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8334
8335 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8336
8337         Fix mlock in all cases except non-readable pages.
8338         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8339         instead of VM_PROT_ALL as parameter to __vm_wire function.
8340
8341         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8342         (__mkdir): When path is `/', just fail with EEXIST.
8343         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8344
8345 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8346
8347         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8348         <sys/uio.h> (for writev).
8349         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8350         and <sys/param.h> (for MIN).
8351
8352 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8353
8354         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8355         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8356         if interrupted.
8357
8358 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8359
8360         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8361         Depend on against $(link-rpcuserlibs).
8362
8363 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8364
8365         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8366         (__libc_stack_end): Do not use attribute_relro.
8367         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8368         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8369         to libthread-provided value.
8370         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8371         attribute_relro.
8372
8373 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8374
8375         [BZ #3748]
8376         * bits/libc-lock.h (__libc_once_get): New macro.
8377         * sysdeps/mach/bits/libc-lock.h: Likewise.
8378         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8379         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8380         instead of using implementation details.
8381
8382         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8383         * libio/freopen.c: Likewise.
8384         * libio/freopen64.c: Likewise.
8385         * misc/syslog.c: Likewise.
8386         * nscd/connections.c: Likewise.
8387         * nscd/netgroupcache.c: Likewise.
8388         * sysdeps/posix/getcwd.c: Likewise.
8389
8390 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8391
8392         * math/w_ilogbf.c: Add #include <limits.h>.
8393
8394 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8395
8396         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8397         path instead of returning without unlocking.
8398
8399         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8400         immediate-write ioctls.
8401         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8402
8403 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8404
8405         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8406         __builtin_frame_address instead of making assumptions about the
8407         location of the return address relative to DATA.  Force early load of
8408         the return address.
8409         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8410         __builtin_frame_address.
8411
8412         dup3 for GNU Hurd.
8413         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8414         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8415         implement dup3 and do some further code clean-ups.
8416         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8417         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8418
8419 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8420
8421         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8422
8423         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8424         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8425         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8426         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8427         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8428         d->port.lock.
8429
8430         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8431         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8432         when handler == SIG_ERR, not when handler != SIG_ERR.
8433
8434 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8435
8436         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8437         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8438         definitions.
8439
8440         accept4 for GNU Hurd.
8441         * include/sys/socket.h (__libc_accept4): New prototype.
8442         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8443         to implement __libc_accept4.
8444         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8445         __libc_accept4.
8446         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8447
8448         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8449         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8450         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8451         signal-defines.sym.
8452
8453 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8454
8455         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8456
8457 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8458
8459         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8460         assertion on O_CLOEXEC flag.
8461         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8462         * hurd/intern-fd.c: Likewise.
8463         * hurd/port2fd.c: Likewise.
8464
8465 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8466
8467         [BZ #3906]
8468         * bits/in.h (IPV6_PKTINFO): Define new macro.
8469         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8470
8471 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8472
8473         [BZ #13954]
8474         [BZ #13955]
8475         [BZ #13956]
8476         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8477         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8478         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8479         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8480         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8481         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8482         * math/libm-test.inc (logb_test) : Additional logb tests.
8483
8484 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8485             Andreas Jaeger  <aj@suse.de>
8486
8487         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8488         * configure: Regenerated.
8489         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8490         * config.make.in (link-obsolete-rpc): New substituted variable.
8491         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8492         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8493         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8494         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8495         so that libc.a contains the symbols.
8496         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8497         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8498         * sunrpc/auth_none.c: Likewise.
8499         * sunrpc/auth_unix.c: Likewise.
8500         * sunrpc/authdes_prot.c: Likewise.
8501         * sunrpc/authuxprot.c: Likewise.
8502         * sunrpc/clnt_gen.c: Likewise.
8503         * sunrpc/clnt_perr.c: Likewise.
8504         * sunrpc/clnt_raw.c: Likewise.
8505         * sunrpc/clnt_simp.c: Likewise.
8506         * sunrpc/clnt_tcp.c: Likewise.
8507         * sunrpc/clnt_udp.c: Likewise.
8508         * sunrpc/clnt_unix.c: Likewise.
8509         * sunrpc/des_crypt.c: Likewise.
8510         * sunrpc/des_soft.c: Likewise.
8511         * sunrpc/get_myaddr.c: Likewise.
8512         * sunrpc/key_call.c: Likewise.
8513         * sunrpc/key_prot.c: Likewise.
8514         * sunrpc/netname.c: Likewise.
8515         * sunrpc/pm_getmaps.c: Likewise.
8516         * sunrpc/pm_getport.c: Likewise.
8517         * sunrpc/pmap_clnt.c: Likewise.
8518         * sunrpc/pmap_prot.c: Likewise.
8519         * sunrpc/pmap_prot2.c: Likewise.
8520         * sunrpc/pmap_rmt.c: Likewise.
8521         * sunrpc/publickey.c: Likewise.
8522         * sunrpc/rpc_cmsg.c: Likewise.
8523         * sunrpc/rpc_common.c: Likewise.
8524         * sunrpc/rpc_dtable.c: Likewise.
8525         * sunrpc/rpc_prot.c: Likewise.
8526         * sunrpc/rpc_thread.c: Likewise.
8527         * sunrpc/rtime.c: Likewise.
8528         * sunrpc/svc.c: Likewise.
8529         * sunrpc/svc_auth.c: Likewise.
8530         * sunrpc/svc_raw.c: Likewise.
8531         * sunrpc/svc_run.c: Likewise.
8532         * sunrpc/svc_tcp.c: Likewise.
8533         * sunrpc/svc_udp.c: Likewise.
8534         * sunrpc/svc_unix.c: Likewise.
8535         * sunrpc/svcauth_des.c: Likewise.
8536         * sunrpc/xcrypt.c: Likewise.
8537         * sunrpc/xdr.c: Likewise.
8538         * sunrpc/xdr_array.c: Likewise.
8539         * sunrpc/xdr_float.c: Likewise.
8540         * sunrpc/xdr_intXX_t.c: Likewise.
8541         * sunrpc/xdr_mem.c: Likewise.
8542         * sunrpc/xdr_rec.c: Likewise.
8543         * sunrpc/xdr_ref.c: Likewise.
8544         * sunrpc/xdr_sizeof.c: Likewise.
8545         * sunrpc/xdr_stdio.c: Likewise.
8546
8547 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8548
8549         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8550         change.  Update copyright years.
8551
8552 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8553
8554         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8555
8556 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8557             Joseph Myers  <joseph@codesourcery.com>
8558             Paul Pluzhnikov  <ppluzhnikov@google.com>
8559
8560         [BZ #14012]
8561         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8562         requiring rpcgen.
8563         [cross-compiling] (extra-libs): Likewise.
8564         [cross-compiling] (extra-libs-others): Likewise.
8565         [cross-compiling] (librpcsvc-routines): Likewise.
8566         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8567         [cross-compiling] (omit-deps): Likewise.
8568         (sunrpc-CPPFLAGS): New variable.
8569         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8570         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8571         (cross-rpcgen-objs): New variable.
8572         (extra-objs): Append $(cross-rpcgen-objs).
8573         ($(cross-rpcgen-objs)): New rule.
8574         ($(objpfx)cross-rpcgen): Likewise.
8575         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8576         comment.
8577         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8578         ($(objpfx)x%.stmp): Likewise.
8579         * sunrpc/proto.h [IS_IN_build] (_): Define.
8580         [IS_IN_build] (_libc_intl_domainname): Likewise.
8581
8582 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8583
8584         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8585         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8586         and R_X86_64_TPOFF64.
8587
8588 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8589
8590         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8591         sysdeps/unix/sysv/syscalls.list.
8592         (stime): Likewise.
8593         (utime): Likewise.
8594         * sysdeps/unix/sysv/syscalls.list: Remove file.
8595
8596 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8597
8598         [BZ #3440]
8599         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8600         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8601         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8602         (__LC_IDENTIFICATION): Make these macros useful in #if
8603         expressions, as required by C99.
8604
8605 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8606
8607         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8608         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8609         after this.
8610
8611 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8612
8613         * stdlib/longlong.h: Updated from GCC.
8614
8615 2012-05-09  Andreas Jaeger  <aj@suse.de>
8616
8617         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8618         default is first entry.
8619         (run_mode): Set type.
8620         (main): Remove informal message about syslog.
8621         (options): Fix typo.
8622
8623         [BZ #14053]
8624         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8625         to asm.
8626         (lrint): Likewise.
8627         (llrintf): Likewise.
8628         (llrint): Likewise.
8629         (rint): Likewise.
8630         (rintf): Likewise.
8631         (nearbyint): Likewise.
8632         (nearbyintf): Likewise.
8633
8634 2012-05-09  Andreas Jaeger  <aj@suse.de>
8635             Pedro Alves  <palves@redhat.com>
8636
8637         * nscd/nscd.c (run_mode): Use enum.
8638         (main): Cleanup coding style issue.
8639
8640 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8641             Andreas Jaeger  <aj@suse.de>
8642
8643         * nscd/nscd.c (go_background): Replaced with...
8644         (run_mode): ... this.
8645         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8646         (options): Add -F --foreground.
8647         (main): Implement it.
8648         (parse_opt): Parse it.
8649
8650 2012-05-09  Andreas Jaeger  <aj@suse.de>
8651
8652         [BZ #14083]
8653         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8654         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8655         -Wconversion warning.
8656         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8657         Likewise.
8658
8659 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8660
8661         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8662         == 0.
8663         (LC_ALL): Use macro-int-constant.
8664         (LC_COLLATE): Likewise.
8665         (LC_CTYPE): Likewise.
8666         (LC_MESSAGES): Likewise.
8667         (LC_MONETARY): Likewise.
8668         (LC_NUMERIC): Likewise.
8669         (LC_TIME): Likewise.
8670         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8671         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8672         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8673         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8674         Specify type.
8675         [C99-based standards] (float_t): Expect type.
8676         [C99-based standards] (double_t): Expect type.
8677         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8678         type.
8679         [C99-based standards] (HUGE_VALL): Likewise.
8680         [C99-based standards] (INFINITY): Likewise.
8681         [C99-based standards] (NAN): Likewise.
8682         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8683         [C99-based standards] (FP_NAN): Likewise.
8684         [C99-based standards] (FP_NORMAL): Likewise.
8685         [C99-based standards] (FP_SUBNORMAL): Likewise.
8686         [C99-based standards] (FP_ZERO): Likewise.
8687         [C99-based standards] (FP_FAST_FMA): Use
8688         optional-macro-int-constant.  Specify type.  Require == 1.
8689         [C99-based standards] (FP_FAST_FMAF): Likewise.
8690         [C99-based standards] (FP_FAST_FMAL): Likewise.
8691         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8692         [C99-based standards] (FP_ILOGBNAN): Likewise.
8693         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8694         Specify type.
8695         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8696         [C99-based standards] (math_errhandling): Specify type.
8697         [ISO99 || ISO11] (signgam): Do not allow.
8698         [non-C99-based standards] (copysignf): Do not allow.
8699         [non-C99-based standards] (exp2f): Likewise.
8700         [non-C99-based standards] (log2f): Likewise.
8701         [non-C99-based standards] (modff): Allow.
8702         [non-C99-based standards] (erff): Do not allow.
8703         [non-C99-based standards] (erfcf): Likewise.
8704         [non-C99-based standards] (gammaf): Likewise.
8705         [non-C99-based standards] (hypotf): Likewise.
8706         [non-C99-based standards] (j0f): Likewise.
8707         [non-C99-based standards] (j1f): Likewise.
8708         [non-C99-based standards] (jnf): Likewise.
8709         [non-C99-based standards] (lgammaf): Likewise.
8710         [non-C99-based standards] (tgammaf): Likewise.
8711         [non-C99-based standards] (y0f): Likewise.
8712         [non-C99-based standards] (y1f): Likewise.
8713         [non-C99-based standards] (ynf): Likewise.
8714         [non-C99-based standards] (isnanf): Likewise.
8715         [non-C99-based standards] (acoshf): Likewise.
8716         [non-C99-based standards] (asinhf): Likewise.
8717         [non-C99-based standards] (atanhf): Likewise.
8718         [non-C99-based standards] (cbrtf): Likewise.
8719         [non-C99-based standards] (expm1f): Likewise.
8720         [non-C99-based standards] (ilogbf): Likewise.
8721         [non-C99-based standards] (log1pf): Likewise.
8722         [non-C99-based standards] (logbf): Likewise.
8723         [non-C99-based standards] (nextafterf): Likewise.
8724         [non-C99-based standards] (remainderf): Likewise.
8725         [non-C99-based standards] (rintf): Likewise.
8726         [non-C99-based standards] (scalbf): Likewise.
8727         [non-C99-based standards] (copysignl): Likewise.
8728         [non-C99-based standards] (exp2l): Likewise.
8729         [non-C99-based standards] (log2l): Likewise.
8730         [non-C99-based standards] (modfl): Allow.
8731         [non-C99-based standards] (erfl): Do not allow.
8732         [non-C99-based standards] (erfcl): Likewise.
8733         [non-C99-based standards] (gammal): Likewise.
8734         [non-C99-based standards] (hypotl): Likewise.
8735         [non-C99-based standards] (j0l): Likewise.
8736         [non-C99-based standards] (j1l): Likewise.
8737         [non-C99-based standards] (jnl): Likewise.
8738         [non-C99-based standards] (lgammal): Likewise.
8739         [non-C99-based standards] (tgammal): Likewise.
8740         [non-C99-based standards] (y0l): Likewise.
8741         [non-C99-based standards] (y1l): Likewise.
8742         [non-C99-based standards] (ynl): Likewise.
8743         [non-C99-based standards] (isnanl): Likewise.
8744         [non-C99-based standards] (acoshl): Likewise.
8745         [non-C99-based standards] (asinhl): Likewise.
8746         [non-C99-based standards] (atanhl): Likewise.
8747         [non-C99-based standards] (cbrtl): Likewise.
8748         [non-C99-based standards] (expm1l): Likewise.
8749         [non-C99-based standards] (ilogbl): Likewise.
8750         [non-C99-based standards] (log1pl): Likewise.
8751         [non-C99-based standards] (logbl): Likewise.
8752         [non-C99-based standards] (nextafterl): Likewise.
8753         [non-C99-based standards] (remainderl): Likewise.
8754         [non-C99-based standards] (rintl): Likewise.
8755         [non-C99-based standards] (scalbl): Likewise.
8756         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8757         [non-C99-based standards] (FP_*): Do not allow.
8758         [C99-based standards] (FP_*): Change to
8759         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8760         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8761         allow.
8762         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8763         (SIG_ERR): Likewise.
8764         [X/Open-based standards] (SIG_HOLD): Likewise.
8765         (SIG_IGN): Likewise.
8766         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8767         positive value.
8768         (SIGFPE): Likewise.
8769         (SIGILL): Likewise.
8770         (SIGINT): Likewise.
8771         (SIGSEGV): Likewise.
8772         (SIGTER): Likewise.
8773         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8774         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8775         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8776         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8777         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8778         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8779         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8780         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8781         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8782         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8783         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8784         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8785         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8786         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8787         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8788         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8789         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8790         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8791         [X/Open-based standards] (SIGTRAP): Likewise.
8792         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8793         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8794         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8795         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8796         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8797         allow.
8798
8799 2012-05-08  Ian Wienand  <ianw@vmware.com>
8800
8801         [BZ #14080]
8802         * time/tzset.c (__tzset_parse_tz): Update default rules for
8803         daylight time changes in the Energy Policy Act of 2005.
8804
8805 2012-05-09  Andreas Jaeger  <aj@suse.de>
8806
8807         [BZ #13983]
8808         * elf/ldconfig.c (parse_conf): Change string to make clear that
8809         ldconfig only issued a warning if ld.so.conf does not exist.
8810
8811 2012-05-08  David S. Miller  <davem@davemloft.net>
8812
8813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8814         movxtod instead of popping the value on the stack.
8815
8816         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8817
8818 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8819
8820         * config.h.in: Add HAVE_ARM_PCS_VFP.
8821
8822 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8823
8824         [BZ #13979]
8825         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8826         checking but the checks are disabled for any reason.
8827
8828 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8829
8830         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8831         and ELF64_R_TYPE with ELFW(R_TYPE).
8832
8833 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8834
8835         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8836         (ulimit): Likewise.
8837
8838         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8839         (settimeofday): Likewise.
8840
8841 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8842
8843         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8844         a struct th_u2 inside the union, and move tu_block/tu_code into
8845         a new th_u3 union of tu_block/tu_code inside of that.  Move
8846         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8847         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8848         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8849         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8850         (th_stuff): Change to th_u1.tu_stuff.
8851         (th_data): Define.
8852         (th_msg): Change to th_u1.th_u2.tu_data.
8853
8854 2012-05-07  David S. Miller  <davem@davemloft.net>
8855
8856         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8857
8858         [BZ #14074]
8859         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8860         (SETUP_PIC_REG): Use it.
8861         (SETUP_PIC_REG_LEAF): Use it.
8862
8863 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8864
8865         [BZ #13885]
8866         [BZ #13923]
8867         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8868         USE_AS_EXPM1L.
8869         (EXPL_FINITE): Likewise.
8870         (FLDLOG): Likewise.
8871         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8872         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8873         e_expl.S.
8874         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8875         USE_AS_EXPM1L.
8876         (EXPL_FINITE): Likewise.
8877         (FLDLOG): Likewise.
8878         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8879         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8880         e_expl.S.
8881         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8882         test of -max_value argument for long double.
8883         * sysdeps/i386/fpu/libm-test-ulps: Update.
8884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8885
8886 2012-05-06  David S. Miller  <davem@davemloft.net>
8887
8888         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8889         quad soft-float symbols whose references which are compiler
8890         generated.
8891         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8892
8893 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8894
8895         [BZ #13884]
8896         [BZ #13914]
8897         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8898         USE_AS_EXP10L.
8899         (EXPL_FINITE): Likewise.
8900         (FLDLOG): Likewise.
8901         (c0): Likewise.
8902         (c1): Likewise.
8903         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8904         Adjust comments for base varying.
8905         (__expl_finite): Change alias to EXPL_FINITE.
8906         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8907         e_expl.S.
8908         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8909         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8910         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8911         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8912         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8913         USE_AS_EXP10L.
8914         (EXPL_FINITE): Likewise.
8915         (FLDLOG): Likewise.
8916         (c0): Likewise.
8917         (c1): Likewise.
8918         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8919         Adjust comments for base varying.
8920         (__expl_finite): Change alias to EXPL_FINITE.
8921         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
8922         tests for bugs.
8923         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8924
8925         [BZ #14064]
8926         * math/libm-test.inc (check_float_internal): Correct ulp
8927         calculation for subnormal expected results.
8928
8929 2012-05-06  Andreas Jaeger  <aj@suse.de>
8930
8931         * Makeconfig (+math-flags): New, set to -frounding-math.
8932         (+cflags): Add +math-flags so that all of glibc gets compiled with
8933         it.
8934
8935         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
8936
8937 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
8938
8939         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
8940         Disable one test.
8941
8942         [BZ #13787]
8943         [BZ #13922]
8944         [BZ #14036]
8945         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8946         (__ieee754_expl): Allow for and saturate large arguments.
8947         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8948         (u_threshold): Likewise.
8949         (__exp): Call __ieee754_exp before checking for overflow and
8950         underflow.
8951         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8952         (u_threshold): Likewise.
8953         (__expf): Call __ieee754_expf before checking for overflow and
8954         underflow.
8955         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8956         (u_threshold): Likewise.
8957         (__expl): Call __ieee754_expl before checking for overflow and
8958         underflow.
8959         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8960         (__ieee754_expl): Allow for and saturate large arguments.
8961         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8962         missing overflow exception on overflow.
8963         (expm1_test): Do not allow missing overflow exception on overflow.
8964
8965         * sysdeps/i386/fpu/e_expl.c: Move to ...
8966         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8967         rather than using inline asm.
8968         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8969         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8970         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8971
8972         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8973         (nice): Likewise.
8974         (poll): Likewise.
8975         (signal): Likewise.
8976         (time): Likewise.
8977         (times): Likewise.
8978
8979 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8980
8981         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8982         sysdeps/unix/common/syscalls.list.
8983         (fchmod): Likewise.
8984         (fchown): Likewise.
8985         (ftruncate): Likewise.
8986         (getrusage): Likewise.
8987         (gettimeofday): Likewise.
8988         (setpgid): Likewise.
8989         (setregid): Likewise.
8990         (setreuid): Likewise.
8991         (sigaction): Likewise.
8992         (truncate): Likewise.
8993         (vhangup): Likewise.
8994         * sysdeps/unix/common/syscalls.list: Remove file.
8995         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8996         * sysdeps/unix/sysv/linux/Implies: Likewise.
8997
8998 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8999
9000         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9001         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9002         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9003         Moved to ...
9004         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9005         Here.
9006         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9007         to ...
9008         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9009         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9010         to ...
9011         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9012         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9013         to ...
9014         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9015         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9016         to ...
9017         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9018         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9019         to ...
9020         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9021         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9022         to ...
9023         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9024         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9025         to ...
9026         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9027         Here.
9028         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9029         to ...
9030         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9031         Here.
9032         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9033         to ...
9034         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9035         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9036         Moved to ...
9037         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9038         Here.
9039         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9040         to ...
9041         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9042
9043 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9044
9045         * sysdeps/unix/common/bits/dirent.h: Remove file.
9046         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9047
9048         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9049         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9050         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9051         * sysdeps/unix/bsd/isatty.c: Likewise.
9052         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9053         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9054         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9055
9056 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9057
9058         [BZ #13563]
9059         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9060         long double comparison inaccuracies.
9061         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9062         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9063
9064 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9065
9066         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9067         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9068
9069 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9070
9071         [BZ #14049]
9072         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9073         nonzero digits before rounding a hex value.
9074         * stdlib/tst-strtod.c (tests): Add another test.
9075
9076 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9077
9078         * sysdeps/s390/fpu/libm-test-ulps: Update.
9079
9080 2012-05-03  Andreas Jaeger  <aj@suse.de>
9081
9082         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9083         does not get optimized out.
9084         (malloc_opt_barrier): New.
9085
9086 2012-05-03  Andreas Jaeger  <aj@suse.de>
9087             Roland McGrath  <roland@hack.frob.com>
9088
9089         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9090         intermediate file deletion.
9091         (generated): Add .symlist files.
9092
9093 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9094
9095         [BZ #13775]
9096         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9097         Redirect under this condition.
9098         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9099         [__USE_GNU] (__dprintf_chk): Not under this condition.
9100         [__USE_GNU] (__vdprintf_chk): Likewise.
9101         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9102         under this condition.
9103         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9104         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9105         [__USE_XOPEN2K8] (vdprintf): Likewise.
9106         [__USE_GNU] (__dprintf_chk): Not under this condition.
9107         [__USE_GNU] (__vdprintf_chk): Likewise.
9108         [__USE_GNU] (dprintf): Likewise.
9109         [__USE_GNU] (vdprintf): Likewise.
9110
9111 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9112
9113         * elf/Makefile (common-generated): Set this instead of generated for
9114         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9115         $(all-built-dso)-derived lists.
9116
9117 2012-05-03  Andreas Jaeger  <aj@suse.de>
9118
9119         * sysdeps/i386/fpu/libm-test-ulps: Update.
9120
9121         * FAQ: Removed.
9122         * FAQ.in: Likewise.
9123         * scripts/gen-FAQ.pl: Likewise.
9124         * manual/install.texi (Installation): Point to online location of
9125         FAQ.
9126         * Makefile (files-for-dist): Remove FAQ.
9127         (FAQ): Remove.
9128
9129 2012-05-02  Allan McRae  <allan@archlinux.org>
9130
9131         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9132         (LDFLAGS-reldepmod5.so): Likewise.
9133         (LDFLAGS-reldep6mod1.so): Likewise.
9134         (LDFLAGS-reldep6mod4.so): Likewise.
9135         (LDFLAGS-reldep8mod3.so): Likewise.
9136         (LDFLAGS-unload4mod1.so): Likewise.
9137         (LDFLAGS-unload4mod2.so): Likewise.
9138         (LDFLAGS-tst-initorder): Likewise.
9139         (LDFLAGS-tst-initordera2.so): Likewise.
9140         (LDFLAGS-tst-initordera3.so): Likewise.
9141         (LDFLAGS-tst-initordera4.so): Likewise.
9142         (LDFLAGS-tst-initorderb2.so): Likewise.
9143         (LDFLAGS-noload): Likewise.
9144         (LDFLAGS-next): Likewise.
9145         (LDFLAGS-order2mod1.so): Likewise.
9146         (LDFLAGS-order2mod2.so): Likewise.
9147         (LDFLAGS-tst-initorder2): Likewise.
9148         (LDFLAGS-tst-initorder2a.so): Likewise.
9149         (LDFLAGS-tst-initorder2b.so): Likewise.
9150         (LDFLAGS-tst-initorder2c.so): Likewise.
9151         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9152
9153 2012-05-02  David S. Miller  <davem@davemloft.net>
9154
9155         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9156
9157 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9158
9159         [BZ #14055]
9160         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9161
9162 2012-05-02  Andreas Jaeger  <aj@suse.de>
9163
9164         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9165         since we manipulate rounding mode.
9166         (CPPFLAGS-test-idouble.c): Likewise.
9167         (CPPFLAGS-test-ifloat.c): Likewise.
9168         (CFLAGS-test-ldouble.c): Likewise.
9169         (CFLAGS-test-double.c): Likewise.
9170         (CFLAGS-test-float.c): Likewise.
9171         (CFLAGS-test-misc.c): Likewise.
9172         (CFLAGS-test-test-fenv.c): Likewise.
9173
9174 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9175
9176         [BZ #2550]
9177         [BZ #2570]
9178         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9179         comparisons to determine direction to adjust input.
9180
9181 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9182
9183         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9184         output to the target.
9185
9186         * scripts/localplt.awk: New file.
9187         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9188         (check-localplt-CFLAGS): Variable removed.
9189         ($(all-built-dso:=.jmprel)): New static pattern rule.
9190         (generated): Add those targets.
9191         (localplt-built-dso): New variable.
9192         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9193
9194         * elf/check-localplt.c: File removed.
9195
9196         * scripts/check-execstack.awk: New file.
9197         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9198         (check-execstack-CFLAGS): Variable removed.
9199         ($(objpfx)check-execstack.h): Target removed.
9200         ($(objpfx)execstack-default): New target.
9201         (generated): Add that instead of check-execstack.h.
9202         ($(all-built-dso:=.phdr)): New static pattern rule.
9203         (generated): Add those targets.
9204         * elf/check-execstack.c: File removed.
9205
9206         * scripts/check-textrel.awk: New file.
9207         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9208         (check-textrel-CFLAGS): Variable removed.
9209         (all-built-dso): Use := to define.o
9210         ($(all-built-dso:=.dyn)): New static pattern rule.
9211         (generated): Add those targets.
9212         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9213         * config.make.in (READELF): New substituted variable.
9214         * elf/check-textrel.c: File removed.
9215
9216 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9217
9218         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9219         allow.
9220         * conform/data/ctype.h-data [C99-based standards] (isblank):
9221         Expect function.
9222         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9223         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9224         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9225         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9226         Specify type.  Require positive value.
9227         (EILSEQ): Likewise.
9228         (ERANGE): Likewise.
9229         [ISO || POSIX] (EILSEQ): Do not expect.
9230         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9231         Specify type.  Require positive value.
9232         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9233         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9234         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9235         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9236         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9237         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9238         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9239         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9240         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9241         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9242         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9243         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9244         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9245         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9246         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9247         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9248         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9249         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9250         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9251         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9252         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9253         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9254         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9255         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9256         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9257         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9258         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9259         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9260         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9261         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9262         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9263         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9264         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9265         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9266         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9267         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9268         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9269         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9270         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9271         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9272         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9273         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9274         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9275         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9276         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9277         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9278         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9279         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9280         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9281         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9282         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9283         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9284         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9285         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9286         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9287         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9288         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9289         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9290         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9291         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9292         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9293         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9294         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9295         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9296         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9297         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9298         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9299         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9300         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9301         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9302         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9303         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9304         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9305         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9306         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9307         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9308         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9309         Require >= 2.
9310         (FLT_ROUNDS): Expect as macro, not constant.
9311         (FLT_MANT_DIG): Use macro-int-constant.
9312         (DBL_MANT_DIG): Likewise.
9313         (LDBL_MANT_DIG): Likewise.
9314         (FLT_DIG): Likewise.
9315         (DBL_DIG): Likewise.
9316         (LDBL_DIG): Likewise.
9317         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9318         (DBL_MIN_EXP): Likewise.
9319         (LDBL_MIN_EXP): Likewise.
9320         (FLT_MAX_EXP): Use macro-int-constant.
9321         (DBL_MAX_EXP): Likewise.
9322         (LDBL_MAX_EXP): Likewise.
9323         (FLT_MAX_10_EXP): Likewise.
9324         (DBL_MAX_10_EXP): Likewise.
9325         (LDBL_MAX_10_EXP): Likewise.
9326         (FLT_MAX): Use macro-constant.
9327         (DBL_MAX): Likewise.
9328         (LDBL_MAX): Likewise.
9329         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9330         (DBL_EPSILON): Likewise.
9331         (LDBL_EPSILON): Likewise.
9332         (FLT_MIN): Likewise.
9333         (DBL_MIN): Likewise.
9334         (LDBL_MIN): Likewise.
9335         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9336         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9337         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9338         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9339         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9340         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9341         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9342         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9343         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9344         [ISO11] (FLT_TRUE_MIN): Likewise.
9345         [ISO11] (LDBL_TRUE_MIN): Likewise.
9346         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9347         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9348         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9349         (SCHAR_MAX): Likewise.
9350         (UCHAR_MAX): Likewise.
9351         (CHAR_MIN): Likewise.
9352         (CHAR_MAX): Likewise.
9353         (MB_LEN_MAX): Use macro-int-constant.
9354         (SHRT_MIN): Use macro-int-constant.  Specify type.
9355         (SHRT_MAX): Likewise.
9356         (USHRT_MAX): Likewise.
9357         (INT_MAX): Likewise.
9358         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9359         bound negative.
9360         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9361         bound with "U".
9362         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9363         bound with "L".
9364         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9365         bound negative.  Suffix upper bound with "L".
9366         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9367         bound with "UL".
9368         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9369         Specify type.
9370         [C99-based standards] (LLONG_MAX): Likewise.
9371         [C99-based standards] (ULLONG_MAX): Likewise.
9372         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9373         == 0.
9374         [ISO11] (max_align_t): Require type.
9375         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9376
9377         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9378         from $CFLAGS, without defining away __attribute__ calls.
9379         (checknamespace): Use $CFLAGS_namespace.
9380
9381         * conform/conformtest.pl (@keywords): Only include C99 keywords
9382         for standards based on C99 or C11.
9383
9384         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9385         Disable tests.
9386         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9387         UNIX98]: Likewise.
9388
9389         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9390         usability of symbols in #if.
9391
9392         * conform/conformtest.pl: If macro or constant types start
9393         "promoted:", expect the symbol to be of the following type
9394         promoted by the integer promotions.
9395
9396         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9397         in one place.  Also handle "macro-constant".
9398
9399         * conform/conformtest.pl: Only accept expected macro values with
9400         "==".  Parse all "macro" lines in one place.
9401         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9402
9403         * conform/conformtest.pl: Handle braced types on "constant" lines
9404         instead of handling "typed-constant".
9405         * conform/data/signal.h-data: Use "constant" instead of
9406         "typed-constant".
9407
9408         * conform/conformtest.pl: Handle "optional-" at start of lines in
9409         one place rather than duplicating several cases.  Handle each
9410         format of "macro" line with initial "optional-".
9411
9412         * conform/conformtest.pl: Only accept expected constant or
9413         optional-constant values with "==".  Parse all "constant" lines in
9414         one place.  Parse all "optional-constant" lines in one place.
9415         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9416         * conform/data/fmtmsg.h-data: Likewise.
9417         * conform/data/netinet/in.h-data: Likewise.
9418         * conform/data/tar.h-data: Likewise.
9419         * conform/data/limits.h-data: Use "==" form on "constant" and
9420         "optional-constant" lines.
9421
9422         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9423         Use -std=c99 for XOPEN2K.
9424         (@knownproblems): Remove.
9425         (newtoken): Don't check %isknown.
9426
9427         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9428         Do not expect macro.
9429         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9430         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9431         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9432         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9433         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9434         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9435         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9436         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9437         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9438         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9439         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9440         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9441         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9442         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9443         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9444         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9445         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9446         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9447         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9448         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9449         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9450         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9451         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9452         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9453         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9454         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9455         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9456         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9457         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9458         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9459         [XPG3] (acosh): Likewise.
9460         [XPG3] (asinh): Likewise.
9461         [XPG3] (atanh): Likewise.
9462         [XPG3] (cbrt): Likewise.
9463         [XPG3] (expm1): Likewise.
9464         [XPG3] (ilogb): Likewise.
9465         [XPG3] (log1p): Likewise.
9466         [XPG3] (logb): Likewise.
9467         [XPG3] (nextafter): Likewise.
9468         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9469         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9470         [XPG3] (remainder): Likewise.
9471         [XPG3] (rint): Likewise.
9472         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9473         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9474         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9475         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9476         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9477         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9478         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9479         [UNIX98 || XOPEN2K] (scalb): Expect.
9480         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9481         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9482         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9483         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9484         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9485         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9486         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9487         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9488         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9489         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9490         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9491         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9492         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9493         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9494         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9495         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9496         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9497         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9498         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9499         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9500         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9501         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9502         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9503         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9504         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9505         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9506         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9507         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9508         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9509         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9510         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9511         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9512         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9513         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9514         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9515         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9516         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9517         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9518         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9519         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9520         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9521         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9522         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9523         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9524         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9525         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9526         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9527         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9528         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9529         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9530         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9531         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9532         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9533         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9534         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9535         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9536         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9537         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9538         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9539         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9540         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9541         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9542         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9543         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9544         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9545         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9546         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9547         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9548         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9549         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9550         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9551         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9552         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9553         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9554         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9555         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9556         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9557         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9558         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9559         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9560         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9561         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9562         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9563         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9564         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9565         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9566         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9567         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9568         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9569         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9570         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9571         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9572         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9573         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9574         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9575         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9576         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9577         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9578         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9579         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9580         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9581         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9582         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9583         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9584         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9585         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9586         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9587         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9588         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9589         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9590         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9591         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9592         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9593         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9594         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9595         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9596         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9597         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9598         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9599         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9600         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9601         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9602         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9603         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9604         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9605         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9606         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9607         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9608         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9609         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9610         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9611         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9612         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9613         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9614         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9615         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9616         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9617
9618         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9619         _XOPEN_SOURCE_EXTENDED for XPG4.
9620
9621         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9622
9623         * Makeconfig (localtime): Remove variable.
9624         (inst_localtime-file): Likewise.
9625
9626 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9627
9628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9629         Update.
9630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9631         Update.
9632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9633         Update.
9634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9635         Update.
9636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9637         Update.
9638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9639         Update.
9640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9641         Update.
9642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9643         Update.
9644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9645         Update.
9646
9647 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9648
9649         [BZ #2550]
9650         [BZ #2570]
9651         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9652         comparisons to determine direction to adjust input.
9653         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9654         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9655         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9656         Likewise.
9657         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9658         Likewise.
9659         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9660         Likewise.
9661         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9662         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9663         Likewise.
9664         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9665         Likewise.
9666         * math/libm-test.inc (nexttoward_test): Add more tests.
9667
9668 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9669
9670         [BZ #14040]
9671         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9672         in version GLIBC_2.1, not GLIBC_2.0.
9673         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9674         Likewise.
9675
9676 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9677
9678         [BZ #13942]
9679         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9680         (1 - x) * (1 + x).
9681         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9682         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9683         * math/libm-test.inc (acos_test): Add more tests.
9684         (asin_test): Likewise.
9685         * sysdeps/i386/fpu/libm-test-ulps: Update.
9686         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9687
9688         [BZ #14034]
9689         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9690         of square root.
9691         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9692         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9693         * math/libm-test.inc (acos_test_tonearest): New function.
9694         (acos_test_towardzero): Likewise.
9695         (acos_test_downward): Likewise.
9696         (acos_test_upward): Likewise.
9697         (asin_test_tonearest): Likewise.
9698         (asin_test_towardzero): Likewise.
9699         (asin_test_downward): Likewise.
9700         (asin_test_upward): Likewise.
9701         (main): Call the new functions.
9702         * sysdeps/i386/fpu/libm-test-ulps: Update.
9703         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9704
9705         [BZ #13884]
9706         [BZ #13924]
9707         * math/e_exp10.c: Include <float.h>.
9708         (__ieee754_exp10): Handle underflow here rather than multiplying
9709         large negative argument by M_LN10.
9710         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9711         of __ieee754_expf.
9712         * math/e_exp10l.c: Include <float.h>.
9713         (__ieee754_exp10l): Handle underflow here rather than multiplying
9714         large negative argument by M_LN10l.
9715         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9716         spurious overflow exception on underflow.
9717
9718 2012-04-29  Marek Polacek  <polacek@redhat.com>
9719
9720         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9721         (__fortify_function): New macro.
9722         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9723         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9724         __extern_always_inline.
9725         * libio/bits/stdio2.h: Likewise.
9726         * libio/bits/stdio.h: Likewise.
9727         * string/string.h: Likewise.
9728         * string/bits/string3.h: Likewise.
9729         * include/stdio.h: Likewise.
9730         * stdlib/bits/stdlib.h: Likewise.
9731         * stdlib/stdlib.h: Likewise.
9732         * rt/bits/mqueue2.h: Likewise.
9733         * rt/mqueue.h: Likewise.
9734         * posix/bits/unistd.h: Likewise.
9735         * posix/unistd.h: Likewise.
9736         * io/bits/poll2.h: Likewise.
9737         * io/bits/fcntl2.h: Likewise.
9738         * io/fcntl.h: Likewise.
9739         * io/sys/poll.h: Likewise.
9740         * misc/bits/syslog.h: Likewise.
9741         * misc/bits/syslog-ldbl.h: Likewise.
9742         * misc/sys/syslog.h: Likewise.
9743         * socket/bits/socket2.h: Likewise.
9744         * socket/sys/socket.h: Likewise.
9745         * debug/tst-chk1.c: Likewise.
9746         * wcsmbs/bits/wchar2.h: Likewise.
9747         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9748         * wcsmbs/wchar.h: Likewise.
9749
9750 2012-04-29  Andreas Jaeger  <aj@suse.de>
9751
9752         * Makerules (tests): Remove enable-check-abi protection.
9753         (check-abi-warn): Remove.
9754         (check-abi-%): Remove check-abi-warn usage.
9755
9756         * configure.in: Remove check-abi configure option.
9757         * configure: Regenerated.
9758         * config.make.in (enable-check-abi): Remove.
9759
9760 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9761
9762         [BZ #14033]
9763         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9764         double functions to double *_finite functions.
9765
9766         [BZ #13941]
9767         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9768         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9769         LDBL_MIN_EXP.
9770         * stdio-common/Makefile (tests): Add tst-sprintf3.
9771         * stdio-common/tst-sprintf3.c: New file.
9772
9773         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9774         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9775
9776 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9777
9778         * conform/conformtest.pl: Remove duplicate typed-constant
9779         handling.
9780
9781 2012-04-28  David S. Miller  <davem@davemloft.net>
9782
9783         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9784         (check-abi-%): Remove AWK script prerequisite and explicit
9785         abilist directory.
9786         (check-abi): Rewrite to just diff the symlist with the abilist.
9787         (config-tls, config-abi-config): Delete, no longer used.
9788         (update-abi-%): Remove AWK script and explicit abilist directory.
9789         (update-abi): Rewrite to simply compare and conditionally copy the
9790         symlist and the sysdep abilist file.  Remove update-abi-config
9791         checks.
9792         * abilist/ld.abilist: Remove.
9793         * abilist/libBrokenLocale.abilist: Remove.
9794         * abilist/libanl.abilist: Remove.
9795         * abilist/libcrypt.abilist: Remove.
9796         * abilist/libdl.abilist: Remove.
9797         * abilist/librt.abilist: Remove.
9798         * abilist/libthread_db.abilist: Remove.
9799         * abilist/libutil.abilist: Remove.
9800         * scripts/extract-abilist.awk: Remove.
9801         * scripts/merge-abilist.awk: Remove.
9802         * sysdeps/generic/libcidn.abilist: New file.
9803         * sysdeps/generic/libnss_compat.abilist: New file.
9804         * sysdeps/generic/libnss_db.abilist: New file.
9805         * sysdeps/generic/libnss_dns.abilist: New file.
9806         * sysdeps/generic/libnss_files.abilist: New file.
9807         * sysdeps/generic/libnss_hesiod.abilist: New file.
9808         * sysdeps/generic/libnss_nis.abilist: New file.
9809         * sysdeps/generic/libnss_nisplus.abilist: New file.
9810         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9811         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9812         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9813         file.
9814         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9815         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9816         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9817         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9818         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9819         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9820         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9821         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9822         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9823         file.
9824         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9825         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9826         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9827         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9828         file.
9829         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9830         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9831         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9832         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9833         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9834         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9835         file.
9836         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9837         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9838         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9839         file.
9840         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9841         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9842         New file.
9843         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9844         New file.
9845         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9846         New file.
9847         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9848         New file.
9849         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9850         New file.
9851         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9852         New file.
9853         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9854         New file.
9855         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9856         New file.
9857         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9858         New file.
9859         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9860         New file.
9861         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9862         New file.
9863         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9864         New file.
9865         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9866         New file.
9867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9868         file.
9869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9870         New file.
9871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9872         New file.
9873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9874         file.
9875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9876         New file.
9877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9878         New file.
9879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9880         file.
9881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9882         New file.
9883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9884         New file.
9885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9886         New file.
9887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9888         New file.
9889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9890         New file.
9891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9892         New file.
9893         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9894         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9895         file.
9896         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9897         New file.
9898         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9899         file.
9900         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9901         file.
9902         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9903         file.
9904         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9905         file.
9906         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9907         file.
9908         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9909         New file.
9910         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9911         file.
9912         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9913         file.
9914         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9915         New file.
9916         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9917         file.
9918         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
9919         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
9920         file.
9921         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
9922         New file.
9923         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
9924         file.
9925         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
9926         file.
9927         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
9928         file.
9929         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
9930         file.
9931         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
9932         file.
9933         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9934         New file.
9935         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
9936         file.
9937         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
9938         file.
9939         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
9940         New file.
9941         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
9942         file.
9943         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9944         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9945         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9946         file.
9947         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9948         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9949         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9950         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9951         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9952         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9953         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9954         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9955         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9956         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9957         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9958         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9959         file.
9960         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9961         New file.
9962         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9963         file.
9964         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9965         file.
9966         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9967         file.
9968         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9969         file.
9970         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9971         file.
9972         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9973         New file.
9974         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9975         New file.
9976         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9977         file.
9978         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9979         New file.
9980         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9981         file.
9982         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9983         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9984         file.
9985         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9986         New file.
9987         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9988         file.
9989         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9990         file.
9991         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9992         file.
9993         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9994         file.
9995         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9996         file.
9997         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9998         New file.
9999         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10000         New file.
10001         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10002         file.
10003         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10004         New file.
10005         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10006         file.
10007
10008 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10009
10010         * conform/conformtest.pl: Fix typo in handling typed-constant from
10011         allow-header.
10012
10013 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10014
10015         * README: Cut down references to pre-2.6 Linux kernels and
10016         Linuxthreads.  Update lists of configurations in libc and ports
10017         and sort alphabetically.  Say "or newer" with Linux kernel version
10018         requirements.
10019
10020         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10021
10022 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10023
10024         [BZ #887]
10025         * math/libm-test.inc (logb_test_downward): New test to expose
10026         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10027         rounding mode.
10028
10029 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10030
10031         [BZ #14027]
10032         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10033         to be done.
10034         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10035         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10036
10037 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10038
10039         * sysdeps/unix/i386/brk.S: Remove file.
10040         * sysdeps/unix/i386/dl-brk.S: Likewise.
10041         * sysdeps/unix/i386/pipe.S: Likewise.
10042         * sysdeps/unix/i386/sigreturn.S: Likewise.
10043         * sysdeps/unix/i386/syscall.S: Likewise.
10044         * sysdeps/unix/i386/vfork.S: Likewise.
10045         * sysdeps/unix/i386/wait.S: Likewise.
10046
10047         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10048         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10049
10050         * configure.in (arm*-none*): Do not allow without
10051         --enable-hacker-mode.
10052         (netbsd*): Remove case setting base_os.
10053         (386bsd*): Likewise.
10054         (freebsd*): Likewise.
10055         (bsdi*): Likewise.
10056         (osf*): Likewise.
10057         (sunos*): Likewise.
10058         (ultrix*): Likewise.
10059         (newsos*): Likewise.
10060         (dynix*): Likewise.
10061         (*bsd*): Likewise.
10062         (sysv*): Likewise.
10063         (isc*): Likewise.
10064         (esix*): Likewise.
10065         (sco*): Likewise.
10066         (minix*): Likewise.
10067         (irix4*): Likewise.
10068         (irix6*): Likewise.
10069         (solaris[2-9]*): Likewise.
10070         (none): Likewise.
10071         * configure: Regenerated.
10072
10073 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10074
10075         [BZ #11521]
10076         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10077         overflow or cancellation in calculating denominator.
10078         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10079         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10080         down expression to avoid unexpected rounding in newer GCCs.
10081         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10082
10083 2012-04-26  David S. Miller  <davem@davemloft.net>
10084
10085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10086         long-double compat symbols.
10087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10092         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10093         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10094         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10095         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10096         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10097         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10098         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10099         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10100
10101 2012-04-25  David S. Miller  <davem@davemloft.net>
10102
10103         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10104         HWCAP_* values only after the memory barriers have been defined.
10105         (atomic_full_barrier): Define.
10106         (atomic_read_barrier): Define.
10107         (atomic_write_barrier): Define.
10108
10109 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10110
10111         * shlib-versions: Add libgcc_s version information.
10112         * sysdeps/generic/libgcc_s.h: Remove.
10113         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10114         libgcc_s.h.
10115         * sysdeps/gnu/unwind-resume.c: Likewise.
10116         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10117
10118 2012-04-25  David S. Miller  <davem@davemloft.net>
10119
10120         * sysdeps/unix/sparc/brk.S: Delete.
10121         * sysdeps/unix/sparc/dl-brk.S: Delete.
10122         * sysdeps/unix/sparc/pipe.S: Delete.
10123         * sysdeps/unix/sparc/sysdep.S: Delete.
10124         * sysdeps/unix/sparc/sysdep.h: Delete.
10125         * sysdeps/unix/sparc/vfork.S: Delete.
10126         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10127         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10128         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10129         ret_ERRVAL, r0, r1, MOVE): Define.
10130         (JUMPTARGET): Remove.
10131         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10132         sysdeps/unix/sparc/sysdep.h
10133         (ENTRY, END): Remove.
10134         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10135
10136 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10137
10138         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10139         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10140         -DIS_IN_build.
10141
10142         * timezone/README: Update upstream location and email address for
10143         tzcode and tzdata.
10144         * timezone/zdump.c: Update from tzcode 2012b.
10145         * timezone/zic.c: Likewise.
10146
10147         * configure.in (libc_cv_as_needed): Remove test.
10148         * configure: Regenerated.
10149         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10150         conditional definition.
10151         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10152         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10153         * config.make.in (have-as-needed): Remove variable.
10154
10155 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10156             Paul Pluzhnikov  <ppluzhnikov@google.com>
10157
10158         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10159         strings correctly.
10160
10161 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10162
10163         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10164         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10165         * sysdeps/sh/strlen.S: Likewise.
10166
10167 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10168
10169         * sysdeps/unix/fork.S: Remove file.
10170         * sysdeps/unix/i386/fork.S: Likewise.
10171         * sysdeps/unix/sparc/fork.S: Likewise.
10172
10173         * sysdeps/unix/system.c: Remove file.
10174         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10175
10176         * sysdeps/unix/getegid.S: Remove file.
10177         * sysdeps/unix/geteuid.S: Likewise.
10178
10179 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10180
10181         * scripts/check-localplt.awk: New file.
10182         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10183         of diff.
10184         * scripts/data/localplt-generic.data: Add a comment.
10185
10186         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10187         NODE when __dir_mkfile failed.
10188         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10189         Reported by Ludovic Courtès <ludo@gnu.org>.
10190
10191 2012-04-24  Andreas Jaeger  <aj@suse.de>
10192
10193         * Makerules (common-clean): Also remove gen-as-const-headers
10194         files.
10195
10196 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10197
10198         * Makerules (native-compile): Do not change working directory for
10199         build.  Use $(OUTPUT_OPTION) in command.
10200         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10201
10202 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10203
10204         [BZ #13886]
10205         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10206         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10207         * math/libm-test.inc (floor_test): Add more tests.
10208         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10209
10210 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10211
10212         * sysdeps/unix/getdents.c: Remove file.
10213         * sysdeps/unix/sysv/getdents.c: Likewise.
10214         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10215
10216         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10217         sysdeps/unix/mman/syscalls.list.
10218         (mmap): Likewise.
10219         (mprotect): Likewise.
10220         (msync): Likewise.
10221         (munmap): Likewise.
10222         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10223         * sysdeps/unix/mman/syscalls.list: Remove.
10224         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10225
10226         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10227         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10228         * configure: Regenerated.
10229         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10230         $(libgcc_s_suffix).
10231         * config.make.in (libgcc_s_suffix): Remove variable.
10232
10233 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10234
10235         * sysdeps/unix/sysv/gethostname.c: Move to ...
10236         * sysdeps/posix/gethostname.c: ... here.
10237
10238         * sysdeps/unix/execve.S: Remove file.
10239
10240         * sysdeps/unix/_exit.S: Remove file.
10241
10242 2012-04-23  Andreas Jaeger  <aj@suse.de>
10243
10244         [BZ #13739]
10245         * manual/Makefile: Remove make dist support, there's no
10246         need for a stand-alone documentation tar ball.
10247         (TEXI2DVI): Define always, it's not in Makeconfig.
10248         (dist): Removed.
10249         (tar-it): Removed.
10250         (edition): Removed.
10251         (glibc-doc-$(edition).tar): Removed
10252         (%.Z): Removed.
10253         (%.gz): Removed.
10254         (%.uu): Removed.
10255         (ETAGS): Remove, it's in Makeconfig.
10256         (move-if-change): Remove, it's in Makeconfig.
10257
10258 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10259
10260         [BZ #13970]
10261         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10262         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10263         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10264         (strtod_l, strtof_l, strtold_l): Remove __wur.
10265         It is not necessarily an error to ignore strtol's return value.
10266         One can reliably look at the stored endptr to decide whether
10267         the number had valid syntax.
10268
10269 2012-04-21  Andreas Jaeger  <aj@suse.de>
10270
10271         [BZ #13739]
10272         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10273
10274 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10275
10276         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10277         * sysdeps/unix/sysv/Versions: Remove file.
10278
10279 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10280
10281         [BZ #13927]
10282         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10283
10284 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10285
10286         [BZ #7064]
10287         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10288         version from __vm86.
10289
10290 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10291
10292         * sysdeps/unix/common/lxstat.c: Remove file.
10293         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10294
10295         * sysdeps/unix/sysv/Makefile: Remove file.
10296
10297         * sysdeps/unix/sysv/direct.h: Remove file.
10298
10299         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10300         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10301         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10302         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10303         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10304         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10305         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10306
10307         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10308
10309         * sysdeps/unix/xmknod.c: Remove file.
10310         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10311
10312         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10313
10314         * sysdeps/unix/sysv/i386/time.S: Remove file.
10315
10316         * sysdeps/unix/fxstat.c: Remove file.
10317         * sysdeps/unix/xstat.c: Likewise.
10318         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10319
10320         * sysdeps/unix/sysv/sigaction.c: Remove file.
10321
10322         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10323         (sysdep_headers): Remove variable.
10324         [termio.h not in sysdep_headers] (generated): Likewise.
10325         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10326         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10327         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10328         * sysdeps/unix/sysv/tcflow.c: Likewise.
10329         * sysdeps/unix/sysv/tcflush.c: Likewise.
10330         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10331         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10332         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10333         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10334         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10335
10336         * sysdeps/unix/siglist.c: Remove file.
10337
10338         * sysdeps/unix/getppid.S: Remove file.
10339
10340         * sysdeps/unix/mkdir.c: Remove file.
10341         * sysdeps/unix/rmdir.c: Likewise.
10342
10343 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10344
10345         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10346         ERR_MAX value.
10347         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10348         errlist-compat value.
10349
10350 2012-04-18  David S. Miller  <davem@davemloft.net>
10351
10352         * sysdeps/generic/memcopy.h (reg_char): Delete.
10353         * debug/strcat_chk.c: Use char, not reg_char.
10354         * debug/strcpy_chk.c: Likewise.
10355         * debug/strncat_chk.c: Likewise.
10356         * debug/strncpy_chk.c: Likewise.
10357         * string/memchr.c: Likewise.
10358         * string/memrchr.c: Likewise.
10359         * string/rawmemchr.c: Likewise.
10360         * string/strcat.c: Likewise.
10361         * string/strchr.c: Likewise.
10362         * string/strchrnul.c: Likewise.
10363         * string/strcmp.c: Likewise.
10364         * string/strcpy.c: Likewise.
10365         * string/strncat.c: Likewise.
10366         * string/strncmp.c: Likewise.
10367         * string/strncpy.c: Likewise.
10368
10369 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10370
10371         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10372         __builtin_memcopy is called when src and dest ranges are known to not
10373         overlap.
10374
10375 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10376
10377         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10378         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10379         fwd_align_merge macro call.
10380         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10381         bwd_align_merge macro call.
10382         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10383
10384 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10385
10386         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10387         bwd_align_merge macros.
10388         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10389         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10390         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10391
10392 2012-04-18  David S. Miller  <davem@davemloft.net>
10393
10394         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10395
10396 2012-04-18  Andreas Jaeger  <aj@suse.de>
10397
10398         [BZ# 6794]
10399         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10400         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10401         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10402
10403         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10404         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10405         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10406
10407         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10408         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10409         Adjust for changed ldbl-128 files.
10410
10411         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10412         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10413         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10414
10415 2012-04-17  David S. Miller  <davem@davemloft.net>
10416
10417         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10418
10419 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10420
10421         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10422         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10423         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10424         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10425         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10426         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10427
10428 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10429
10430         [BZ #6794]
10431         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10432         * math/libm-test.inc: Add ilogb errno and exception tests.
10433         * math/w_ilogb.c: New file: ilogb wrapper.
10434         * math/w_ilogbf.c: New file: ilogbf wrapper.
10435         * math/w_ilogbl.c: New file: ilogbl wrapper.
10436         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10437         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10438         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10439         exception being thrown with 0.0 as argument.
10440         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10441         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10442         exception being thrown with 0.0 as argument.
10443         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10444         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10445         exception being thrown with 0.0 as argument.
10446         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10447         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10448         exception being thrown with 0.0 as argument.
10449         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10450         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10451         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10452         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10453         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10454         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10455         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10456         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10457         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10458
10459 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10460
10461         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10462         with altivec.
10463
10464 2012-04-16  Marek Polacek  <polacek@redhat.com>
10465
10466         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10467
10468 2012-04-16  Marek Polacek  <polacek@redhat.com>
10469
10470         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10471         operands of fdivp instruction.
10472
10473 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10474
10475         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10476         * elf/tst-auditmod3b.c: Likewise.
10477         * elf/tst-auditmod4b.c: Likewise.
10478         * elf/tst-auditmod5b.c: Likewise.
10479         * elf/tst-auditmod6b.c: Likewise.
10480         * elf/tst-auditmod6c.c: Likewise.
10481         * elf/tst-auditmod7b.c: Likewise.
10482         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10483         * sysdeps/x86_64/preconfigure.in: Likewise.
10484         * sysdeps/x86_64/preconfigure: Regenerated.
10485
10486 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10487
10488         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10489         __ILP32__.
10490
10491 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10492
10493         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10494         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10495
10496 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10497
10498         [BZ #13973]
10499         * locale/iso-639.def: Fix gl language name. Spotted by
10500         Yaron Shahrabani.
10501
10502 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10503
10504         [BZ #2074]
10505         * libio/libio.h (__io_write_fn): Update comment.
10506
10507 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10508
10509         [BZ #2074]
10510         * stdio.texi (Hook Functions): The user provided writer function
10511         is not allowed to return -1.
10512
10513 2012-04-11  David S. Miller  <davem@davemloft.net>
10514
10515         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10516
10517 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10518
10519         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10520         Add a leading slash to rtkaio.
10521
10522 2012-04-11  Jim Meyering  <meyering@redhat.com>
10523
10524         [BZ #11959]
10525         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10526         It is not necessarily an error to ignore fwrite's return
10527         value.  One can reliably use ferror to test for errors after
10528         the fact.
10529
10530 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10531
10532         * bits/types.h (__snseconds_t): New type.
10533         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10534
10535         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10536         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10537         (__SNSECONDS_T_TYPE): Likewise.
10538         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10539         (__SNSECONDS_T_TYPE): Likewise.
10540         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10541         (__SNSECONDS_T_TYPE): Likewise.
10542
10543 2012-04-10  Andreas Jaeger  <aj@suse.de>
10544
10545         [BZ #2636]
10546         * manual/time.texi (Processor Time): Return type of times is
10547         elapsed real time since an arbitrary point in the past.
10548         (CPU Time): Move CLK_TCK from here...
10549         (Processor Time): ...to here.  Correct description.
10550         * manual/conf.texi (Constants for Sysconf): Correct description of
10551         _SC_CLK_TCK.
10552
10553 2012-04-10  David S. Miller  <davem@davemloft.net>
10554
10555         [BZ #13967]
10556         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10557         where the is a gap between DT_REL(A) and DT_JMPREL.
10558
10559 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10560
10561         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10562         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10563         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10564
10565 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10566
10567         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10568         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10569         (dl_main): Handle --inhibit-cache.
10570         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10571         _dl_inhibit_cache.
10572         * elf/dl-load.c (_dl_map_object): Use it.
10573         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10574
10575 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10576
10577         [BZ #13872]
10578         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10579         (__ieee754_powl): Saturate large exponents rather than testing for
10580         overflow of y*log2(x).
10581         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10582         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10583         exceptions.
10584
10585         [BZ #11521]
10586         * math/s_ctan.c: Include <float.h>.
10587         (__ctan): Avoid internal overflow or cancellation in calculating
10588         denominator.
10589         * math/s_ctanf.c: Likewise.
10590         * math/s_ctanl.c: Likewise.
10591         * math/s_ctanh.c: Likewise.
10592         * math/s_ctanhf.c: Likewise.
10593         * math/s_ctanhl.c: Likewise.
10594         * math/libm-test.inc (ctan_test): Add more tests.
10595         (ctanh_test): Likewise.
10596         * sysdeps/i386/fpu/libm-test-ulps: Update.
10597         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10598
10599 2012-04-09  Andreas Jaeger  <aj@suse.de>
10600
10601         [BZ #6894]
10602         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10603         is an optional BSD extension.
10604
10605         [BZ #10254]
10606         * manual/stdio.texi (Opening Streams): Document additional fopen
10607         parameters.
10608
10609 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10610
10611         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10612         %eax without telling the compiler.
10613
10614 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10615
10616         [BZ # 13963]
10617         * manual/install.texi: Use sourceware.org.
10618
10619 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10620
10621         [BZ #13873]
10622         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10623         (__ieee754_pow): Generate overflow and underflow using huge*huge
10624         and tiny*tiny rather than just returning constant infinity or zero
10625         for large exponents.
10626         * math/libm-test.inc (pow_test): Require overflow exceptions for
10627         applicable cases of large exponents.
10628
10629         [BZ #706]
10630         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10631         (__ieee754_pow): Use iterative multiplication algorithm only for
10632         integer exponents with absolute value below 1024.  Check for odd
10633         integer exponents when using algorithm for real exponents.
10634         * math/libm-test.inc (pow_test): Add more tests.
10635         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10636
10637 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10638
10639         [BZ #13705]
10640         * math/libm-test.inc (exp_test): Do not allow overflow exception
10641         on underflow test.
10642
10643 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10644
10645         [BZ #13705]
10646         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10647         instead of __kernel_standard_f.
10648
10649 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10650
10651         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10652         * sysdeps/x86_64/memset_chk.S: Likewise.
10653
10654 2012-04-08  Andreas Jaeger  <aj@suse.de>
10655
10656         [BZ #10153]
10657         * manual/startup.texi (Environment Access): Describe return value
10658         for putenv and setenv.
10659
10660         [BZ #6895]
10661         * manual/filesys.texi (Directory Entries): Add description for
10662         DT_LNK.
10663
10664         [BZ #6890]
10665         * manual/filesys.texi (Directory Entries): Clarify that it's file
10666         system not operating system in the description of DT_UNKNOWN.
10667
10668         [BZ #6578]
10669         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10670
10671 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10672
10673         [BZ #6649]
10674         * manual/llio.texi (Opening and Closing Files): Add cross
10675         reference to explain mode argument.
10676
10677 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10678
10679         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10680         * sysdeps/x86_64/memset_chk.S: Likewise.
10681
10682 2012-04-07  David S. Miller  <davem@davemloft.net>
10683
10684         * elf/elf.h (R_SPARC_WDISP10): Define.
10685         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10686         R_SPARC_SIZE32.
10687         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10688         R_SPARC_SIZE64 and R_SPARC_H34.
10689
10690 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10691
10692         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10693         conditions and remove no longer applicable assertion.
10694
10695 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10696
10697         * bits/byteswap.h: Include <features.h>.
10698         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10699         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10700
10701 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10702
10703         * bits/byteswap.h (__bswap_16): Removed.
10704         Include <bits/byteswap-16.h> to get __bswap_16.
10705         * sysdeps/i386/bits/byteswap.h: Likewise.
10706         * sysdeps/s390/bits/byteswap.h: Likewise.
10707         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10708         * bits/byteswap-16.h: New file.
10709         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10710         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10711         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10712         * string/Makefile (headers): Add bits/byteswap-16.h.
10713
10714 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10715
10716         [BZ #13895]
10717         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10718         extra indirection.
10719         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10720         * nss/tst-nss-static.c: New.
10721
10722 2012-04-06  Robert Millan  <rmh@gnu.org>
10723
10724         [BZ #6486]
10725         * manual/llio.texi (File Position Primitive): lseek
10726         refers to WHENCE when it really means OFFSET.
10727
10728 2012-04-06  Andreas Jaeger  <aj@suse.de>
10729
10730         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10731         strncmp declarations.
10732
10733         * abilist/libc.abilist: Add __poll and __ppoll.
10734
10735 2012-04-05  David S. Miller  <davem@davemloft.net>
10736
10737         * scripts/check-local-headers.sh: Accept a host triplet in the
10738         path matched by the exclude regexp.
10739
10740         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10741         definition.
10742         * sysdeps/powerpc/powerpc32/dl-machine.h
10743         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10744         * sysdeps/s390/s390-32/dl-machine.h
10745         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10746         * sysdeps/sparc/sparc32/dl-machine.h
10747         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10748         * sysdeps/sparc/sparc64/dl-machine.h
10749         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10750
10751         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10752         lazy binding.
10753         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10754         undefined symbol errors.
10755
10756         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10757         DT_NEEDED entries.
10758
10759 2012-04-05  Michael Matz  <matz@suse.de>
10760
10761         [BZ #13592]
10762         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10763
10764 2012-04-05  Andreas Jaeger  <aj@suse.de>
10765
10766         [BZ #13908]
10767         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10768         comment.
10769
10770 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10771
10772         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10773         which ROUND is no valid rounding mode.
10774
10775 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10776
10777         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10778         read again.
10779         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10780
10781 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10782
10783         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10784         an exception using FPU order intentionally.
10785
10786 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10787
10788         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10789         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10790         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10791         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10792
10793 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10794
10795         [BZ #12340]
10796         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10797         EINVAL when BUFLEN is too smal.
10798
10799 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10800
10801         [BZ #13553]
10802         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10803         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10804
10805 2012-04-03  Andreas Jaeger  <aj@suse.de>
10806
10807         [BZ #13938]
10808         * manual/setjmp.texi (System V contexts): Fix sentence.
10809
10810         [BZ #13926]
10811         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10812         New macro for this case.
10813         [!__GNUC__] (__bswap_64): New inline function for this case.
10814         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10815         * bits/byteswap.h: Likewise.
10816         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10817         ull, guard with __GLIBC_HAVE_LONG_LONG.
10818
10819         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10820         __GLIBC_HAVE_LONG_LONG.
10821
10822         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10823         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10824
10825 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10826
10827         [BZ #13691]
10828         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10829         inptr and inend, rather than using last_ch.
10830
10831 2012-04-02  David S. Miller  <davem@davemloft.net>
10832
10833         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10834         * stdio-common/printf-parse.h (read_int): Change return type to
10835         'int', return -1 on INT_MAX overflow.
10836         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10837         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10838         overflows INT_MAX.  Check for overflow of in-format-string precision
10839         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10840         SIZE_MAX not INT_MAX for integer overflow test.
10841         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10842         skip the construct in the format string but do not record anything.
10843         * stdio-common/bug22.c: Adjust to test both width/prevision
10844         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10845         explicitly for proper errno values.
10846
10847 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10848
10849         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10850         CHAR_MAX.
10851         * string/test-strcmp.c [! WIDE]: Likewise.
10852         * time/tst-mktime2.c: Likewise for INT_MAX.
10853         * string/test-string.h: #include <sys/param.h> for MIN.
10854
10855         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10856         * sysdeps/i386/init-first.c (init): Likewise.
10857         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10858         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10859         * sysdeps/sh/init-first.c (init): Likewise.
10860
10861 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10862
10863         * po/ru.po: Update from translation team.
10864         * po/vi.po: Likewise.
10865
10866 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10867
10868         * resolv/nss_dns/dns-host.c: Merge copyright years.
10869
10870 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10871
10872         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10873         Optimize memcpy with prefetch if
10874         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10875         src, dst pointers have unequal 16 byte alignments.
10876
10877 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10878
10879         [BZ #13928]
10880         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10881         from a CNAME entry and return the minimum ttl for the query.
10882         (gaih_getanswer_slice): Likewise.
10883
10884 2012-03-30  Jeff Law  <law@redhat.com>
10885
10886         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10887         due to long keys.
10888         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10889         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10890
10891         * resolv/nss_dns/dns-host.c: Update copyright year.
10892
10893 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10894
10895         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10896         requests to save a system call.  Fix check that all bytes are sent.
10897
10898         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10899         comments for sendmmsg.
10900
10901 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10902
10903         [BZ #13691]
10904         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10905         with only 1 character between 0x0041 and 0x01b0.
10906         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10907         * wcsmbs/tst-mbsnrtowcs.c: New file.
10908
10909 2012-03-29  David S. Miller  <davem@davemloft.net>
10910
10911         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10912         small copies by hand.
10913
10914 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10915
10916         [BZ #13761]
10917         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10918         _nss_compat_initgroups_dyn): Fall back to malloc/free
10919         for large group memberships.
10920
10921 2012-03-28  David S. Miller  <davem@davemloft.net>
10922
10923         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
10924         that branches into memcpy.
10925         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10926         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
10927         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10928         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
10929         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
10930         bits.
10931         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
10932         implementation too.
10933         * sysdeps/sparc/mempcpy.S: New file.
10934
10935         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
10936         the IFUNC routine in the libc case.
10937         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10938
10939         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
10940         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
10941         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
10942         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
10943         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
10944         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10945         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10946         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10947
10948         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10949         loop to 256 bytes instead of 64 bytes and fix test signedness.
10950
10951         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10952         * sysdeps/sparc/sparc32/Makefile: rather than here...
10953         * sysdeps/sparc/sparc64/Makefile: and here.
10954
10955 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10956
10957         * malloc/mallocbug.c: Avoid warnings about unused variables.
10958
10959 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10960
10961         [BZ #13760]
10962         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10963         in the right place. Discard and retry query if response is
10964         larger than input buffer size.
10965
10966 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10967
10968         [BZ #369]
10969         [BZ #2678]
10970         [BZ #3866]
10971         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10972         x for large integer exponent.
10973         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10974         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10975         sign of result as needed afterwards.
10976         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10977         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10978         result for underflowing pow the same as for overflow.
10979         (__kernel_standard_l): Handle powl overflow and underflow here
10980         rather than calling __kernel_standard.
10981         * math/libm-test.inc (pow_test): Add more tests.
10982
10983         [BZ #3868]
10984         [BZ #13879]
10985         [BZ #13910]
10986         [BZ #13911]
10987         [BZ #13912]
10988         [BZ #13913]
10989         [BZ #13915]
10990         [BZ #13916]
10991         [BZ #13917]
10992         [BZ #13918]
10993         [BZ #13919]
10994         [BZ #13920]
10995         [BZ #13921]
10996         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10997         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10998         (__kernel_standard_l): New function.
10999         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11000         __kernel_standard.
11001         * math/w_acosl.c (__acosl): Likewise.
11002         * math/w_asinl.c (__asinl): Likewise.
11003         * math/w_atan2l.c (__atan2l): Likewise.
11004         * math/w_atanhl.c (__atanhl): Likewise.
11005         * math/w_coshl.c (__coshl): Likewise.
11006         * math/w_exp10l.c (__exp10l): Likewise.
11007         * math/w_exp2l.c (__exp2l): Likewise.
11008         * math/w_fmodl.c (__fmodl): Likewise.
11009         * math/w_hypotl.c (__hypotl): Likewise.
11010         * math/w_j0l.c (__j0l, __y0l): Likewise.
11011         * math/w_j1l.c (__j1l, __y1l): Likewise.
11012         * math/w_jnl.c (__jnl, __ynl): Likewise.
11013         * math/w_lgammal.c (__lgammal): Likewise.
11014         * math/w_log10l.c (__log10l): Likewise.
11015         * math/w_log2l.c (__log2l): Likewise.
11016         * math/w_logl.c (__logl): Likewise.
11017         * math/w_powl.c (__powl): Likewise.
11018         * math/w_remainderl.c (__remainderl): Likewise.
11019         * math/w_scalbl.c (sysv_scalbl): Likewise.
11020         * math/w_sinhl.c (__sinhl): Likewise.
11021         * math/w_sqrtl.c (__sqrtl): Likewise.
11022         * math/w_tgammal.c (__tgammal): Likewise.
11023         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11024         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11025         * math/libm-test.inc (acos_test): Add more tests.
11026         (acosh_test): Likewise.
11027         (asin_test): Likewise.
11028         (atanh_test): Likewise.
11029         (exp_test): Likewise.
11030         (exp10_test): Likewise.
11031         (exp2_test): Likewise.
11032         (expm1_test): Likewise.
11033         (lgamma_test): Likewise.
11034         (log_test): Likewise.
11035         (log10_test): Likewise.
11036         (log1p_test): Likewise.
11037         (log2_test): Likewise.
11038         (pow_test): Do not allow some spurious overflow exceptions.
11039         (sqrt_test): Add more tests.
11040         (tgamma_test): Likewise.
11041         (y0_test): Likewise.
11042         (y1_test): Likewise.
11043         (yn_test): Likewise.
11044
11045 2012-03-27  Anton Blanchard  <anton@samba.org>
11046
11047         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11048         MAP_HUGETLB.
11049         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11050         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11051         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11052
11053 2012-03-27  David S. Miller  <davem@davemloft.net>
11054
11055         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11056
11057         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11058         have-as-vis3 check.
11059
11060 2012-03-27  Andreas Jaeger  <aj@suse.de>
11061
11062         * sysdeps/x86_64/elf/configure.in: Moved to ...
11063         * sysdeps/x86_64/configure.in: ... here.
11064         * sysdeps/x86_64/elf/start.S: Moved to ...
11065         * sysdeps/x86_64/start.S: ... here.
11066         * sysdeps/x86_64/elf/configure: Delete.
11067
11068         * sysdeps/x86_64/configure.in: Merge contents from
11069         sysdeps/i386/configure.in (without i686 check).
11070
11071         * sysdeps/i386/elf/Versions: Merge into ...
11072         * sysdeps/i386/Versions: ... this.
11073         * sysdeps/i386/elf/Versions: Delete file.
11074         * sysdeps/i386/elf/start.S: Moved to ...
11075         * sysdeps/i386/start.S: ...here.
11076         * sysdeps/i386/elf/configure.in: Merge into...
11077         * sysdeps/i386/configure.in: ...here.
11078         * sysdeps/i386/elf/configure.in: Delete file.
11079         * sysdeps/i386/elf/configure: Delete file.
11080
11081         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11082         * debug/backtracesyms.c: ... here.
11083         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11084         * debug/backtracesymsfd.c: ... here.
11085         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11086         * sysdeps/generic/ifunc-sel.h: ... here.
11087
11088         * sysdeps/unix/i386/start.c: Delete file.
11089         * sysdeps/unix/sparc/start.c: Delete file.
11090         * sysdeps/unix/start.c: Delete file.
11091
11092         * sysdeps/sh/elf/configure.in: Moved to ...
11093         * sysdeps/sh/configure.in: ... here.
11094         * sysdeps/sh/elf/start.S: Moved to ...
11095         * sysdeps/sh/start.S: ... here.
11096         * sysdeps/sh/elf/configure: Delete file.
11097
11098         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11099         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11100         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11101         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11102         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11103         * sysdeps/powerpc/powerpc64/start.S: here.
11104         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11105         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11106         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11107         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11108         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11109
11110         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11111         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11112         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11113         * sysdeps/powerpc/powerpc32/start.S: ... here.
11114         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11115         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11116         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11117
11118         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11119         * sysdeps/powerpc/ifunc-sel.h: ... here.
11120         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11121         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11122
11123         * sysdeps/sparc/elf/configure.in: Moved to ...
11124         * sysdeps/sparc/configure.in: ... here.
11125         * sysdeps/sparc/elf/configure: Delete file.
11126         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11127         * sysdeps/sparc/sparc32/start.S: ... here.
11128         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11129         * sysdeps/sparc/sparc64/start.S: ... here.
11130         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11131         * sysdeps/sparc/sparc32/Makefile: ... this.
11132         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11133         * sysdeps/sparc/sparc64/Makefile: ... this.
11134
11135         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11136         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11137         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11138         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11139         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11140         * sysdeps/s390/s390-32/setjmp.S: ... here.
11141         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11142         * sysdeps/s390/s390-32/configure.in: ... here.
11143         * sysdeps/s390/s390-32/elf/configure: Delete file.
11144         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11145         * sysdeps/s390/s390-32/start.S: ... here.
11146
11147         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11148         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11149         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11150         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11151         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11152         * sysdeps/s390/s390-64/setjmp.S: ... here.
11153         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11154         * sysdeps/s390/s390-64/configure.in: ... here
11155         * sysdeps/s390/s390-64/elf/configure: Delete file.
11156         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11157         * sysdeps/s390/s390-64/start.S: ... here.
11158         * sysdeps/s390/s390-64/elf/configure: Delete.
11159
11160         * configure.in: Remove support for elf directories in sysdeps.
11161
11162         * configure: Regenerated.
11163         * sysdeps/i386/configure: Regenerated.
11164         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11165         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11166         * sysdeps/s390/s390-32/configure: Regenerated.
11167         * sysdeps/s390/s390-64/configure: Regenerated.
11168         * sysdeps/sh/configure: Regenerated.
11169         * sysdeps/sparc/configure: Regenerated.
11170         * sysdeps/x86_64/configure: Regenerated.
11171
11172 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11173
11174         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11175
11176         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11177         denormal result into account.
11178
11179 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11180
11181         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11182         Reported by Allan McRae <allan@archlinux.org>.
11183
11184 2012-03-23  Jeff Law  <law@redhat.com>
11185
11186         * nss/getnssent.c (__nss_getent): Fix typo.
11187
11188 2012-03-23  David S. Miller  <davem@davemloft.net>
11189
11190         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11191
11192 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11193
11194         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11195         to pad to uint64_t for each field.
11196         (dl_tls_index): Replace unsigned long with uint64_t.
11197
11198 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11199         Paul Pluzhnikov  <ppluzhnikov@google.com>
11200
11201         [BZ #6528]
11202         * grp/Makefile (otherlibs): Don't set it.
11203         * inet/Makefile (otherlibs): Likewise.
11204         * login/Makefile (otherlibs): Likewise.
11205         * nscd/Makefile (otherlibs): Likewise.
11206         * posix/Makefile (otherlibs): Likewise.
11207         * pwd/Makefile (otherlibs): Likewise.
11208         * rt/Makefile (otherlibs): Likewise.
11209         * sunrpc/Makefile (otherlibs): Likewise.
11210         * nss/Makefile (otherlibs): Likewise.
11211         Add libnss_files to routines and static-only-routines.
11212         ($(objpfx)getent): Remove rule.
11213         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11214         static-only-routines.
11215
11216 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11217
11218         [BZ #13892]
11219         * math/s_cexp.c: Include <float.h>.
11220         (__cexp): Handle exp result overflowing not necessarily
11221         overflowing both real and imaginary parts of result.
11222         * math/s_cexpf.c: Likewise.
11223         * math/s_cexpl.c: Likewise.
11224         * math/libm-test.inc (cexp_test): Add more tests.
11225         * sysdeps/i386/fpu/libm-test-ulps: Update.
11226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11227
11228 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11229
11230         * include/link.h (ELFW): New macro.
11231         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11232         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11233
11234 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11235
11236         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11237         with uint64_t.
11238
11239 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11240
11241         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11242         declaration.
11243         (struct La_x32_retval): Likewise.
11244
11245 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11246
11247         * sysdeps/x86_64/preconfigure.in: New file.
11248         * sysdeps/x86_64/preconfigure: New generated file.
11249
11250 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11251
11252         [BZ #13824]
11253         * math/e_exp2l.c: Include <float.h>.
11254         (__ieee754_exp2l): Handle overflow and underflow cases
11255         separately.  Only pass fractional part of argument to
11256         __ieee754_expl.
11257         * math/libm-test.inc (exp2_test): Add more tests.
11258
11259         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11260         negating x to take absolute value.
11261         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11262         Likewise.
11263         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11264         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11265         Likewise.
11266         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11267         computing low part if x was negated.
11268         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11269
11270 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11271
11272         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11273         la_x32_gnu_pltexit.
11274         (pltexit): Cast int_retval to ptrdiff_t.
11275         * elf/tst-auditmod3b.c: Likewise.
11276         * elf/tst-auditmod4b.c: Likewise.
11277         * elf/tst-auditmod5b.c: Likewise.
11278         * elf/tst-auditmod6b.c: Likewise.
11279         * elf/tst-auditmod6c.c: Likewise.
11280         * elf/tst-auditmod7b.c: Likewise.
11281
11282         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11283         and x32_gnu_pltexit.
11284
11285         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11286         __ELF_NATIVE_CLASS.
11287         (La_x32_regs): New macro.
11288         (La_x32_retval): Likewise.
11289         (la_x32_gnu_pltenter): New function prototype.
11290         (la_x32_gnu_pltexit): Likewise.
11291
11292 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11293
11294         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11295         exponent.
11296
11297         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11298
11299         * configure.in (libc_cv_cc_nofma): Check for option to disable
11300         generation of FMA instructions.
11301         * configure: Regenerate.
11302         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11303         * sysdeps/ieee754/dbl-64/Makefile: New file.
11304         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11305         Remove brandred-fma4.
11306         (CFLAGS-brandred-fma4.c): Remove.
11307         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11308         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11309         define.
11310         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11311         define.
11312
11313 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11314
11315         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11316         LLONG_MAX != LONG_MAX.
11317         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11318         (_fitoa_word): Likewise.
11319         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11320         LLONG_MAX != LONG_MAX.
11321         * stdio-common/_itowa.h: Include <_itoa.h>.
11322         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11323         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11324         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11325         only if not defined.
11326         (_ITOA_WORD_TYPE): Likewise.
11327         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11328         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11329
11330 2012-03-21  David S. Miller  <davem@davemloft.net>
11331
11332         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11333
11334 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11335
11336         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11337         of x86_64 when setting libc_cv_slibdir, libdir and
11338         libc_cv_localedir.
11339         * sysdeps/unix/sysv/linux/configure: Regenerated.
11340
11341 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11342
11343         * manual/lang.texi (Old Varargs): Remove section.
11344         (How Variadic): Update menu.
11345         (va_start): Do not mention varargs.h.
11346
11347 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11348             Joseph Myers  <joseph@codesourcery.com>
11349
11350         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11351         link test.
11352         * configure: Regenerated.
11353
11354 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11355
11356         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11357         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11358         conformtest.pl
11359
11360 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11361
11362         * NOTES: Remove.
11363         * Makefile (files-for-dist): Remove NOTES.
11364         (NOTES): Remove rule.
11365         * README: Don't refer to NOTES.
11366         * manual/creature.texi: Don't include macros.texi.
11367         * manual/intro.texi (creature.texi): Remove comment referring to
11368         NOTES.
11369
11370         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11371         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11372         * configure: Regenerated.
11373         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11374         LIBC_TRY_CC_OPTION.
11375         (libc_cv_as_i686): Likewise.
11376         (libc_cv_cc_avx): Likewise.
11377         (libc_cv_cc_sse2avx): Likewise.
11378         (libc_cv_cc_fma4): Likewise.
11379         (libc_cv_cc_novzeroupper): Likewise.
11380         * sysdeps/i386/configure: Regenerated.
11381
11382         [BZ #13883]
11383         * sysdeps/i386/fpu/s_cexp.S: Remove.
11384         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11385         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11386         * math/libm-test.inc (cexp_test): Add more tests.
11387         * sysdeps/i386/fpu/libm-test-ulps: Update.
11388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11389
11390 2012-03-21  Allan McRae  <allan@archlinux.org>
11391
11392         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11393
11394 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11395
11396         [BZ #13871]
11397         * math/w_exp2.c: Do not include <float.h>.
11398         (o_threshold, u_threshold): Remove.
11399         (__exp2): Calculate result before checking finiteness and calling
11400         __kernel_standard.
11401         * math/w_exp2f.c: Likewise.
11402         * math/w_exp2l.c: Likewise.
11403         * math/libm-test.inc (exp2_test): Require overflow exception for
11404         1e6 input.
11405
11406         [BZ #3866]
11407         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11408         range of signed 64-bit integers before using fistpll.  Remove
11409         checks for whether integers fit in mantissa bits.
11410         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11411         the range of signed 32-bit integers before using fistpl.  Remove
11412         checks for whether integers fit in mantissa bits.
11413         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11414         (__ieee754_powl): Test for y outside the range of signed 64-bit
11415         integers before using fistpll.  Reduce 64-bit values to 63-bit
11416         ones as needed.
11417         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11418         divide-by-zero is raised for zero to large negative powers.
11419         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11420         (__ieee754_powl): Test for y outside the range of signed 64-bit
11421         integers before using fistpll.  Reduce 64-bit values to 63-bit
11422         ones as needed.
11423         * math/libm-test.inc (pow_test): Add more tests.
11424
11425 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11426
11427         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11428         <stdio-common/_itoa.h>.
11429         * debug/segfault.c: Likewise.
11430         * elf/dl-cache.c: Likewise.
11431         * elf/dl-minimal.c: Likewise.
11432         * elf/dl-misc.c: Likewise.
11433         * elf/dl-sysdep.c: Likewise.
11434         * elf/dl-version.c: Likewise.
11435         * elf/rtld.c: Likewise.
11436         * hurd/hurdsock.c: Likewise.
11437         * hurd/lookup-retry.c: Likewise.
11438         * malloc/malloc.c: Likewise.
11439         * malloc/mtrace.c: Likewise.
11440         * nscd/nscd_getgr_r.c: Likewise.
11441         * nscd/nscd_getpw_r.c: Likewise.
11442         * nscd/nscd_getserv_r.c: Likewise.
11443         * posix/getopt_init.c: Likewise.
11444         * posix/wordexp.c: Likewise.
11445         * stdio-common/_itoa.c: Likewise.
11446         * stdio-common/printf_fphex.c: Likewise.
11447         * stdio-common/vfprintf.c: Likewise.
11448         * string/_strerror.c: Likewise.
11449         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11450         * sysdeps/i386/i686/hp-timing.h: Likewise.
11451         * sysdeps/mach/_strerror.c: Likewise.
11452         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11453         * sysdeps/mach/hurd/sethostid.c: Likewise.
11454         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11455         * sysdeps/mach/xpg-strerror.c: Likewise.
11456         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11457         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11458         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11459         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11460         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11461         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11462         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11463         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11464         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11465         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11466         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11467         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11468         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11469         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11470         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11471         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11472         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11473         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11474         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11475         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11476         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11477
11478         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11479
11480         * stdio-common/_itoa.h: Moved to ...
11481         * sysdeps/generic/_itoa.h: Here.
11482
11483         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11484
11485         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11486         instead of "_itoa.h" and "_itowa.h".
11487         * stdio-common/vfprintf.: Likewise.
11488
11489 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11490
11491         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11492         <bits/wordsize.h>.
11493         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11494         (__signbit): Likwise.
11495         (llrintf): Likwise.
11496         (llrint): Likwise.
11497
11498 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11499
11500         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11501         __WORDSIZE != 64.
11502
11503 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11504
11505         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11506         OVERFLOW_EXCEPTION_OK.
11507         * math/libm-test.inc ("Philosophy"): Update comment about
11508         exception testing.
11509         (OVERFLOW_EXCEPTION): Define.
11510         (OVERFLOW_EXCEPTION_OK): Likewise.
11511         (INVALID_EXCEPTION_OK): Renumber.
11512         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11513         (IGNORE_ZERO_INF_SIGN): Likewise.
11514         (test_exceptions): Handle FE_OVERFLOW.
11515         (exp10_test): Expect overflow exceptions.
11516         (exp2_test): Likewise.
11517         (expm1_test): Likewise.
11518         (nextafter_test): Likewise.
11519         (pow_test): Likewise.
11520         (scalbn_test): Likewise.
11521         (scalbln_test): Likewise.
11522
11523 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11524
11525         * sysdeps/x86_64/bits/atomic.h
11526         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11527         64bit integer.
11528         (atomic_exchange_acq): Likewise.
11529         (__arch_exchange_and_add_body): Likewise.
11530         (__arch_add_body): Likewise.
11531         (atomic_add_negative): Likewise.
11532         (atomic_add_zero): Likewise.
11533
11534 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11535
11536         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11537         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11538
11539 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11540
11541         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11542         Check __x86_64__ instead of __WORDSIZE.
11543
11544 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11545
11546         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11547
11548 2012-03-19  David S. Miller  <davem@davemloft.net>
11549
11550         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11551
11552         * sysdeps/sparc/fpu/fenv_private.h: New file.
11553         * sysdeps/sparc/fpu/math_private.h: Use it.
11554         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11555         Remove.
11556         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11557         (libc_feholdexcept_setroundl): Remove.
11558         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11559         Remove.
11560         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11561         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11562
11563 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11564
11565         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11566         int64_t instead of long int.
11567         (INSERT_WORDS64): Likwise.
11568
11569 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11570
11571         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11572         _Unwind_GetCFA return to _Unwind_Ptr first.
11573
11574 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11575
11576         [BZ #13629]
11577         * math/s_clog.c: Include <float.h>.
11578         (__clog): Scale large or subnormal inputs.
11579         * math/s_clogf.c: Likewise.
11580         * math/s_clogl.c: Likewise.
11581         * math/s_clog10.c: Include <float.h>.
11582         (M_LOG10_2): Define.
11583         (__clog10): Scale large or subnormal inputs.
11584         * math/s_clog10f.c: Likewise.
11585         * math/s_clog10l.c: Likewise.
11586         * math/libm-test.inc (clog_test): Add more tests.
11587         (clog10_test): Likewise.
11588         * sysdeps/i386/fpu/libm-test-ulps: Update.
11589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11590
11591         [BZ #11451]
11592         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11593         x and y.
11594         * math/libm-test.inc (atan2_test): Add another test.
11595
11596         * Makerules (common-objdir-compile): Remove.
11597         * sysdeps/unix/Makefile (config-generated): Do not add
11598         $(unix-generated) to variable.
11599         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11600         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11601         Remove rule.
11602         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11603         Likewise.
11604         [generic bits/local_lim.h] (before-compile): Do not append to
11605         variable.
11606         [generic bits/local_lim.h] (common-generated): Likewise.
11607         [generic sys/param.h] (before-compile): Do not append to variable.
11608         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11609         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11610         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11611         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11612         include.
11613         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11614         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11615         [generic sys/param.h] ($(addprefix
11616         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11617         [generic sys/param.h] (common-generated): Do not append to
11618         variable.
11619         [generic sys/param.h] (sysdep_headers): Likewise.
11620         [generic bits/errno.h] (before-compile): Do not append to
11621         variable.
11622         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11623         rule.
11624         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11625         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11626         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11627         [generic bits/errno.h] (common-generated): Do not append to
11628         variable.
11629         [generic bits/ioctls.h] (before-compile): Do not append to
11630         variable.
11631         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11632         rule.
11633         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11634         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11635         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11636         rule.
11637         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11638         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11639         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11640         [generic bits/ioctls.h] (common-generated): Do not append to
11641         variable.
11642         [generic sys/syscall.h] (syscall.h): Remove variable.
11643         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11644         rule.
11645         [generic sys/syscall.h] (before-compile): Do not append to
11646         variable.
11647         [generic sys/syscall.h] (common-generated): Likewise.
11648         * sysdeps/unix/errnos-tmpl.c: Remove file.
11649         * sysdeps/unix/errnos.awk: Likewise.
11650         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11651         * sysdeps/unix/ioctls.awk: Likewise.
11652         * sysdeps/unix/mk-local_lim.c: Likewise.
11653         * sysdeps/unix/snarf-ioctls: Likewise.
11654
11655 2012-03-19  Richard Henderson  <rth@twiddle.net>
11656
11657         * sysdeps/i386/fpu/fenv_private.h: New file.
11658         * sysdeps/i386/fpu/math_private.h: Use it.
11659         (math_opt_barrier, math_force_eval): Remove.
11660         (libc_feholdexcept_setround_53bit): Remove.
11661         (libc_feupdateenv_53bit): Remove.
11662         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11663         (math_opt_barrier, math_force_eval): Remove.
11664         (libc_feholdexcept): Remove.
11665         (libc_feholdexcept_setround): Remove.
11666         (libc_fetestexcept, libc_fesetenv): Remove.
11667         (libc_feupdateenv_test): Remove.
11668         (libc_feupdateenv, libc_feholdsetround): Remove.
11669         (libc_feresetround): Remove.
11670
11671         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11672         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11673
11674         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11675         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11676         (libc_feupdateenv_testl): New.
11677         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11678         (libc_feupdateenv_testf): New.
11679         (libc_feupdateenv): Use libc_feupdateenv_test.
11680         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11681         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11682
11683         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11684         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11685         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11686         (libc_feresetround_noex): New.
11687         (libc_feresetround_noexf): New.
11688         (libc_feresetround_noexl): New.
11689         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11690         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11691         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11692         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11693         SET_RESTORE_ROUND.
11694         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11695         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11696         (__cos): Likewise.
11697         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11698         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11699         SET_RESTORE_ROUND_NOEX.
11700         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11701         SET_RESTORE_ROUND_NOEXF.
11702         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11703         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11704         (libc_feholdsetroundf): New.
11705         (libc_feresetround, libc_feresetroundf): New.
11706
11707         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11708         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11709         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11710
11711         * sysdeps/generic/math_private.h: Include <fenv.h>.
11712         (default_libc_feholdexcept): New.
11713         (default_libc_feholdexcept_setround): New.
11714         (default_libc_fesetenv, default_libc_feupdateenv): New.
11715         (libc_feholdexcept): Only define if undefined.
11716         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11717         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11718         (libc_feholdexcept_setroundl): Likewise.
11719         (libc_feholdexcept_setround_53bit): Likewise.
11720         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11721         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11722         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11723         (libc_feupdateenv_53bit): Likewise.
11724         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11725         (libc_feholdexcept): Convert from macro to inline function.
11726         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11727         (libc_fesetenv, libc_feupdateenv): Likewise.
11728
11729         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11730         not previously defined.
11731         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11732         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11733         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11734         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11735         * sysdeps/ieee754/flt-32/math_private.h: New file.
11736         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11737         math_private.h below SET_FLOAT_WORD.
11738         (__isnan, __isinf_ns, __finite): Remove.
11739         (__isnanf, __isinf_nsf, __finitef): Remove.
11740
11741 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11742
11743         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11744
11745 2012-03-17  David S. Miller  <davem@davemloft.net>
11746
11747         [BZ #6471]
11748         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11749         for 2.16.
11750
11751 2012-03-16  David S. Miller  <davem@davemloft.net>
11752
11753         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11754         warnings.
11755
11756         [BZ #6471]
11757         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11758         properly.
11759         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11760         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11761         sysdep_routines when subdir is sysvipc.
11762         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11763         __getshmlba helper.
11764
11765         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11766
11767 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11768
11769         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11770         [__LP64__].
11771
11772 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11773
11774         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11775         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11776         (__lround): Renamed to ...
11777         (__llround): This.  Replace long int with long long int.
11778         Define lround functions as aliases of llround functions.
11779         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11780
11781 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11782
11783         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11784         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11785         adresses to uintptr_t.  Replace "long int" and "unsigned long
11786         int" with "greg_t" on va_arg.
11787
11788 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11789
11790         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11791         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11792
11793         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11794         Move e_machine check before EI_CLASS check.  Handle x32
11795         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11796         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11797         SKIP_EM_IA_64 and include
11798         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11799
11800         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11801         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11802         (add_system_dir): New macro.
11803
11804         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11805         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11806
11807 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11808
11809         [BZ #2551]
11810         [BZ #2552]
11811         [BZ #2553]
11812         [BZ #2554]
11813         [BZ #2562]
11814         [BZ #2563]
11815         [BZ #2565]
11816         [BZ #2566]
11817         [BZ #2576]
11818         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11819         (y0): Likewise.
11820         * math/w_j0f.c (j0f): Likewise.
11821         (y0f): Likewise.
11822         * math/w_j0l.c (__j0l): Likewise.
11823         (__y0l): Likewise.
11824         * math/w_j1.c (j1): Likewise.
11825         (y1): Likewise.
11826         * math/w_j1f.c (j1f): Likewise.
11827         (y1f): Likewise.
11828         * math/w_j1l.c (__j1l): Likewise.
11829         (__y1l): Likewise.
11830         * math/w_jn.c (jn): Likewise.
11831         (yn): Likewise.
11832         * math/w_jnf.c (jnf): Likewise.
11833         (ynf): Likewise.
11834         * math/w_jnl.c (__jnl): Likewise.
11835         (__ynl): Likewise.
11836         * math/libm-test.inc (j0_test): Add more tests.
11837         (j1_test): Likewise.
11838         (jn_test): Likewise.  Add trailing semicolon to existing test.
11839         (y0_test): Likewise.
11840         (y1_test): Likewise.
11841         * sysdeps/i386/fpu/libm-test-ulps: Update.
11842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11843
11844         [BZ #13851]
11845         [BZ #13854]
11846         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11847         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11848         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11849         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11850         (__tanl): Set errno for infinite argument.
11851         * sysdeps/i386/fpu/mptan.c: Remove.
11852         * sysdeps/i386/fpu/s_tan.S: Likewise.
11853         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11854         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11855         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11856         * math/libm-test.inc (tan_test): Add more tests and enable more
11857         tests for double and long double.
11858         * sysdeps/i386/fpu/libm-test-ulps: Update.
11859         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11860
11861 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11862
11863         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11864         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11865
11866 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11867
11868         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11869         * configure.in: Use it for both main tree and add-ons.
11870         * configure: Regenerated.
11871
11872 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11873
11874         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11875
11876 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11877
11878         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11879         in comment.
11880
11881         [BZ #13851]
11882         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11883         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11884         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11885         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11886         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11887         infinite argument.
11888         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11889         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11890         != 0 for prec == 2.
11891         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11892         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11893         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11894         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11895         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11896         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11897         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11898         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11899         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11900         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11901         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11902         * math/libm-test.inc (cos_test): Add more tests and enable more
11903         tests for long double.
11904         (sin_test): Likewise.
11905         (sincos_test): Likewise.
11906         * sysdeps/i386/fpu/libm-test-ulps: Update.
11907         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11908
11909 2012-03-16  David S. Miller  <davem@davemloft.net>
11910
11911         * sysdeps/sparc/fpu/math_private.h: New file.
11912
11913 2012-03-15  David S. Miller  <davem@davemloft.net>
11914
11915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11916         file.
11917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
11919         file.
11920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
11921         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
11922         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
11923         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
11924         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
11925         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
11926         sysdep routines.
11927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11928
11929         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
11930         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
11931
11932         * sysdeps/sparc/sparc-ifunc.h: New file.
11933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
11934         sparc-ifunc.h
11935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11937         Likewise.
11938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
11939         Likewise.
11940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
11941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
11942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11944         Likewise.
11945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11950         Likewise.
11951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11952         Likewise.
11953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11957         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11958         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11959         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11960         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11961         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11962         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11963         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11964         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11965         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11966         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11967         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11968         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11969         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11970         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11971         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11972         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11973         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11974         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11975         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11976         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11977
11978 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11979
11980         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11981         scaling.
11982         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11983
11984 2012-03-15  Andreas Jaeger  <aj@suse.de>
11985
11986         [BZ #13852]
11987         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11988         ieee754/flt-32 implementation for sin, cos and sincos.
11989         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11990         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11991         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11992         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11993         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11994         ieee754/flt-32 implementation for tan.
11995
11996         * math/libm-test.inc (cos_test): Enable some large input tests for
11997         float as well
11998         (sin_test): Likewise.
11999         (sincos_test): Likewise.
12000         (tan_test): Add tests for large input.
12001
12002         * sysdeps/i386/fpu/libm-test-ulps: Update.
12003
12004 2012-03-15  Andreas Jaeger  <aj@suse.de>
12005
12006         [BZ #13658]
12007         * math/libm-test.inc (cos_test): Add more test cases.
12008         (sin_test): Likewise.
12009         (sincos_test): Likewise.
12010
12011 2012-03-15  Andreas Jaeger  <aj@suse.de>
12012
12013         [BZ #13837]
12014         * math/libm-test.inc (cos_test): Add a test case for large input
12015         value.
12016         (sin_test): Likewise.
12017         (sincos_test): Likewise.
12018
12019 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12020         Joseph Myers  <joseph@codesourcery.com>
12021
12022         [BZ #13658]
12023         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12024         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12025         * sysdeps/i386/fpu/branred.c: Likewise.
12026         * sysdeps/i386/fpu/dosincos.c: Likewise.
12027         * sysdeps/i386/fpu/mpa.c: Likewise.
12028         * sysdeps/i386/fpu/s_cos.S: Likewise.
12029         * sysdeps/i386/fpu/s_sin.S: Likewise.
12030         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12031         * sysdeps/i386/fpu/sincos32.c: Likewise.
12032
12033         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12034         Define.
12035         (libc_feupdateenv_53bit): Define.
12036         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12037         Define.
12038         (libc_feupdateenv_53bit): Define.
12039
12040         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12041         53 bit (without extend i386 double precision).
12042
12043         * math/libm-test.inc (sincos_test): Add tests for large input.
12044         (sin): Likewise.
12045         (cos): Likewise.
12046
12047         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12048
12049 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12050
12051         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12052
12053 2012-03-15  David S. Miller  <davem@davemloft.net>
12054
12055         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12056         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12057         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12058         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12059         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12060         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12061         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12062         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12063         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12064         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12065         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12066         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12067         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12068         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12069         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12071         file.
12072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12074         file.
12075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12077         file.
12078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12080         file.
12081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12082         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12083         fmin/fmax sysdep routines.
12084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12085
12086 2012-03-14  David S. Miller  <davem@davemloft.net>
12087
12088         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12089         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12090         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12091         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12092         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12093         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12094         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12095         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12096         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12097         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12098         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12099         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12100         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12101         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12102         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12103         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12104         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12105         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12106         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12107         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12108         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12109         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12110         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12111         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12112         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12113         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12114         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12115         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12116         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12117         routines.
12118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12119         file.
12120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12122         file.
12123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12125         file.
12126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12128         file.
12129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12131         file.
12132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12134         file.
12135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12136         file.
12137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12138         file.
12139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12140         file.
12141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12142         New file.
12143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12144         file.
12145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12146         file.
12147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12149         file.
12150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12152         file.
12153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12155         file.
12156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12158         VIS3 routines.
12159
12160         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12161         New file.
12162
12163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12164
12165         * sysdeps/sparc/configure.in: New file.
12166         * sysdeps/sparc/configure: Generate.
12167         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12168         * configure: Regenerate.
12169         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12170         * config.make.in (have-as-vis3): New.
12171         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12172         available use -Av9d instead of -Av9a.
12173         * sysdeps/sparc/sparc64/Makefile: Likewise.
12174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12176         New file.
12177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12178         file.
12179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12180         New file.
12181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12182         file.
12183         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12184         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12185         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12186         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12187         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12188
12189         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12190         fzeros/fnegs to load 0x80000000 into a float register instead of
12191         using the stack.
12192         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12193
12194 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12195
12196         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12197         bits/syscall.h.
12198         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12199         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12200         ($(inst_includedir)/bits/syscall.h): Remove rule.
12201         ($(objpfx)bits/syscall.d): Include instead of
12202         $(objpfx)syscall-list.d.
12203         (generated): Change syscall-list.h and syscall-list.d to
12204         bits/syscall.h and bits/syscall.d.
12205
12206 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12207
12208         [BZ #13846]
12209         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12210
12211 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12212
12213         [BZ #13841]
12214         * math/s_csqrt.c: Include <float.h>.
12215         (__csqrt): Scale large or subnormal inputs.
12216         * math/s_csqrtf.c: Likewise.
12217         * math/s_csqrtl.c: Likewise.
12218         * math/libm-test.inc (csqrt_test): Add more tests.
12219         * sysdeps/i386/fpu/libm-test-ulps: Update.
12220         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12221
12222         [BZ #13840]
12223         * math/libm-test.inc (hypot_test): Add more tests.
12224
12225 2012-03-13  David S. Miller  <davem@davemloft.net>
12226
12227         [BZ #13840]
12228         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12229         double-precision for the calculation instead of scaling.
12230
12231 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12232
12233         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12234         manipulate bits before adding and subtracting TWO52[sx].
12235         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12236         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12237         Likewise.
12238         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12239
12240 2012-03-13  David S. Miller  <davem@davemloft.net>
12241
12242         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12243         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12244         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12245         rtld-global-offsets.h
12246         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12247
12248         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12249         large parameters.
12250
12251         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12252
12253         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12254         'err' in the ifdef scope in which it is actually used.
12255
12256         * nss/nss_db/db-init.c: Include string.h
12257
12258 2012-03-12  David S. Miller  <davem@davemloft.net>
12259
12260         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12261         masking out of the most significant byte of random value used.
12262         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12263         Fix coding style in previous change.
12264
12265         * sysdeps/unix/sysv/linux/kernel-features.h
12266         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12267         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12268         expression.
12269         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12270         later.
12271
12272 2012-03-11  David S. Miller  <davem@davemloft.net>
12273
12274         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12275         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12276         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12277         for 'resultvar' otherwise things get truncated on 64-bit.
12278
12279         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12280         Fix masking out of the most significant byte of random value used.
12281
12282         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12283
12284 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12285
12286         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12287
12288 2012-03-09  David S. Miller  <davem@davemloft.net>
12289
12290         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12291         variables with appropriate CPP guards.
12292         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12293         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12294         on resulting framesize and the management of the outregs buffer for pltexit.
12295         Preserve floating point return values across _dl_call_pltexit call.
12296         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12297         framesize and the management of the outregs buffer for pltexit.
12298         Preserve floating point return values across _dl_call_pltexit
12299         call.
12300         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12301         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12302         (print_exit): Fix format string for return register value.
12303
12304 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12305
12306         * sunrpc/Makefile (others): Add rpcgen.
12307         ($(objpfx)rpcgen): Remove special build rule and dependency on
12308         libc.
12309         * sunrpc/rpcgen.c: New file.
12310
12311 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12312
12313         [BZ #13673]
12314         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12315         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12316         * sysdeps/i386/crti.S: Likewise.
12317         * sysdeps/i386/crtn.S: Likewise.
12318         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12319         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12320         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12321         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12322         * sysdeps/sh/crti.S: Likewise.
12323         * sysdeps/sh/crtn.S: Likewise.
12324         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12325
12326         [BZ #13673]
12327         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12328         with URL.
12329         * locale/programs/locfile-kw.gperf: Likewise.
12330         * locale/programs/charmap-kw.h: Regenerated.
12331         * locale/programs/locfile-kw.h: Likewise.
12332
12333         [BZ #13673]
12334         * intl/plural.y: Replace FSF snail mail address with URL.
12335         * intl/plural.c: Regenerated.
12336
12337 2012-03-09  Richard Henderson  <rth@twiddle.net>
12338
12339         * include/math_private.h: Remove file.
12340         * math/math_private.h: Move file ...
12341         * sysdeps/generic/math_private.h: ... here.
12342
12343         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12344         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12345         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12346
12347         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12348         and <math_private.h>.
12349         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12350         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12351         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12352         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12353         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12354         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12355         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12356         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12357         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12358         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12359         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12360         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12361         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12362         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12363         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12364         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12365         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12366         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12367         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12368         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12369         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12370         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12371         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12372         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12373         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12374         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12375         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12376         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12377         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12378         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12379         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12380         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12381         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12382         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12383         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12384         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12385         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12386         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12387         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12388         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12389         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12390         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12391         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12392         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12393         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12394         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12395         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12396         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12397         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12398         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12399         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12400         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12401         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12402         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12403         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12404         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12405         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12406         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12407         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12408         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12409         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12410         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12411         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12412         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12413         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12414         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12415         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12416         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12417         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12418         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12419         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12420         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12421         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12422         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12423         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12424         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12425         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12426         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12427         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12428         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12429         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12430         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12431         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12432         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12433         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12434         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12435         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12436         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12437         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12438         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12439         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12440         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12441         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12442         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12443         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12444         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12445         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12446         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12447         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12448         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12449         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12450         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12451         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12452         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12453         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12454         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12455         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12456         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12457         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12458         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12459         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12460         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12461         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12462         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12463         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12464         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12465         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12466         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12467         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12468         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12469         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12470         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12471         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12472         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12473         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12474         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12475         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12476         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12477         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12478         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12479         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12480         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12481         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12482         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12483         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12484         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12485         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12486         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12487         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12488         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12489         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12490         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12491         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12492         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12493         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12494         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12495         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12496         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12497         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12498         * sysdeps/ieee754/k_standard.c: Likewise.
12499         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12500         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12501         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12502         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12503         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12504         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12505         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12506         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12507         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12508         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12509         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12510         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12511         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12512         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12513         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12514         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12515         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12516         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12517         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12518         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12519         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12520         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12521         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12522         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12523         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12524         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12525         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12526         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12527         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12528         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12529         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12530         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12531         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12532         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12533         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12534         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12535         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12536         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12537         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12538         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12539         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12540         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12541         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12542         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12543         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12544         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12545         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12546         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12547         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12548         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12549         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12550         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12551         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12552         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12553         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12554         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12555         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12556         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12557         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12558         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12559         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12560         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12561         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12562         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12563         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12564         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12565         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12566         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12567         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12568         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12569         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12570         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12571         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12572         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12573         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12574         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12575         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12576         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12577         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12578         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12579         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12580         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12581         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12582         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12583         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12584         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12585         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12586         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12587         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12588         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12589         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12590         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12591         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12592         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12593         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12594         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12595         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12596         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12597         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12598         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12599         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12600         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12601         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12602         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12603         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12604         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12605         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12606         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12607         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12608         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12609         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12610         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12611         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12612         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12613         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12614         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12615         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12616         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12617         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12618         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12619         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12620         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12621         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12622         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12623         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12624         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12625         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12626         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12627         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12628         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12629         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12630         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12631         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12632         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12633         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12634         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12635         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12636         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12637         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12638         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12639         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12640         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12641         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12642         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12643         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12644         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12645         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12646         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12647         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12648         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12649         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12650         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12651         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12652         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12653         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12654         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12655         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12656         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12657         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12658         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12659         * sysdeps/ieee754/s_lib_version.c: Likewise.
12660         * sysdeps/ieee754/s_matherr.c: Likewise.
12661         * sysdeps/ieee754/s_signgam.c: Likewise.
12662         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12663         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12664         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12665         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12666         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12667         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12668         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12669         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12670         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12671         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12672         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12673         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12674         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12675         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12676         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12677         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12678         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12679         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12680         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12681         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12682         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12683
12684 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12685
12686         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12687         * sunrpc/rpc_main.c: Likewise.
12688         * sunrpc/rpc_svcout.c: Likewise.
12689
12690 2012-03-09  David S. Miller  <davem@davemloft.net>
12691
12692         * include/math_private.h: New file.
12693
12694 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12695
12696         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12697         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12698         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12699         from <bits/socket_type.h>.
12700         (enum __socket_type): Don't define here.
12701         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12702         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12703         bits/socket_type.h.
12704
12705         [BZ #13566]
12706         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12707         checking __USE_GNU.
12708
12709         * Makerules ($(inst_includedir)/%.h): New rule.
12710         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12711         (install-others): Remove variable setting.
12712         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12713
12714 2012-03-08  Richard Henderson  <rth@twiddle.net>
12715
12716         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12717         from macro to inline function; merge with the
12718         !__LIBC_INTERNAL_MATH_INLINES version.
12719         (__ieee754_sqrtf): Likewise.
12720
12721         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12722         to inline function.
12723         (__rintf, __floor, __floorf): Likewise.
12724
12725         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12726         macro to inline function.
12727         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12728
12729         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12730         not <math/math_private.h>.
12731
12732 2012-03-08  David S. Miller  <davem@davemloft.net>
12733
12734         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12735         copyright year.
12736         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12737
12738 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12739
12740         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12741         normalization.
12742         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12743         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12744
12745 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12746
12747         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12748         be defined individually, they must be defined as a block.  Define
12749         S for printing a string instead of hidint the different by using a
12750         macro for adding the 'l'.
12751         * stdio-common/tst-fphex-wide.c: Adjust.
12752
12753 2012-03-07  Marek Polacek  <polacek@redhat.com>
12754
12755         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12756
12757 2012-03-08  Marek Polacek  <polacek@redhat.com>
12758
12759         [BZ #13806]
12760         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12761         * stdio-common/tst-fphex.c: Define a few macros to make the
12762         test reusable.  Use them.
12763         * stdio-common/tst-fphex-wide.c: New file.
12764
12765 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12766
12767         [BZ #6911]
12768         * manual/macros.texi (gnusystems): New macro.
12769         (nongnusystems): Likewise.
12770         (gnulinuxhurdsystems): Likewise.
12771         (gnuhurdsystems): Likewise..
12772         (gnulinuxsystems): Likewise.
12773         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12774         variants of the GNU system, not "GNU system".
12775         * manual/conf.texi: Likewise.
12776         * manual/errno.texi: Likewise.  Update example of errno macro
12777         expansion.
12778         * manual/filesys.texi: Likewise.
12779         (getumask): Document as specific to GNU/Hurd.
12780         * manual/install.texi: Likewise.  Reword some references to
12781         GNU/Linux.
12782         * manual/intro.texi: Likewise.
12783         * manual/io.texi: Likewise.
12784         (File Name Portability): Detail which constraints are inapplicable
12785         to all GNU systems and which are only inapplicable to GNU/Hurd.
12786         * manual/job.texi: Likewise.
12787         * manual/llio.texi: Likewise.
12788         (O_NOCTTY): Document as present on GNU/Linux.
12789         * manual/maint.texi: Likewise.
12790         * manual/memory.texi: Likewise.
12791         * manual/pattern.texi: Likewise.
12792         * manual/pipe.texi: Likewise.
12793         * manual/process.texi: Likewise.
12794         * manual/resource.texi: Likewise.
12795         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12796         child on GNU/Hurd.
12797         * manual/setjmp.texi: Likewise.
12798         * manual/signal.texi: Likewise.
12799         * manual/startup.texi: Likewise.
12800         * manual/stdio.texi: Likewise.
12801         * manual/terminal.texi: Likewise.
12802         (ONLCR): Document as POSIX.
12803         (OXTABS): Document availability on GNU/Linux as XTABS.
12804         (ONOEOT): Document availability separately from other bits.
12805         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12806         * manual/time.texi: Likewise.
12807         * manual/users.texi: Likewise.
12808         * INSTALL: Regenerated.
12809         * sysdeps/gnu/errlist.c: Regenerated.
12810
12811         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12812         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12813         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12814         puts.
12815         * configure: Regenerated.
12816
12817 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12818
12819         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12820         default includes instead of AC_HEADER_CHECK.
12821         * sysdeps/i386/configure: Regenerated.
12822
12823         [BZ #10716]
12824         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12825         * math/s_cacoshf.c (__cacoshf): Likewise.
12826         * math/s_cacoshl.c (__cacoshl): Likewise.
12827         * math/s_casinh.c (__casinh): Set signs of result from argument.
12828         * math/s_casinhf.c (__casinhf): Likewise.
12829         * math/s_casinhl.c (__casinhl): Likewise.
12830         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12831         (casinh_test): Add more tests.
12832         * sysdeps/i386/fpu/libm-test-ulps: Update.
12833         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12834
12835 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12836
12837         * po/zh_TW.po: Update from translation team.
12838
12839         * login/Makefile (distribute): Remove variable.
12840         * catgets/Makefile: Likewise.
12841         * mach/Makefile: Likewise.
12842         * malloc/Makefile: Likewise.
12843         * misc/Makefile: Likewise.
12844         * iconv/Makefile: Likewise.
12845         * nscd/Makefile: Likewise.
12846         * hurd/Makefile: Likewise.
12847         * manual/Makefile: Likewise.
12848         * locale/Makefile: Likewise.
12849         * intl/Makefile: Likewise.
12850         * conform/Makefile: Likewise.
12851         * nss/Makefile: Likewise.
12852         * time/Makefile: Likewise.
12853         * soft-fp/Makefile: Likewise.
12854         * dirent/Makefile: Likewise.
12855         * gmon/Makefile: Likewise.
12856         * po/Makefile: Likewise.
12857         * rt/Makefile: Likewise.
12858         * socket/Makefile: Likewise.
12859         * math/Makefile: Likewise.
12860         * signal/Makefile: Likewise.
12861         * debug/Makefile: Likewise.
12862         * elf/Makefile: Likewise.
12863         * timezone/Makefile: Likewise.
12864         * stdlib/Makefile: Likewise.
12865         * iconvdata/Makefile: Likewise.
12866         * sunrpc/Makefile: Likewise.
12867         * io/Makefile: Likewise.
12868         * argp/Makefile: Likewise.
12869         * inet/Makefile: Likewise.
12870         * hesiod/Makefile: Likewise.
12871         * grp/Makefile: Likewise.
12872         * csu/Makefile: Likewise.
12873         * wctype/Makefile: Likewise.
12874         * crypt/Makefile: Likewise.
12875         * libio/Makefile: Likewise.
12876         * string/Makefile: Likewise.
12877         * nis/Makefile: Likewise.
12878         * resolv/Makefile: Likewise.
12879         * stdio-common/Makefile: Likewise.
12880         * wcsmbs/Makefile: Likewise.
12881         * dlfcn/Makefile: Likewise.
12882         * posix/Makefile: Likewise.
12883
12884         [BZ #6959]
12885         * timezone/Makefile: Don't install timezone files, just the programs
12886         and scripts.
12887
12888 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12889
12890         * nss/databases.def: Add missing gshadow entry.
12891
12892         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12893
12894 2012-03-06  Marek Polacek  <polacek@redhat.com>
12895
12896         [BZ #13726]
12897         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12898         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12899         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12900         * stdio-common/tst-long-dbl-fphex.c: New file.
12901
12902 2012-03-06  David S. Miller  <davem@davemloft.net>
12903
12904         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12905         (set_obp_int): New function.
12906         (get_obp_int): New function.
12907         (__get_clockfreq_via_dev_openprom): Likewise.
12908         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12909         Avoid unused variable warnings on 'val' and use builtin_expect.
12910         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12911         __builtin_expect.
12912         (INLINE_CLONE_SYSCALL): Likewise.
12913
12914 2012-03-05  David S. Miller  <davem@davemloft.net>
12915
12916         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12917
12918 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
12919
12920         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12921
12922         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
12923         only for |x| >= 40.
12924         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12925
12926 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12927
12928         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
12929         Replace gettimeofday with __vdso_gettimeofday.
12930
12931         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12932         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
12933         __vdso_clock_gettime and __vdso_getcpu.
12934
12935         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
12936         time with __vdso_time.
12937
12938 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12939
12940         * manual/lang.texi (size_t): Note types to which size_t may be
12941         equivalent with the GNU C Library, but do not describe when
12942         differences between them are significant.
12943
12944 2012-03-05  Andreas Jaeger  <aj@suse.de>
12945
12946         * sysdeps/i386/fpu/libm-test-ulps: Update.
12947
12948 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12949
12950         [BZ #3976]
12951         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12952         (__ieee754_pow): Save and restore rounding mode and use
12953         round-to-nearest for main computations.
12954         * math/libm-test.inc (pow_test_tonearest): New function.
12955         (pow_test_towardzero): Likewise.
12956         (pow_test_downward): Likewise.
12957         (pow_test_upward): Likewise.
12958         (main): Call the new functions.
12959         * sysdeps/i386/fpu/libm-test-ulps: Update.
12960         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12961
12962         [BZ #3976]
12963         * math/libm-test.inc (cosh_test_tonearest): New function.
12964         (cosh_test_towardzero): Likewise.
12965         (cosh_test_downward): Likewise.
12966         (cosh_test_upward): Likewise.
12967         (sinh_test_tonearest): Likewise.
12968         (sinh_test_towardzero): Likewise.
12969         (sinh_test_downward): Likewise.
12970         (sinh_test_upward): Likewise.
12971         (main): Call the new functions.
12972         * sysdeps/i386/fpu/libm-test-ulps: Update.
12973         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12974
12975 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12976
12977         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12978         default stack guard is set in last bytes.
12979         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12980
12981 2012-03-05  Kees Cook  <keescook@chromium.org>
12982
12983         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12984
12985         [BZ #13656]
12986         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12987         possibly allocate from heap instead of stack.
12988         * stdio-common/bug-vfprintf-nargs.c: New file.
12989         * stdio-common/Makefile (tests): Add nargs overflow test.
12990
12991 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12992
12993         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12994
12995 2012-03-03  Marek Polacek  <polacek@redhat.com>
12996
12997         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12998         * math/math_private.h: Likewise.
12999         * stdlib/tst-strtod.c: Likewise.
13000         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13001         * sysdeps/x86_64/bits/atomic.h: Likewise.
13002
13003 2012-03-02  David S. Miller  <davem@davemloft.net>
13004
13005         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13006         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13007         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13008         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13009         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13010         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13011         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13012         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13013
13014 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13015
13016         [BZ #13792]
13017         * manual/examples/README: New file, says the example source files
13018         can be used under GPL>=2.
13019         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13020         line containing just "*/".
13021         * manual/examples/add.c: Add copyright header (GPL>=2).
13022         * manual/examples/argp-ex1.c: Likewise.
13023         * manual/examples/argp-ex2.c: Likewise.
13024         * manual/examples/argp-ex3.c: Likewise.
13025         * manual/examples/argp-ex4.c: Likewise.
13026         * manual/examples/atexit.c: Likewise.
13027         * manual/examples/db.c: Likewise.
13028         * manual/examples/dir.c: Likewise.
13029         * manual/examples/dir2.c: Likewise.
13030         * manual/examples/execinfo.c: Likewise.
13031         * manual/examples/filecli.c: Likewise.
13032         * manual/examples/filesrv.c: Likewise.
13033         * manual/examples/fmtmsgexpl.c: Likewise.
13034         * manual/examples/genpass.c: Likewise.
13035         * manual/examples/inetcli.c: Likewise.
13036         * manual/examples/inetsrv.c: Likewise.
13037         * manual/examples/isockad.c: Likewise.
13038         * manual/examples/longopt.c: Likewise.
13039         * manual/examples/memopen.c: Likewise.
13040         * manual/examples/memstrm.c: Likewise.
13041         * manual/examples/mkfsock.c: Likewise.
13042         * manual/examples/mkisock.c: Likewise.
13043         * manual/examples/mygetpass.c: Likewise.
13044         * manual/examples/pipe.c: Likewise.
13045         * manual/examples/popen.c: Likewise.
13046         * manual/examples/rprintf.c: Likewise.
13047         * manual/examples/search.c: Likewise.
13048         * manual/examples/select.c: Likewise.
13049         * manual/examples/setjmp.c: Likewise.
13050         * manual/examples/sigh1.c: Likewise.
13051         * manual/examples/sigusr.c: Likewise.
13052         * manual/examples/stpcpy.c: Likewise.
13053         * manual/examples/strdupa.c: Likewise.
13054         * manual/examples/strftim.c: Likewise.
13055         * manual/examples/strncat.c: Likewise.
13056         * manual/examples/subopt.c: Likewise.
13057         * manual/examples/swapcontext.c: Likewise.
13058         * manual/examples/termios.c: Likewise.
13059         * manual/examples/testopt.c: Likewise.
13060         * manual/examples/testpass.c: Likewise.
13061         * manual/examples/timeval_subtract.c: Likewise.
13062
13063         [BZ #13792]
13064         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13065         function to ...
13066         * manual/timeval_subtract.c.texi: ... here, new file.
13067
13068 2012-03-02  David S. Miller  <davem@davemloft.net>
13069
13070         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13071
13072 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13073
13074         [BZ #3976]
13075         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13076         (__sin): Save and restore rounding mode and use round-to-nearest
13077         for all computations.
13078         (__cos): Save and restore rounding mode and use round-to-nearest
13079         for all computations.
13080         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13081         <fenv.h>.
13082         (tan): Save and restore rounding mode and use round-to-nearest for
13083         all computations.
13084         * math/libm-test.inc (cos_test_tonearest): New function.
13085         (cos_test_towardzero): Likewise.
13086         (cos_test_downward): Likewise.
13087         (cos_test_upward): Likewise.
13088         (sin_test_tonearest): Likewise.
13089         (sin_test_towardzero): Likewise.
13090         (sin_test_downward): Likewise.
13091         (sin_test_upward): Likewise.
13092         (tan_test_tonearest): Likewise.
13093         (tan_test_towardzero): Likewise.
13094         (tan_test_downward): Likewise.
13095         (tan_test_upward): Likewise.
13096         (main): Call the new functions.
13097         * sysdeps/i386/fpu/libm-test-ulps: Update.
13098         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13099
13100         [BZ #10135]
13101         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13102         small n, then large n, before computing and testing k+n.
13103         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13104         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13105         Likewise.
13106         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13107         Likewise.
13108         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13109         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13110         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13111         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13112         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13113         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13114         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13115         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13116         * math/libm-test.inc (scalbn_test): Add more tests.
13117         (scalbln_test): Likewise.
13118
13119         * manual/filesys.texi (mode_t): Describe constraints on size and
13120         signedness, not exact equivalence to a particular type.
13121         (ino_t): Likewise.
13122         (ino64_t): Likewise.
13123         (dev_t): Likewise.
13124         (nlink_t): Likewise.
13125         (blkcnt_t): Likewise.
13126         (blkcnt64_t): Likewise.
13127         * manual/llio.texi (off_t): Likewise.
13128
13129         [BZ #3976]
13130         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13131         (__ieee754_exp): Save and restore rounding mode and use
13132         round-to-nearest for all computations.
13133         * math/libm-test.inc (exp_test_tonearest): New function.
13134         (exp_test_towardzero): Likewise.
13135         (exp_test_downward): Likewise.
13136         (exp_test_upward): Likewise.
13137         (main): Call the new functions.
13138         * sysdeps/i386/fpu/libm-test-ulps: Update.
13139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13140
13141 2012-03-01  Chris Demetriou  <cgd@google.com>
13142
13143         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13144         have predictable order.
13145
13146 2012-03-01  David S. Miller  <davem@davemloft.net>
13147
13148         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13149
13150         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13151         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13152         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13153         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13154
13155         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13156         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13157         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13158         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13159         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13160         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13161         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13162         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13163         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13164
13165         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13166
13167         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13168         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13169         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13170
13171         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13172         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13173         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13174         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13175         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13176         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13177         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13178         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13179         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13180         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13181         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13182         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13183         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13184         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13185         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13186         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13187         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13188         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13189         * sysdeps/sparc/elf/configure: Regenerated.
13190
13191 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13192
13193         * configure.in (AS, LD): Require binutils 2.20 or later.
13194         * configure: Regenerated.
13195         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13196         as required minimum version.
13197         * INSTALL: Regenerated.
13198
13199         [BZ #2541]
13200         [BZ #4108]
13201         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13202         before squaring exponent.
13203         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13204         bottom long double and 27 bits of top long double before squaring
13205         exponent.
13206         * math/libm-test.inc (erfc_test): Add more tests.
13207         * sysdeps/i386/fpu/libm-test-ulps: Update.
13208         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13210
13211 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13212
13213         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13214         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13215         containing bit-fields.
13216         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13217         * soft-fp/single.h (_FP_UNION_S): Likewise.
13218         * soft-fp/double.h (_FP_UNION_D): Likewise.
13219
13220 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13221
13222         [BZ #13786]
13223         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13224         not include ../strcmp.S.
13225         [USE_AS_STRNCASECMP_L]: Likewise.
13226         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13227         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13228         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13229         (__strncasecmp_l_ia32): Define as alias to
13230         __strncasecmp_l_nonascii.
13231
13232         [BZ #5794]
13233         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13234         * sysdeps/i386/fpu/libm-test-ulps: Update.
13235         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13236
13237         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13239
13240 2012-02-29  Jeff Law  <law@redhat.com>
13241
13242         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13243         out of bounds read.
13244
13245 2012-02-29  Marek Polacek  <polacek@redhat.com>
13246
13247         [BZ #13706]
13248         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13249         * elf/Makefile: Add rules to run tst-unused-dep.out.
13250
13251 2012-02-28  David S. Miller  <davem@davemloft.net>
13252
13253         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13254         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13255         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13256         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13257         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13258         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13259
13260 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13261
13262         * math/libm-test.inc (llround_test): Move one test from
13263         lround_test.  Use TEST_f_L in moved test.
13264         (lround_test): Move misplaced test to llround_test.  Add testcase
13265         from bug 2561.
13266
13267 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13268
13269         * sysdeps/x86_64/fpu/e_expf.S: New file.
13270         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13271
13272 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13273
13274         [BZ #13637]
13275         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13276         of remain_len that may cause incomplete multi-byte character and
13277         false match.
13278         * posix/bug-regex33.c: New file.
13279         * posix/Makefile (tests): Add bug-regex33.
13280
13281 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13282
13283         * manual/macros.texi: New file.
13284         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13285         * manual/libc.texinfo: Include macros.texi.
13286         * manual/creatute.texi: Likewise.
13287         * manual/install.texi: Likewise.
13288         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13289         @glibcadj{} in references to the GNU C Library.
13290         * manual/charset.texi: Likewise.
13291         * manual/conf.texi: Likewise.
13292         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13293         when not using those macros.
13294         * manual/creature.texi: Likewise.
13295         * manual/crypt.texi: Likewise.
13296         * manual/errno.texi: Likewise.
13297         * manual/filesys.texi: Likewise.
13298         * manual/header.texi: Likewise.
13299         * manual/install.texi: Likewise.
13300         * manual/intro.texi: Likewise.
13301         * manual/io.texi: Likewise.
13302         * manual/job.texi: Likewise.
13303         * manual/lang.texi: Likewise.
13304         * manual/libc.texiinfo: Likewise.
13305         * manual/llio.texi: Likewise.
13306         * manual/locale.texi: Likewise.
13307         * manual/maint.texi: Likewise.
13308         * manual/math.texi: Likewise.
13309         * manual/memory.texi: Likewise.
13310         * manual/message.texi: Likewise.
13311         * manual/nss.texi: Likewise.
13312         * manual/pattern.texi: Likewise.
13313         * manual/process.texi: Likewise.
13314         * manual/resource.texi: Likewise.
13315         * manual/search.texi: Likewise.
13316         * manual/setjmp.texi: Likewise.
13317         * manual/signal.texi: Likewise.
13318         * manual/socket.texi: Likewise.
13319         * manual/startup.texi: Likewise.
13320         * manual/stdio.texi: Likewise.
13321         * manual/string.texi: Likewise.
13322         * manual/sysinfo.texi: Likewise.
13323         * manual/syslog.texi: Likewise.
13324         * manual/terminal.texi: Likewise.
13325         * manual/time.texi: Likewise.
13326         * manual/users.texi: Likewise.
13327         * INSTALL: Regenerated.
13328         * NOTES: Regenerated.
13329         * sysdeps/gnu/errlist.c: Regenerated.
13330
13331 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13332
13333         * include/dirent.h: Include <dirstream.h> before
13334         <dirent/dirent.h>.
13335
13336 2012-02-28  David S. Miller  <davem@davemloft.net>
13337
13338         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13339         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13340         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13341         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13342
13343 2012-02-27  David S. Miller  <davem@davemloft.net>
13344
13345         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13346         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13347         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13348         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13349
13350         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13351         frame pointer instead of stack pointer relative arg slot.
13352         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13353         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13354         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13355
13356 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13357
13358         [BZ #3992]
13359         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13360
13361 2012-02-27  David S. Miller  <davem@davemloft.net>
13362
13363         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13364         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13365         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13366         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13367         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13368         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13369         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13370         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13371
13372 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13373
13374         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13375         later.  Allow versions 5-9.
13376         * configure: Regenerated.
13377         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13378         required minimum version and 4.6 as recommended version.  Do not
13379         mention bugs in GCC 2.7 and 2.8.
13380         * INSTALL: Regenerated.
13381
13382 2012-02-27  David S. Miller  <davem@davemloft.net>
13383
13384         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13385         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13386         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13387         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13388         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13389         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13390         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13391         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13392
13393         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13394         manipulate bits before adding and subtracting TWO112[sx].
13395         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13396
13397 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13398
13399         [BZ #13775]
13400         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13401         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13402         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13403         being in POSIX, because they are in 1003.1-2008.
13404
13405         * rt/tst-aio.c: Include <fcntl.h>.
13406         * rt/tst-aio7.c: Likewise.
13407         * rt/tst-aio64.c: Likewise.
13408
13409         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13410
13411 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13412
13413         * manual/install.texi (--with-headers): Describe headers as
13414         interface headers, not private headers.
13415         (Specific advice for GNU/Linux systems): Describe use of headers
13416         from "make headers_install", not private headers from older
13417         kernels.
13418         * INSTALL: Regenerated.
13419         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13420         Change to 2.6.19.
13421         * sysdeps/unix/sysv/linux/configure: Regenerated.
13422
13423         * manual/llio.texi (fclean): Remove documentation.
13424
13425         * manual/Makefile (libc-texi-generated): New variable.  Include
13426         version.texi.
13427         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13428         $(libc-texi-generated), not duplicated list of files.
13429         (version.texi, stamp-version): New rules.
13430         (realclean): Remove $(libc-texi-generated), not individual files
13431         from that list.  Do not remove dir-add.texinfo.
13432         * manual/libc.texinfo: Comment out uses of edition numbers and
13433         references to printed manual.  Remove last-updated dates.
13434         (EDITION): Comment out.
13435         (ISBN): Likewise.
13436         (VERSION, UPDATED): Remove.
13437         (version.texi): Include.
13438
13439 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13440
13441         * sysdeps/posix/spawni.c: Include <signal.h>.
13442         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13443         * sysdeps/pthread/aio_fsync.c: Likewise.
13444
13445 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13446
13447         * conform/Makefile (tests): Run only when not cross-compiling and
13448         when fast-check is not defined.
13449
13450         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13451         * conform/data/limits.h-data: Fixes for POSIX2008.
13452         * conform/run-conformtest.sh: Run all tests.
13453         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13454         headers.
13455         * include/bits/dlfcn.h: Likewise.
13456         * include/langinfo.h: Likewise.
13457         * include/monetary.h: Likewise.
13458         * include/sys/poll.h: Likewise.
13459
13460         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13461         for __USE_GNU.
13462         * posix/spawn.h: Define __need_sigset_t.
13463         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13464         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13465         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13466         to get sigevent_t only.
13467         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13468         only for __USE_GNU.
13469         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13470         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13471         process_vm_writev only for __USE_GNU.
13472         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13473
13474         * conform/Makefile: For now ignore errors from run-conformtest.
13475         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13476         POSIX to avoid namespace pollution.  Don't prepend headers.
13477         * conform/data/aio.h-data: Fixes for POSIX testing.
13478         * conform/data/fcntl.h-data: Likewise.
13479         * conform/data/glob.h-data: Likewise.
13480         * conform/data/grp.h-data: Likewise.
13481         * conform/data/pthread.h-data: Likewise.
13482         * conform/data/pwd.h-data: Likewise.
13483         * conform/data/signal.h-data: Likewise.
13484         * conform/data/spawn.h-data: Likewise.
13485         * conform/data/stdio.h-data: Likewise.
13486         * conform/data/stdlib.h-data: Likewise.
13487         * conform/data/stropts.h-data: Likewise.
13488         * conform/data/sys/mman.h-data: Likewise.
13489         * conform/data/sys/stat.h-data: Likewise.
13490         * conform/data/sys/types.h-data: Likewise.
13491         * conform/data/sys/wait.h-data: Likewise.
13492         * conform/data/time.h-data: Likewise.
13493         * conform/data/unistd.h-data: Likewise.
13494         * conform/data/utime.h-data: Likewise.
13495
13496         * io/sys/stat.h: fchmod was always in POSIX.
13497         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13498         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13499         * rt/aio.h: Define __need_timespec before including <time.h>.
13500         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13501         struct.  Add forward declaration of pthread_attr_t and use it in
13502         sigevent.
13503         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13504         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13505         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13506         always remove CLK_TCK definition.
13507
13508 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13509
13510         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13511
13512 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13513
13514         * conform/run-conformtest.sh: New file.
13515         * conform/Makefile: Run run-conformtest for tests.
13516         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13517         support.
13518
13519         * conform/data/uchar.h-data: New file.
13520         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13521         * conform/data/arpa/inet.h-data: Likewise.
13522         * conform/data/assert.h-data: Likewise.
13523         * conform/data/complex.h-data: Likewise.
13524         * conform/data/cpio.h-data: Likewise.
13525         * conform/data/ctype.h-data: Likewise.
13526         * conform/data/dirent.h-data: Likewise.
13527         * conform/data/dlfcn.h-data: Likewise.
13528         * conform/data/errno.h-data: Likewise.
13529         * conform/data/fcntl.h-data: Likewise.
13530         * conform/data/float.h-data: Likewise.
13531         * conform/data/fmtmsg.h-data: Likewise.
13532         * conform/data/fnmatch.h-data: Likewise.
13533         * conform/data/ftw.h-data: Likewise.
13534         * conform/data/glob.h-data: Likewise.
13535         * conform/data/grp.h-data: Likewise.
13536         * conform/data/iconv.h-data: Likewise.
13537         * conform/data/inttypes.h-data: Likewise.
13538         * conform/data/langinfo.h-data: Likewise.
13539         * conform/data/libgen.h-data: Likewise.
13540         * conform/data/limits.h-data: Likewise.
13541         * conform/data/locale.h-data: Likewise.
13542         * conform/data/math.h-data: Likewise.
13543         * conform/data/monetary.h-data: Likewise.
13544         * conform/data/mqueue.h-data: Likewise.
13545         * conform/data/ndbm.h-data: Likewise.
13546         * conform/data/net/if.h-data: Likewise.
13547         * conform/data/netdb.h-data: Likewise.
13548         * conform/data/netinet/in.h-data: Likewise.
13549         * conform/data/nl_types.h-data: Likewise.
13550         * conform/data/poll.h-data: Likewise.
13551         * conform/data/pthread.h-data: Likewise.
13552         * conform/data/pwd.h-data: Likewise.
13553         * conform/data/regex.h-data: Likewise.
13554         * conform/data/sched.h-data: Likewise.
13555         * conform/data/search.h-data: Likewise.
13556         * conform/data/semaphore.h-data: Likewise.
13557         * conform/data/setjmp.h-data: Likewise.
13558         * conform/data/signal.h-data: Likewise.
13559         * conform/data/spawn.h-data: Likewise.
13560         * conform/data/stdarg.h-data: Likewise.
13561         * conform/data/stdio.h-data: Likewise.
13562         * conform/data/stdlib.h-data: Likewise.
13563         * conform/data/string.h-data: Likewise.
13564         * conform/data/strings.h-data: Likewise.
13565         * conform/data/stropts.h-data: Likewise.
13566         * conform/data/sys/ipc.h-data: Likewise.
13567         * conform/data/sys/mman.h-data: Likewise.
13568         * conform/data/sys/msg.h-data: Likewise.
13569         * conform/data/sys/resource.h-data: Likewise.
13570         * conform/data/sys/select.h-data: Likewise.
13571         * conform/data/sys/sem.h-data: Likewise.
13572         * conform/data/sys/shm.h-data: Likewise.
13573         * conform/data/sys/socket.h-data: Likewise.
13574         * conform/data/sys/stat.h-data: Likewise.
13575         * conform/data/sys/statvfs.h-data: Likewise.
13576         * conform/data/sys/time.h-data: Likewise.
13577         * conform/data/sys/timeb.h-data: Likewise.
13578         * conform/data/sys/times.h-data: Likewise.
13579         * conform/data/sys/types.h-data: Likewise.
13580         * conform/data/sys/uio.h-data: Likewise.
13581         * conform/data/sys/un.h-data: Likewise.
13582         * conform/data/sys/utsname.h-data: Likewise.
13583         * conform/data/sys/wait.h-data: Likewise.
13584         * conform/data/syslog.h-data: Likewise.
13585         * conform/data/tar.h-data: Likewise.
13586         * conform/data/termios.h-data: Likewise.
13587         * conform/data/utime.h-data: Likewise.
13588         * conform/data/utmpx.h-data: Likewise.
13589         * conform/data/varargs.h-data: Likewise.
13590         * conform/data/wchar.h-data: Likewise.
13591         * conform/data/wctype.h-data: Likewise.
13592         * conform/data/wordexp.h-data: Likewise.
13593
13594         * include/stropts.h: New file.
13595         * include/uchar.h: New file.
13596         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13597         * include/assert.h: Likewise.
13598         * include/ctype.h: Likewise.
13599         * include/dirent.h: Likewise.
13600         * include/dlfcn.h: Likewise.
13601         * include/fcntl.h: Likewise.
13602         * include/fnmatch.h: Likewise.
13603         * include/glob.h: Likewise.
13604         * include/grp.h: Likewise.
13605         * include/libio.h: Likewise.
13606         * include/locale.h: Likewise.
13607         * include/math.h: Likewise.
13608         * include/net/if.h: Likewise.
13609         * include/netdb.h: Likewise.
13610         * include/netinet/in.h: Likewise.
13611         * include/pthread.h: Likewise.
13612         * include/pwd.h: Likewise.
13613         * include/regex.h: Likewise.
13614         * include/sched.h: Likewise.
13615         * include/search.h: Likewise.
13616         * include/setjmp.h: Likewise.
13617         * include/signal.h: Likewise.
13618         * include/stdio.h: Likewise.
13619         * include/stdlib.h: Likewise.
13620         * include/string.h: Likewise.
13621         * include/sys/cdefs.h: Likewise.
13622         * include/sys/mman.h: Likewise.
13623         * include/sys/msg.h: Likewise.
13624         * include/sys/resource.h: Likewise.
13625         * include/sys/select.h: Likewise.
13626         * include/sys/socket.h: Likewise.
13627         * include/sys/stat.h: Likewise.
13628         * include/sys/statvfs.h: Likewise.
13629         * include/sys/time.h: Likewise.
13630         * include/sys/times.h: Likewise.
13631         * include/sys/uio.h: Likewise.
13632         * include/sys/utsname.h: Likewise.
13633         * include/sys/wait.h: Likewise.
13634         * include/termios.h: Likewise.
13635         * include/time.h: Likewise.
13636         * include/ulimit.h: Likewise.
13637         * include/unistd.h: Likewise.
13638         * include/utime.h: Likewise.
13639         * include/wchar.h: Likewise.
13640         * include/wctype.h: Likewise.
13641         * include/wordexp.h: Likewise.
13642
13643         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13644
13645         * time/time.h: TIME_UTC must be a macro.
13646         Make timespec_get available for ISO C11 only as well.
13647
13648 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13649
13650         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13651         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13652
13653 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13654
13655         * configure.in: Use -o not -a in test for unsupported multi-arch.
13656
13657 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13658
13659         * manual/texinfo.tex: Update to version 2012-01-19.16.
13660
13661 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13662
13663         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13664
13665 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13666
13667         [BZ #13738]
13668         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13669         * manual/fdl-1.3.texi: New file.
13670         * manual/fdl-1.1.texi: File removed.
13671
13672         [BZ #13738]
13673         * manual/libc.texinfo (FDL_VERSION): New @set.
13674         Use it for mention of FDL in cover text.
13675         (Documentation License): Use it in @include file name.
13676
13677 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13678             Roland McGrath  <roland@hack.frob.com>
13679
13680         [BZ #5461]
13681         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13682         not LONG_LONG_MAX and LONG_LONG_MIN.
13683         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13684         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13685         name.
13686         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13687
13688 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13689
13690         [BZ #2547]
13691         [BZ #11365]
13692         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13693         manipulate bits before adding and subtracting TWO23[sx].
13694         * math/libm-test.inc (nearbyint_test): Add more tests.
13695
13696 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13697
13698         [BZ #2548]
13699         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13700         bits before adding and subtracting TWO23[sx].
13701         * math/libm-test.inc (rint_test): Add more tests.
13702         (rint_test_tonearest): Likewise.
13703         (rint_test_towardzero): Likewise.
13704         (rint_test_downward): Likewise.
13705         (rint_test_upward: Likewise.
13706
13707 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13708
13709         [BZ #10110]
13710         * include/stdc-predef.h: New file.  Extracted from features.h.
13711         * include/features.h: Include stdc-predef.h.
13712         * Makefile (headers): Add stdc-predef.h.
13713         * CONFORMANCE (Compiler limitations): Update.
13714
13715 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13716
13717         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13718
13719 2012-02-21  David S. Miller  <davem@davemloft.net>
13720
13721         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13722         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13723
13724 2012-02-20  David S. Miller  <davem@davemloft.net>
13725
13726         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13727         using a normal save/restore sequence, rather than allocating a
13728         dummy stack frame just to store a frame pointer and restore.
13729         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13730
13731 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13732
13733         * manual/install.texi: Fix stray word in line-wrapped comment.
13734
13735 2012-02-20  David S. Miller  <davem@davemloft.net>
13736
13737         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13738         both binutils and gcc support GOTDATA.
13739
13740         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13741         "rd %pc" in the PIC register setup sequences.
13742
13743         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13744         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13745         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13746         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13747         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13748         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13749         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13750         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13751         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13752         (SYSCALL_ERROR_HANDLER): Likewise.
13753         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13754         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13755         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13756         (SYSCALL_ERROR_HANDLER): Likewise.
13757
13758         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13759         (HAVE_GCC_GOTDATA): New.
13760         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13761         relocation support in both binutils and gcc.
13762         * sysdeps/sparc/elf/configure: Regenerate.
13763
13764         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13765         * sysdeps/sparc/sparc32/elf/configure: Delete.
13766         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13767         * sysdeps/sparc/sparc64/elf/configure: Delete.
13768         * sysdeps/sparc/elf/configure.in: New file.
13769         * sysdeps/sparc/elf/configure: Generate.
13770
13771         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13772         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13773         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13774         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13775         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13776
13777 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13778
13779         * manual/install.texi: Do not mention specific glibc version
13780         numbers.
13781         * manual/libc.texinfo (VERSION, UPDATED): Update.
13782         (@copying): Use @copyright{} and range of years.
13783
13784 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13785
13786         [BZ #13695]
13787         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13788         [crti.S not in sysdirs] (generated): Do not append.
13789         [crti.S not in sysdirs] (omit-deps): Likewise.
13790         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13791         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13792         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13793         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13794         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13795         Likewise.
13796         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13797         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13798         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13799         * csu/defs.awk: Remove file.
13800         * sysdeps/generic/initfini.c: Likewise.
13801         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13802         variable.
13803         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13804         Likewise.
13805
13806 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13807
13808         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13809         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13810         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13811         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13812         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13813         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13814         <bits/epoll.h>.
13815         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13816         (__EPOLL_PACKED): Define to empty if not defined by
13817         <bits/epoll.h>.
13818         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13819         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13820         bits/epoll.h.
13821
13822 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13823
13824         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13825         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13826         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13827         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13828         <bits/timerfd.h>.
13829         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13830         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13831         bits/timerfd.h.
13832
13833 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13834
13835         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13836         in C locale.
13837         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13838         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13839         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13840         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13841
13842 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13843
13844         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13845         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13846
13847 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13848
13849         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13850         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13851         defined.
13852         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13853         Likewise.
13854         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13855         entry for 2.16.
13856
13857 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13858
13859         * math/w_acos.c: Use non-signaling floating-point comparisons.
13860         * math/w_acosf.c: Likewise.
13861         * math/w_acosh.c: Likewise.
13862         * math/w_acoshf.c: Likewise.
13863         * math/w_acoshl.c: Likewise.
13864         * math/w_acosl.c: Likewise.
13865         * math/w_asin.c: Likewise.
13866         * math/w_asinf.c: Likewise.
13867         * math/w_asinl.c: Likewise.
13868         * math/w_atanh.c: Likewise.
13869         * math/w_atanhf.c: Likewise.
13870         * math/w_atanhl.c: Likewise.
13871         * math/w_exp2.c: Likewise.
13872         * math/w_exp2f.c: Likewise.
13873         * math/w_exp2l.c: Likewise.
13874         * math/w_j0.c: Likewise.
13875         * math/w_j0f.c: Likewise.
13876         * math/w_j0l.c: Likewise.
13877         * math/w_j1.c: Likewise.
13878         * math/w_j1f.c: Likewise.
13879         * math/w_j1l.c: Likewise.
13880         * math/w_jn.c: Likewise.
13881         * math/w_jnf.c: Likewise.
13882         * math/w_log.c: Likewise.
13883         * math/w_log10.c: Likewise.
13884         * math/w_log10f.c: Likewise.
13885         * math/w_log10l.c: Likewise.
13886         * math/w_log2.c: Likewise.
13887         * math/w_log2f.c: Likewise.
13888         * math/w_log2l.c: Likewise.
13889         * math/w_logf.c: Likewise.
13890         * math/w_logl.c: Likewise.
13891         * math/w_sqrt.c: Likewise.
13892         * math/w_sqrtf.c: Likewise.
13893         * math/w_sqrtl.c: Likewise.
13894         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13895         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13896         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13897         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13898         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13899
13900 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13901
13902         [BZ #9739]
13903         * manual/string.texi (strnlen): Use correct parameter name in
13904         equivalent expression.
13905
13906 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13907
13908         [BZ #11174]
13909         * manual/users.texi (seteuid): Consistently use neweuid for
13910         argument name.
13911
13912 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13913
13914         [BZ #13704]
13915         * manual/nss.texi (Services in the NSS configuration): Correct
13916         list of services in example configuration file.
13917
13918 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
13919
13920         [BZ #11322]
13921         * manual/arith.texi: Remove statements about negative zero
13922         behaving identically to zero.
13923
13924 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13925
13926         [BZ #5993]
13927         * manual/install.texi: Do not document upgrading from libc5.
13928
13929 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13930
13931         [BZ #4596]
13932         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
13933
13934 2012-02-18  David S. Miller  <davem@davemloft.net>
13935
13936         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
13937         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
13938         %o7 across the call.
13939         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
13940         instead.
13941         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
13942         SETUP_PIC_REG_LEAF.
13943         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13944         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13945         * sysdeps/sparc/crtn.S: Likewise.
13946
13947 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13948
13949         * aout/Makefile: Remove.
13950
13951 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13952
13953         [BZ #13058]
13954         * manual/examples/argp-ex1.c (main): Format definition in GNU
13955         style.
13956         * manual/examples/argp-ex2.c (main): Likewise.
13957         * manual/examples/argp-ex3.c (main): Likewise.
13958         * manual/examples/argp-ex4.c (main): Likewise.
13959         * manual/examples/longopt.c (main): Use new-style prototype
13960         definition.
13961         * manual/examples/strncat.c (main): Specify return type and use
13962         (void) for arguments.
13963         * manual/examples/subopt.c (main): Use char **argv argument.
13964
13965 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13966
13967         [BZ #5077]
13968         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13969         rounding modes.
13970
13971 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13972
13973         [BZ #6907]
13974         * manual/string.texi (strchr): Change when strchrnul is
13975         recommended.
13976
13977 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13978
13979         [BZ #174]
13980         * manual/locale.texi (setlocale): Document LOCPATH.
13981
13982 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13983
13984         [BZ #10210]
13985         * manual/process.texi (execle): Move @dots{} before last argument.
13986
13987 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13988
13989         [BZ #12047]
13990         * manual/charset.texi (Generic Charset Conversion): Fix typo
13991         (LC_TYPE -> LC_CTYPE).
13992
13993 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13994
13995         [BZ #5805]
13996         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13997         (scalbnf): Likewise.
13998         (scalbnl): Likewise.
13999         (scalbln): Likewise.
14000         (scalblnf): Likewise.
14001         (scalblnl): Likewise.
14002         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14003         (vwarnx): Likewise.
14004         (verr): Likewise.
14005         (verrx): Likewise.
14006         * manual/filesys.texi (telldir): Use braces around return type.
14007         * manual/llio.texi (mmap): Add space after comma.
14008         (mmap64): Likewise.
14009         * manual/math.texi (jn): Use @var{} on parameter names.
14010         (jnf): Likewise.
14011         (jnl): Likewise.
14012         (yn): Likewise.
14013         (ynf): Likewise.
14014         (ynl): Likewise.
14015         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14016         line.
14017         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14018         "...".
14019         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14020         (sched_get_priority_max): Likewise.
14021         * manual/signal.texi (sigvec): Add space after comma.
14022         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14023         names.
14024         (if_indextoname): Likewise.
14025         (if_freenameindex): Likewise.
14026         (sendto): Use ',' instead of '.' in prototype.
14027         * manual/startup.texi (syscall): Use @dots{} instead of literal
14028         "...".
14029         * manual/stdio.texi (__fpending): Separate initial words of
14030         paragraph from @deftypefun line.
14031         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14032         "...".
14033         (vsyslog): Use @var{} on parameter names.
14034         * manual/terminal.texi (stty): Use @var{} on parameter names.
14035         * manual/users.texi (getutmp): Use @var{} on parameter names.
14036         (getutmpx): Likewise.
14037
14038 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14039
14040         [BZ #6884]
14041         * manual/stdio.texi (fopen): Fix typos in description of
14042         ",ccs=STRING".
14043
14044 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14045
14046         [BZ #4026]
14047         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14048         get clock_id definition.
14049
14050 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14051
14052         [BZ #4822]
14053         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14054         (madvise): Cast every argument to void on its own.
14055
14056 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14057
14058         [BZ #9902]
14059         * manual/startup.texi (Exit Status): Fix typo.
14060
14061 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14062
14063         [BZ #10140]
14064         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14065         * manual/examples/argp-ex2.c: Likewise.
14066         * manual/examples/argp-ex3.c: Likewise.
14067
14068 2012-02-16  Richard Henderson  <rth@redhat.com>
14069
14070         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14071         * sysdeps/s390/s390-32/initfini.c: Remove.
14072         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14073         * sysdeps/s390/s390-64/initfini.c: Remove.
14074
14075 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14076
14077         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14078         compiler output for sysdeps/generic/initfini.c.
14079         * sysdeps/sh/elf/initfini.c: Remove file.
14080
14081 2012-02-16  David S. Miller  <davem@davemloft.net>
14082
14083         [BZ #11494]
14084         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14085
14086         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14087         * sysdeps/sparc/crti.S: New file.
14088         * sysdeps/sparc/crtn.S: New file.
14089         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14090         * sysdeps/sparc/sparc64/Makefile: Likewise.
14091
14092 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14093
14094         [BZ #3335]
14095         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14096
14097 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14098
14099         [BZ #4822]
14100         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14101
14102         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14103         (write, read, close): Likewise.
14104         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14105
14106 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14107
14108         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14109         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14110         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14111         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14112         <bits/signalfd.h>.
14113         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14114         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14115         bits/signalfd.h.
14116
14117 2012-02-14  Marek Polacek  <polacek@redhat.com>
14118
14119         * sysdeps/x86_64/crti.S: New file.
14120         * sysdeps/x86_64/crtn.S: New file.
14121         * sysdeps/x86_64/elf/initfini.c: Remove file.
14122
14123 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14124
14125         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14126         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14127         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14128         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14129         <bits/inotify.h>.
14130         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14131         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14132         bits/inotify.h.
14133
14134 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14135
14136         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14137         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14138         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14139         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14140         <bits/eventfd.h>.
14141         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14142         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14143         bits/eventfd.h.
14144
14145 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14146
14147         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14148         __feraiseexcept instead of feraiseexcept.
14149
14150         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14151         nanosleep invocations.
14152         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14153         strings, and add error checking for a nanosleep invocations.
14154
14155 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14156
14157         Replace FSF snail mail address with URLs, as per GNU coding standards.
14158         Most of the snail mail addresses were wrong anyway, and omitting
14159         them makes the source code easier to maintain.  Almost all of the
14160         changes are to license notices and to locale LC_IDENTIFICATION
14161         addresses, except for this one:
14162         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14163         not its snail mail address.
14164
14165 2012-02-09  Richard Henderson  <rth@twiddle.net>
14166
14167         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14168         of kernel-features.h.
14169
14170         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14171
14172 2012-02-08  Marek Polacek  <polacek@redhat.com>
14173
14174         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14175         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14176         * sysdeps/gnu/_G_config.h: Likewise.
14177         * sysdeps/generic/_G_config.h: Likewise.
14178
14179 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14180
14181         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14182         tests.
14183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14184
14185         * sysdeps/powerpc/powerpc32/crti.S: New file.
14186         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14187         * sysdeps/powerpc/powerpc64/crti.S: New file.
14188         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14189
14190         * Makeconfig (have-initfini): Don't set.
14191         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14192         * configure.in (nopic_initfini): Don't substitute.
14193         * config.h.in (HAVE_INITFINI): Don't #undef.
14194         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14195         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14196
14197 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14198
14199         Support crti.S and crtn.S provided directly by architectures.
14200         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14201         [crti.S in sysdirs] (omit-deps): Likewise.
14202         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14203         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14204         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14205         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14206         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14207         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14208         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14209         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14210         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14211         compiler output for sysdeps/generic/initfini.c.
14212         * sysdeps/i386/elf/Makefile: Remove file.
14213         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14214
14215 2012-02-07  Marek Polacek  <polacek@redhat.com>
14216
14217         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14218         * sysdeps/gnu/_G_config.h: Likewise.
14219         * sysdeps/mach/hurd/_G_config.h: Likewise.
14220
14221 2012-02-07  Marek Polacek  <polacek@redhat.com>
14222
14223         * math/Makefile (tests): Add tst-CMPLX2.
14224         * math/tst-CMPLX2.c: New file.
14225
14226 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14227
14228         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14229
14230         * math/libm-test.inc (jn_test): Add missing L suffix.
14231
14232 2012-02-06  Marek Polacek  <polacek@redhat.com>
14233
14234         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14235         * sysdeps/i386/fpu/e_powf.S: Likewise.
14236         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14237         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14238         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14239         * sysdeps/i386/fpu/e_pow.S: Likewise.
14240         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14241         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14242         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14243         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14244         * sysdeps/i386/fpu/e_log2.S: Likewise.
14245         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14246         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14247         * sysdeps/i386/fpu/e_powl.S: Likewise.
14248         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14249         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14250         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14251         * sysdeps/i386/fpu/e_logl.S: Likewise.
14252         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14253         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14254         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14255         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14256         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14257         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14258         * sysdeps/i386/fpu/e_log.S: Likewise.
14259         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14260         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14261         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14262         * sysdeps/i386/fpu/e_logf.S: Likewise.
14263         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14264         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14265         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14266         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14267         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14268         * sysdeps/i386/fpu/e_log10.S: Likewise.
14269         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14270         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14271         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14272         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14273         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14274         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14275         * sysdeps/i386/asm-syntax.h: Likewise.
14276         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14277         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14278         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14279         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14280         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14281         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14282         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14283         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14284         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14285         * sysdeps/powerpc/sysdep.h: Likewise.
14286         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14287         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14288
14289 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14290
14291         [BZ #411]
14292         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14293
14294 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14295
14296         * sysdeps/i386/sysdep.h: Include <features.h>.
14297         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14298         version.
14299
14300 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14301
14302         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14303         Define.
14304         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14305         LOAD_PIC_REG_STR.
14306
14307 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14308
14309         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14310         (SETUP_PIC_REG): Use GET_PC_THUNK.
14311         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14312         macro.
14313
14314 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14315
14316         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14317         for non-PIC compilation.
14318         (SETUP_PIC_REG): Add .p2align directive.
14319         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14320         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14321         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14322         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14323         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14324         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14325         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14326         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14327         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14328         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14329         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14330         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14331         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14332         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14333         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14334         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14335         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14336         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14337         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14338         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14339         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14340         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14341         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14342         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14343         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14344         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14345         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14346         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14347         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14348         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14349         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14350         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14351         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14352         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14353         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14354         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14355         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14356         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14357         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14358         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14359         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14360
14361 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14362
14363         * math/tst-CMPLX.c: Include <stdio.h>.
14364
14365 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14366
14367         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14368         float.
14369         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14370         * sysdeps/sparc/bits/mathdef.h: Likewise.
14371
14372 2012-01-31  Marek Polacek  <polacek@redhat.com>
14373
14374         * libio/libio.h: Don't define _PARAMS.
14375         * locale/programs/config.h: Don't define PARAMS.
14376         * stdlib/strtol_l.c: Likewise.
14377         (__strtol_l): Remove PARAMS from the prototype.
14378
14379 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14380
14381         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14382         names.  Just use the correct names.  Remove unnecessary wrapper
14383         functions.
14384         * malloc/arena.c: Likewise.
14385         * malloc/hooks.c: Likewise.
14386
14387         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14388         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14389         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14390
14391 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14392
14393         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14394         into tail calls.
14395         (update_get_addr): New function.
14396         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14397         GET_ADDR_MODULE parameter.
14398
14399 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14400
14401         * crypt/cert.c: Remove __STDC__ conditionals.
14402         * crypt/crypt-entry.c: Likewise.
14403         * crypt/crypt_util.c: Likewise.
14404         * libio/filedoalloc.c: Likewise.
14405         * libio/fileops.c: Likewise.
14406         * libio/genops.c: Likewise.
14407         * libio/iofclose.c: Likewise.
14408         * libio/iofdopen.c: Likewise.
14409         * libio/iofopen.c: Likewise.
14410         * libio/iofopen64.c: Likewise.
14411         * libio/iogetdelim.c: Likewise.
14412         * libio/iopopen.c: Likewise.
14413         * libio/obprintf.c: Likewise.
14414         * libio/oldfileops.c: Likewise.
14415         * libio/oldiofclose.c: Likewise.
14416         * libio/oldiofdopen.c: Likewise.
14417         * libio/oldiofopen.c: Likewise.
14418         * libio/oldiopopen.c: Likewise.
14419         * libio/wfiledoalloc.c: Likewise.
14420         * libio/wgenops.c: Likewise.
14421         * locale/programs/xmalloc.c: Likewise.
14422         * misc/syslog.c: Likewise.
14423         * stdio-common/xbug.c: Likewise.
14424         * string/memchr.c: Likewise.
14425         * string/memcmp.c: Likewise.
14426         * string/memrchr.c: Likewise.
14427         * string/rawmemchr.c: Likewise.
14428         * sysdeps/posix/getcwd.c: Likewise.
14429         * time/strftime_l.c: Likewise.
14430
14431 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14432
14433         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14434         * config.make.in (config-cflags-sse2avx): Define.
14435         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14436         Fix typo.
14437
14438 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14439
14440         * scripts/config.guess: Update from upstream config git repository.
14441         * scripts/config.sub: Likewise.
14442
14443 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14444
14445         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14446         (EM_NUM): Update.
14447         (R_TILEPRO_*, R_TILEGX_*): New macros.
14448
14449         * scripts/firstversions.awk: Fix bug in version range handling.
14450
14451         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14452
14453         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14454
14455         * include/sys/epoll.h: New file.
14456         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14457         libc_hidden_def.
14458
14459 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14460
14461         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14462         Avoid unnecessary __WORDSIZE == 64 test.
14463         (fmaxf): Use VEX format if possible.
14464         (fmax): Likewise.
14465         (fminf): Likewise.
14466         (fmin): Likewise.
14467
14468         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14469         * math/math_private.h: Remove libc_fegetround* and
14470         libc_fesetround*.
14471         * sysdeps/i386/configure.in: Check for -msse2avx.
14472         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14473         also if SSE2AVX is defined.
14474         Remove libc_fegetround* and libc_fesetround*.
14475         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14476         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14477         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14478         of HAS_YMM_USABLE.
14479         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14480         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14481         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14482         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14483         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14484
14485         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14486
14487 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14488
14489         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14490         size is not set.
14491         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14492
14493 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14494
14495         [BZ #13618]
14496         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14497         relocation.
14498         * Makeconfig (libm): Define.
14499         * elf/Makefile: Add rules to build and run tst-relsort1.
14500         * elf/tst-relsort1.c: New file.
14501         * elf/tst-relsort1mod1.c: New file.
14502         * elf/tst-relsort1mod2.c: New file.
14503
14504 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14505
14506         * math/s_ldexp.c: Remove __STDC__ conditionals.
14507         * math/s_ldexpf.c: Likewise.
14508         * math/s_ldexpl.c: Likewise.
14509         * math/s_nextafter.c: Likewise.
14510         * math/s_nexttowardf.c: Likewise.
14511         * math/s_significand.c: Likewise.
14512         * math/s_significandf.c: Likewise.
14513         * math/s_significandl.c: Likewise.
14514         * math/w_jnl.c: Likewise.
14515         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14516         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14517         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14518         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14519         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14520         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14521         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14522         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14523         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14524         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14525         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14526         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14527         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14528         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14529         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14530         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14531         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14532         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14533         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14534         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14535         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14536         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14537         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14538         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14539         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14540         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14541         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14542         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14543         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14544         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14545         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14546         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14547         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14548         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14549         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14550         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14551         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14552         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14553         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14554         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14555         * sysdeps/ieee754/k_standard.c: Likewise.
14556         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14557         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14558         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14559         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14560         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14561         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14562         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14563         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14564         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14565         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14566         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14567         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14568         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14569         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14570         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14571         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14572         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14573         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14574         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14575         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14576         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14577         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14578         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14579         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14580         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14581         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14582         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14583         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14584         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14585         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14586         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14587         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14588         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14589         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14590         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14591         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14592         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14593         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14594         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14595         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14596         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14597         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14598         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14599         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14600         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14601         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14602         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14603         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14604         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14605         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14606         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14607         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14608         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14609         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14610         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14611         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14612         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14613         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14614         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14615         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14616         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14617         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14618         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14619         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14620         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14621         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14622         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14623         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14624         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14625         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14626         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14627         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14628         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14629         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14630         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14631         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14632         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14633         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14634         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14635         * sysdeps/ieee754/s_matherr.c: Likewise.
14636         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14637         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14638         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14639         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14640
14641 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14642
14643         * crypt/md5.h: Remove __STDC__ conditionals.
14644         * libio/libioP.h: Likewise.
14645         * locale/programs/config.h: Likewise.
14646         * sysdeps/generic/sysdep.h: Likewise.
14647         * sysdeps/i386/asm-syntax.h: Likewise.
14648         * sysdeps/s390/asm-syntax.h: Likewise.
14649         * sysdeps/unix/sysdep.h: Likewise.
14650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14652
14653 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14654
14655         * libio/libio.h: Remove __STDC__ conditionals.
14656         * malloc/obstack.h: Likewise.
14657         * math/complex.h: Likewise.
14658         * math/math.h: Likewise.
14659         * sysdeps/generic/_G_config.h: Likewise.
14660         * sysdeps/gnu/_G_config.h: Likewise.
14661         * sysdeps/mach/hurd/_G_config.h: Likewise.
14662         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14663         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14664         * sysdeps/sparc/bits/mathdef.h: Likewise.
14665
14666 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14667
14668         [BZ #13583]
14669         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14670         Clean up HAS_* macros.
14671         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14672         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14673         possible.
14674         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14675         HAS_AVX.
14676         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14677         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14678         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14679         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14680         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14681
14682 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14683
14684         * elf/tst-unique3.cc (gets): Remove declaration.
14685         * elf/tst-unique3lib.cc (gets): Likewise.
14686         * elf/tst-unique3lib2.cc (gets): Likewise.
14687         * elf/tst-unique4.cc (gets): Likewise.
14688
14689 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14690
14691         * include/stdio.h: Add C++ protection.  Add gets declarations and
14692         definitions.
14693         * debug/tst-chk1.c: Don't declare gets here.
14694         * stdio-common/tst-gets.c: Likewise.
14695
14696 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14697
14698         * posix/glob: Remove directory.
14699
14700 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14701
14702         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14703
14704 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14705
14706         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14707         of the non-standard EPFNOSUPPORT.
14708
14709 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14710
14711         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14712         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14713         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14714
14715 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14716
14717         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14718
14719 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14720
14721         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14722         transient errors.
14723         * nscd/grpcache.c (cache_addgr): Likewise.
14724         * nscd/hstcache.c (cache_addhst): Likewise.
14725         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14726         * nscd/pwdcache.c (cache_addpw): Likewise.
14727         * nscd/servicescache.c (cache_addserv): Likewise.
14728
14729 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14730
14731         * malloc/malloc.c: Various cleanups.
14732         * malloc/hooks.c: Likewise.
14733
14734         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14735         * stdlib/bug-fmtmsg1.c: New file.
14736
14737         * stdlib/fmtmsg.c (init): Add missing unlock.
14738         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14739
14740 2012-01-12  Marek Polacek  <polacek@redhat.com>
14741
14742         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14743         and _GNU_SOURCE.
14744
14745 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14746
14747         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14748         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14749         macro to ensure uniqueness of label name.
14750         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14751         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14752
14753 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14754
14755         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14756
14757         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14758         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14759         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14760         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14761
14762 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14763
14764         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14765
14766         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14767         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14768         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14769
14770         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14771
14772         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14773         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14774         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14775         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14776
14777         * math/bits/math-finite.h: Add ldexp support.
14778
14779 2012-01-10  Marek Polacek  <polacek@redhat.com>
14780
14781         * locale/programs/localedef.h (show_archive_content): Add noreturn
14782         attribute.
14783
14784 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14785
14786         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14787
14788 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14789
14790         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14791
14792         * io/Makefile (headers): Add bits/poll2.h.
14793
14794 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14795
14796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14797         typo #include statement.
14798
14799 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14800
14801         * include/sys/cdefs.h: Define __attribute_alloc_size.
14802         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14803         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14804         * elf/pldd.c: Likewise.
14805         * iconv/iconv_charmap.c: Likewise.
14806         * iconv/iconvconfig.c: Likewise.
14807         * iconv/strtab.c: Likewise.
14808         * locale/programs/locale.c: Likewise.
14809         * locale/programs/localedef.h: Likewise.
14810         * locale/programs/simple-hash.c: Likewise.
14811         * nscd/nscd.h: Likewise.
14812         * nss/makedb.c: Likewise.
14813         * sysdeps/generic/ldconfig.h: Likewise.
14814         * locale/programs/localedef.c: Remove xmalloc prototype.
14815         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14816
14817 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14818
14819         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14820         appropriate.
14821
14822 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14823
14824         * math/Makefile (tests): Add tst-CMPLX.
14825         * math/tst-CMPLX.c: New file.
14826
14827         * math/complex.h (CMPLXL): Fix typo.
14828
14829         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14830         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14831         GLIBC_2.16.
14832         * debug/tst-chk1.c: Add poll and ppoll tests.
14833         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14834         * include/sys/poll.h: Add hidden proto for ppoll.
14835         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14836         * sysdeps/mach/hurd/ppoll.c: Likewise.
14837         * io/ppoll.c: Likewise.
14838         * debug/poll_chk.c: New file.
14839         * debug/ppoll_chk.c: New file.
14840         * include/bits/poll2.h: New file.
14841         * io/bits/poll2.h: New file.
14842
14843         [BZ #1350]
14844         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14845
14846         * configure.in: static is always set to yes.  Remove.
14847         * config.make.in: Don't set build-static.
14848         * Makeconfig: Remove use of build-static.
14849         * dlfcn/Makefile: Likewise.
14850         * elf/Makefile: Likewise.
14851         * math/Makefile: Likewise.
14852         * misc/Makefile: Likewise.
14853         * nptl/Makefile: Likewise.
14854         * sysdeps/mach/hurd/Makefile: Likewise.
14855
14856         * configure.in: PWD_P is not used anymore.
14857         * config.make.in: Remove PWD_P entry.
14858
14859         * configure.in: Remove last remnants of RANLIB.
14860         No need to check for signed size_t anymore.
14861         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14862         and IA-64.
14863         Remove __builtin_expect test because we require at least gcc 3.4.
14864         * aclocal.m4: Likewise.
14865
14866         * wcsmbs/mbrtoc16.c: Implement using towc function.
14867         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14868         * wcsmbs/wcsmbsload.c: Likewise.
14869         * iconv/gconv_simple.c: Likewise.
14870         * iconv/gconv_int.h: Likewise.
14871         * iconv/gconv_builtin.h: Likewise.
14872         * iconv/iconv_prog.c: Remove CHAR16 handling.
14873
14874         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14875
14876         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14877
14878         * configure.in: Remove --with-elf and --enable-bounded options.
14879         Dont set base_machine for ia64.  More non-ELF conditions removed.
14880         Remove testing and setting of leading underscore information.
14881         * config.make.in (build-bounded): Set to no.
14882         * config.h.in: Remove NO_UNDERSCORES entry.
14883         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14884         them.
14885         * csu/start.c: Remove !NO_UNDERSCORE code.
14886         * locale/localeinfo.h: Likewise.
14887         * sysdeps/generic/machine-gmon.h: Likewise.
14888         * sysdeps/generic/sysdep.h: Likewise.
14889         * sysdeps/i386/sysdep.h: Likewise.
14890         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14891         * sysdeps/mach/sysdep.h: Likewise.
14892         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14893         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14894         * sysdeps/sh/sysdep.h: Likewise.
14895         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14896         * sysdeps/unix/i386/sysdep.S: Likewise.
14897         * sysdeps/unix/sparc/start.c: Likewise.
14898         * sysdeps/unix/sparc/sysdep.S: Likewise.
14899         * sysdeps/unix/sparc/sysdep.h: Likewise.
14900         * sysdeps/unix/start.c: Likewise.
14901         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14902         * sysdeps/x86_64/sysdep.h: Likewise.
14903
14904 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14905
14906         [BZ #13553]
14907         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14908         for non-gcc.
14909         * argp/argp-fmtstream.h: Use const instead __const.
14910         * argp/argp.h: Likewise.
14911         * assert/assert.h: Likewise.
14912         * bits/fenv.h: Likewise.
14913         * bits/sched.h: Likewise.
14914         * bits/sigset.h: Likewise.
14915         * bits/sigthread.h: Likewise.
14916         * catgets/nl_types.h: Likewise.
14917         * conform/data/pthread.h-data: Likewise.
14918         * crypt/crypt-private.h: Likewise.
14919         * crypt/crypt.h: Likewise.
14920         * crypt/crypt_util.c: Likewise.
14921         * ctype/ctype.h: Likewise.
14922         * debug/execinfo.h: Likewise.
14923         * debug/mbsnrtowcs_chk.c: Likewise.
14924         * debug/mbsrtowcs_chk.c: Likewise.
14925         * debug/wcsnrtombs_chk.c: Likewise.
14926         * debug/wcsrtombs_chk.c: Likewise.
14927         * debug/wcstombs_chk.c: Likewise.
14928         * dirent/dirent.h: Likewise.
14929         * dlfcn/dlfcn.h: Likewise.
14930         * elf/neededtest4.c: Likewise.
14931         * grp/grp.h: Likewise.
14932         * gshadow/gshadow.h: Likewise.
14933         * iconv/gconv.h: Likewise.
14934         * iconv/gconv_int.h: Likewise.
14935         * iconv/gconv_simple.c: Likewise.
14936         * iconv/iconv.h: Likewise.
14937         * iconv/loop.c: Likewise.
14938         * iconv/skeleton.c: Likewise.
14939         * include/aio.h: Likewise.
14940         * include/aliases.h: Likewise.
14941         * include/argz.h: Likewise.
14942         * include/arpa/inet.h: Likewise.
14943         * include/assert.h: Likewise.
14944         * include/dirent.h: Likewise.
14945         * include/dlfcn.h: Likewise.
14946         * include/execinfo.h: Likewise.
14947         * include/fcntl.h: Likewise.
14948         * include/fenv.h: Likewise.
14949         * include/glob.h: Likewise.
14950         * include/grp.h: Likewise.
14951         * include/libintl.h: Likewise.
14952         * include/mntent.h: Likewise.
14953         * include/netdb.h: Likewise.
14954         * include/pwd.h: Likewise.
14955         * include/rpc/netdb.h: Likewise.
14956         * include/sched.h: Likewise.
14957         * include/search.h: Likewise.
14958         * include/shadow.h: Likewise.
14959         * include/signal.h: Likewise.
14960         * include/stdio.h: Likewise.
14961         * include/stdlib.h: Likewise.
14962         * include/string.h: Likewise.
14963         * include/sys/socket.h: Likewise.
14964         * include/sys/stat.h: Likewise.
14965         * include/sys/statfs.h: Likewise.
14966         * include/sys/statvfs.h: Likewise.
14967         * include/sys/syslog.h: Likewise.
14968         * include/sys/time.h: Likewise.
14969         * include/sys/uio.h: Likewise.
14970         * include/time.h: Likewise.
14971         * include/unistd.h: Likewise.
14972         * include/utmp.h: Likewise.
14973         * include/wchar.h: Likewise.
14974         * include/wctype.h: Likewise.
14975         * inet/aliases.h: Likewise.
14976         * inet/arpa/inet.h: Likewise.
14977         * inet/netinet/ether.h: Likewise.
14978         * inet/netinet/in.h: Likewise.
14979         * intl/libintl.h: Likewise.
14980         * io/bits/fcntl2.h: Likewise.
14981         * io/fcntl.h: Likewise.
14982         * io/ftw.h: Likewise.
14983         * io/sys/poll.h: Likewise.
14984         * io/sys/stat.h: Likewise.
14985         * io/sys/statfs.h: Likewise.
14986         * io/sys/statvfs.h: Likewise.
14987         * io/utime.h: Likewise.
14988         * libio/bits/stdio.h: Likewise.
14989         * libio/bits/stdio2.h: Likewise.
14990         * libio/libio.h: Likewise.
14991         * libio/libioP.h: Likewise.
14992         * libio/stdio.h: Likewise.
14993         * locale/lc-ctype.c: Likewise.
14994         * locale/locale.h: Likewise.
14995         * login/utmp.h: Likewise.
14996         * malloc/arena.c: Likewise.
14997         * malloc/malloc.c: Likewise.
14998         * malloc/malloc.h: Likewise.
14999         * malloc/mcheck.c: Likewise.
15000         * malloc/mtrace.c: Likewise.
15001         * math/bits/mathcalls.h: Likewise.
15002         * math/fenv.h: Likewise.
15003         * math/math_private.h: Likewise.
15004         * misc/bits/error.h: Likewise.
15005         * misc/bits/syslog.h: Likewise.
15006         * misc/err.h: Likewise.
15007         * misc/error.h: Likewise.
15008         * misc/fstab.h: Likewise.
15009         * misc/mntent.h: Likewise.
15010         * misc/regexp.h: Likewise.
15011         * misc/search.h: Likewise.
15012         * misc/sgtty.h: Likewise.
15013         * misc/sys/mman.h: Likewise.
15014         * misc/sys/syslog.h: Likewise.
15015         * misc/sys/uio.h: Likewise.
15016         * misc/sys/xattr.h: Likewise.
15017         * misc/ttyent.h: Likewise.
15018         * nis/rpcsvc/ypclnt.h: Likewise.
15019         * nss/nss.h: Likewise.
15020         * posix/bits/unistd.h: Likewise.
15021         * posix/fnmatch.h: Likewise.
15022         * posix/glob.h: Likewise.
15023         * posix/sched.h: Likewise.
15024         * posix/spawn.h: Likewise.
15025         * posix/sys/wait.h: Likewise.
15026         * posix/unistd.h: Likewise.
15027         * posix/wordexp.h: Likewise.
15028         * pwd/pwd.h: Likewise.
15029         * resolv/netdb.h: Likewise.
15030         * resource/sys/resource.h: Likewise.
15031         * rt/aio.h: Likewise.
15032         * rt/bits/mqueue2.h: Likewise.
15033         * rt/mqueue.h: Likewise.
15034         * shadow/shadow.h: Likewise.
15035         * signal/signal.h: Likewise.
15036         * socket/send.c: Likewise.
15037         * socket/sendto.c: Likewise.
15038         * socket/sys/socket.h: Likewise.
15039         * stdio-common/printf.h: Likewise.
15040         * stdlib/bits/stdlib.h: Likewise.
15041         * stdlib/fmtmsg.h: Likewise.
15042         * stdlib/monetary.h: Likewise.
15043         * stdlib/stdlib.h: Likewise.
15044         * stdlib/ucontext.h: Likewise.
15045         * streams/stropts.h: Likewise.
15046         * string/argz.h: Likewise.
15047         * string/bits/string2.h: Likewise.
15048         * string/string.h: Likewise.
15049         * string/strings.h: Likewise.
15050         * sunrpc/rpc/auth.h: Likewise.
15051         * sunrpc/rpc/auth_des.h: Likewise.
15052         * sunrpc/rpc/clnt.h: Likewise.
15053         * sunrpc/rpc/netdb.h: Likewise.
15054         * sunrpc/rpc/pmap_clnt.h: Likewise.
15055         * sunrpc/rpc/xdr.h: Likewise.
15056         * sysdeps/generic/inttypes.h: Likewise.
15057         * sysdeps/generic/net/if.h: Likewise.
15058         * sysdeps/generic/sys/swap.h: Likewise.
15059         * sysdeps/gnu/net/if.h: Likewise.
15060         * sysdeps/gnu/utmpx.h: Likewise.
15061         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15062         * sysdeps/i386/i486/bits/string.h: Likewise.
15063         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15064         * sysdeps/s390/bits/string.h: Likewise.
15065         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15066         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15067         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15068         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15069         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15070         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15071         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15072         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15073         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15074         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15075         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15076         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15077         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15078         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15079         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15080         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15081         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15082         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15083         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15084         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15085         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15086         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15087         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15088         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15089         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15090         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15091         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15092         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15093         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15094         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15095         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15096         * sysvipc/sys/ipc.h: Likewise.
15097         * sysvipc/sys/msg.h: Likewise.
15098         * sysvipc/sys/sem.h: Likewise.
15099         * sysvipc/sys/shm.h: Likewise.
15100         * termios/termios.h: Likewise.
15101         * time/sys/time.h: Likewise.
15102         * time/time.h: Likewise.
15103         * wcsmbs/bits/wchar2.h: Likewise.
15104         * wcsmbs/uchar.h: Likewise.
15105         * wcsmbs/wchar.h: Likewise.
15106         * wctype/wctype.h: Likewise.
15107
15108         [BZ #13551]
15109         * Makeconfig: Remove all but ELF support including AIX support.
15110         * Makerules: Likewise.
15111         * config.h.in: Likewise.
15112         * config.make.in: Likewise.
15113         * configure: Likewise.
15114         * configure.in: Likewise.
15115         * csu/Makefile: Likewise.
15116         * csu/version.c: Likewise.
15117         * debug/Makefile: Likewise.
15118         * dlfcn/Makefile: Likewise.
15119         * elf/Makefile: Likewise.
15120         * extra-lib.mk: Likewise.
15121         * iconv/Makefile: Likewise.
15122         * include/libc-symbols.h: Likewise.
15123         * include/shlib-compat.h: Likewise.
15124         * resolv/Makefile: Likewise.
15125         * resolv/res_libc.c: Likewise.
15126         * rt/Makefile: Likewise.
15127         * sysdeps/i386/asm-syntax.h: Likewise.
15128         * sysdeps/i386/sysdep.h: Likewise.
15129         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15130         * sysdeps/mach/sysdep.h: Likewise.
15131         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15132         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15133         * sysdeps/s390/asm-syntax.h: Likewise.
15134         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15135         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15136         * sysdeps/sh/sysdep.h: Likewise.
15137         * sysdeps/unix/sparc/sysdep.h: Likewise.
15138         * sysdeps/wordsize-32/divdi3.c: Likewise.
15139         * sysdeps/x86_64/sysdep.h: Likewise.
15140
15141         * argp/Versions: Remove _argp_unlock_xxx.
15142
15143         [BZ #13559]
15144         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15145         * abilist/libBrokenLocale.abilist: Likewise.
15146         * abilist/libanl.abilist: Likewise.
15147         * abilist/libc.abilist: Likewise.
15148         * abilist/libcrypt.abilist: Likewise.
15149         * abilist/libdl.abilist: Likewise.
15150         * abilist/libm.abilist: Likewise.
15151         * abilist/libnsl.abilist: Likewise.
15152         * abilist/libpthread.abilist: Likewise.
15153         * abilist/libresolv.abilist: Likewise.
15154         * abilist/librt.abilist: Likewise.
15155         * abilist/libthread_db.abilist: Likewise.
15156         * abilist/libutil.abilist: Likewise.
15157         * abilist/libnss_db.abilist: New file.
15158
15159         * scripts/abilist.awk: Add support for indirect functions.
15160
15161         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15162
15163         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15164
15165         * shlib-versions: Remove entries for ports architectures.
15166
15167         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15168         files in ports.
15169         * elf/stackguard-macros.h: Remove support for IA-64.
15170         * elf/tst-auditmod1.c: Likewise.
15171         * sysdeps/generic/ldsodefs.h: Likewise.
15172
15173         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15174         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15175         configure files.
15176
15177         [BZ #13552]
15178         * configure.in: Remove --enable-omitfp support.
15179         * FAQ.in: Adjust.
15180         * config.make.in: Likewise.
15181         * Makeconfig: Likewise.
15182         * manual/install.texi: Likewise.
15183
15184         In case anyone cares, the IA-64 architecture could move to ports.
15185         * sysdeps/ia64/*: Removed.
15186         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15187         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15188
15189         [BZ #13555]
15190         * configure.in: Remove entries for unsupported architectures.
15191
15192         [BZ #13533]
15193         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15194         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15195         routines.
15196         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15197         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15198         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15199         fall back to using wcrtomb.
15200         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15201         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15202         renaming.
15203         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15204         * wcsmbs/tst-c16c32-1.c: New file.
15205
15206         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15207         local variable.
15208
15209         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15210
15211         * elf/tst-unique3.cc: Add explicit declaration of gets.
15212         * elf/tst-unique3lib.cc: Likewise.
15213         * elf/tst-unique3lib2.cc: Likewise.
15214         * elf/tst-unique4.cc: Likewise.
15215
15216         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15217
15218 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15219
15220         [BZ #13566]
15221         * assert/assert.h (static_assert): Don't define for C++.
15222         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15223         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15224
15225 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15226
15227         * iconv/loop.c (single loop): Fix assertion in storing of
15228         remaining bytes.
15229
15230         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15231
15232 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15233
15234         * posix/getconf.c: Update copyright year.
15235         * nss/getent.c: Likewise.
15236         * nss/makedb.c: Likewise.
15237         * iconv/iconvconfig.c: Likewise.
15238         * iconv/iconv_prog.c: Likewise.
15239         * elf/ldconfig.c: Likewise.
15240         * elf/pldd.c: Likewise.
15241         * elf/sotruss.ksh: Likewise.
15242         * catgets/gencat.c: Likewise.
15243         * csu/version.c: Likewise.
15244         * elf/ldd.bash.in: Likewise.
15245         * elf/sprof.c (print_version): Likewise.
15246         * locale/programs/locale.c: Likewise.
15247         * locale/programs/localedef.c: Likewise.
15248         * login/programs/pt_chown.c: Likewise.
15249         * nscd/nscd.c (print_version): Likewise.
15250         * debug/xtrace.sh: Likewise.
15251         * malloc/memusage.sh: Likewise.
15252         * malloc/mtrace.pl: Likewise.
15253         * debug/catchsegv.sh: Likewise.
15254
15255 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15256
15257         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15258         pure attribute.
15259
15260 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15261
15262         [BZ #13533]
15263         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15264         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15265         transformations.
15266         * iconv/gconv_int.h: Likewise.
15267         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15268         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15269         from libc for GLIBC_2.16.
15270         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15271         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15272         * wcsmbs/uchar.h: Really define mbstate_t.
15273         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15274         * wcsmbs/c16rtomb.c: New file.
15275         * wcsmbs/mbrtoc16.c: New file.
15276         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15277         for C/POSIX locale.
15278         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15279         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15280
15281         * wcsmbs/wchar.h: Add missing __restrict.
15282
15283 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15284
15285         [BZ #13532]
15286         * time/Makefile (routines): Add timespec_get.
15287         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15288         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15289         timespec for ISO C11.
15290         * time/timespec_get.c: New file.
15291         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15292         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15293
15294         [BZ #13531]
15295         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15296         * stdlib/stdlib.h: Declare aligned_alloc.
15297         * Versions.def: Add GLIBC_2.16 for libc.
15298         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15299
15300         [BZ 13527]
15301         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15302         ISO C11.
15303
15304         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15305         code.
15306
15307         [BZ #13528]
15308         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15309
15310         [BZ #13529]
15311         * assert/assert.h (static_assert): Define.
15312
15313         * version.h: Update for 2.16 development version.
15314
15315         [BZ #13526]
15316         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15317         _ISOC11_SOURCE.
15318
15319         * version.h (RELEASE): Bump for 2.15 release.
15320         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15321
15322         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15323         Patch by Marek Polacek <mpolacek@redhat.com>.
15324
15325         * bits/byteswap.h: Protect long long constants with __extension__.
15326         * sysdeps/i386/bits/byteswap.h: Likewise.
15327         * sysdeps/ia64/bits/byteswap.h: Likewise.
15328         * sysdeps/s390/bits/byteswap.h: Likewise.
15329         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15330
15331 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15332
15333         [BZ #13540]
15334         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15335         destination buffer.
15336         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15337
15338 2011-12-23  Marek Polacek  <polacek@redhat.com>
15339
15340         * elf/dl-addr.c (determine_info): Add inline keyword.
15341         * elf/tst-auditmod4b.c (check_avx): Likewise.
15342         * elf/tst-auditmod6b.c (check_avx): Likewise.
15343         * elf/tst-auditmod6c.c (check_avx): Likewise.
15344         * elf/tst-auditmod7b.c (check_avx): Likewise.
15345
15346 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15347
15348         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15349         !__SSE_MATH__.
15350
15351 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15352
15353         [BZ #13540]
15354         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15355         processing for last bytes.
15356
15357 2011-08-06  Bruno Haible  <bruno@clisp.org>
15358
15359         [BZ #13061]
15360         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15361         U+0385, not to U+1FEE.
15362
15363         [BZ #13062]
15364         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15365         entry for U+00A5 U+0301.
15366
15367 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15368
15369         [BZ #13166]
15370         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15371         buffer for the output is too small.
15372
15373         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15374         optimization.
15375
15376         [BZ #13185]
15377         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15378         SSE flags if possible.
15379
15380 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15381
15382         [BZ #13540]
15383         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15384         processing for last bytes.
15385
15386 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15387
15388         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15389         (syscall-list-default-options, syscall-list-default-condition)
15390         (syscall-list-includes): Define.
15391         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15392         list of ABIs and options and #if conditions for each ABI.  Do not
15393         handle common syscalls between ABIs specially.
15394         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15395         Remove.
15396         (syscall-list-variants, syscall-list-32bit-options)
15397         (syscall-list-32bit-condition, syscall-list-64bit-options)
15398         (syscall-list-64bit-condition): Define.
15399         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15400         (syscall-list-variants, syscall-list-32bit-options)
15401         (syscall-list-32bit-condition, syscall-list-64bit-options)
15402         (syscall-list-64bit-condition): Define.
15403         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15404         Remove.
15405         (syscall-list-variants, syscall-list-32bit-options)
15406         (syscall-list-32bit-condition, syscall-list-64bit-options)
15407         (syscall-list-64bit-condition): Define.
15408         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15409         Remove.
15410         (syscall-list-variants, syscall-list-32bit-options)
15411         (syscall-list-32bit-condition, syscall-list-64bit-options)
15412         (syscall-list-64bit-condition): Define.
15413
15414 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15415
15416         * locale/iso-639.def: Add brx entry.
15417
15418         [BZ #13328]
15419         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15420         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15421
15422         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15423         __feraiseexcept_renamed.
15424
15425 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15426
15427         [BZ #13538]
15428         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15429         EPOLLET with unsigned values.
15430         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15431         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15432
15433         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15434         to large cancellation.
15435         * math/s_cacoshf.c: Likewise.
15436         * math/s_cacoshl.c: Likewise.
15437
15438 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15439
15440         [BZ #13305]
15441         [BZ #12786]
15442         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15443         * math/s_cacoshf.c: Likewise.
15444         * math/s_cacoshl.c: Likewise.
15445
15446 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15447
15448         [BZ #13439]
15449         * iconv/gconv.h: Define __GCONV_SWAP.
15450         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15451         * iconvdata/utf-16.c: Likewise.
15452         * iconvdata/utf-32.c: Likewise.
15453
15454 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15455
15456         [BZ #13524]
15457         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15458         numerator after shifting it by one limb.
15459
15460 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15461
15462         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15463         under [__USE_EXTERN_INLINES].
15464
15465 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15466
15467         [BZ #13446]
15468         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15469
15470 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15471
15472         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15473         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15474         optimized code.
15475         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15476         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15477         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15478         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15479         for strncasecmp/strncasecmp_l compilation.
15480         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15481         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15482
15483 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15484
15485         [BZ #13484]
15486         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15487         of __asm__.
15488
15489 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15490
15491         [BZ #13506]
15492         * time/tzfile.c (__tzfile_read): Check values from file header.
15493
15494 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15495
15496         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15497         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15498         * powerpc/powerpc32/dl-start.S: Likewise.
15499         * powerpc/powerpc32/elf/start.S: Likewise.
15500         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15501         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15502         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15503         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15504         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15505         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15506         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15507         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15508         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15509         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15510         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15511         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15512         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15513         * powerpc/powerpc32/memset.S: Likewise.
15514         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15515         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15516         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15517         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15518         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15519         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15520         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15521         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15522         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15523         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15524         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15525         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15526         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15527
15528 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15529
15530         * math/libm-test.inc: Added more nearbyint tests.
15531         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15532         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15533         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15534         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15535
15536 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15537
15538         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15539         FD_CLOEXEC.
15540
15541 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15542
15543         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15544         Add wcscpy-ssse3 wcscpy-c.
15545         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15546         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15547         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15548         * sysdeps/x86_64/wcschr.S: New file.
15549         * sysdeps/x86_64/wcsrchr.S: New file.
15550         * string/test-strcmp.c: Remove checking of wcscmp function for
15551         wrong alignments.
15552         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15553         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15554         wcsrchr-sse2 wcsrchr-c.
15555         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15556         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15557         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15558         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15559         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15560         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15561         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15562         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15563         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15564         * wcsmbc/wcschr.c (WCSCHR): New macro.
15565
15566 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15567
15568         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15569         * wcsmbs/test-wcsrchr.c: New file.
15570         * string/test-strrchr.c: Add wcsrchr support.
15571         (WIDE): New macro.
15572         * wcsmbs/test-wcscpy.c: New file.
15573         * string/test-strcpy.c: Add wcscpy support.
15574         (WIDE): New macro.
15575
15576 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15577
15578         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15579         the inner loop.
15580
15581 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15582
15583         [BZ #13472]
15584         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15585
15586 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15587
15588         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15589         Minor optimizations.
15590
15591         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15592         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15593         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15594
15595 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15596
15597         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15598         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15599         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15600         for gcc to avoid warnings.
15601         * inet/Makefile (tests): Add tst-checks.
15602         * inet/tst-checks.c: New file.
15603
15604         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15605         warning.
15606
15607         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15608         __wmemcmp_sse2.
15609
15610         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15611         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15612
15613         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15614
15615 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15616
15617         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15618         problem.
15619
15620         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15621
15622 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15623
15624         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15625         conditional on GCC version.
15626         (__arch_compare_and_exchange_val_8_acq)
15627         (__arch_compare_and_exchange_val_16_acq)
15628         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15629         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15630         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15631
15632 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15633
15634         * sysdeps/sh/backtrace.c: New file.
15635
15636 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15637
15638         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15639         parenthesis.
15640
15641 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15642
15643         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15644         falling back to utime.
15645
15646 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15647
15648         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15649         expectations for float.
15650
15651 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15652
15653         * locale/weight.h (findidx): Add parameter len.
15654         * locale/weightwc.h (findidx): Likewise.
15655         * posix/fnmatch_loop.c (FCT): Adjust caller.
15656         * posix/regcomp.c (build_equiv_class): Likewise.
15657         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15658         * posix/regexec.c (check_node_accept_bytes): Likewise.
15659         * string/strcoll_l.c (STRCOLL): Likewise.
15660         * string/strxfrm_l.c (STRXFRM): Likewise.
15661
15662 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15663
15664         * Makefile.in: Remove CVSOPT handling.
15665         * configure.in: Remove use of AC_REVISION.
15666         * iconvdata/Makefile (distribute): No need to filter out CVS.
15667         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15668         handling.
15669
15670 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15671
15672         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15673         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15674         [USE_AS_STRNCASECMP_L]: Likewise.
15675         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15676         NO_TLS_DIRECT_SEG_REFS.
15677         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15678         Fix argument offsets for non-PIC.
15679         [USE_AS_STRNCASECMP_L]: Likewise.
15680         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15681         NO_TLS_DIRECT_SEG_REFS.
15682
15683 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15684
15685         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15686         O_CLOEXEC.
15687         * locale/loadlocale.c (_nl_load_locale): Likewise.
15688
15689 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15690
15691         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15692         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15693         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15694         (SYSCALL_GETTIME): Set errno on error.
15695
15696         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15697         count references to noai6ai_cached.
15698
15699 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15700
15701         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15702
15703         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15704         FD_CLOEXEC for /proc/self/maps.
15705
15706         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15707         FD_CLOEXEC for /proc/meminfo.
15708
15709         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15710         gai.conf.
15711
15712         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15713         FD_CLOEXEC for given file.
15714
15715         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15716
15717         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15718         FD_CLOEXEC for /etc/hosts.
15719         (_gethtent): Likewise.
15720
15721         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15722
15723         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15724         cancellation and set FD_CLOEXEC for /etc/netgroup.
15725
15726         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15727         reading /etc/publickey.
15728
15729         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15730         allow cancellation when reading /etc/group.
15731
15732         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15733         cancellation.
15734         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15735
15736         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15737         when using data file.
15738
15739         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15740
15741         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15742         (write_nis_obj): Use "c" and "e" in fopen.
15743
15744         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15745
15746         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15747
15748         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15749
15750         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15751
15752         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15753         locale.alias.
15754
15755         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15756
15757         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15758
15759         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15760
15761         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15762         file parsing and set FD_CLOEXEC.
15763
15764 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15765
15766         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15767
15768 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15769
15770         * malloc/arena.c (arena_get2): Don't call reused_arena when
15771         _int_new_arena failed.
15772
15773 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15774
15775         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15776         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15777         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15778         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15779         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15780         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15781         to compile strcasecmp and strncasecmp.
15782         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15783         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15784
15785         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15786
15787 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15788
15789         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15790         locale-defines.sym to gen-as-const-headers.
15791         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15792         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15793         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15794         to compile strcasecmp and strncasecmp.
15795         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15796         strcasecmp_l and strncasecmp_l.
15797         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15798         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15799         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15800         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15801         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15802         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15803         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15804         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15805         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15806         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15807         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15808
15809 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15810
15811         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15812         result of SYSDEP_GETTIME_CPU to retval.
15813         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15814         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15815
15816         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15817         variable.
15818
15819         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15820         mantissa words.
15821         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15822
15823         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15824         from unused variable.
15825
15826         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15827         DWARF definitions.
15828         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15829         for assembling.
15830
15831         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15832         over namespaces.
15833
15834         * sunrpc/rpc_prot.c (rejected): Fix case value.
15835
15836         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15837         unsigned long long int to avoid warnings in shift.
15838
15839         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15840         of use of trans.
15841         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15842         variable tmp.
15843
15844         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15845         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15846         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15847
15848         * nis/nis_table.c (nis_list): Use variable of correct type for
15849         result of __follow_path call.
15850
15851 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15852
15853         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15854         of math functions ceil, trunc, floor, round, and sqrt, when
15855         avaliable on the platform.
15856         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15857         name clash.
15858         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15859         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15860         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15861
15862 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15863
15864         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15865         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15866
15867 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15868
15869         * include/unistd.h: Fix __readlink return type.
15870         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15871
15872 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15873
15874         * stdlib/ucontext.h: Undo last change for makecontext.
15875
15876 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15877
15878         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15879
15880         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15881         * setjmp/setjmp.h: Mark functions as non-leaf.
15882         * setjmp/bits/setjmp2.h: Likewise.
15883         * stdlib/ucontext.h: Likewise.
15884
15885 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15886
15887         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15888         (reused_arena): Don't check arena limit.
15889         (arena_get2): Atomically check arena limit.
15890
15891 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15892
15893         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15894         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15895
15896         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15897         instructions.
15898
15899 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15900
15901         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15902         handler when locking.
15903
15904         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15905         Fix size of allocated buffer.
15906
15907 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15908
15909         [BZ #10103]
15910         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15911         declarations for long double functions.
15912         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15913
15914         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15915
15916 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15917
15918         * nscd/nscd.c (main): Don't start AVC thread until credentials are
15919         installed.
15920
15921         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
15922         is disabled.
15923
15924 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15925
15926         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
15927
15928 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15929
15930         * include/alloca.h (stackinfo_alloca_round): Define.
15931         (extend_alloca): Use it.
15932         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
15933         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
15934         here.
15935
15936         * scripts/check-local-headers.sh: Ignore libaudit.h.
15937
15938         * nscd/Makefile (extra-objs): Make recursively expanded.
15939
15940 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
15941
15942         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
15943         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15944
15945         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15946         * posix/tst-rfc3484-2.c: Likewise.
15947         * posix/tst-rfc3484-3.c: Likewise.
15948
15949         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15950         process_vm_writev.
15951         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15952         process_vm_writev.
15953         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15954         process_vm_writev from libc using GLIBC_2.15 version.
15955
15956         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15957
15958 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15959
15960         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15961         stack usage.
15962
15963 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15964
15965         [BZ #13367]
15966         * nss/getent.c (initgroups_keys): Show error message in case no group
15967         names are given.
15968
15969         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15970         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15971         __bump_nl_timestamp.
15972         * nscd/connections (nscd_init): When host database is served open
15973         netlink socket and request notification about configuration changes.
15974         (main_loop_poll): Track netlink file descriptor and bump timestamp
15975         in case data becomes available.
15976         (main_loop_epoll): Likewise.
15977         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15978         (database_pers_head): Add extra_data fileds.
15979         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15980         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15981         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15982         Adjust caller.
15983         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15984         in6ai data, call __free_in6ai.
15985         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15986         Add -DHAVE_NETLINK.
15987         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15988         interface information.  Reuse previous data if netlink timestamp
15989         is not changed.
15990         (__bump_nl_timestamp): New function.
15991         (__free_in6ai): New function.
15992
15993 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15994
15995         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15996         close_not_cancel_no_status here.
15997         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15998
15999 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16000
16001         [BZ #13276]
16002         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16003         return value.
16004
16005         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16006         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16007         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16008
16009 2011-07-03  Andreas Jaeger  <aj@suse.de>
16010
16011         [BZ #10709]
16012         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16013         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16014         * math/libm-test.inc (sin_test): Add test case.
16015
16016 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16017
16018         [BZ #13337]
16019         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16020         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16021
16022         * elf/chroot_canon.c (chroot_canon): Cleanups.
16023
16024         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16025
16026         [BZ #13335]
16027         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16028         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16029
16030         * string/test-strchr.c: Make usable for strchrnul testing.
16031         * string/test-strchrnul.c: New file.
16032         * string/Makefile (strop-tests): Add strchrnul.
16033
16034         * po/it.po: Update from translation team.
16035         * po/es.po: Likewise.
16036
16037 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16038
16039         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16040         the three constants needed as parameters.  Drop the others.
16041         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16042         __m128i_strloadu_tolower.
16043         Create and initialize variable zero and use it in all the places
16044         where _mm_setzero_si128 was used.
16045
16046         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16047         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16048         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16049         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16050         anymore.
16051         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16052         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16053         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16054         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16055         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16056         __mpranred, __mptan.
16057         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16058         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16059         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16060         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16061         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16062         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16063         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16064         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16065         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16066
16067 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16068
16069         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16070         redefine if SHARED.
16071         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16072
16073         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16074         wide char related routines to wcsmbs subdir.
16075
16076 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16077
16078         [BZ #13344]
16079         * misc/sys/cdefs.h (__THROWNL): Define.
16080         * posix/unistd.h: Use __THREADNL instead of __THREAD
16081         for memory synchronization functions.
16082
16083 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16084
16085         [BZ #13349]
16086         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16087         doesn't exist.
16088         * manual/stdio.texi (Obstack Streams): Node removed.
16089
16090 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16091
16092         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16093         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16094         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16095
16096         * math/math_private.h (math_force_eval): Allow non-addressable
16097         arguments.
16098         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16099
16100 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16101
16102         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16103         file is not needed.
16104
16105         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16106         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16107         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16108         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16109         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16110         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16111         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16112         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16113         Add AVX variants.
16114         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16115         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16116         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16117         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16118         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16119         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16120         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16121         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16122         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16123         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16124         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16125         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16126         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16127         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16128         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16129         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16130         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16131         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16132         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16133
16134         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16135         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16136
16137         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16138         place.  Use VEX encoding when compiling for AVX.
16139
16140 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16141
16142         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16143         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16144
16145         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16146
16147 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16148
16149         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16150         useless if() expression.
16151         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16152         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16153         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16154         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16155         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16156         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16157         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16158         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16159         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16160         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16161         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16162         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16163         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16164         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16165         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16166         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16167         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16168         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16169         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16170
16171         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16172
16173 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16174
16175         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16176         condition.
16177         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16178
16179 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16180
16181         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16182         .text section.  Avoid duplicate constants.
16183         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16184         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16185         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16186         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16187         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16188         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16189         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16190         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16191         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16192         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16193         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16194         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16195         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16196         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16197         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16198         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16199         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16200         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16201         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16202         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16203         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16204         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16205         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16206         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16207         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16208         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16209         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16210         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16211         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16212         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16213         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16214         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16215         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16216         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16217         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16218         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16219         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16220         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16221         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16222         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16223         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16224         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16225         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16226         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16227         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16228
16229 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16230
16231         * sysdeps/x86_64/dla.h: Move to ...
16232         * sysdeps/x86_64/fpu/dla.h: ...here.
16233         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16234         situations.  Use __builtin_fma only for gcc 4.6 and up.
16235
16236         * config.make.in: Add have-mfma4 entry.
16237         * configure.in: Substitute libc_cv_cc_fma4.
16238         * math/Makefile (dbl-only-routines): Add sincostab.
16239         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16240         Use __sincostab not sincos.
16241         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16242         name is a macro.
16243         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16244         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16245         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16246         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16247         using __copysign.
16248         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16249         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16250         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16251         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16252         and __inv.
16253         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16254         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16255         __copysign.
16256         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16257         define aliases when function name is a macro.
16258         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16259         sysdeps/ieee754/dbl-64/sincos.tbl.
16260         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16261         fma4-enabled routines.
16262         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16263         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16264         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16265         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16266         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16267         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16268         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16269         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16270         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16271         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16272         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16273         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16274         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16275         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16276         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16277         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16278         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16279         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16280         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16281         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16282         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16283         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16284         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16285         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16286         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16287         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16288         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16289         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16290         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16291         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16292
16293         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16294         rename.
16295         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16296         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16297         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16298         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16299         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16300         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16301         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16302         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16303
16304 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16305
16306         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16307
16308 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16309
16310         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16311
16312         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16313         prediction.
16314         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16315
16316         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16317         Remove unused variable magic_bits.
16318         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16319
16320         * string/strnlen.c: Define and use STRNLEN macro.
16321         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16322         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16323         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16324         * wcsmbs/wcslen.c: Define and use WCSLEN.
16325         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16326         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16327         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16328         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16329         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16330         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16331         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16332
16333 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16334
16335         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16336         strnlen-sse2-no-bsf.
16337         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16338         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16339         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16340         Add strnlen support.
16341         (USE_AS_STRNLEN): New macro.
16342         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16343         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16344         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16345         * sysdeps/x86_64/wcslen.S: New file.
16346
16347 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16348
16349         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16350         XMM-moves are used for copying on small sizes.
16351
16352 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16353
16354         * wcsmbs/Makefile (strop-tests): Add wcschr.
16355         * wcsmbs/test-wcschr.c: New file.
16356         * string/test-strchr.c: Update.
16357         Add wcschr support.
16358         (WIDE): New macro.
16359
16360 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16361
16362         * wcsmbs/Makefile (strop-tests): Add wcslen.
16363         * wcsmbs/test-wcslen.c: New file.
16364         * string/test-strlen.c: Update.
16365         Add wcslen support.
16366         (WIDE): New macro.
16367
16368 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16369
16370         * po/it.po: Update from translation team.
16371
16372 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16373
16374         * sysdeps/x86_64/wcscmp.S: Update.
16375         Fix wrong comparison semantics.
16376         wcscmp shall use signed comparison not unsigned.
16377         Don't use substraction to avoid overflow bug.
16378         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16379         * wcsmbc/wcscmp.c: Likewise.
16380         * string/test-strcmp.c: Likewise.
16381         Add new tests to check cases with negative values.
16382
16383 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16384
16385         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16386         * sysdeps/x86_64/dla.h: ...here.  New file.
16387         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16388         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16389         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16390         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16391         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16392         * sysdeps/ieee754/dbl-64/e_sqrt.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-23  Andreas Schwab  <schwab@linux-m68k.org>
16398
16399         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16400         __ynl_finite aliases.
16401
16402 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16403
16404         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16405
16406         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16407         define DLA_FMA.
16408         [DLA_FMA] (EMULV): Use DLA_FMA.
16409         [DLA_FMA] (MUL12): Use EMULV.
16410         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16411         that are not needed.
16412         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16413         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16414         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16415         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16416         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16417         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16418         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16419
16420 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16421
16422         * math/s_nan.c: Undef __nan.
16423         * math/s_nanf.c: Undef __nanf.
16424         * math/s_nanl.c: Undef __nanl.
16425         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16426         "math_private.h".
16427
16428 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16429
16430         * math/s_catan.c: Add branch predictions.
16431         * math/s_catanf.c: Likewise.
16432         * math/s_catanh.c: Likewise.
16433         * math/s_catanhf.c: Likewise.
16434         * math/s_catanhl.c: Likewise.
16435         * math/s_catanl.c: Likewise.
16436         * math/s_cexp.c: Likewise.
16437         * math/s_cexpf.c: Likewise.
16438         * math/s_cexpl.c: Likewise.
16439         * math/s_clog.c: Likewise.
16440         * math/s_clog10.c: Likewise.
16441         * math/s_clog10f.c: Likewise.
16442         * math/s_clog10l.c: Likewise.
16443         * math/s_clogf.c: Likewise.
16444         * math/s_clogl.c: Likewise.
16445         * math/s_csqrt.c: Likewise.
16446         * math/s_csqrtf.c: Likewise.
16447         * math/s_csqrtl.c: Likewise.
16448         * math/s_ctanf.c: Likewise.
16449         * math/s_ctanh.c: Likewise.
16450         * math/s_ctanhf.c: Likewise.
16451         * math/s_ctanhl.c: Likewise.
16452         * math/s_ctanl.c: Likewise.
16453
16454         * math/math_private.h: Define __nan, __nanf, __nanl.
16455         * math/s_cacosh.c: Include <math_private.h>.
16456         * math/s_cacoshl.c: Likewise.
16457         * math/s_casinh.c: Likewise.
16458         * math/s_casinhf.c: Likewise.
16459         * math/s_casinhl.c: Likewise.
16460         * math/s_ccos.c: Rely entire on ccosh.
16461         * math/s_ccosf.c: Rely entire on ccoshf.
16462         * math/s_ccosl.c: Rely entirely on ccoshl.
16463         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16464         Remove tests for FE_INVALID.
16465         * math/s_ccoshf.c: Likewise.
16466         * math/s_ccoshl.c: Likewise.
16467         * math/s_csin.c: Likewise.
16468         * math/s_csinf.c: Likewise.
16469         * math/s_csinh.c Likewise.
16470         * math/s_csinhf.c: Likewise.
16471         * math/s_csinhl.c: Likewise.
16472         * math/s_csinl.c: Likewise.
16473         * math/s_ctan.c: Likewise.
16474         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16475         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16476         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16477
16478 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16479
16480         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16481         compilation problems.
16482
16483         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16484         __builtin_expect.
16485
16486 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16487
16488         * sysdeps/i386/configure.in: Test for -mfma4 option.
16489         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16490         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16491         COMMON_CPUID_INDEX_80000001.
16492         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16493         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16494         use it if FMA3 is not supported.
16495         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16496
16497         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16498         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16499
16500 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16501
16502         [BZ #12892]
16503         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16504         it would create a cycle with a link time dependency.
16505
16506 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16507
16508         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16509         instruction.
16510         * string/Makefile (strop-tests): Add rawmemchr.
16511         * string/test-rawmemchr.c: New file.
16512
16513         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16514         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16515         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16516         when compiling str{,n}casecmp and when AVX is available.  Hook up
16517         new optimized code in initializers.
16518
16519 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16520
16521         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16522         __feraiseexcept instead of feraiseexcept.
16523
16524 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16525
16526         * math/math_private.h: Define defaults for libc_fetestexcept and
16527         libc_feupdateenv.
16528         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16529         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16530         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16531         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16532         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16533         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16534         libc_fetestexcept and libc_feupdateenv.
16535
16536         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16537         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16538         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16539         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16540         libc_feholdexcept_setround.
16541
16542         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16543         Add s_nearbyint-c and s_nearbyintf-c.
16544         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16545         nearbyintf inlines.
16546         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16547         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16548         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16549         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16550
16551         * math/math_private.h: Define defaults for libc_fegetround,
16552         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16553         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16554         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16555         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16556         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16557         standard functions.
16558         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16559         Remove comments and hacks for old compiler versions.
16560         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16561         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16562         libc_feholdexceptl.
16563
16564 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16565
16566         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16567         (__feraiseexcept_renamed): Add __NTH.
16568         (feraiseexcept): Add __NTH.  Rename local variables to fix
16569         namespace violations.
16570
16571 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16572
16573         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16574
16575         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16576
16577         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16578         recently added interfaces.
16579         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16580
16581         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16582         about macro parameter expansion.
16583
16584         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16585         __NO_MATH_INLINES is defined.  Cleanups.
16586
16587         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16588         and __floorf is target has SSE4.1.
16589         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16590         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16591         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16592         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16593
16594         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16595         name.
16596         (floorf): Likewise.
16597
16598         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16599
16600 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16601
16602         * misc/sys/cdefs.h: Fix last change.
16603
16604         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16605         database lookup.
16606
16607 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16608
16609         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16610
16611         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16612         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16613         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16614         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16615         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16616         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16617         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16618         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16619         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16620         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16621         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16622         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16623         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16624         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16625         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16626         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16627         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16628         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16629         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16630         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16631         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16632         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16633
16634         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16635         ceil, ceilf, floor, floorf.
16636
16637         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16638         Perform IRELATIVE relocations last.
16639
16640         * elf/do-rel.h: Add another parameter nrelative, replacing the
16641         local variable with the same name.  Change name of the function
16642         to end in Rel or Rela (uppercase).
16643         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16644         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16645         elf_dynamic_do_##reloc function.
16646
16647 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16648
16649         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16650         is sufficient, at least on modern CPUs.
16651
16652         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16653
16654         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16655         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16656
16657         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16658         __expl_finite.
16659         * math/bits/math-finite.h: Add entries for exp.
16660         * math/e_expl.c: Add __*_finite alias.
16661         * sysdeps/i386/fpu/e_exp.S: Likewise.
16662         * sysdeps/i386/fpu/e_expf.S: Likewise.
16663         * sysdeps/i386/fpu/e_expl.c: Likewise.
16664         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16665         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16666         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16667         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16668         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16669         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16670         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16671
16672         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16673         is sufficient, at least on modern CPUs.
16674
16675         * ctype/ctype-info.c (__ctype_init): Define.
16676         * include/ctype.h (__ctype_init): Declare.
16677         (__ctype_b_loc): The variable is always initialized.
16678         (__ctype_toupper_loc): Likewise.
16679         (__ctype_tolower_loc): Likewise.
16680         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16681         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16682
16683 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16684
16685         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16686
16687         * configure.in: Also look in $cxxmachine/include for C++ system
16688         headers.
16689
16690 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16691
16692         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16693         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16694         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16695         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16696         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16697         (USE_AS_WMEMCMP): New macro.
16698         Fixing indents.
16699         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16700         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16701         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16702         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16703         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16704         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16705         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16706         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16707         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16708         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16709         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16710         (USE_AS_WMEMCMP): New macro.
16711         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16712         * sysdeps/string/test-memcmp.c: Update.
16713         Fix simple_wmemcmp.
16714         Add new tests.
16715         * wcsmbs/wmemcmp.c: Update.
16716         (WMEMCMP): New macro.
16717         Fix overflow bug.
16718
16719 2011-10-12  Andreas Jaeger  <aj@suse.de>
16720
16721         [BZ #13268]
16722         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16723
16724 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16725
16726         * libio/iofwide.c (do_length): Avoid warning.
16727
16728         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16729
16730 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16731
16732         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16733
16734         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16735         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16736         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16737         * sysdeps/i386/i686/fpu/e_log.S: New file.
16738         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16739         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16740
16741         * ctype/ctype.h: Add support for inlined isXXX functions when
16742         compiling C++ code.
16743
16744 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16745
16746         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16747
16748         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16749
16750 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16751
16752         [BZ #13291]
16753         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16754
16755 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16756
16757         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16758         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16759         feraiseexcept.
16760
16761         * sysdeps/x86_64/memrchr.S: Check for zero size.
16762
16763         * string/stratcliff.c: Add memrchr tests.
16764
16765 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16766
16767         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16768         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16769         rawmemchr-sse2 rawmemchr-sse2-bsf.
16770         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16771         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16772         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16773         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16774         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16775         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16776         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16777         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16778         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16779         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16780         * string/memrchr.c (MEMRCHR): New macro.
16781
16782 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16783
16784         Add integration with gcc's -ffinite-math-only and optimize wrapper
16785         functions in libm.
16786         * Versions.def: Define GLIBC_2.15 version for libm.
16787         * math/Makefile (headers): Add bits/math-finite.h.
16788         * math/bits/math-finite.h: New file.
16789         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16790         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16791         * math/e_acoshl.c: Add __*_finite alias.
16792         * math/e_acosl.c: Likewise.
16793         * math/e_asinl.c: Likewise.
16794         * math/e_atan2l.c: Likewise.
16795         * math/e_atanhl.c: Likewise.
16796         * math/e_coshl.c: Likewise.
16797         * math/e_exp10.c: Likewise.
16798         * math/e_exp10f.c: Likewise.
16799         * math/e_exp10l.c: Likewise.
16800         * math/e_exp2l.c: Likewise.
16801         * math/e_fmodl.c: Likewise.
16802         * math/e_gammal_r.c: Likewise.
16803         * math/e_hypotl.c: Likewise.
16804         * math/e_j0l.c: Likewise.
16805         * math/e_j1l.c: Likewise.
16806         * math/e_jnl.c: Likewise.
16807         * math/e_lgammal_r.c: Likewise.
16808         * math/e_log10l.c: Likewise.
16809         * math/e_log2l.c: Likewise.
16810         * math/e_logl.c: Likewise.
16811         * math/e_powl.c: Likewise.
16812         * math/e_sinhl.c: Likewise.
16813         * math/e_sqrtl.c: Likewise.
16814         * math/e_scalb.c: Completely rewritten and optimized.
16815         * math/e_scalbf.c: Likewise.
16816         * math/e_scalbl.c: Likewise.
16817         * math/w_acos.c: Likewise.
16818         * math/w_acosf.c: Likewise.
16819         * math/w_acosl.c: Likewise.
16820         * math/w_acosh.c: Likewise.
16821         * math/w_acoshf.c: Likewise.
16822         * math/w_acoshl.c: Likewise.
16823         * math/w_asin.c: Likewise.
16824         * math/w_asinf.c: Likewise.
16825         * math/w_asinl.c: Likewise.
16826         * math/w_atan2.c: Likewise.
16827         * math/w_atan2f.c: Likewise.
16828         * math/w_atan2l.c: Likewise.
16829         * math/w_atanh.c: Likewise.
16830         * math/w_atanhf.c: Likewise.
16831         * math/w_atanhl.c: Likewise.
16832         * math/w_exp10.c: Likewise.
16833         * math/w_exp10f.c: Likewise.
16834         * math/w_exp10l.c: Likewise.
16835         * math/w_fmod.c: Likewise.
16836         * math/w_fmodf.c: Likewise.
16837         * math/w_fmodl.c: Likewise.
16838         * math/w_j0.c: Likewise.
16839         * math/w_j0f.c: Likewise.
16840         * math/w_j0l.c: Likewise.
16841         * math/w_j1.c: Likewise.
16842         * math/w_j1f.c: Likewise.
16843         * math/w_j1l.c: Likewise.
16844         * math/w_jn.c: Likewise.
16845         * math/w_jnf.c: Likewise.
16846         * math/w_log.c: Likewise.
16847         * math/w_logf.c: Likewise.
16848         * math/w_logl.c: Likewise.
16849         * math/w_log10.c: Likewise.
16850         * math/w_log10f.c: Likewise.
16851         * math/w_log10l.c: Likewise.
16852         * math/w_log2.c: Likewise.
16853         * math/w_log2f.c: Likewise.
16854         * math/w_log2l.c: Likewise.
16855         * math/w_pow.c: Likewise.
16856         * math/w_powf.c: Likewise.
16857         * math/w_powl.c: Likewise.
16858         * math/w_remainder.c: Likewise.
16859         * math/w_remainderf.c: Likewise.
16860         * math/w_remainderl.c: Likewise.
16861         * math/w_scalb.c: Likewise.
16862         * math/w_scalbf.c: Likewise.
16863         * math/w_scalbl.c: Likewise.
16864         * math/w_sqrt.c: Likewise.
16865         * math/w_sqrtf.c: Likewise.
16866         * math/w_sqrtl.c: Likewise.
16867         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16868         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16869         used.
16870         * math/math_private.h: Declare __kernel_standard_f.
16871         * math/w_cosh.c: Remove cruft and optimize a bit.
16872         * math/w_coshf.c: Likewise.
16873         * math/w_coshl.c: Likewise.
16874         * math/w_exp2.c: Likewise.
16875         * math/w_exp2f.c: Likewise.
16876         * math/w_exp2l.c: Likewise.
16877         * math/w_hypot.c: Likewise.
16878         * math/w_hypotf.c: Likewise.
16879         * math/w_hypotl.c: Likewise.
16880         * math/w_lgamma.c: Likewise.
16881         * math/w_lgamma_r.c: Likewise.
16882         * math/w_lgammaf.c: Likewise.
16883         * math/w_lgammaf_r.c: Likewise.
16884         * math/w_lgammal.c: Likewise.
16885         * math/w_lgammal_r.c: Likewise.
16886         * math/w_sinh.c: Likewise.
16887         * math/w_sinhf.c: Likewise.
16888         * math/w_sinhl.c: Likewise.
16889         * math/w_tgamma.c: Likewise.
16890         * math/w_tgammaf.c: Likewise.
16891         * math/w_tgammal.c: Likewise.
16892         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16893         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16894         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16895         Minor optimizations.  Pretty printing.  Remove cruft.
16896         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16897         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16898         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16899         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16900         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16901         * sysdeps/i386/fpu/e_asin.S: Likewise.
16902         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16903         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16904         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16905         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16906         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16907         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16908         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16909         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16910         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16911         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16912         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16913         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16914         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16915         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16916         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16917         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16918         * sysdeps/i386/fpu/e_hypot.S: Likewise.
16919         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
16920         * sysdeps/i386/fpu/e_log.S: Likewise.
16921         * sysdeps/i386/fpu/e_log10.S: Likewise.
16922         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16923         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16924         * sysdeps/i386/fpu/e_log2.S: Likewise.
16925         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16926         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16927         * sysdeps/i386/fpu/e_logf.S: Likewise.
16928         * sysdeps/i386/fpu/e_logl.S: Likewise.
16929         * sysdeps/i386/fpu/e_pow.S: Likewise.
16930         * sysdeps/i386/fpu/e_powf.S: Likewise.
16931         * sysdeps/i386/fpu/e_powl.S: Likewise.
16932         * sysdeps/i386/fpu/e_remainder.S: Likewise.
16933         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
16934         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
16935         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16936         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16937         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16938         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
16939         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
16940         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
16941         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16942         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16943         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16944         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16945         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16946         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16947         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16948         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16949         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16950         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16951         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16952         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16953         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16954         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16955         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16956         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16957         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16958         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16959         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16960         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16961         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16962         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16963         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16964         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16965         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16966         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16967         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16968         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16969         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16970         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16971         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16972         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16973         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16974         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16975         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16976         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16977         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16978         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16979         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16980         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16981         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16982         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16983         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16984         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16985         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16986         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16987         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16988         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16989         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16990         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16991         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16992         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16993         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16994         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16995         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16996         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16997         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16998         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16999         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17000         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17001         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17002         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17003         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17004         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17005         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17006         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17007         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17008         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17009         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17010         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17011         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17012         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17013         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17014         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17015         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17016         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17017         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17018         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17019         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17020         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17021         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17022         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17023         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17024         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17025         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17026         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17027         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17028         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17029         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17030         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17031         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17032         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17033         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17034         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17035         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17036         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17037         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17038         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17039         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17040         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17041         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17042         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17043         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17044         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17045         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17046         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17047         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17048         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17049         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17050         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17051         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17052         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17053         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17054         (__isnanf): Likewise.
17055         (__isinf_ns): Likewise.
17056         (__isinf_nsf): Likewise.
17057         (__finite): Likewise.
17058         (__finitef): Likewise.
17059         (__ieee754_sqrt): Define as macro.
17060         (__ieee754_sqrtf): Define as macro.
17061         (__ieee754_sqrtl): Define as macro.
17062         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17063         inlined copy.
17064         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17065         __FINITE_MATH_ONLY__ consistent.
17066         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17067
17068 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17069
17070         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17071         of rawmemchr.
17072
17073         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17074
17075 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17076
17077         * po/ja.po: Update from translation team.
17078
17079 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17080
17081         * locale/programs/locarchive.c (prepare_address_space): New function.
17082         (create_archive, enlarge_archive, open_archive): Use it.
17083
17084         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17085         inside [SHARED], where it is used.
17086
17087         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17088
17089         * nss/getent.c (netgroup_keys): Remove unused variable.
17090         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17091
17092 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17093
17094         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17095         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17096         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17097         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17098         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17099         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17100         * math/Makefile (libm-calls): Add s_isinf_ns.
17101         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17102         * math/multc3.c: Likewise.
17103         * math/s_casin.c: Likewise.
17104         * math/s_casinf.c: Likewise.
17105         * math/s_casinl.c: Likewise.
17106         * math/s_ccos.c: Likewise.
17107         * math/s_ccosf.c: Likewise.
17108         * math/s_ccosl.c: Likewise.
17109         * math/s_ctan.c: Likewise.
17110         * math/s_ctanf.c: Likewise.
17111         * math/s_ctanh.c: Likewise.
17112         * math/s_ctanhf.c: Likewise.
17113         * math/s_ctanhl.c: Likewise.
17114         * math/s_ctanl.c: Likewise.
17115         * math/w_fmod.c: Likewise.
17116         * math/w_fmodf.c: Likewise.
17117         * math/w_fmodl.c: Likewise.
17118         * math/w_remainder.c: Likewise.
17119         * math/w_remainderf.c: Likewise.
17120         * math/w_remainderl.c: Likewise.
17121         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17122         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17123         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17124         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17125         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17126         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17127         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17128         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17129
17130         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17131         of the number.
17132         * stdio-common/printf_fphex.c: Likewise.
17133         * stdio-common/printf_size.c: Likewise.
17134
17135         * math/e_exp10.c: Include math_private.h using <...> not "...".
17136         * math/e_exp10f.c: Likewise.
17137         * math/e_exp10l.c: Likewise.
17138         * math/e_exp2l.c: Likewise.
17139         * math/e_j0l.c: Likewise.
17140         * math/e_j1l.c: Likewise.
17141         * math/e_jnl.c: Likewise.
17142         * math/e_lgammal_r.c: Likewise.
17143         * math/e_rem_pio2l.c: Likewise.
17144         * math/e_scalb.c: Likewise.
17145         * math/e_scalbf.c: Likewise.
17146         * math/e_scalbl.c: Likewise.
17147         * math/k_cosl.c: Likewise.
17148         * math/k_sinl.c: Likewise.
17149         * math/k_tanl.c: Likewise.
17150         * math/s_cacoshf.c: Likewise.
17151         * math/s_catan.c: Likewise.
17152         * math/s_catanf.c: Likewise.
17153         * math/s_catanh.c: Likewise.
17154         * math/s_catanhf.c: Likewise.
17155         * math/s_catanhl.c: Likewise.
17156         * math/s_catanl.c: Likewise.
17157         * math/s_ccosh.c: Likewise.
17158         * math/s_ccoshf.c: Likewise.
17159         * math/s_ccoshl.c: Likewise.
17160         * math/s_cexp.c: Likewise.
17161         * math/s_cexpf.c: Likewise.
17162         * math/s_cexpl.c: Likewise.
17163         * math/s_clog.c: Likewise.
17164         * math/s_clog10.c: Likewise.
17165         * math/s_clog10f.c: Likewise.
17166         * math/s_clog10l.c: Likewise.
17167         * math/s_clogf.c: Likewise.
17168         * math/s_clogl.c: Likewise.
17169         * math/s_csin.c: Likewise.
17170         * math/s_csinf.c: Likewise.
17171         * math/s_csinh.c: Likewise.
17172         * math/s_csinhf.c: Likewise.
17173         * math/s_csinhl.c: Likewise.
17174         * math/s_csinl.c: Likewise.
17175         * math/s_csqrt.c: Likewise.
17176         * math/s_csqrtf.c: Likewise.
17177         * math/s_csqrtl.c: Likewise.
17178         * math/s_ctan.c: Likewise.
17179         * math/s_ctanf.c: Likewise.
17180         * math/s_ctanh.c: Likewise.
17181         * math/s_ctanhf.c: Likewise.
17182         * math/s_ctanhl.c: Likewise.
17183         * math/s_ctanl.c: Likewise.
17184         * math/s_ldexp.c: Likewise.
17185         * math/s_ldexpf.c: Likewise.
17186         * math/s_ldexpl.c: Likewise.
17187         * math/s_significand.c: Likewise.
17188         * math/s_significandf.c: Likewise.
17189         * math/s_significandl.c: Likewise.
17190         * math/w_acos.c: Likewise.
17191         * math/w_acosf.c: Likewise.
17192         * math/w_acosh.c: Likewise.
17193         * math/w_acoshf.c: Likewise.
17194         * math/w_acoshl.c: Likewise.
17195         * math/w_acosl.c: Likewise.
17196         * math/w_asin.c: Likewise.
17197         * math/w_asinf.c: Likewise.
17198         * math/w_asinl.c: Likewise.
17199         * math/w_atan2.c: Likewise.
17200         * math/w_atan2f.c: Likewise.
17201         * math/w_atan2l.c: Likewise.
17202         * math/w_atanh.c: Likewise.
17203         * math/w_atanhf.c: Likewise.
17204         * math/w_atanhl.c: Likewise.
17205         * math/w_cosh.c: Likewise.
17206         * math/w_coshf.c: Likewise.
17207         * math/w_coshl.c: Likewise.
17208         * math/w_dremf.c: Likewise.
17209         * math/w_exp10.c: Likewise.
17210         * math/w_exp10f.c: Likewise.
17211         * math/w_exp10l.c: Likewise.
17212         * math/w_exp2.c: Likewise.
17213         * math/w_exp2f.c: Likewise.
17214         * math/w_fmod.c: Likewise.
17215         * math/w_fmodf.c: Likewise.
17216         * math/w_fmodl.c: Likewise.
17217         * math/w_hypot.c: Likewise.
17218         * math/w_hypotf.c: Likewise.
17219         * math/w_hypotl.c: Likewise.
17220         * math/w_j0.c: Likewise.
17221         * math/w_j0f.c: Likewise.
17222         * math/w_j0l.c: Likewise.
17223         * math/w_j1.c: Likewise.
17224         * math/w_j1f.c: Likewise.
17225         * math/w_j1l.c: Likewise.
17226         * math/w_jn.c: Likewise.
17227         * math/w_jnf.c: Likewise.
17228         * math/w_jnl.c: Likewise.
17229         * math/w_lgamma.c: Likewise.
17230         * math/w_lgamma_r.c: Likewise.
17231         * math/w_lgammaf.c: Likewise.
17232         * math/w_lgammaf_r.c: Likewise.
17233         * math/w_lgammal.c: Likewise.
17234         * math/w_lgammal_r.c: Likewise.
17235         * math/w_log.c: Likewise.
17236         * math/w_log10.c: Likewise.
17237         * math/w_log10f.c: Likewise.
17238         * math/w_log10l.c: Likewise.
17239         * math/w_log2.c: Likewise.
17240         * math/w_log2f.c: Likewise.
17241         * math/w_log2l.c: Likewise.
17242         * math/w_logf.c: Likewise.
17243         * math/w_logl.c: Likewise.
17244         * math/w_pow.c: Likewise.
17245         * math/w_powf.c: Likewise.
17246         * math/w_powl.c: Likewise.
17247         * math/w_remainder.c: Likewise.
17248         * math/w_remainderf.c: Likewise.
17249         * math/w_remainderl.c: Likewise.
17250         * math/w_scalb.c: Likewise.
17251         * math/w_scalbf.c: Likewise.
17252         * math/w_scalbl.c: Likewise.
17253         * math/w_sinh.c: Likewise.
17254         * math/w_sinhf.c: Likewise.
17255         * math/w_sinhl.c: Likewise.
17256         * math/w_sqrt.c: Likewise.
17257         * math/w_sqrtf.c: Likewise.
17258         * math/w_sqrtl.c: Likewise.
17259         * math/w_tgamma.c: Likewise.
17260         * math/w_tgammaf.c: Likewise.
17261         * math/w_tgammal.c: Likewise.
17262
17263         * po/ja.po: Update from translation team.
17264
17265 2011-09-29  Andreas Jaeger  <aj@suse.de>
17266
17267         [BZ #13179]
17268         * sunrpc/netname.c (netname2host): Fix logic.
17269
17270         [BZ #6779]
17271         [BZ #6783]
17272         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17273         correctly.
17274         * math/w_remainder.c (__remainder): Likewise.
17275         * math/w_remainderf.c (__remainderf): Likewise.
17276         * math/libm-test.inc (remainder_test): Add test cases.
17277
17278 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17279
17280         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17281         sdiv_qrnnd.
17282
17283 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17284
17285         * string/test-memcmp.c: Avoid unncessary #defines.
17286         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17287
17288 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17289
17290         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17291         Use new sse2 version for core i3 - i7 as it's faster
17292         than sse42 version.
17293         (bit_Prefer_PMINUB_for_stringop): New.
17294         * sysdeps/x86_64/rawmemchr.S: Update.
17295         Replace with faster SSE2 version.
17296         * sysdeps/x86_64/memrchr.S: New file.
17297         * sysdeps/x86_64/memchr.S: Update.
17298         Replace with faster SSE2 version.
17299
17300 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17301
17302         * elf/dl-load.c (lose): Add cast to avoid warning.
17303
17304 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17305
17306         * po/ca.po: Update from translation team.
17307
17308         * inet/getnetgrent_r.c: Hook up nscd.
17309         * nscd/Makefile (routines): Add nscd_netgroup.
17310         (nscd-modules): Add netgroupcache.
17311         (CFLAGS-netgroupcache.c): Define.
17312         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17313         (cache_search): Add const to second parameter.
17314         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17315         INNETGR.
17316         (dbs): Add netgrdb entry.
17317         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17318         (verify_persistent_db): Handle netgrdb.
17319         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17320         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17321         GETFDNETGR.
17322         (netgroup_response_header): Define.
17323         (innetgroup_response_header): Define.
17324         (datahead): Add netgroup_response_header and innetgroup_response_header
17325         elements.
17326         * nscd/nscd.conf: Add entries for netgroup cache.
17327         * nscd/nscd.h (dbtype): Add netgrdb.
17328         (_PATH_NSCD_NETGROUP_DB): Define.
17329         (netgroup_iov_disabled): Declare.
17330         (xmalloc, xcalloc, xrealloc): Move declarations here.
17331         (cache_search): Adjust prototype.
17332         Add netgroup-related prototypes.
17333         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17334         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17335         (__nscd_innetgr): Declare.
17336         * nscd/selinux.c (perms): Use access_vector_t as element type and
17337         add netgroup-related initializers.
17338         * nscd/netgroupcache.c: New file.
17339         * nscd/nscd_netgroup.c: New file.
17340         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17341         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17342         For four parameters use innetgr.
17343         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17344         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17345         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17346         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17347
17348         * nscd/connections.c (register_traced_file): Don't register file
17349         for disabled databases.
17350
17351 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17352
17353         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17354
17355         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17356         from tree and freeing node.
17357
17358 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17359
17360         * nss/nsswitch.c (__nss_database_lookup): Handle
17361         nss_parse_service_list out of memory case.
17362
17363 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17364
17365         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17366         out of memory case.
17367
17368 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17369
17370         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17371         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17372         pass it down.
17373         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17374         elf_machine_rela, elf_machine_lazy_rel.
17375         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17376         (ELF_DYNAMIC_DO_REL): Likewise.
17377         (ELF_DYNAMIC_DO_RELA): Likewise.
17378         (ELF_DYNAMIC_RELOCATE): Likewise.
17379         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17380         to ELF_DYNAMIC_DO_REL.
17381         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17382         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17383         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17384         elf_machine_rela.
17385         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17386         skip_ifunc, don't call ifunc function if non-zero.
17387         (elf_machine_rela): Likewise.
17388         (elf_machine_lazy_rel): Likewise.
17389         (elf_machine_lazy_rela): Likewise.
17390         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17391         (elf_machine_lazy_rel): Likewise.
17392         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17393         Likewise.
17394         (elf_machine_lazy_rel): Likewise.
17395         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17396         Likewise.
17397         (elf_machine_lazy_rel): Likewise.
17398         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17399         (elf_machine_lazy_rel): Likewise.
17400         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17401         (elf_machine_lazy_rel): Likewise.
17402         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17403         (elf_machine_lazy_rel): Likewise.
17404         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17405         (elf_machine_lazy_rel): Likewise.
17406         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17407         (elf_machine_lazy_rel): Likewise.
17408         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17409         (elf_machine_lazy_rel): Likewise.
17410
17411 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17412
17413         * nss/nss_files/files-init.c (_nss_files_init): Use static
17414         initialization for all the *_traced_file variables.
17415
17416 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17417
17418         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17419
17420 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17421
17422         [BZ #13226]
17423         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17424
17425 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17426
17427         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17428         Reread the line before reparsing it.
17429
17430 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17431
17432         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17433
17434 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17435             Maxim Kuvyrkov  <maxim@codesourcery.com>
17436             Joseph Myers  <joseph@codesourcery.com>
17437
17438         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17439         if needed for __stack_chk_guard.
17440
17441 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17442
17443         * sysdeps/posix/spawni.c (script_execute): Always define it.
17444         It will be optimized away if unused.
17445         (maybe_script_execute): New function.
17446         (__spawni): Call it.
17447
17448         * Makerules: Don't include tls.make.
17449         (config-tls): Always set to thread.
17450         * tls.make.c: File removed.
17451
17452 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17453
17454         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17455         * config.make.in (CPPFLAGS-config): New substituted variable.
17456
17457 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17458
17459         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17460
17461         [BZ #13192]
17462         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17463         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17464
17465 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17466
17467         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17468         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17469         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17470         (CALL_FAIL): Likewise.
17471         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17472         (CALL_FAIL): Macro removed.
17473         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17474
17475 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17476
17477         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17478         for __FINITE_MATH_ONLY__ == 1.
17479
17480 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17481
17482         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17483         __ieee754_sqrt instead of sqrt.
17484         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17485         __ieee754_sqrtf instead of sqrtf.
17486         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17487         __floorf instead of floorf.
17488         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17489         __floorf, __truncf instead of floorf, truncf.
17490
17491 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17492
17493         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17494
17495         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17496         __extern_always_inline.
17497         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17498         32-bit.
17499
17500 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17501
17502         * elf/rtld.c (dl_main): Also relocate in dependency order when
17503         doing symbol dependency testing.
17504
17505 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17506
17507         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17508         Always define `refsym'.
17509
17510 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17511
17512         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17513         (__FD_ELT): Renamed from __FDELT.
17514         * misc/bits/select2.h (__FD_ELT): Likewise.
17515         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17516         __FD_MASK instead of __FDELT, __FDMASK.
17517         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17518         Likewise.
17519         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17520         Likewise.
17521
17522         * elf/Makefile (gen-ldd): Fix pattern.
17523
17524         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17525         (init_tls): Likewise.
17526
17527 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17528
17529         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17530
17531 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17532
17533         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17534         `struct cmsghdr *' instead of `void *'.
17535         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17536         Likewise.
17537
17538 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17539
17540         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17541         if non-absolute.
17542         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17543         ldd_rewrite_script.
17544
17545 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17546
17547         * configure.in: Remove --with-tls option.
17548         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17549         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17550         out in case it is missing.
17551         * sysdeps/ia64/elf/configure.in: Likewise.
17552         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17553         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17554         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17555         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17556         * sysdeps/sh/elf/configure.in: Likewise.
17557         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17558         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17559         * sysdeps/x86_64/elf/configure.in: Likewise.
17560         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17561         * sysdeps/mach/hurd/tls.h: Likewise.
17562
17563         [BZ #13067]
17564         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17565
17566         [BZ #13090]
17567         * configure.in: Fix use of AC_INIT.
17568
17569         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17570
17571 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17572
17573         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17574         __set_errno.
17575         * malloc/hooks.c: Likewise.
17576
17577         [BZ #11929]
17578         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17579         variables statically.
17580         (narenas): Initialize.
17581         (list_lock): Initialize.
17582         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17583         initializtion of main_arena and list_lock.  Small cleanups.
17584         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17585         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17586         Add initializers to main_arena and mp_.
17587         (malloc_state): Remove pagesize member.  Change all users to use
17588         GLRO(dl_pagesize).
17589
17590         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17591         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17592         is always initialized.
17593
17594         * malloc/malloc.c: Removed unused configurations and dead code.
17595         * malloc/arena.c: Likewise.
17596         * malloc/hooks.c: Likewise.
17597         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17598
17599         * include/tls.h: Removed.  USE___THREAD must always be defined.
17600         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17601         * elf/dl-libc.c: Likewise.
17602         * elf/dl-tsd.c: Likewise.
17603         * include/errno.h: Likewise.
17604         * include/netdb.h: Likewise.
17605         * include/resolv.h: Likewise.
17606         * inet/herrno-loc.c: Likewise.
17607         * inet/herrno.c: Likewise.
17608         * malloc/arena.c: Likewise.
17609         * malloc/hooks.c: Likewise.
17610         * malloc/malloc.c: Likewise.
17611         * resolv/res-state.c: Likewise.
17612         * resolv/res_libc.c: Likewise.
17613         * sysdeps/i386/dl-machine.h: Likewise.
17614         * sysdeps/ia64/dl-machine.h: Likewise.
17615         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17616         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17617         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17618         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17619         * sysdeps/sh/dl-machine.h: Likewise.
17620         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17621         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17622         * sysdeps/unix/i386/sysdep.S: Likewise.
17623         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17624         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17625         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17626         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17627         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17628         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17629         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17630         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17631         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17632         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17633         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17634         * sysdeps/x86_64/dl-machine.h: Likewise.
17635         * tls.make.c: Likewise.
17636
17637         * configure.in: Remove --with-__thread option.  Make tests for
17638         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17639         tls_model attribute fail if no support is available.  Remove
17640         USE_IN_LIBIO.
17641         * Makeconfig: Adjust for dropped configure option.  All features are
17642         now mandatory.
17643         * Makerules: Likewise.
17644         * Versions.def: Likewise.
17645         * argp/argp-fmtstream.c: Likewise.
17646         * argp/argp-fmtstream.h: Likewise.
17647         * argp/argp-help.c: Likewise.
17648         * assert/assert.c: Likewise.
17649         * config.h.in: Likewise.
17650         * config.make.in: Likewise.
17651         * configure: Likewise.
17652         * configure.in: Likewise.
17653         * csu/Versions: Likewise.
17654         * csu/init.c: Likewise.
17655         * elf/tst-audit2.c: Likewise.
17656         * elf/tst-tls10.c: Likewise.
17657         * elf/tst-tls10.h: Likewise.
17658         * elf/tst-tls11.c: Likewise.
17659         * elf/tst-tls12.c: Likewise.
17660         * elf/tst-tls14.c: Likewise.
17661         * elf/tst-tlsmod11.c: Likewise.
17662         * elf/tst-tlsmod12.c: Likewise.
17663         * elf/tst-tlsmod13.c: Likewise.
17664         * elf/tst-tlsmod13a.c: Likewise.
17665         * elf/tst-tlsmod14a.c: Likewise.
17666         * elf/tst-tlsmod15b.c: Likewise.
17667         * elf/tst-tlsmod16a.c: Likewise.
17668         * elf/tst-tlsmod16b.c: Likewise.
17669         * elf/tst-tlsmod7.c: Likewise.
17670         * elf/tst-tlsmod8.c: Likewise.
17671         * elf/tst-tlsmod9.c: Likewise.
17672         * gmon/gmon.c: Likewise.
17673         * grp/fgetgrent_r.c: Likewise.
17674         * grp/putgrent.c: Likewise.
17675         * hurd/fopenport.c: Likewise.
17676         * include/libc-symbols.h: Likewise.
17677         * include/tls.h: Likewise.
17678         * intl/gettextP.h: Likewise.
17679         * intl/loadinfo.h: Likewise.
17680         * locale/global-locale.c: Likewise.
17681         * locale/localeinfo.h: Likewise.
17682         * mach/devstream.c: Likewise.
17683         * malloc/arena.c: Likewise.
17684         * malloc/set-freeres.c: Likewise.
17685         * misc/err.c: Likewise.
17686         * misc/getttyent.c: Likewise.
17687         * misc/mntent_r.c: Likewise.
17688         * posix/getopt.c: Likewise.
17689         * posix/wordexp.c: Likewise.
17690         * pwd/fgetpwent_r.c: Likewise.
17691         * resolv/Versions: Likewise.
17692         * resolv/res_hconf.c: Likewise.
17693         * shadow/fgetspent_r.c: Likewise.
17694         * shadow/putspent.c: Likewise.
17695         * stdio-common/printf_fphex.c: Likewise.
17696         * stdio-common/tmpfile.c: Likewise.
17697         * stdlib/abort.c: Likewise.
17698         * stdlib/fmtmsg.c: Likewise.
17699         * sunrpc/auth_unix.c: Likewise.
17700         * sunrpc/clnt_perr.c: Likewise.
17701         * sunrpc/clnt_tcp.c: Likewise.
17702         * sunrpc/clnt_udp.c: Likewise.
17703         * sunrpc/clnt_unix.c: Likewise.
17704         * sunrpc/openchild.c: Likewise.
17705         * sunrpc/svc_simple.c: Likewise.
17706         * sunrpc/svc_tcp.c: Likewise.
17707         * sunrpc/svc_udp.c: Likewise.
17708         * sunrpc/svc_unix.c: Likewise.
17709         * sunrpc/xdr.c: Likewise.
17710         * sunrpc/xdr_array.c: Likewise.
17711         * sunrpc/xdr_rec.c: Likewise.
17712         * sunrpc/xdr_ref.c: Likewise.
17713         * sunrpc/xdr_stdio.c: Likewise.
17714
17715 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17716
17717         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17718
17719 2011-07-03  Andreas Jaeger  <aj@suse.de>
17720
17721         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17722         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17723         regenerate with gen-libm-tests.pl.
17724
17725 2010-05-12  Petr Baudis  <pasky@suse.cz>
17726
17727         [BZ #11589]
17728         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17729         around j0() zero points by switching to j1().
17730         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17731         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17732         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17733         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17734
17735 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17736
17737         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17738         instead of 0.
17739         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17740         instead of 0.                              .
17741         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17742         Patch in part by Pavel Roskin <proski@gnu.org>.
17743
17744         [BZ #13138]
17745         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17746         realloc.
17747         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17748         Free memory block if necessary.
17749
17750         [BZ #12847]
17751         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17752         be NULL.  Don't lock in this case.
17753
17754 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17755
17756         * elf/elf.h (ELFOSABI_GNU): New macro.
17757         (ELFOSABI_LINUX): Define to that.
17758
17759 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17760
17761         * string/strncat.c (strncat): Undef the symbol in case it has been
17762         defined in bits/string.h.
17763
17764 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17765
17766         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17767
17768         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17769         link map.
17770
17771 2011-08-17  Andreas Jaeger  <aj@suse.de>
17772
17773         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17774
17775 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17776             Ian Lance Taylor  <iant@google.com>
17777
17778         * math/libm-test.inc (lround_test): New testcase.
17779         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17780
17781 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17782
17783         * Makefile: Remove support for automatic cvs check-ins.
17784         * Makerules: Likewise.
17785         * config.make.in: Likewise.
17786         * configure.in: Likewise.
17787         * intl/Makefile: Likewise.
17788         * locale/Makefile: Likewise.
17789         * po/Makefile: Likewise.
17790         * posix/Makefile: Likewise.
17791         * sysdeps/gnu/Makefile: Likewise.
17792         * sysdeps/mach/hurd/Makefile: Likewise.
17793         * sysdeps/sparc/sparc32/Makefile: Likewise.
17794
17795         [BZ #13118]
17796         * posix/Makefile (bug-regex32-ENV): Define.
17797         Patch by John Stanley <jpsinthemix@verizon.net>.
17798
17799         * misc/Makefile (headers): Add bits/select2.h.
17800         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17801         * misc/bits/select2.h: New file.
17802         * include/bits/select2.h: New file.
17803         * debug/Makefile (routines): Add fdelt_chk.
17804         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17805         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17806         FD_ISSET.
17807         * debug/fdelt_chk.c: New file.
17808
17809         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17810         * wcsmbs/test-wmemcmp.c: Likewise.
17811         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17812         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17813
17814 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17815
17816         * string/Makefile (strop-tests): Add memcmp.
17817         * string/test-wmemcmp.c: New file.
17818         * string/test-memcmp.c: Add wmemcmp support.
17819
17820 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17821
17822         [BZ #13153]
17823         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17824         2011-07-19 change.
17825
17826         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17827         garbage value in a __mach_port_mod_refs call in the cases of the
17828         task-self and thread-self ports.
17829
17830 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17831
17832         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17833
17834 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17835
17836         * elf/dl-load.c (lose): Check for non-null L.
17837
17838 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17839
17840         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17841
17842         * elf/dl-libc.c (dlerror_run): Pass back error code from
17843         dl_catch_error.
17844
17845         [BZ #13123]
17846         * elf/dl-load.c (lose): Free l_origin if it is valid.
17847
17848         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17849         names.
17850         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17851         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17852         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17853         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17854         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17855         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17856
17857 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17858
17859         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17860         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17861         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17862         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17863         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17864         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17865         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17866         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17867         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17868         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17869
17870 2011-08-15  Alan Modra  <amodra@gmail.com>
17871
17872         [BZ #13092]
17873         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17874         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17875         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17876         ppc_mcount to static-only-routines.
17877         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17878         __mcount_internal.
17879         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17880         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17881
17882 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17883
17884         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17885         for finite and infinity parameters.
17886
17887 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17888
17889         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17890         and add nop instructions for throughput optimization.
17891         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17892
17893 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17894
17895         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17896         aligned copy for power7 with vector-scalar instructions.
17897         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17898
17899 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17900
17901         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17902         AVX check.
17903
17904 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17905
17906         [BZ #13144]
17907         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17908         last change.
17909
17910 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17911
17912         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17913         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17914         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17915         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17916         clock_gettime.
17917
17918 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17919
17920         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
17921         Forgot to demangle the pointer.
17922
17923         * sysdeps/i386/sysdep.h: Define atom_text_section.
17924         * sysdeps/x86_64/sysdep.h: Likewise.
17925         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
17926         section with atom_text_section.
17927         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17928         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17929         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
17930         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17931         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
17932
17933         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
17934         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
17935         already be defined.  Change to take two parameters and don't assign
17936         result to variable.  Adjust all users.
17937         Define INTERNAL_GETTIME if not already defined.
17938         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
17939         call.
17940         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
17941         HAVE_CLOCK_GETTIME_VSYSCALL.
17942         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
17943
17944         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17945         gettimeofday vsyscall, just use time.
17946
17947 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17948
17949         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17950         <errno.h>.
17951
17952 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17953
17954         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17955         syscall on x86-64.
17956         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17957         syscall.
17958         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17959         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17960         syscall if possible.
17961
17962 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17963
17964         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17965         e_ident.  Don't pass to find_mapsXX.
17966         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17967
17968 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17969
17970         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17971         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17972         * sysdeps/x86_64/multiarch/strchr.S: Update.
17973         Check bit_slow_BSF bit.
17974         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17975         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17976         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17977
17978 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17979
17980         [BZ #13134]
17981         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17982         before glibc 2.15.
17983         (tryshell): Define.
17984         (__spawni): Change last parameter to be flag.  Test
17985         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17986         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17987         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17988         * posix/spawni.c: Likewise.
17989         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17990         * posix/spawnp.c: Likewise.  Change normal version to use
17991         SPAWN_XFLAGS_USE_PATH.
17992         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17993         SPAWN_XFLAGS_TRY_SHELL.
17994
17995         [BZ #13150]
17996         * posix/glob.h: Remove gcc 1.x support.
17997
17998         [BZ #13068]
17999         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18000
18001 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18002
18003         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18004         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18005         strrchr-sse2-bsf
18006         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18007         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18008         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18009         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18010         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18011         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18012
18013 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18014
18015         * sysdeps/x86_64/wcscmp.S: New file.
18016
18017         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18018         wcscmp-c wcscmp-sse2
18019         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18020         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18021         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18022         * wcsmbs/wcscmp.c: Allow renaming.
18023
18024 2011-09-05  David S. Miller  <davem@davemloft.net>
18025
18026         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18027         stack slot, rather than the struct return pointer slot.
18028         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18029         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18030         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18031         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18032
18033 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18034
18035         * po/ja.po: Update from translation team.
18036
18037         [BZ #13144]
18038         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18039         kernel in 64-bit binaries.
18040
18041 2011-09-01  David S. Miller  <davem@davemloft.net>
18042
18043         * elf/elf.h (HWCAP_SPARC_*): Move to..
18044         * sysdeps/sparc/sysdep.h: this new file and add new values.
18045         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18046         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18047         _DL_HWCAP_COUNT to 24.
18048         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18049         entries.
18050         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18051         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18052         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18053         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18054         instead of magic constants.
18055         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18056
18057 2011-08-31  David S. Miller  <davem@davemloft.net>
18058
18059         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18060         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18061         Reimplement to do errno handling inline.
18062         (SYSCALL_ERROR_HANDLER): New macro.
18063         (__SYSCALL_STRING): Do not do errno handling in asm.
18064         (__CLONE_SYSCALL_STRING): Delete.
18065         (__INTERNAL_SYSCALL_STRING): Delete.
18066         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18067         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18068         (PSEUDO): Reimplement to do errno handling inline.
18069         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18070         (SYSCALL_ERROR_HANDLER): New macro.
18071         (__SYSCALL_STRING): Do not do errno handling in asm.
18072         (__CLONE_SYSCALL_STRING): Delete.
18073         (__INTERNAL_SYSCALL_STRING): Delete.
18074         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18075         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18076         i386.
18077         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18078         (inline_syscall*): Add 'err' argument.
18079         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18080         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18081         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18082         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18083
18084         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18085         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18086
18087 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18088
18089         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18090
18091 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18092
18093         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18094         directive.
18095
18096 2011-08-24  David S. Miller  <davem@davemloft.net>
18097
18098         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18099
18100 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18101
18102         * elf/Makefile: Add rules to build and run unload8 test.
18103         * elf/unload8.c: New file.
18104         * elf/unload8mod1.c: New file.
18105         * elf/unload8mod1x.c: New file.
18106         * elf/unload8mod2.c: New file.
18107         * elf/unload8mod3.c: New file.
18108
18109         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18110         it wasn't used.
18111
18112 2011-08-23  David S. Miller  <davem@davemloft.net>
18113
18114         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18115         subtract stack bias.
18116         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18117         %sp not %fp in calculations.
18118         (_JMPBUF_UNWINDS_ADJ): Likewise.
18119
18120         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18121         (aio_suspend): Call it to force an exception region around the
18122         AIO_MISC_WAIT() invocation.
18123
18124 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18125
18126         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18127         backslash.
18128
18129 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18130
18131         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18132         protection macro.
18133         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18134         and <dl-machine.h>.
18135         (Elf64_FuncDesc): Remove.
18136
18137 2011-08-22  David S. Miller  <davem@davemloft.net>
18138
18139         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18140         sigaltstack check, add missing cfi directives.
18141         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18142         missing cfi directives, and sigaltstack handling.
18143
18144 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18145
18146         [BZ #11724]
18147         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18148         object is seen twice.
18149         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18150
18151         * elf/Makefile (distribute): Add tst-initorder2.c.
18152         (tests): Add tst-initorder2.
18153         (modules-names): Add tst-initorder2a tst-initorder2b
18154         tst-initorder2c tst-initorder2d.  Add rules to build them.
18155         ($(objpfx)tst-initorder2.out): New rule.
18156         * elf/tst-initorder2.c: New file.
18157         * elf/tst-initorder2.exp: New file.
18158
18159 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18160
18161         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18162
18163         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18164         dependencies back to end of function.
18165
18166         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18167         $(elfobjdir)/ld.so.
18168
18169 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18170
18171         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18172         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18173         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18174         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18175         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18176         of __vdso_gettimeofday.
18177         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18178         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18179         attribute_hidden.
18180         (_libc_vdso_platform_setup): Remove initialization of
18181         __vdso_gettimeofday and __vdso_time.
18182
18183 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18184
18185         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18186         and fgetc_unlocked.
18187         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18188         getc_unlocked.
18189
18190         * elf/dl-open.c (add_to_global): Report additions to the global scope
18191         for LD_DEBUG=scopes.
18192         (dl_open_worker): Also print scope of newly loaded dependencies.
18193         (_dl_show_scope): Indicate if there is no scope.
18194
18195         [BZ #13114]
18196         * stdio-common/Makefile (tests): Add bug24.
18197         * stdio-common/bug24.c: New file.
18198
18199 2011-08-19  Andreas Jaeger  <aj@suse.de>
18200
18201         [BZ #13114]
18202         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18203         non-existant file when using close-on-exec mode.
18204
18205 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18206
18207         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18208         the very first instruction.
18209
18210         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18211         the CFI state in the end.
18212         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18213         inclusion of dl-trampoline.h.
18214         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18215
18216 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18217
18218         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18219         expectations for long double.
18220
18221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18222         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18223
18224 2011-08-14  David S. Miller  <davem@davemloft.net>
18225
18226         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18227         artificual limit depends upon the system page size.
18228
18229 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18230
18231         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18232         * resolv/Makefile: Define CFLAGS-libresolv.
18233
18234 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18235
18236         * nss/makedb.c (compute_tables): Make variables used in nested
18237         function static.
18238
18239 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18240
18241         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18242         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18243         if buffer was too small.
18244
18245         * elf/pldd.c (main): Attach to all threads in the process.
18246         Rewrite /proc handling to use *at functions.
18247
18248 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18249
18250         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18251         specifies first scope to show.
18252         (dl_open_worker): Update callers.  Move printing scope of new
18253         object to before the relocation.
18254         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18255         * sysdeps/generic/ldsodefs.h: Update declaration.
18256
18257         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18258         string for the scope number.
18259
18260 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18261
18262         * nscd/servicescache.c (cache_addserv): Make sure written is always
18263         initialized.
18264
18265 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18266
18267         * sysdeps/i386/i486/bits/atomic.h
18268         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18269         statement expression, so as to suppress "set but not used" warning.
18270         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18271
18272         * string/strncat.c (STRNCAT): Use prototype definition.
18273
18274         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18275         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18276         -Iprograms here.
18277         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18278         (localedef-modules): Add localedef.
18279         (locale-modules): Add locale.
18280
18281         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18282         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18283         to avoid a warning.
18284
18285 2011-08-14  David S. Miller  <davem@davemloft.net>
18286
18287         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18288         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18289
18290 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18291
18292         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18293         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18294         * elf/rtld.c (dl_main): Set l_name of vDSO.
18295         Call _dl_show_scope when DL_DEBUG_SCOPES.
18296         (process_dl_debug): Recognize scopes flag and also set it for all.
18297         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18298         Declare _dl_show_scope.
18299
18300         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18301         (do_dlopen): Pass caller_dlopen to dl_open.
18302         (__libc_dlopen_mode): Initialize caller_dlopen.
18303
18304         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18305         of libc.  Make tolower call locale-independent.  Optimize a bit by
18306         using isdigit instead of isalnum.
18307         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18308
18309 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18310
18311         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18312         was a dependency or dynamically loaded.
18313
18314 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18315
18316         * intl/l10nflist.c: Allow architecture-specific pop function.
18317         * sysdeps/x86_64/l10nflist.c: New file.
18318
18319         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18320         classification.
18321
18322 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18323
18324         * include/dirent.h: Add libc_hidden_proto for scandirat and
18325         scandirat64.  Don't declare __scandirat64.
18326         * dirent/scandirat.c: Add libc_hidden_def.
18327         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18328         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18329
18330 2011-08-10  David S. Miller  <davem@davemloft.net>
18331
18332         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18333         enum.
18334         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18335         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18336         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18337
18338 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18339
18340         * Versions.def [libc]: Add GLIBC_2.15.
18341         * dirent/Makefile (routines): Add scandirat and scandirat64.
18342         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18343         GLIBC_2.15.
18344         * dirent/dirent.h: Declare scandirat and scandirat64.
18345         * dirent/scandirat.c: New file.
18346         * dirent/scandirat64.c: New file.
18347         * sysdeps/wordsize-64/scandirat.c: New file.
18348         * sysdeps/wordsize-64/scandirat64.c: New file.
18349         * dirent/opendir.c: Define opendirat.
18350         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18351         using scandirat.
18352         * dirent/scandir64.c: Adjust for scandir.c change.
18353         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18354         __scandirat64, and __scandir_cancel_handler.
18355         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18356         additional parameter and use openat instead of open (outside of ld.so).
18357         Add new __opendir as wrapper around __opendirat.
18358         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18359         here without requiring old scandirat implementation.
18360
18361 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18362
18363         * dirent/scandir.c (cancel_handler): Renamed to
18364         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18365         defined.  Adjust users.
18366         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18367         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18368
18369 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18370
18371         * string/test-string.h (IMPL): Use __STRING to expand name and then
18372         stringify it.
18373
18374         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18375         of cleanups.
18376
18377 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18378
18379         * string/Makefile: Update.
18380         (strop-tests): Append strncat.
18381         * string/test-wcscmp.c: New file.
18382         New comprehensive test for wcscmp.
18383         * string/test-strcmp.c: Update.
18384         (WIDE): New define.
18385
18386 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18387
18388         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18389         line.
18390
18391 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18392
18393         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18394         encoding to ACE if AI_IDN.
18395
18396 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18397
18398         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18399         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18400
18401 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18402
18403         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18404         Fix overflow bug in strncat.
18405         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18406
18407         * string/test-strncat.c: Update.
18408         Add new tests for checking overflow bugs.
18409
18410 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18411
18412         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18413         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18414         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18415         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18416         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18417         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18418         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18419         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18420         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18421
18422         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18423         (USE_AS_STRCAT): Define.
18424         Add strcat and strncat support.
18425         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18426
18427 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18428
18429         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18430         __n bigger than INT_MAX+1.
18431         (__strncmp_g): Likewise.
18432
18433 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18434
18435         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18436         * libio/stido.h: Likewise.
18437
18438         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18439         (AF_NFC): Define.
18440         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18441         (AF_NFC): Define.
18442
18443         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18444         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18445         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18446         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18447         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18448
18449         [BZ #13021]
18450         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18451         installed.
18452
18453         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18454         typo.
18455         (_dl_x86_64_save_sse): Likewise.
18456
18457 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18458
18459         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18460         OSXSAVE.
18461         (_dl_x86_64_save_sse): Likewise.
18462
18463         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18464
18465         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18466
18467 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18468
18469         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18470         change.
18471         (_dl_x86_64_save_sse): Use correct AVX check.
18472
18473 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18474
18475         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18476         bug in strncpy/strncat.
18477         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18478
18479 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18480
18481         * string/tester.c (test_strcat): Add tests for different alignments
18482         of source and destination.
18483         (test_strncat): Likewise.
18484
18485 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18486
18487         [BZ #12852]
18488         * posix/glob.c (glob): Check passed in values before using them in
18489         expressions to avoid some overflows.
18490         (glob_in_dir): Likewise.
18491
18492         [BZ #13007]
18493         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18494         check for AVX enablement so that we don't crash with old kernels and
18495         new hardware.
18496         * elf/tst-audit4.c: Add same checks here.
18497         * elf/tst-audit6.c: Likewise.
18498
18499         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18500
18501 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18502
18503         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18504
18505 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18506
18507         * po/cs.po: Update from translation team.
18508         * po/bg.po: Likewise.
18509
18510 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18511
18512         * misc/sys/cdefs.h: Add support for const attribute.
18513         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18514         to gnu_dev_{major,minor,makedev} functions.
18515
18516 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18517
18518         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18519
18520 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18521
18522         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18523         strlen results.
18524
18525 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18526
18527         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18528         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18529         register in order to avoid conflicts with the soft frame pointer
18530         being held in r11 when necessary.
18531         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18532         (INTERNAL_VSYSCALL_NCS): Likewise.
18533
18534 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18535
18536         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18537         * elf/dl-fini.c (_dl_fini): Adjust caller.
18538         * elf/dl-close.c (_dl_close_worker): Likewise.
18539         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18540
18541 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18542
18543         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18544         "aux_cache->nlibs < 0".
18545
18546         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18547         in the reload-count case.
18548
18549 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18550
18551         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18552         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18553         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18554         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18555         * sysdeps/x86_64/multiarch/strcat.S: New file.
18556         * sysdeps/x86_64/multiarch/strncat.S: New file.
18557         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18558         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18559         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18560         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18561         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18562         (USE_AS_STRCAT): Define.
18563         Add strcat and strncat support.
18564         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18565         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18566         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18567         * string/strncat.c: Update.
18568         (USE_AS_STRNCAT): Define.
18569         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18570         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18571         and i7.
18572         * sysdeps/x86_64/multiarch/init-arch.h
18573         (bit_Prefer_PMINUB_for_stringop): New.
18574         (index_Prefer_PMINUB_for_stringop): Likewise.
18575         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18576         bit_Prefer_PMINUB_for_stringop.
18577
18578 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18579
18580         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18581         buffer64.
18582         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18583         of casting of buffer.
18584         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18585         buffer32 and buffer64.
18586         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18587         writes instead of casting of buffer.
18588         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18589         buffer32.
18590         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18591         casting of buffer.
18592
18593 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18594
18595         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18596
18597 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18598
18599         * nscd/nscd.c (termination_handler): Don't do anything for a database
18600         if it has not yet been initialized.
18601
18602 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18603
18604         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18605
18606 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18607
18608         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18609
18610 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18611
18612         * po/nl.po: Update from translation team.
18613         * po/sv.po: Likewise.
18614
18615 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18616
18617         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18618         now disallowed by GCC.
18619
18620         * configure.in (use-default-link): Default to yes if a test -shared
18621         link meets our qualifications.
18622         * configure: Regenerated.
18623
18624         * config.make.in (output-format): New variable.
18625         * configure.in: Check for ld --print-output-format support.
18626         * configure: Regenerated.
18627         * Makerules ($(common-objpfx)format.lds)
18628         [$(output-format) != unknown]: Just use $(output-format),
18629         instead of the linker-script munging.
18630
18631 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18632
18633         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18634         of $(common-objpfx)shlib.lds.
18635         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18636
18637         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18638         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18639
18640         * configure.in (-z relro check): Adjust test code to add a large
18641         writable data section after it.
18642         * configure: Regenerated.
18643
18644 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18645
18646         * configure.in (-z relro check): Fix test code to make the variable
18647         truly const.
18648         * configure: Regenerated.
18649
18650 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18651
18652         * nscd/nscd.h (struct traced_file): Define.
18653         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18654         elements.  Add traced_files.
18655         (inotify_fd): Declare.
18656         (register_traced_file): Declare.
18657         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18658         (inotify_fd): Export.
18659         (resolv_conf_descr): Remove.
18660         (nscd_init): Move inotify descriptor creation to main.
18661         Don't register files for notification here.
18662         (register_traced_file): New function.
18663         (invalidate_cache): Don't use reset_res to determine whether to call
18664         res_init, go through the list of registered files.
18665         (main_loop_poll): The inotify descriptors are now stored in the
18666         structures for the traced files.
18667         (main_loop_epoll): Likewise
18668         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18669         to __nss_disable_nscd.
18670         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18671         for a database anymore.  Check the records for all the registered
18672         files instead.
18673         * nss/Makefile (libnss_files-routines): Add files-init.
18674         (libnss_db-routines): Add db-init.
18675         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18676         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18677         * nss/nss_db/db-init.c: New file.
18678         * nss/nss_files/files-init.c: New file.
18679         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18680         __nss_lookup_function.
18681         (__nss_lookup_function): Call nss_load_library.
18682         (nss_load_all_libraries): New function.
18683         (__nss_disable_nscd): Take parameter with callback function for files
18684         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18685         used for the cached services.
18686         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18687         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18688         options for features to all the files in nscd.
18689
18690         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18691
18692 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18693
18694         * csu/elf-init.c (__libc_csu_init): Comment typo.
18695
18696 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18697
18698         * po/pl.po: Update from translation team.
18699         * po/ja.po: Likewise.
18700         * po/ru.po: Likewise.
18701         * po/ko.po: Likewise.
18702         * po/fr.po: Likewise.
18703
18704 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18705
18706         * configure.in (.ctors/.dtors header and trailer check):
18707         Use an empirical test on a built program.
18708         * configure: Regenerated.
18709
18710         * configure.in (-z relro check): Use an empirical test on a built DSO.
18711         Detect, but do not require, on ia64.
18712         * configure: Regenerated.
18713
18714         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18715         Update tests that use readelf to use $READELF instead.
18716         * configure: Regenerated.
18717
18718 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18719
18720         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18721         if the result is not used.
18722
18723 2011-07-05  Andreas Jaeger  <aj@suse.de>
18724
18725         [BZ#9696]
18726         * stdlib/tst-strtod.c: Add testcase.
18727
18728 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18729
18730         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18731         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18732         The latter has a higher limit.  Take additional parameter to pass to
18733         the new function.
18734         (__pathconf): Pass file to __statfs_link_max.
18735         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18736         __statfs_link_max.
18737         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18738         __statfs_link_max.
18739
18740         [BZ #12868]
18741         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18742         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18743         Handle Lustre.
18744         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18745         (__statfs_filesize_max): Likewise.
18746         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18747
18748 2011-07-05  Andreas Jaeger  <aj@suse.de>
18749
18750         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18751
18752 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18753
18754         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18755         `status' variable.
18756         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18757         Likewise.
18758
18759 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18760
18761         * Makefile (strop-tests): Add strncat.
18762         * string/test-strncat.c: New file.
18763
18764 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18765
18766         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18767
18768 2011-06-21  Andreas Jaeger  <aj@suse.de>
18769
18770         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18771         Copy rule from iconvdata/Makefile.
18772
18773 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18774
18775         [BZ #12922]
18776         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18777         but no long options are defined, just return 'W'.
18778
18779 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18780
18781         [BZ #9696]
18782         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18783
18784 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18785
18786         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18787         netgroups to read.
18788         (innetgr): Likewise.
18789
18790 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18791
18792         * config.make.in (install_root): Default to $(DESTDIR).
18793
18794 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18795
18796         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18797
18798 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18799
18800         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18801
18802         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18803         containing directory rather than embedding absolute directory names.
18804
18805         * scripts/check-local-headers.sh: Rewritten using awk.
18806         Match by word, not by line.  Print error messages for matches.
18807         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18808
18809         * Makerules [shlib-lds-flags empty]:
18810         ($(common-objpfx)libc_pic.opts): New target.
18811         ($(common-objpfx)libc_pic.os.clean): New target.
18812         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18813
18814         * config.make.in (OBJCOPY): New variable.
18815         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18816         * configure: Regenerated.
18817
18818         * config.make.in (use-default-link): New variable.
18819         * configure.in (use_default_link): Grok --with-default-link to set it.
18820         * configure: Regenerated.
18821         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18822         (shlib-lds, shlib-lds-flags): Define to empty.
18823
18824         * Makerules (shlib-lds): New variable.
18825         (shlib-lds-flags): New variable.
18826         (build-shlib, build-moduile, build-module-asneeded): Use it.
18827         ($(common-objpfx)libc.so): Use $(shlib-lds).
18828         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18829         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18830
18831         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18832         DT_FLAGS/DT_FLAGS_1 with zero flags.
18833
18834         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18835         linker script munging.
18836
18837 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18838
18839         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18840         as 128-bit value.
18841         * crypt/sha512.c (sha512_process_block): Perform total addition using
18842         128-bit if possible.
18843         (__sha512_finish_ctx): Likewise.
18844         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18845         as 64-bit value.
18846         * crypt/sha256.c (SWAP64): Define.
18847         (sha256_process_block): Perform total addition using 64-bit if
18848         possible.
18849         (__sha256_finish_ctx): Likewise.
18850
18851 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18852
18853         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18854         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18855         * nscd/hstcache.c (cache_addhst): Likewise.
18856         * nscd/grpcache.c (cache_addgr): Likewise.
18857         * nscd/aicache.c (addhstaiX): Likewise
18858         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18859
18860 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18861
18862         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18863         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18864         * nscd/hstcache.c (cache_addhst): Likewise.
18865         * nscd/grpcache.c (cache_addgr): Likewise.
18866         * nscd/aicache.c (addhstaiX): Likewise
18867
18868 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18869
18870         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18871         domain only when needed.
18872
18873 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18874
18875         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18876         is always restored.
18877
18878 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18879
18880         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18881         are re-adding the entry.
18882         * nscd/servicescache.c (cache_addserv): Likewise.
18883
18884 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18885
18886         * sysdeps/generic/dl-irel.h: fix protection against multiple
18887         inclusions.
18888         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18889
18890 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18891
18892         [BZ #12935]
18893         * malloc/memusage.sh: Fix quoting in message.
18894         * debug/xtrace.sh: Likewise.
18895
18896         * configure.in: Remove support for --experimental-malloc option, make
18897         it the default.
18898         * config.make.in: Likewise.
18899         * malloc/Makefile: Likewise.
18900
18901 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18902
18903         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18904         two-byte characters.
18905
18906 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18907
18908         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18909         AC_CACHE_CHECK invocation.
18910         * configure: Regenerated.
18911
18912         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18913
18914 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18915
18916         [BZ #12350]
18917         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18918         bit from old_res_options.
18919
18920         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
18921
18922         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
18923         value type for setfct.
18924
18925 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18926
18927         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18928         __gettimeofday instead of gettimeofday.
18929
18930 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
18931
18932         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
18933
18934 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18935
18936         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
18937
18938         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
18939         info.
18940
18941 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18942
18943         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18944         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18945         strcpy-sse2-unaligned strncpy-sse2-unaligned
18946         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18947         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18948         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18949         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18950         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18951         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18952         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18953         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18954         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18955         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18956         (STRCPY): Support SSE2 and SSSE3 versions.
18957
18958 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18959
18960         [BZ #12874]
18961         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18962         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18963         kernels which artificially limit size of requests.
18964
18965 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18966
18967         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18968         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18969         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18970         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18971         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18972         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18973         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18974         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18975         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18976         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18977         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18978         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18979         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18980         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18981         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18982         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18983         Enable unaligned load optimization for Intel Core i3, i5 and i7
18984         processors.
18985         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18986         Define.
18987         (index_Fast_Unaligned_Load): Define.
18988         (HAS_FAST_UNALIGNED_LOAD): Define.
18989
18990 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18991
18992         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18993
18994 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18995
18996         [BZ #12907]
18997         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18998         until it is clear that the information is realy needed.
18999         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19000
19001 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19002
19003         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19004
19005 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19006
19007         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19008         /sys/devices/system/cpu/online if it is usable.
19009
19010         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19011         reading the information from the /proc filesystem to once a second.
19012
19013 2011-06-21  Andreas Jaeger  <aj@suse.de>
19014
19015         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19016         NULL after inclusion of kernel headers.
19017
19018 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19019
19020         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19021         calls to internal_setent.
19022
19023         [BZ #12885]
19024         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19025         addresses using gethostbyname4_r ignore IPv4 addresses.
19026
19027         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19028         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19029
19030         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19031
19032 2011-06-20  David S. Miller  <davem@davemloft.net>
19033
19034         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19035         inclusions.
19036         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19037
19038         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19039         (elf_irel): Use it.
19040         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19041         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19042         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19043         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19044         * sysdeps/x86_64/dl-irel.h: Likewise.
19045
19046         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19047         * elf/dl-sym.c: Likewise.
19048
19049 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19050
19051         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19052         need to dereference resplen2.
19053
19054 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19055
19056         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19057
19058 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19059
19060         * Makeconfig: Define vardbdir and inst_vardbdir.
19061         * nss/Makefile: Add rules to install db-Makefile.
19062
19063         * nss/nss_db/db-XXX.c: Cleanup.
19064
19065         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19066         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19067         GLIBC_PRIVATE.
19068         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19069         * nss/makedb.c: Implement -g option to specify that value strings
19070         are generated and should not be added to table iterated over for
19071         get*ent calls.
19072         * nss/nss_db/db-initgroups.c: New file.
19073
19074         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19075         interface.
19076
19077         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19078         (internal_getgrouplist): Adjust to name change.
19079         Update use_initgroups_entry if this is not the first call.
19080         * nss/databases.def: Add initgroups entry.
19081
19082         * nss/makedb.c (compute_tables): Check result of multiple hash table
19083         sizes to minimize maximum chain length.
19084
19085 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19086
19087         * Versions.def: Add entry for libnss_db.
19088         * shlib-versions: Likewise.
19089         * nss/Makefile: Add rules to build libnss_db.
19090         * nss/Versions: Add libnss_db information.  Organize libnss_files
19091         entries better.
19092         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19093         makedb progra.  Some minor improvements to generate smaller files.
19094         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19095         here from...
19096         * nss/makedb.c: ...here.
19097         Improve database format to be smaller and require less memory at
19098         runtime.
19099         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19100         db anymore.
19101         * nss/nss_db/db-netgrp.c: Likewise.
19102         * nss/nss_db/db-open.c: Likewise.
19103         * nss/nss_files/flies-XXX.x: Adjust comments.
19104         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19105         * nss/nss_files/files-grp.c: Likewise.
19106         * nss/nss_files/files-hosts.c: Likewise.
19107         * nss/nss_files/files-network.c: Likewise.
19108         * nss/nss_files/files-proto.c: Likewise.
19109         * nss/nss_files/files-pwd.c: Likewise.
19110         * nss/nss_files/files-rpc.c: Likewise.
19111         * nss/nss_files/files-service.c: Likewise.
19112         * nss/nss_files/files-sgrp.c: Likewise.
19113         * nss/nss_files/files-spwd.c: Likewise.
19114         * nss/nss_db/db-alias.c: Removed.
19115         * nss/nss_db/dummy-db.h: Removed.
19116
19117 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19118
19119         * nss/makedb.c: Rewritten to not use database library.
19120         * nss/Makefile: Update to build new makedb program.
19121
19122 2011-06-14  Andreas Jaeger  <aj@suse.de>
19123
19124         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19125         memset declaration.
19126
19127 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19128
19129         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19130         tmpbuf.
19131
19132 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19133
19134         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19135         * elf/Makefile ($(objpfx)ld.so): Likewise.
19136
19137         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19138         Don't list ld.so twice in dependencies.
19139
19140         * posix/bug-regex31.c: Include <stdlib.h>.
19141
19142         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19143
19144         * nis/nss_compat/compat-spwd.c
19145         (getspent_next_nss_netgr): Remove unused variable.
19146         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19147
19148         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19149         nonmembers" output to use the right array.
19150
19151         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19152
19153         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19154
19155         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19156         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19157         * catgets/gencat.c (read_input_file): Likewise.
19158         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19159
19160         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19161         variable definition inside #if's controlling its use.
19162
19163         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19164
19165         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19166
19167         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19168
19169         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19170         unreachable code.
19171
19172         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19173
19174         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19175         * configure: Regenerated.
19176
19177         * Makerules: Revert last change.
19178         * elf/Makefile: Likewise.
19179
19180 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19181
19182         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19183         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19184         (reloc-link): Likewise.
19185
19186 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19187
19188         * elf/Makefile: Add rules to build pldd.
19189         * elf/pldd.c: New file.
19190         * elf/pldd-xx.c: New file.
19191
19192 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19193
19194         * version.h: Update for 2.15 development version.
19195
19196 2011-06-07  David S. Miller  <davem@davemloft.net>
19197
19198         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19199         ifuncs.
19200         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19201         elf_machine_lazy_rel): Likewise.
19202         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19203         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19204         elf_machine_lazy_rel): Likewise.
19205         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19206         dl_hwcap via passed in argument.
19207         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19208         Likewise.
19209
19210 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19211
19212         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19213
19214 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19215
19216         [BZ #12849]
19217         * manual/fdl-1.1.texi: New file, verbatim from:
19218         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19219         * manual/lgpl-2.1.texi: New file, verbatim from:
19220         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19221         * manual/Makefile (licenses): New variable, list those new file names.
19222         (texis): Use it.
19223         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19224
19225         * manual/fdl.texi: File removed.
19226         * manual/lesser.texi: File removed.
19227         * manual/libc.texinfo (Copying, Documentation License):
19228         Use new @include file names, put @appendix directive before @include.
19229
19230 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19231
19232         [BZ #12841]
19233         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19234         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19235         (mq_open): Add __NTH.
19236
19237 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19238
19239         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19240         Assume Intel Core i3/i5/i7 processor if AVX is available.
19241
19242 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19243
19244         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19245         typo.
19246
19247 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19248
19249         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19250         memory.  Use alloca_account.  Fix memory leak when retrying.
19251
19252 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19253
19254         * version.h (RELEASE): Bump for 2.14 release.
19255         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19256
19257         * config.make.in (RANLIB): Remove entry.
19258
19259 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19260
19261         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19262         (libc.pot): Work around missing support for .ksh extension in xgettext.
19263
19264         [BZ #12684]
19265         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19266         if both request failed.
19267         (send_dg): In case of server errors clear resplen or *resplen2.
19268
19269         [BZ #12454]
19270         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19271         when there are multiple maps.
19272         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19273         (_dl_fini): Remove test here.
19274
19275         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19276
19277 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19278
19279         [BZ #12350]
19280         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19281         bit from old_res_options.
19282         (gaih_inet): Likewise.
19283
19284         [BZ #11099]
19285         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19286         as signed.
19287
19288         * resolv/res_init.c (res_setoptions): Make the code more compact.
19289
19290         [BZ #11558]
19291         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19292         set RES_USEVC.
19293
19294         [BZ #11634]
19295         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19296
19297         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19298
19299         [BZ #11781]
19300         * malloc/malloc.h: Declare malloc hook variables as volatile.
19301
19302         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19303         in last patch.
19304
19305         [BZ #11799]
19306         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19307         raise in the comment.
19308         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19309         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19310         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19311
19312 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19313
19314         [BZ #12811]
19315         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19316         grow the buffers more if it already has to be sufficient.
19317         (build_wcs_upper_buffer): Likewise.
19318         * posix/regexec.c (check_matching): Likewise.
19319         (clean_state_log_if_needed): Likewise.
19320         (extend_buffers): Don't enlarge buffers beyond size of the input
19321         buffer.
19322         Patches mostly by Emil Wojak <emil@wojak.eu>.
19323         * posix/bug-regex32.c: New file.
19324         * posix/Makefile (tests): Add bug-regex32.
19325
19326         * locale/findlocale.c (_nl_find_locale): Return right away if
19327         _nl_explode_name failed.
19328         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19329
19330         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19331
19332         * debug/xtrace.sh: Unify messages.
19333         * malloc/memusage.sh: Likewise.
19334
19335         [BZ #12813]
19336         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19337         time symbol from vDSO.  Substitute with vsyscall if not available.
19338         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19339         __vdso_time.
19340
19341         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19342         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19343         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19344         Add sendmmsg and internal_sendmmsg.
19345         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19346         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19347         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19348
19349         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19350         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19351         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19352
19353 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19354
19355         [BZ #12813]
19356         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19357         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19358         available.
19359         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19360         __vdso_getcpu.
19361
19362         [BZ #12814]
19363         * iconvdata/Makefile (tests): Add bug-iconv9.
19364         * iconvdata/bug-iconv9.c: New file.
19365
19366 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19367
19368         [BZ #12814]
19369         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19370
19371 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19372
19373         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19374         (struct user_regs_struct): Change intcs field back to cs.
19375
19376 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19377
19378         * po/ja.po: Update from translation team.
19379
19380 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19381
19382         [BZ #12795]
19383         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19384         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19385
19386 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19387
19388         * stdlib/longlong.h: Update from GCC.
19389
19390 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19391
19392         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19393         parameter name.
19394         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19395         Add parameter name.
19396         (__sysconf): Pass it down.
19397
19398 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19399
19400         [BZ #12671]
19401         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19402         some situations.
19403         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19404         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19405         add in in __libc_use_alloca calls.  Adjust callers.
19406         (glob): Use malloc in some situations.
19407
19408         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19409         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19410         pltexit.
19411
19412 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19413
19414         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19415         and CLOCK_BOOTTIME_ALARM.
19416
19417         [BZ #12782]
19418         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19419         is returned.
19420
19421         * string/_strerror.c (__strerror_r): Print negative errors as signed
19422         numbers.
19423
19424         [BZ #12777]
19425         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19426         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19427         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19428
19429         * configure.in: Fix typo in redirection and correct removal of test
19430         files in two cases.
19431
19432         [BZ #12788]
19433         * locale/setlocale.c (new_composite_name): Fix test to check for
19434         identical name of all categories.
19435
19436         [BZ #12792]
19437         * libio/filedoalloc.c (local_isatty): New function.
19438         (_IO_file_doallocate): Use local_isatty.
19439         * stdio-common/perror.c (perror): In case a new stream is used
19440         forward the stream error.
19441         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19442         error flag.
19443
19444 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19445
19446         [BZ #11869]
19447         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19448         alloca.
19449         * include/alloca.h (extend_alloca_account): Define.
19450
19451         [BZ #11857]
19452         * posix/regex.h: Fix comments with documentation of user-accessible
19453         fields after compilation and describe correct free'ing of pattern
19454         after re_compile_pattern.
19455         Patch by Reuben Thomas <rrt@sc3d.org>.
19456
19457 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19458
19459         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19460         and -mno-altivec to prevent the compiler from using Altivec and/or
19461         VSX instructions when the corresponding registers are not available.
19462
19463 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19464
19465         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19466
19467 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19468
19469         * libio/freopen.c (freopen): Use __dup2, not dup2.
19470         * libio/freopen64.c (freopen64): Likewise.
19471
19472 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19473
19474         [BZ #12775]
19475         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19476         * math/Makefile (tests): Add test-powl.
19477         (CFLAGS-test-powl.c): Define.
19478         * math/test-powl.c: New file.
19479
19480 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19481
19482         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19483
19484 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19485
19486         [BZ #11837]
19487         * iconvdata/gb18030.c: Update to GB18020-2005.
19488
19489 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19490
19491         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19492         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19493         Patch by Aharon Robbins <arnold@skeeve.com>.
19494
19495         [BZ #11892]
19496         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19497         on the stack.
19498
19499         [BZ #11895]
19500         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19501         through underflows.
19502
19503         [BZ #12766]
19504         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19505         point to strings before performing equality test for error_one_per_line
19506         mode.
19507
19508         [BZ #11697]
19509         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19510
19511         [BZ #11820]
19512         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19513         (struct user_fpregs_struct): Avoid __uint*_t types.
19514
19515         [BZ #6420]
19516         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19517         symbol info.  Use it instead of calling _dl_addr locally.
19518         (lock_and_info): New function.
19519         (tr_freehook): Call lock_and_info and pass symbol info as additional
19520         parameter to tr_where.
19521         (tr_mallochook): Likewise.
19522         (tr_reallochook): Likewise.
19523         (tr_memalignhook): Likewise.
19524
19525         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19526         used and couldn't be at all thread-safe.
19527
19528 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19529
19530         * libio/freopen.c (freopen): Don't close old file descriptor
19531         before the new one is opened.  Instead dup the new file descriptor
19532         to the old one after the new stream is created.
19533         * libio/freopen64.c (freopen64): Likewise.
19534         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19535         * libio/fileops.c (_IO_new_file_close_it): Handle new
19536         _IO_FLAGS2_NOCLOSE flag.
19537         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19538         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19539         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19540         _IO_FLAGS2_NOCLOSE flag.
19541         * include/unistd.h: Add hidden_proto for dup3.
19542         Define __have_dup3.
19543         * io/dup3.c: Define hidden symbol.
19544         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19545
19546         [BZ #7101]
19547         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19548         when an incomplete long option is used.
19549         * posix/tst-getopt_long1.c: New file.
19550         * posix/Makefile (tests): Add tst-getopt_long1.
19551
19552         [BZ #10138]
19553         * scripts/config.guess: Update from autoconf-2.68.
19554         * scripts/config.sub: Likewise.
19555
19556         [BZ #10157]
19557         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19558         tests into ...
19559         (has_cpuclock): ...this.  New function.
19560         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19561         macro here based on has_cpuclock code.
19562
19563         [BZ #10149]
19564         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19565         First byte (not low byte) is now always NUL.
19566         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19567
19568         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19569         Use non-cancelable interfaces.
19570
19571         [BZ #9809]
19572         * locale/iso-639.def: Add entry for Sorani.
19573
19574         [BZ #11901]
19575         * include/stdlib.h: Move include protection to the right place.
19576         Define abort_msg_s.  Declare __abort_msg with it.
19577         * stdlib/abort.c (__abort_msg): Adjust type.
19578         * assert/assert.c (__assert_fail_base): New function.  Majority
19579         of code from __assert_fail.  Allocate memory for __abort_msg with
19580         mmap.
19581         (__assert_fail): Now call __assert_fail_base.
19582         * assert/assert-perr.c: Remove bulk of implementation.  Use
19583         __assert_fail_base.
19584         * include/assert.hL Declare __assert_fail_base.
19585         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19586         mmap.
19587         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19588
19589 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19590
19591         [BZ #11952]
19592         [BZ #12453]
19593         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19594         until all modules are registered in the DTV.
19595         * elf/Makefile: Add rules to build and run tst-tls19.
19596         * elf/tst-tls19.c: New file.
19597         * elf/tst-tls19mod1.c: New file.
19598         * elf/tst-tls19mod2.c: New file.
19599         * elf/tst-tls19mod3.c: New file.
19600         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19601
19602         [BZ #12083]
19603         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19604         correctly.
19605
19606         [BZ #12601]
19607         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19608         two-byte sequence errors.
19609         * iconvdata/Makefile (tests): Add bug-iconv8.
19610         * iconvdata/bug-iconv8.c: New file.
19611
19612         [BZ #12626]
19613         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19614         buf2 definition.
19615
19616         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19617
19618         [BZ #12432]
19619         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19620         (dummy_getcfa): New function.
19621         (init): Get _Unwind_GetCFA address, use dummy if not found.
19622         (backtrace_helper): In recursion check, also check whether CFA changes.
19623         (__backtrace): Completely initialize arg.
19624
19625         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19626         storing incomplete byte sequence in state object.  Avoid testing for
19627         guaranteed too small input if we know there is enough data available.
19628
19629 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19630
19631         * Makeconfig (+link-pie): Indent.
19632         * Rules (binaries-pie): Define if $(have-fpie) and
19633         $(build-shared).
19634         (binaries-shared): Also filter out $(binaries-pie).
19635         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19636         * nscd/Makefile (others-pie): Add nscd.
19637         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19638         ($(objpfx)nscd): Remove command override.
19639         * login/Makefile (others-pie): Add pt_chown.
19640         ($(objpfx)pt_chown): Remove command override.
19641         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19642         remove command overrides.
19643
19644 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19645
19646         * libio/tst_putwc.c: Fix error messages.
19647
19648         [BZ #12724]
19649         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19650         currently writing and seek to current position when not.
19651         * libio/Makefile (tests): Add bug-fclose1.
19652         * libio/bug-fclose1.c: New file.
19653
19654 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19655
19656         [BZ #12511]
19657         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19658         don't set DF_1_NODELETE here.
19659         (do_lookup_x): When entering new entry test for copy relocation
19660         and if necessary set DF_1_NODELETE flag.
19661         * elf/tst-unique4.cc: New file.
19662         * elf/tst-unique4.h: New file.
19663         * elf/tst-unique4lib.cc: New file.
19664         * elf/Makefile: Add rules to build and run tst-unique4.
19665         Patch by Piotr Bury <pbury@goahead.com>.
19666
19667 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19668
19669         [BZ #12052]
19670         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19671
19672         [BZ #12625]
19673         * misc/mntent_r.c (addmntent): Flush the stream after the output
19674
19675         [BZ #12393]
19676         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19677         (is_trusted_path_normalize): Skip initial colon.  Append slash
19678         to empty buffer.  Duplicate is_trusted_path code but allow
19679         constructed patch to be prefix.
19680         (is_dst): Allow $ORIGIN followed by /.
19681         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19682         Correct testing of result of is_trusted_path_normalize
19683         (decompose_rpath): Fix warning.
19684
19685 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19686
19687         [BZ #11257]
19688         * grp/initgroups.c (internal_getgrouplist): When we found the service
19689         list through the initgroups entry in nsswitch.conf do not always
19690         continue on a successful lookup.  Don't always use the
19691         __nss_group_database value if it is set.
19692         * nss/nsswitch.conf (initgroups): Change action for successful db
19693         lookup to continue for compatibility.
19694
19695 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19696
19697         [BZ #11532]
19698         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19699         and CP774 modules.
19700         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19701         and CP774 modules.
19702         * iconvdata/tst-tables.sh: Likewise.
19703         * iconvdata/cp770.c: New file.
19704         * iconvdata/cp771.c: New file.
19705         * iconvdata/cp772.c: New file.
19706         * iconvdata/cp773.c: New file.
19707         * iconvdata/cp774.c: New file.
19708         * iconvdata/testdata/CP770: New file.
19709         * iconvdata/testdata/CP770..UTF8: New file.
19710         * iconvdata/testdata/CP771: New file.
19711         * iconvdata/testdata/CP771..UTF8: New file.
19712         * iconvdata/testdata/CP772: New file.
19713         * iconvdata/testdata/CP772..UTF8: New file.
19714         * iconvdata/testdata/CP773: New file.
19715         * iconvdata/testdata/CP773..UTF8: New file.
19716         * iconvdata/testdata/CP774: New file.
19717         * iconvdata/testdata/CP774..UTF8: New file.
19718
19719         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19720         END CHARMAP line.
19721         * iconvdata/gen-8bit-gap.sh: Likewise.
19722         * iconvdata/gen-8bit.sh: Likewise.
19723
19724         * locale/iso-639.def: Add ary entry.
19725
19726         [BZ #11258]
19727         * locale/C-translit.h.in: Add U20A1 transliteration.
19728
19729         [BZ #12178]
19730         * locale/iso-639.def: Add wae entry.
19731         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19732
19733         [BZ #12545]
19734         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19735         for n.
19736
19737         [BZ #12711]
19738         * locale/C-translit.h.in: Add entry for U20B9.
19739         Patch by pravin.d.s@gmail.com.
19740
19741 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19742
19743         [BZ #12713]
19744         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19745         ENAMETOOLONG use generic getcwd.
19746         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19747         in rtld.  Use *stat64.
19748         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19749         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19750         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19751         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19752         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19753         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19754         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19755         __fstatat64 macros.
19756         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19757         * dirent/rewinddir.c: Add libc_hidden_def.
19758         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19759         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19760
19761         * include/dirent.h (__alloc_dir): Add flags parameter.
19762         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19763         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19764         __alloc_dir.
19765         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19766         from fdopendir if O_CLOEXEC is already set.
19767
19768 2011-03-15  Alan Modra  <amodra@gmail.com>
19769
19770         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19771         l_tls_firstbyte_offset non-zero.  Save padding offset in
19772         l_tls_firstbyte_offset for later use.
19773         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19774         freeing static tls block.
19775
19776 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19777
19778         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19779         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19780         being defined by the kernel headers.
19781
19782 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19783
19784         [BZ #12734]
19785         * resolv/resolv.h: Define RES_NOTLDQUERY.
19786         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19787         no-tld-query and set RES_NOTLDQUERY.
19788         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19789         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19790         modern BIND to search name as TLD unless forbidden.
19791
19792 2011-05-07  Petr Baudis  <pasky@suse.cz>
19793             Ulrich Drepper  <drepper@gmail.com>
19794
19795         [BZ #12393]
19796         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19797         (is_trusted_path): ...to here.
19798         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19799         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19800         using is_trusted_path_normalize() in setuid scripts.
19801
19802 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19803
19804         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19805         __BEGIN/__END_DECLS.
19806
19807 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19808
19809         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19810         NSS_STATUS_NOTFOUND if no record was found.
19811
19812 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19813
19814         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19815         (headers-not-in-tirpc): Remove rpc/netdb.h
19816         * resolv/netdb.h: Revert last change.
19817
19818 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19819
19820         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19821         circular dependency between libgcc.a and libc.a.
19822
19823 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19824
19825         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19826         * nis/Makefile: Don't install rpcsvc/*.
19827         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19828         instead of <rpc/types.h>.
19829         (MAXHOSTNAMELEN): Define.
19830
19831 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19832
19833         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19834
19835 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19836
19837         [BZ #12714]
19838         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19839         gethostbyname4_r when IPv6 results are possible.
19840
19841 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19842
19843         [BZ #12723]
19844         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19845         _PC_PIPE_BUF handling.
19846
19847 2011-04-30  Bruno Haible  <bruno@clisp.org>
19848
19849         [BZ #12717]
19850         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19851         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19852         to 'int'.
19853         * inet/getnameinfo.c (getnameinfo): Likewise.
19854
19855 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19856
19857         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19858         to groups setting in database lookup.
19859         * nss/nsswitch.conf: Add initgroups entry.
19860
19861 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19862
19863         [BZ #12685]
19864         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19865         mode string.
19866         Patch by Eric Blake <eblake@redhat.com>.
19867
19868 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19869
19870         * sunrpc/Makefile (need-export-routines): Add svc_run.
19871         (routines): Remove svc_run.
19872         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19873         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19874         * sunrpc/svc_run.c (svc_run): Likewise.
19875         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19876
19877 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19878
19879         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19880         problem in reallocation in last patch.
19881
19882 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19883
19884         * sunrpc/Makefile: Move inclusion of Rules.
19885
19886 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19887
19888         * nss/nss_files/files-initgroups.c: New file.
19889         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19890         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19891         _nss_files_initgroups_dyn.
19892
19893 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19894
19895         * elf/elf.h (R_ARM_IRELATIVE): Define.
19896
19897 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19898
19899         * po/ru.po: Update from translation team.
19900
19901 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19902
19903         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19904         dependencies.
19905
19906 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19907
19908         [BZ #12653]
19909         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19910         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19911         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19912         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19913         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19914
19915 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19916
19917         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19918         differing bytes.
19919         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
19920         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
19921         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19922
19923 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19924
19925         [BZ #12420]
19926         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
19927         storing it.
19928         * stdlib/bug-getcontext.c: New file.
19929         * stdlib/Makefile: Add rules to build and run bug-getcontext.
19930
19931 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19932
19933         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
19934         instructions into .machine "z9-109".
19935         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19936         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19937
19938 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19939
19940         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
19941         between environment variables and auxiliary vector.
19942
19943 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
19944
19945         * Makefile: Add rules to build linkobj/libc.so.
19946         * include/libc-symbols.h: Define libc_hidden_nolink.
19947         * include/rpc/auth.h: Mark functions which are to be hidden.
19948         * include/rpc/auth_des.h: Likewise.
19949         * include/rpc/auth_unix.h: Likewise.
19950         * include/rpc/clnt.h: Likewise.
19951         * include/rpc/des_crypt.h: Likewise.
19952         * include/rpc/key_prot.h: Likewise.
19953         * include/rpc/pmap_clnt.h: Likewise.
19954         * include/rpc/pmap_prot.h: Likewise.
19955         * include/rpc/pmap_rmt.h: Likewise.
19956         * include/rpc/rpc_msg.h: Likewise.
19957         * include/rpc/svc.h: Likewise.
19958         * include/rpc/svc_auth.h: Likewise.
19959         * include/rpc/xdr.h: Likewise.
19960         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19961         * nss/Makefile: Likewise.
19962         * sunrpc/Makefile: Don't install headers.  Build library with normal
19963         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19964         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19965         for the compat linking library.  Remove use of INTDEF/INTUSE.
19966         * sunrpc/auth_none.c: Likewise.
19967         * sunrpc/auth_unix.c: Likewise.
19968         * sunrpc/authdes_prot.c: Likewise.
19969         * sunrpc/authuxprot.c: Likewise.
19970         * sunrpc/clnt_gen.c: Likewise.
19971         * sunrpc/clnt_perr.c: Likewise.
19972         * sunrpc/clnt_raw.c: Likewise.
19973         * sunrpc/clnt_simp.c: Likewise.
19974         * sunrpc/clnt_tcp.c: Likewise.
19975         * sunrpc/clnt_udp.c: Likewise.
19976         * sunrpc/clnt_unix.c: Likewise.
19977         * sunrpc/des_crypt.c: Likewise.
19978         * sunrpc/des_soft.c: Likewise.
19979         * sunrpc/get_myaddr.c: Likewise.
19980         * sunrpc/key_call.c: Likewise.
19981         * sunrpc/key_prot.c: Likewise.
19982         * sunrpc/netname.c: Likewise.
19983         * sunrpc/pm_getmaps.c: Likewise.
19984         * sunrpc/pm_getport.c: Likewise.
19985         * sunrpc/pmap_clnt.c: Likewise.
19986         * sunrpc/pmap_prot.c: Likewise.
19987         * sunrpc/pmap_prot2.c: Likewise.
19988         * sunrpc/pmap_rmt.c: Likewise.
19989         * sunrpc/publickey.c: Likewise.
19990         * sunrpc/rpc_cmsg.c: Likewise.
19991         * sunrpc/rpc_common.c: Likewise.
19992         * sunrpc/rpc_dtable.c: Likewise.
19993         * sunrpc/rpc_prot.c: Likewise.
19994         * sunrpc/rpc_thread.c: Likewise.
19995         * sunrpc/rtime.c: Likewise.
19996         * sunrpc/svc.c: Likewise.
19997         * sunrpc/svc_auth.c: Likewise.
19998         * sunrpc/svc_authux.c: Likewise.
19999         * sunrpc/svc_raw.c: Likewise.
20000         * sunrpc/svc_run.c: Likewise.
20001         * sunrpc/svc_simple.c: Likewise.
20002         * sunrpc/svc_tcp.c: Likewise.
20003         * sunrpc/svc_udp.c: Likewise.
20004         * sunrpc/svc_unix.c: Likewise.
20005         * sunrpc/svcauth_des.c: Likewise.
20006         * sunrpc/xcrypt.c: Likewise.
20007         * sunrpc/xdr.c: Likewise.
20008         * sunrpc/xdr_array.c: Likewise.
20009         * sunrpc/xdr_float.c: Likewise.
20010         * sunrpc/xdr_intXX_t.c: Likewise.
20011         * sunrpc/xdr_mem.c: Likewise.
20012         * sunrpc/xdr_rec.c: Likewise.
20013         * sunrpc/xdr_ref.c: Likewise.
20014         * sunrpc/xdr_sizeof.c: Likewise.
20015         * sunrpc/xdr_stdio.c: Likewise.
20016
20017 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20018
20019         [BZ #12650]
20020         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20021         * sysdeps/ia64/dl-tls.h: Likewise.
20022         * sysdeps/powerpc/dl-tls.h: Likewise.
20023         * sysdeps/s390/dl-tls.h: Likewise.
20024         * sysdeps/sh/dl-tls.h: Likewise.
20025         * sysdeps/sparc/dl-tls.h: Likewise.
20026         * sysdeps/x86_64/dl-tls.h: Likewise.
20027         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20028
20029 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20030
20031         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20032         rpath element also skip the following colon.
20033         (expand_dynamic_string_token): Add is_path parameter and pass
20034         down to DL_DST_REQUIRED and _dl_dst_substitute.
20035         (decompose_rpath): Call expand_dynamic_string_token with
20036         non-zero is_path.  Ignore empty rpaths.
20037         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20038         with zero is_path.
20039
20040 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20041
20042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20043         Make cancelable.
20044
20045 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20046
20047         [BZ #12655]
20048         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20049         Patch by Filipe David Manana <fdmanana@apache.org>.
20050
20051 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20052
20053         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20054         Maintain aligned stack.
20055         (CHECK_RSP): Remove unused macro.
20056
20057 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20058
20059         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20060         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20061
20062 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20063
20064         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20065
20066         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20067
20068 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20069
20070         [BZ #12518]
20071         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20072         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20073         * sysdeps/x86_64/memmove.c: New file.
20074         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20075         (memcpy): Renamed to ...
20076         (__new_memcpy): This.
20077         (memcpy): Provide GLIBC_2_14 memcpy.
20078         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20079         (memcpy): Provide GLIBC_2_2_5 memcpy.
20080
20081 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20082
20083         [BZ #12631]
20084         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20085
20086 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20087
20088         * misc/syncfs.c: New file.
20089         * misc/Makefile (routines): Add syncfs.
20090         * posix/unistd.h: Declare syncfs.
20091         * sysdeps/unix/syscalls.list: Add syncfs.
20092
20093 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20094
20095         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20096         open_by_handle_at.
20097         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20098         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20099         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20100         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20101         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20102         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20103         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20104
20105 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20106
20107         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20108         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20109         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20110         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20111         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20112         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20113         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20114
20115         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20116         sync_file_range.c with -fexceptions.
20117         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20118         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20119         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20120         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20121         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20122         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20123         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20124         sync_file_range as cancellation point
20125         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20126         now a wrapper around __call_sync_file_range with cancellation handling.
20127         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20128         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20129         function name to __call_sync_file_range.
20130         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20131         Add call_sync_file_range.
20132
20133 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20134
20135         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20136         bits/timex.h.
20137
20138 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20139
20140         * iconv/iconv.h: Fix typo in comment.
20141         * io/fcntl.h: Likewise.
20142         * libio/stdio.h: Likewise.
20143         * posix/spawn.h: Likewise.
20144         * posix/unistd.h: Likewise.
20145         * stdlib/stdlib.h: Likewise.
20146         * time/time.h: Likewise.
20147         * wcsmbs/wchar.h: Likewise.
20148
20149         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20150         open_by_handle): Add.
20151         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20152         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20153         Augment a few comments.
20154         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20155         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20156         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20157         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20158         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20159         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20160         open_by_handle.
20161
20162         * io/fcntl.h (AT_EMPTY_PATH): Define.
20163
20164 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20165
20166         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20167         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20168         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20169         to...
20170         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20171         * Versions.def: Add GLIBC_2.14.
20172         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20173         Export.
20174
20175 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20176
20177         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20178         round counter.
20179         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20180
20181 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20182
20183         [BZ #12597]
20184         * string/test-strncmp.c (do_page_test): New function.
20185         (check2): Likewise.
20186         (test_main): Call check2.
20187         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20188
20189 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20190
20191         [BZ #12587]
20192         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20193         Handle cache information in CPU leaf 4.
20194         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20195
20196 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20197
20198         [BZ #12583]
20199         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20200         character representation.
20201         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20202
20203 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20204
20205         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20206         END(__isnan) to END(__isnanf) to match function entry point/label
20207         EALIGN(__isnanf,...).
20208
20209 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20210
20211         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20212
20213 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20214
20215         [BZ #12510]
20216         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20217         copy from the symbol referenced in the relocation to initialize the
20218         used variable.
20219         Patch by Piotr Bury <pbury@goahead.com>.
20220         * elf/Makefile: Add rules to build and tst-unique3.
20221         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20222         * elf/tst-unique3.cc: New file.
20223         * elf/tst-unique3.h: New file.
20224         * elf/tst-unique3lib.cc: New file.
20225         * elf/tst-unique3lib2.cc: New file.
20226
20227         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20228
20229 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20230
20231         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20232         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20233         to _start.
20234
20235 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20236
20237         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20238         to-be-loaded object along a path to loader is ld.so.
20239
20240 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20241             Ulrich Drepper  <drepper@gmail.com>
20242
20243         * sysdeps/x86_64/memset.S: After aligning destination, code
20244         branches to different locations depending on the value of
20245         misalignment, when multiarch is enabled. Fix this.
20246
20247 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20248
20249         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20250         Set _x86_64_preferred_memory_instruction for AMD processsors.
20251         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20252         Set bit_Prefer_SSE_for_memop for AMD processors.
20253
20254 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20255
20256         * libio/fmemopen.c (fmemopen): Optimize a bit.
20257
20258 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20259
20260         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20261
20262 2011-03-03  Roland McGrath  <roland@redhat.com>
20263
20264         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20265
20266 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20267
20268         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20269         __bzero_ultra1 instead of __memset_ultra1.
20270
20271 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20272             Ulrich Drepper  <drepper@gmail.com>
20273
20274         [BZ #12509]
20275         * include/link.h (struct link_map): Add l_orig_initfini.
20276         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20277         returning unsuccessfully.
20278         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20279         close of a file loaded at startup, restore the original l_initfini
20280         list.
20281         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20282         list, store the pointer.
20283         * elf/Makefile ($(objpfx)noload-mem): New rule.
20284         (noload-ENV): Define.
20285         (tests): Add $(objpfx)noload-mem.
20286         * elf/noload.c: Include <memcheck.h>.
20287         (main): Call mtrace.  Close all opened handles.
20288
20289 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20290
20291         [BZ #12454]
20292         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20293         dependencies are missing.
20294
20295 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20296
20297         Fix __if_freereq crash: Unlike the generic version which uses free,
20298         Hurd needs munmap.
20299         * sysdeps/mach/hurd/ifreq.h: New file.
20300
20301 2011-01-27  Petr Baudis  <pasky@suse.cz>
20302             Ulrich Drepper  <drepper@gmail.com>
20303
20304         [BZ 12445]#
20305         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20306         to extend_alloca().
20307         * stdio-common/bug23.c: New file.
20308         * stdio-common/Makefile (tests): Add bug23.
20309
20310 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20311             Ulrich Drepper  <drepper@gmail.com>
20312
20313         [BZ #12489]
20314         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20315         before performing relro protection.  At old place add assertion
20316         to make sure nothing changed.
20317
20318 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20319             Glauber de Oliveira Costa  <glommer@gmail.com>
20320
20321         * elf/elf.h: Add new ARM TLS relocs.
20322
20323 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20324
20325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20326         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20327         cast from r3.
20328         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20329         'tests' variable.
20330         * sysdeps/wordsize-64/tst-writev.c: New file.
20331
20332 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20333
20334         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20335         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20336         insns in _dl_start to prevent a TOC reference before relocs are
20337         resolved.
20338
20339 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20340
20341         [BZ #12469]
20342         * Makeconfig: Remove RANLIB definition.
20343         * Makerules: Don't use RANLIB.
20344         * aclocal.m4: Remove ranlib test.
20345         * configure.in: No need to check for ranlib.
20346         * elf/rtld-Rules: Don't use RANLIB.
20347
20348 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20349
20350         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20351         protection macro.
20352         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20353         inclusion protection macro.
20354
20355         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20356         SIGRTMIN and SIGRTMAX and print information in that case only when
20357         SIGRTMIN is defined.
20358
20359 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20360
20361         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20362         arginfo fn returning -1.
20363
20364         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20365         and thousands string is zero terminated.
20366
20367 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20368
20369         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20370         sysdeps/unix/sysv/linux/bits/socket.h.
20371
20372 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20373
20374         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20375         (__CPU_COUNT): Remove old macros.
20376         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20377         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20378         (__CPU_ALLOC, __CPU_FREE): Add macros.
20379         (__sched_cpualloc, __sched_cpufree): Add declarations.
20380
20381 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20382
20383         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20384         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20385         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20386         (readdhstai): Return value of addhstaiX call.
20387         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20388         (addgrbyX): Return value returned by cache_addgr.
20389         (readdgrbyname): Return value returned by addgrbyX.
20390         (readdgrbygid): Likewise.
20391         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20392         (addpwbyX): Return value returned by cache_addpw.
20393         (readdpwbyname): Return value returned by addhstbyX.
20394         (readdpwbyuid): Likewise.
20395         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20396         (addservbyX): Return value returned by cache_addserv.
20397         (readdservbyname): Return value returned by addservbyX:
20398         (readdservbyport): Likewise.
20399         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20400         (addhstbyX): Return value returned by cache_addhst.
20401         (readdhstbyname): Return value returned by addhstbyX.
20402         (readdhstbyaddr): Likewise.
20403         (readdhstbynamev6): Likewise.
20404         (readdhstbyaddrv6): Likewise.
20405         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20406         (readdinitgroups): Return value returned by addinitgroupsX.
20407         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20408         (prune_cache): Keep track of timeout value of re-added entries.
20409         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20410         * nscd/nscd.h: Adjust prototypes of readd* functions.
20411
20412 2011-02-04  Roland McGrath  <roland@redhat.com>
20413
20414         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20415         (nis_stats): Likewise.
20416         * nis/nis_modify.c (nis_modify): Likewise.
20417         * nis/nis_remove.c (nis_remove): Likewise.
20418         * nis/nis_add.c (nis_add): Likewise.
20419
20420         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20421
20422         * posix/fnmatch_loop.c: Add some consts.
20423
20424         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20425
20426 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20427
20428         [BZ #12460]
20429         * config.make.in (config-cflags-novzeroupper): Define.
20430         * configure.in: Substitute libc_cv_cc_novzeroupper.
20431         * elf/Makefile (AVX-CFLAGS): Define.
20432         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20433         (CFLAGS-tst-auditmod4a.c): Likewise.
20434         (CFLAGS-tst-auditmod4b.c): Likewise.
20435         (CFLAGS-tst-auditmod6b.c): Likewise.
20436         (CFLAGS-tst-auditmod6c.c): Likewise.
20437         (CFLAGS-tst-auditmod7b.c): Likewise.
20438         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20439
20440 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20441
20442         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20443         function to the callback.
20444         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20445
20446 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20447
20448         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20449         of errno.
20450
20451 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20452
20453         [BZ #11724]
20454         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20455         of constructors.
20456         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20457         of destructors.
20458         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20459
20460         [BZ #11724]
20461         * elf/Makefile: Add rules to build and run new test.
20462         * elf/tst-initorder.c: New file.
20463         * elf/tst-initorder.exp: New file.
20464         * elf/tst-initordera1.c: New file.
20465         * elf/tst-initordera2.c: New file.
20466         * elf/tst-initordera3.c: New file.
20467         * elf/tst-initordera4.c: New file.
20468         * elf/tst-initorderb1.c: New file.
20469         * elf/tst-initorderb2.c: New file.
20470         * elf/tst-order-a1.c: New file.
20471         * elf/tst-order-a2.c: New file.
20472         * elf/tst-order-a3.c: New file.
20473         * elf/tst-order-a4.c: New file.
20474         * elf/tst-order-b1.c: New file.
20475         * elf/tst-order-b2.c: New file.
20476         * elf/tst-order-main.c: New file.
20477         New test case by George Gensure <werkt0@gmail.com>.
20478
20479 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20480
20481         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20482         decoding ACE if AI_CANONIDN.
20483
20484 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20485
20486         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20487
20488 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20489
20490         * version.h (RELEASE): Bump for 2.13 release.
20491         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20492
20493         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20494
20495         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20496         MADV_NOHUGEPAGE.
20497         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20498         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20499         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20500         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20501         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20502         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20503
20504         * posix/getconf.c: Update copyright year.
20505         * catgets/gencat.c: Likewise.
20506         * csu/version.c: Likewise.
20507         * debug/catchsegv.sh: Likewise.
20508         * debug/xtrace.sh: Likewise.
20509         * elf/ldconfig.c: Likewise.
20510         * elf/ldd.bash.in: Likewise.
20511         * elf/sprof.c (print_version): Likewise.
20512         * iconv/iconv_prog.c: Likewise.
20513         * iconv/iconvconfig.c: Likewise.
20514         * locale/programs/locale.c: Likewise.
20515         * locale/programs/localedef.c: Likewise.
20516         * malloc/memusage.sh: Likewise.
20517         * malloc/mtrace.pl: Likewise.
20518         * nscd/nscd.c (print_version): Likewise.
20519         * nss/getent.c: Likewise.
20520
20521         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20522         PF_CAIF, and PF_ALG.
20523         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20524
20525 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20526
20527         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20528         (modules-names): Use them.
20529         (ifunc-test-modules, ifunc-pie-tests): Define.
20530         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20531         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20532         (test-extras): Likewise.
20533         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20534         $(compile-command.c).
20535         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20536         (all-built-dso): Define.
20537         (check-textrel.out, check-execstack.out): Depend on it.
20538
20539         * configure.in: Don't override --enable-multi-arch.
20540
20541 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20542
20543         [BZ #6812]
20544         * nscd/hstcache.c (tryagain): Define.
20545         (cache_addhst): Return tryagain not notfound for temporary errors.
20546         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20547         failed.
20548
20549 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20550
20551         [BZ #10563]
20552         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20553         to make the syscall.
20554         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20555
20556         [BZ #12378]
20557         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20558         and fall back to matching as normal character if the string ends before
20559         the matching ']' is found.  This is what POSIX requires.
20560         * posix/testfnm.c: Adjust test result.
20561         * posix/globtest.sh: Adjust test result.  Add new test.
20562         * posix/tst-fnmatch.input: Likewise.
20563         * posix/tst-fnmatch2.c: Add new test.
20564
20565 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20566
20567         * elf/Makefile (check-execstack): Revert last change.  Depend on
20568         check-execstack.h.
20569         (check-execstack.h): New target.
20570         (generated): Add check-execstack.h.
20571         * elf/check-execstack.c: Include "check-execstack.h".
20572         (main): Revert last change.
20573         (handle_file): Return zero if GNU_STACK is absent and
20574         DEFAULT_STACK_PERMS doesn't include PF_X.
20575
20576 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20577
20578         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20579         in child fails because the descriptor is already closed.
20580         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20581         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20582         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20583
20584         [BZ #12397]
20585         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20586         syscall.
20587
20588         [BZ #10484]
20589         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20590         temporary buffer used to handle multi lookups locally.
20591         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20592
20593 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20594
20595         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20596         loader is ld.so.
20597
20598 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20599
20600         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20601         alignment for SSE2.
20602
20603 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20604
20605         [BZ #12394]
20606         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20607         characters.  When rounding increased number of integer digits recompute
20608         number of groups.
20609         * stdio-common/tst-grouping.c: New file.
20610         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20611
20612 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20613
20614         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20615         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20616
20617         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20618         void.
20619         * bits/select.h: Likewise.
20620
20621 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20622
20623         * po/ja.po: Update from translation team.
20624
20625 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20626
20627         [BZ #11155]
20628         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20629         implementation just like for lxstat, fxstatat, et al.
20630
20631 2010-12-27  Jim Meyering  <meyering@redhat.com>
20632
20633         [BZ #12348]
20634         * posix/regexec.c (build_trtable): Return failure indication upon
20635         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20636
20637 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20638
20639         [BZ #12201]
20640         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20641         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20642         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20643         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20644
20645         [BZ #12207]
20646         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20647
20648         [BZ #12204]
20649         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20650         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20651
20652 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20653
20654         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20655         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20656         script has SORT_BY_INIT_PRIORITY.
20657         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20658         NO_CTORS_DTORS_SECTIONS is defined.
20659         * elf/soinit.c: Likewise.
20660         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20661         NO_CTORS_DTORS_SECTIONS is defined.
20662         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20663         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20664         * sysdeps/sh/init-first.c: Likewise.
20665         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20666
20667 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20668
20669         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20670         always use the slow path.
20671
20672 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20673
20674         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20675         similar rule which adds the sysdep directories to the header search in
20676         order to pick up the correct platform stackinfo.h.
20677         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20678         perform test if it is, otherwise return successfully without testing.
20679         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20680         DEFAULT_STACK_PERMS define in stackinfo.h.
20681         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20682         defined in stackinfo.h.
20683         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20684         DEFAULT_STACK_PERMS defined in stackinfo.h.
20685         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20686         * sysdeps/ia64/stackinfo.h: Likewise.
20687         * sysdeps/s390/stackinfo.h: Likewise.
20688         * sysdeps/sh/stackinfo.h: Likewise.
20689         * sysdeps/sparc/stackinfo.h: Likewise.
20690         * sysdeps/x86_64/stackinfo.h: Likewise.
20691         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20692         PF_X for powerpc64.  Retain PF_X for powerpc32.
20693
20694 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20695
20696         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20697         accurately.
20698         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20699         GETDENTS_64BIT_ALIGNED.
20700
20701 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20702
20703         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20704
20705 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20706
20707         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20708         _GNU_SOURCE.
20709
20710         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20711         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20712         Remove __restrict.
20713         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20714         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20715
20716 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20717
20718         [BZ #11655]
20719         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20720         are initialized.
20721
20722 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20723
20724         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20725
20726 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20727
20728         * po/it.po: Update from translation team.
20729
20730 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20731
20732         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20733         unused codes.
20734
20735 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20736
20737         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20738
20739 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20740
20741         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20742         specially.
20743         (gaih_getanswer_slice): Likewise.
20744
20745 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20746
20747         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20748
20749 2010-05-31  Petr Baudis  <pasky@suse.cz>
20750
20751         [BZ #11149]
20752         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20753         silently even in the chroot mode.
20754
20755 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20756
20757         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20758         last patch a bit.  Pretty printing
20759
20760 2010-05-31  Petr Baudis <pasky@suse.cz>
20761
20762         [BZ #10085]
20763         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20764         initialization of skip_initgroups_dyn.
20765
20766 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20767
20768         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20769         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20770
20771 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20772
20773         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20774
20775 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20776
20777         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20778         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20779         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20780         ($(objpfx)tst-fnmatch-mem): New rule.
20781         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20782         * posix/tst-fnmatch.c (main): Call mtrace.
20783
20784 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20785
20786         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20787         Support Intel processor model 6 and model 0x2c.
20788
20789 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20790
20791         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20792           signed comparison.
20793
20794 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20795
20796         [BZ #12205]
20797         * string/test-strncasecmp.c (check_result): New function.
20798         (do_one_test): Use it.
20799         (check1): New function.
20800         (test_main): Use it.
20801         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20802         Support strcasecmp and strncasecmp.
20803
20804 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20805
20806         [BZ #12194]
20807         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20808         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20809
20810 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20811
20812         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20813         IFUNC support.
20814         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20815         memset-x86-64.
20816         * sysdeps/x86_64/multiarch/bzero.S: New file.
20817         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20818         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20819         * sysdeps/x86_64/multiarch/memset.S: New file.
20820         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20821         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20822         Set bit_Prefer_SSE_for_memop for Intel processors.
20823         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20824         Define.
20825         (index_Prefer_SSE_for_memop): Define.
20826         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20827
20828 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20829
20830         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20831         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20832
20833 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20834
20835         [BZ #12191]
20836         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20837         (__x86_64_raw_data_cache_size_half): Likewise.
20838         (__x86_64_raw_shared_cache_size): Likewise.
20839         (__x86_64_raw_shared_cache_size_half): Likewise.
20840
20841         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20842         (__x86_64_raw_data_cache_size_half): Likewise.
20843         (__x86_64_raw_shared_cache_size): Likewise.
20844         (__x86_64_raw_shared_cache_size_half): Likewise.
20845         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20846         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20847         and __x86_64_raw_shared_cache_size_half.  Round
20848         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20849         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20850         to multiple of 256 bytes.
20851
20852 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20853
20854         [BZ #12167]
20855         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20856         of inacessible symlinks.  Verify result of symlink before returning it.
20857         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20858         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20859
20860 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20861
20862         * math/math.h (isinf): Fix typo in comment.
20863
20864 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20865
20866         * po/da.po: Update from translation team.
20867
20868 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20869
20870         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20871         is added to the list.
20872
20873 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20874             Ulrich Drepper  <drepper@gmail.com>
20875
20876         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20877         the global list here.  Move code to...
20878         (_dl_add_to_namespace_list): ...here.  New function.
20879         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20880         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20881         * elf/dl-load.c (lose): Don't remove the element from the list.
20882         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20883         (_dl_map_object): Likewise.
20884
20885 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20886
20887         [BZ #12159]
20888         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20889         into all bytes of SSE register.
20890         Patch by Richard Li <richardpku@gmail.com>.
20891
20892 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20893
20894         [BZ #12140]
20895         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20896         perturbing.
20897
20898 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20899
20900         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20901         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20902         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20903         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20905         submachine.
20906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20907
20908 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20909
20910         * include/dlfcn.h (__RTLD_SECURE): Define.
20911         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20912         mode & __RTLD_SECURE instead.
20913         (open_path): Rename preloaded parameter to secure.
20914         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20915         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20916         * elf/dl-deps.c (openaux): Likewise.
20917         * elf/rtld.c (struct map_args): Remove is_preloaded.
20918         (map_doit): Don't use it.
20919         (dl_main): Likewise.
20920         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
20921         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
20922
20923 2010-09-09  Andreas Schwab  <schwab@redhat.com>
20924
20925         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
20926         (sysd-rules-targets): Remove duplicates.
20927         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
20928         rtld-%.$o dependency.
20929
20930 2010-10-18  Andreas Schwab  <schwab@redhat.com>
20931
20932         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
20933         _dl_map_object do it.
20934
20935 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
20936
20937         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
20938         fast fma builtins, define the macros in the C99 standard.
20939         (FP_FAST_FMAF): Likewise.
20940         (FP_FAST_FMAL): Likewise.
20941         * sysdeps/x86_64/bits/mathdef.h: Likewise.
20942
20943         * bits/mathdef.h: Update copyright year.
20944         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20945
20946 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20947
20948         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20949         builtins, define the macros in the C99 standard.
20950         (FP_FAST_FMAF): Likewise.
20951         (FP_FAST_FMAL): Likewise.
20952         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20953         multiply/add.
20954         (FP_FAST_FMAF): Likewise.
20955
20956 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20957
20958         [BZ #3268]
20959         * math/libm-test.inc (fma_test): Some new testcases.
20960         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20961         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20962         y and infinite z.  Do multiplication by C already in long double.
20963         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20964         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20965         y and infinite z.  Do bitwise or of inexact bit into u.d.
20966         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20967         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20968         * sysdeps/i386/fpu/s_fma.S: Removed.
20969         * sysdeps/i386/fpu/s_fmal.S: Removed.
20970
20971 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20972
20973         [BZ #3268]
20974         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20975         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20976         computation is not scheduled after fetestexcept.  Fix value
20977         of minimum denormal long double.
20978
20979 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20980
20981         [BZ #3268]
20982         * math/libm-test.inc (fma_test): Add some more tests.
20983         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20984         correctly.
20985
20986 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20987
20988         * scripts/data/localplt-s390-linux-gnu.data: New file.
20989         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20990
20991 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20992
20993         [BZ #3268]
20994         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20995         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20996         instead of dbl-64.
20997         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20998         inlines.
20999         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21000         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21001         if one of x and y is very large and the other is subnormal.
21002         * sysdeps/s390/fpu/s_fmaf.c: New file.
21003         * sysdeps/s390/fpu/s_fma.c: New file.
21004         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21005         * sysdeps/powerpc/fpu/s_fma.S: New file.
21006         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21007         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21008         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21009
21010 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21011
21012         [BZ #3268]
21013         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21014         fma tests.
21015         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21016         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21017         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21018         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21019         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21020         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21021         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21022
21023 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21024
21025         [BZ #12078]
21026         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21027         * posix/bug-regex31.input: Add test case.
21028
21029 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21030
21031         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21032         * posix/bug-regex31.input: New file.
21033
21034         [BZ #12078]
21035         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21036         (parse_sub_exp): Fix last change, use postorder.
21037
21038         * posix/bug-regex31.c: New file.
21039         * posix/Makefile: Add rules to build and run bug-regex31.
21040
21041         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21042
21043         [BZ #12078]
21044         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21045
21046         [BZ #12108]
21047         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21048         to have entries in sys_siglist.
21049
21050         [BZ #12093]
21051         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21052         be NULL.
21053
21054 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21055
21056         [BZ #3268]
21057         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21058         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21059         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21060         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21061         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21062         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21063         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21064         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21065         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21066         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21067         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21068         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21069         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21070         * math/ftestexcept.c (fetestexcept): Likewise.
21071         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21072         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21073         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21074         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21075         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21076         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21077         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21078
21079 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21080
21081         [BZ #12107]
21082         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21083         newline.
21084
21085 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21086
21087         * string/bug-strstr1.c: New file.
21088         * string/Makefile: Add rules to build and run bug-strstr1.
21089
21090 2010-10-05  Eric Blake  <eblake@redhat.com>
21091
21092         [BZ #12092]
21093         * string/str-two-way.h (two_way_long_needle): Always clear memory
21094         when skipping input due to the shift table.
21095
21096 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21097
21098         [BZ #12005]
21099         * malloc/mcheck.c: Handle large requests.
21100
21101         [BZ #12077]
21102         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21103         for strncmp and strncasecmp.
21104         * string/stratcliff.c: Add tests for strcmp and strncmp.
21105         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21106
21107 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21108
21109         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21110         __set_fpscr.
21111
21112 2010-09-30  Andreas Jaeger  <aj@suse.de>
21113
21114         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21115         (CGROUP_SUPER_MAGIC): Define.
21116         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21117         Handle btrfs and cgroup file systems.
21118         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21119         Likewise.
21120
21121 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21122
21123         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21124         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21125
21126 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21127
21128         [BZ #12067]
21129         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21130         trying to locate the ELF header.
21131
21132 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21133
21134         [BZ #11611]
21135         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21136         Mask out sign-bit copies when constructing f_fsid.
21137
21138 2010-09-24  Petr Baudis <pasky@suse.cz>
21139
21140         * debug/stack_chk_fail_local.c: Add missing licence exception.
21141         * debug/warning-nop.c: Likewise.
21142
21143 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21144
21145         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21146         implementing getdents64 using getdents syscall, set d_type if
21147         __ASSUME_GETDENTS32_D_TYPE.
21148
21149 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21150
21151         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21152         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21153
21154 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21155
21156         [BZ #12037]
21157         * posix/unistd.h: Undo change of feature selection for ftruncate from
21158         2010-01-11.
21159
21160 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21161
21162         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21163         detection.
21164
21165 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21166
21167         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21168         fanotify_mark.
21169         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21170
21171 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21172
21173         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21174         variables after CHECK_SP call.
21175         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21176
21177 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21178             Ulrich Drepper  <drepper@redhat.com>
21179
21180         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21181         re-relocationg ld.so.
21182         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21183         _dl_init_paths call.
21184         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21185         here anymore.
21186
21187 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21188
21189         * resolv/res_init.c (__res_vinit): Count the default server we added.
21190
21191 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21192             Ulrich Drepper  <drepper@redhat.com>
21193
21194         [BZ #11968]
21195         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21196         (____longjmp_chk): Use %ebx for saving value across system call.
21197         Add unwind info.
21198
21199 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21200
21201         * manual/Makefile: Don't mix pattern rules with normal rules.
21202
21203 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21204
21205         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21206         operation.
21207         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21208         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21209         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21210         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21211         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21212         Likewise.
21213
21214 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21215
21216         [BZ #11979]
21217         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21218         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21219
21220 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21221
21222         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21223         * sysdeps/x86_64/addmul_1.S: Likewise.
21224         * sysdeps/x86_64/lshift.S: Likewise.
21225         * sysdeps/x86_64/mul_1.S: Likewise.
21226         * sysdeps/x86_64/rshift.S: Likewise.
21227         * sysdeps/x86_64/sub_n.S: Likewise.
21228         * sysdeps/x86_64/submul_1.S: Likewise.
21229
21230 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21231
21232         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21233         Define __sched_param instead of SCHED_* and sched_param when
21234         <bits/sched.h> is included with __need_schedparam defined.
21235         * bits/sched.h [__need_schedparam]
21236         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21237         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21238         (__defined_schedparam): Define to 1.
21239         (__sched_param): New structure, identical to sched_param.
21240         (__need_schedparam): Undefine.
21241
21242 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21243
21244         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21245         (epoll_create1): Declare.
21246
21247         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21248
21249 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21250
21251         [BZ #7066]
21252         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21253         shifting retval into place.
21254
21255 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21256
21257         * nis/rpcsvc/nis.h: Update copyright notice.
21258         * nis/rpcsvc/nis.x: Likewise.
21259         * nis/rpcsvc/nis_callback.h: Likewise.
21260         * nis/rpcsvc/nis_callback.x: Likewise.
21261         * nis/rpcsvc/nis_object.x: Likewise.
21262         * nis/rpcsvc/nis_tags.h: Likewise.
21263         * nis/rpcsvc/yp.h: Likewise.
21264         * nis/rpcsvc/yp.x: Likewise.
21265         * nis/rpcsvc/ypupd.h: Likewise.
21266         * nis/yp_xdr.c: Likewise.
21267         * nis/ypupdate_xdr.c: Likewise.
21268
21269         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21270         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21271         (pmap_getport): Use __libc_rpc_getport.
21272         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21273         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21274         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21275
21276 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21277
21278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21279         fanotify_mark.
21280
21281 2010-08-27  Roland McGrath  <roland@redhat.com>
21282
21283         * sysdeps/i386/i686/multiarch/Makefile
21284         (CFLAGS-varshift.c): New variable.
21285
21286 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21287
21288         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21289         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21290
21291         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21292
21293         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21294
21295 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21296
21297         * sysdeps/x86_64/strlen.S: Unroll the loop.
21298         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21299         strlen-sse2 strlen-sse2-bsf.
21300         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21301         __strlen_no_bsf if bit_Slow_BSF is set.
21302         (__strlen_sse42): Removed.
21303         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21304         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21305
21306 2010-08-25  Roland McGrath  <roland@redhat.com>
21307
21308         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21309         * sysdeps/x86_64/multiarch/varshift.c: New file.
21310         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21311         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21312         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21313         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21314
21315 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21316
21317         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21318         strlen-sse2 strlen-sse2-bsf.
21319         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21320         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21321         (__strlen_sse2): Removed.
21322         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21323         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21324         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21325         bit_Slow_BSF for Atom.
21326         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21327         (index_Slow_BSF): Define.
21328         (HAS_SLOW_BSF): Define.
21329
21330 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21331
21332         [BZ #10851]
21333         * resolv/res_init.c (__res_vinit): When no server address at all
21334         is given default to loopback.
21335
21336 2010-08-24  Roland McGrath  <roland@redhat.com>
21337
21338         * configure.in: Remove config-name.h generation.
21339         * configure: Regenerated.
21340         * config-name.in: File removed.
21341         * scripts/config-uname.sh: New file.
21342         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21343         ($(objdir)config-name.h): New target.
21344
21345         * sunrpc/rpc_parse.h: Avoid nested comment.
21346
21347 2010-08-24  Richard Henderson  <rth@redhat.com>
21348             Ulrich Drepper  <drepper@redhat.com>
21349             H.J. Lu  <hongjiu.lu@intel.com>
21350
21351         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21352         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21353         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21354         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21355         _mm_alignr_epi8 with _mm_loadu_si128.
21356         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21357         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21358         (__m128i_shift_right): Removed.
21359         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21360         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21361         * sysdeps/x86_64/multiarch/varshift.h: New file.
21362         * sysdeps/x86_64/multiarch/varshift.S: New file.
21363
21364 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21365
21366         * configure.in: Move assembler checks to before sysdep dir checking.
21367
21368 2010-08-20  Petr Baudis  <pasky@suse.cz>
21369
21370         * LICENSES: Sync the sunrpc license.
21371
21372 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21373
21374         * sunrpc/auth_des.c: Update copyright notice once again.
21375         * sunrpc/auth_none.c: Likewise.
21376         * sunrpc/auth_unix.c: Likewise.
21377         * sunrpc/authdes_prot.c: Likewise.
21378         * sunrpc/authuxprot.c: Likewise.
21379         * sunrpc/bindrsvprt.c: Likewise.
21380         * sunrpc/clnt_gen.c: Likewise.
21381         * sunrpc/clnt_perr.c: Likewise.
21382         * sunrpc/clnt_raw.c: Likewise.
21383         * sunrpc/clnt_simp.c: Likewise.
21384         * sunrpc/clnt_tcp.c: Likewise.
21385         * sunrpc/clnt_udp.c: Likewise.
21386         * sunrpc/clnt_unix.c: Likewise.
21387         * sunrpc/des_crypt.c: Likewise.
21388         * sunrpc/des_soft.c: Likewise.
21389         * sunrpc/get_myaddr.c: Likewise.
21390         * sunrpc/getrpcport.c: Likewise.
21391         * sunrpc/key_call.c: Likewise.
21392         * sunrpc/key_prot.c: Likewise.
21393         * sunrpc/openchild.c: Likewise.
21394         * sunrpc/pm_getmaps.c: Likewise.
21395         * sunrpc/pm_getport.c: Likewise.
21396         * sunrpc/pmap_clnt.c: Likewise.
21397         * sunrpc/pmap_prot.c: Likewise.
21398         * sunrpc/pmap_prot2.c: Likewise.
21399         * sunrpc/pmap_rmt.c: Likewise.
21400         * sunrpc/rpc/auth.h: Likewise.
21401         * sunrpc/rpc/auth_unix.h: Likewise.
21402         * sunrpc/rpc/clnt.h: Likewise.
21403         * sunrpc/rpc/des_crypt.h: Likewise.
21404         * sunrpc/rpc/key_prot.h: Likewise.
21405         * sunrpc/rpc/netdb.h: Likewise.
21406         * sunrpc/rpc/pmap_clnt.h: Likewise.
21407         * sunrpc/rpc/pmap_prot.h: Likewise.
21408         * sunrpc/rpc/pmap_rmt.h: Likewise.
21409         * sunrpc/rpc/rpc.h: Likewise.
21410         * sunrpc/rpc/rpc_des.h: Likewise.
21411         * sunrpc/rpc/rpc_msg.h: Likewise.
21412         * sunrpc/rpc/svc.h: Likewise.
21413         * sunrpc/rpc/svc_auth.h: Likewise.
21414         * sunrpc/rpc/types.h: Likewise.
21415         * sunrpc/rpc/xdr.h: Likewise.
21416         * sunrpc/rpc_clntout.c: Likewise.
21417         * sunrpc/rpc_cmsg.c: Likewise.
21418         * sunrpc/rpc_common.c: Likewise.
21419         * sunrpc/rpc_cout.c: Likewise.
21420         * sunrpc/rpc_dtable.c: Likewise.
21421         * sunrpc/rpc_hout.c: Likewise.
21422         * sunrpc/rpc_main.c: Likewise.
21423         * sunrpc/rpc_parse.c: Likewise.
21424         * sunrpc/rpc_parse.h: Likewise.
21425         * sunrpc/rpc_prot.c: Likewise.
21426         * sunrpc/rpc_sample.c: Likewise.
21427         * sunrpc/rpc_scan.c: Likewise.
21428         * sunrpc/rpc_scan.h: Likewise.
21429         * sunrpc/rpc_svcout.c: Likewise.
21430         * sunrpc/rpc_tblout.c: Likewise.
21431         * sunrpc/rpc_util.c: Likewise.
21432         * sunrpc/rpc_util.h: Likewise.
21433         * sunrpc/rpcinfo.c: Likewise.
21434         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21435         * sunrpc/rpcsvc/key_prot.x: Likewise.
21436         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21437         * sunrpc/rpcsvc/mount.x: Likewise.
21438         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21439         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21440         * sunrpc/rpcsvc/rex.x: Likewise.
21441         * sunrpc/rpcsvc/rstat.x: Likewise.
21442         * sunrpc/rpcsvc/rusers.x: Likewise.
21443         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21444         * sunrpc/rpcsvc/spray.x: Likewise.
21445         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21446         * sunrpc/rtime.c: Likewise.
21447         * sunrpc/svc.c: Likewise.
21448         * sunrpc/svc_auth.c: Likewise.
21449         * sunrpc/svc_authux.c: Likewise.
21450         * sunrpc/svc_raw.c: Likewise.
21451         * sunrpc/svc_run.c: Likewise.
21452         * sunrpc/svc_simple.c: Likewise.
21453         * sunrpc/svc_tcp.c: Likewise.
21454         * sunrpc/svc_udp.c: Likewise.
21455         * sunrpc/svc_unix.c: Likewise.
21456         * sunrpc/svcauth_des.c: Likewise.
21457         * sunrpc/xcrypt.c: Likewise.
21458         * sunrpc/xdr.c: Likewise.
21459         * sunrpc/xdr_array.c: Likewise.
21460         * sunrpc/xdr_float.c: Likewise.
21461         * sunrpc/xdr_mem.c: Likewise.
21462         * sunrpc/xdr_rec.c: Likewise.
21463         * sunrpc/xdr_ref.c: Likewise.
21464         * sunrpc/xdr_sizeof.c: Likewise.
21465         * sunrpc/xdr_stdio.c: Likewise.
21466
21467         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21468         handling.
21469
21470 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21471
21472         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21473
21474 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21475
21476         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21477         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21478         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21479         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21480         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21481         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21482         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21483         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21484         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21485         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21486         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21487         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21488         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21489         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21490
21491 2010-07-26  Anton Blanchard  <anton@samba.org>
21492
21493         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21494         * malloc/arena.c (heap_trim): Likewise.
21495
21496 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21497
21498         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21499         here.  Not...
21500         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21501         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21502
21503 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21504
21505         * sysdeps/i386/elf/Makefile: New file.
21506
21507 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21508
21509         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21510         from fanotify_init.
21511         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21512         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21513
21514 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21515
21516         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21517         of strncasecmp_l.
21518         * sysdeps/multiarch/strcmp.S: Likewise.
21519
21520 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21521
21522         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21523         strncase_l-nonascii.
21524         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21525         Add strncase_l-ssse3.
21526         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21527         * sysdeps/x86_64/strcmp.S: Likewise.
21528         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21529         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21530         * sysdeps/x86_64/strncase.S: New file.
21531         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21532         * sysdeps/x86_64/strncase_l.S: New file.
21533         * string/Makefile (strop-tests): Add strncasecmp.
21534         * string/test-strncasecmp.c: New file.
21535
21536         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21537         warning.
21538
21539         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21540         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21541
21542 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21543
21544         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21545
21546 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21547
21548         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21549         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21550         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21551
21552 2010-05-01  Alan Modra  <amodra@gmail.com>
21553
21554         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21555         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21556         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21557         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21558         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21559         tidying.  Don't tail-call __sigjmp_save for static lib.
21560         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21561         save location.
21562         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21563         (CALL_MCOUNT): Add eh info, and nop after bl.
21564         (TAIL_CALL_SYSCALL_ERROR): New macro.
21565         (PSEUDO_RET): Use it.
21566         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21567         Correct save location of integer regs and cr.
21568         (_dl_profile_resolve): Correct cr save location.  Delete nops
21569         after bl when SHARED.  Reduce cfi size a little by better
21570         placement of cfi directives.
21571         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21572         make a stack frame.  Instead use parm save area as a temp.
21573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21574         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21576         Don't make a stack frame for parent, use parm save area.
21577         Increase child stack frame to 112 bytes.  Don't save unused reg,
21578         and adjust reg usage.  Set up cfi on error recovery and
21579         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21581         (__makecontext): Add dummy nop after jump to exit.
21582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21583         Use correct parm save area and cr save, reduce stack frame.
21584         Correct cfi for possible PSEUDO_RET frame setup.
21585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21586         Branch to local label emitted by PSEUDO_RET rather than
21587         __syscall_error.
21588
21589 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21590
21591         [BZ #11904]
21592         * locale/programs/locale.c (print_assignment): New function.
21593         (show_locale_vars): Use it.
21594
21595 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21596
21597         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21598         field.
21599         (struct statfs64): Likewise.
21600         (_STATFS_F_FLAGS): Define.
21601         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21602         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21603         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21604         (ST_VALID): Define locally.
21605         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21606         __statvfs_getflags, use the provided value.
21607         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21608         __ASSUME_STATFS_F_FLAGS.
21609
21610         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21611
21612         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21613         Add sys/fanotify.h.
21614         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21615         fanotify_mask for GLIBC_2.13.
21616         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21617         fanotify_init and fanotify_mark.
21618         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21619         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21620
21621         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21622         Add prlimit.
21623         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21624         prlimit64 for GLIBC_2.13.
21625         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21626         prlimit64.
21627         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21628         syscall.
21629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21630         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21631         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21632         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21633         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21634         add prlimit alias.
21635         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21636
21637         [BZ #11903]
21638         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21639         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21640
21641         * nss/Makefile: Add rules to build and run tst-nss-test1.
21642         * shlib-versions: Add entry for libnss_test1.
21643         * nss/nss_test1.c: New file.
21644         * nss/tst-nss-test1.c: New file.
21645
21646         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21647         (__nss_configure_lookup): Set appropriate entry in
21648         __nss_configure_lookup to true.
21649         * nss/nsswitch.h: Define enum with indeces of databases in
21650         databases and __nss_database_custom arrays.  Declare
21651         __nss_database_custom.
21652         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21653         to avoid using nscd when custom rules are installed.
21654         * nss/getXXbyYY_r.c: Likewise.
21655         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21656
21657         * nss/nss_files/files-parse.c: Whitespace fixes.
21658
21659 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21660
21661         [BZ #11883]
21662         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21663         * posix/fnmatch_loop.c: Likewise.
21664
21665 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21666
21667         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21668         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21669         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21670         * Versions.def [GLIBC_2.13]: Add.
21671
21672 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21673
21674         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21675         Also fail if tpwd after pwuid call is NULL.
21676
21677 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21678
21679         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21680         when converting to ms.
21681
21682 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21683
21684         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21685         EOPNOTSUPP errors with ENOTTY.
21686         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21687         EOPNOTSUPP errors with ENOTTY.
21688
21689 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21690
21691         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21692         Add strcasecmp_l-ssse3.
21693         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21694         strcasecmp.
21695         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21696         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21697         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21698
21699 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21700
21701         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21702
21703         * string/Makefile (strop-tests): Add strcasecmp.
21704         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21705         strcasecmp_l-nonascii.
21706         (gen-as-const-headers): Add locale-defines.sym.
21707         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21708         * sysdeps/x86_64/strcasecmp.S: New file.
21709         * sysdeps/x86_64/strcasecmp_l.S: New file.
21710         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21711         * sysdeps/x86_64/locale-defines.sym: New file.
21712         * string/test-strcasecmp.c: New file.
21713
21714         * string/test-strcasestr.c: Test both ends of the range of characters.
21715         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21716
21717 2010-07-29  Roland McGrath  <roland@redhat.com>
21718
21719         [BZ #11856]
21720         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21721
21722 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21723
21724         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21725         for ld.so.
21726
21727 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21728
21729         * manual/memory.texi (Malloc Tunable Parameters): Document
21730         M_PERTURB.
21731
21732 2010-07-26  Roland McGrath  <roland@redhat.com>
21733
21734         [BZ #11840]
21735         * configure.in (-fgnu89-inline check): Set and substitute
21736         gnu89_inline, not libc_cv_gnu89_inline.
21737         * configure: Regenerated.
21738         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21739
21740 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21741
21742         * string/test-strnlen.c: New file.
21743         * string/Makefile (strop-tests): Add strnlen.
21744         * string/tester.c (test_strnlen): Add a few more test cases.
21745         * string/tst-strlen.c: Better error reporting.
21746
21747         * sysdeps/x86_64/strnlen.S: New file.
21748
21749 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21750
21751         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21752         lower-latency instructions.
21753
21754 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21755
21756         * string/test-strcasestr.c: New file.
21757         * string/test-strstr.c: New file.
21758         * string/Makefile (strop-tests): Add strstr and strcasestr.
21759         * string/str-two-way.h: Don't undefine MAX.
21760         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21761
21762 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21763
21764         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21765         strcasestr-nonascii.
21766         (CFLAGS-strcasestr-nonascii.c): Define.
21767         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21768         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21769         Remove unused attribute.
21770
21771 2010-07-20  Roland McGrath  <roland@redhat.com>
21772
21773         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21774         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21775         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21776         like LD_HWCAP_MASK can disable hwcaps.
21777
21778 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21779
21780         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21781
21782 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21783
21784         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21785         call in strcasestr.
21786         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21787         __strcasestr_sse42_nonascii.
21788         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21789         strcasestr-nonascii.c.
21790         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21791
21792 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21793
21794         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21795         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21796         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21797         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21798
21799 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21800
21801         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21802         fcntl.
21803
21804 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21805
21806         [BZ #11577]
21807         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21808         dl_signal_cerror.
21809
21810 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21811
21812         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21813         _PC_PIPE_BUF using F_GETPIPE_SZ.
21814
21815 2010-07-05  Roland McGrath  <roland@redhat.com>
21816
21817         * manual/arith.texi (Rounding Functions): Fix rint description
21818         implicit in round description.
21819
21820 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21821
21822         * elf/Makefile: Fix linking for a few tests to make recent linker
21823         happy.
21824
21825 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21826
21827         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21828         $(common-objpfx)libc_nonshared.a.
21829
21830 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21831
21832         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21833         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21834         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21835         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21836         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21837         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21838         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21839         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21854         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21855         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21856         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21857         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21858         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21859         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21860         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21861         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21862         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21863         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21864         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21865         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21880
21881 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21882
21883         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21884         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21885         * string/memmove.c (memmove): Renamed to ...
21886         (MEMMOVE): ...this.  Default to memmove.
21887         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21888         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21889         (END_CHK): Define.
21890         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21891         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21892         mempcpy-ssse3-back memmove-ssse3-back.
21893         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21894         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21895         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21896         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21897         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21898         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21899         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21900         * sysdeps/x86_64/multiarch/memmove.c: New file.
21901         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21902         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21903         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21904         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21905         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21906         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21907         Define.
21908         (index_Fast_Copy_Backward): Define.
21909         (HAS_ARCH_FEATURE): Define.
21910         (HAS_FAST_REP_STRING): Define.
21911         (HAS_FAST_COPY_BACKWARD): Define.
21912
21913 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21914
21915         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21916         Restore proper fallback handling.
21917
21918 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
21919
21920         [BZ #11701]
21921         * posix/group_member.c (__group_member): Correct checking loop.
21922
21923         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
21924         OOM in getpwuid_r correctly.  Return error number when the caller
21925         should return, otherwise -1.
21926         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
21927         call returning > 0 value.
21928         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
21929
21930 2010-06-07  Andreas Schwab  <schwab@redhat.com>
21931
21932         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
21933         libc_nonshared.a from targets in modules-names.
21934
21935 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
21936
21937         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
21938         requires it.
21939
21940 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
21941
21942         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
21943         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
21944         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21945         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21946
21947 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21948
21949         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21950
21951 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21952
21953         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21954         and F_GETPIPE_SZ.
21955         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21956         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21957         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21958         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21959         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21960         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21961
21962 2010-06-14  Roland McGrath  <roland@redhat.com>
21963
21964         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21965
21966 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21967
21968         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21969         __REDIRECT followed by __THROW.
21970         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21971         * posix/getopt.h (getopt): Likewise.
21972
21973 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21974
21975         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21976         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21977         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21978         in AT_FLAGS.
21979         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21980         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21981
21982 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21983
21984         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21985
21986 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21987
21988         [BZ #11640]
21989         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21990         Properly check family and model.
21991
21992 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21993
21994         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21995
21996 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21997
21998         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21999
22000 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22001
22002         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22003         symbol reference.
22004
22005 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22006
22007         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22008         symbol reference.
22009
22010 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22011
22012         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22013         and internal_recvmmsg.
22014         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22015         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22016         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22017         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22018
22019         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22020         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22021         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22022
22023 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22024
22025         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22026
22027 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22028
22029         POWER7 optimizations.
22030         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22031         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22032
22033 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22034
22035         * version.h: Update for 2.13 development version.
22036
22037 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22038
22039         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22040         exceptions.  Return 0.
22041
22042 2010-05-07  Roland McGrath  <roland@redhat.com>
22043
22044         * elf/ldconfig.c (main): Add a const.
22045
22046 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22047
22048         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22049         (args_options): Add no-idn option.
22050         (ahosts_keys_int): Add idn_flags to ai_flags.
22051         (parse_option): Handle 'i' option to clear idn_flags.
22052
22053         * malloc/malloc.c (_int_free): Possible race in the most recently
22054         added check.  Only act on the data if no current modification
22055         happened.
22056
22057 See ChangeLog.17 for earlier changes.