conformtest: Fix isnan function return type.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
2
3         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
4         Change function return type to int.
5
6         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
7         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
8         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
9         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
10         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
11         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
12         [!POSIX] (posix_madvise): Likewise.
13         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
14         && !UNIX98].
15         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
16         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
17         (mode_t): Likewise.
18         (posix_mem_offset): Likewise.
19         (posix_typed_mem_get_info): Likewise.
20         (posix_typed_mem_open): Likewise.
21
22         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
23         Change condition to [XOPEN2K8].
24
25         * conform/conformtest.pl: Preprocess allow-header data with -x c
26         instead of from stdin.
27         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
28         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
29         [C99-based standards] (cerfc): Likewise.
30         [C99-based standards] (cexp2): Likewise.
31         [C99-based standards] (cexpm1): Likewise.
32         [C99-based standards] (clog10): Likewise.
33         [C99-based standards] (clog1p): Likewise.
34         [C99-based standards] (clog2): Likewise.
35         [C99-based standards] (clgamma): Likewise.
36         [C99-based standards] (ctgamma): Likewise.
37         [C99-based standards] (cerff): Likewise.
38         [C99-based standards] (cerfcf): Likewise.
39         [C99-based standards] (cexp2f): Likewise.
40         [C99-based standards] (cexpm1f): Likewise.
41         [C99-based standards] (clog10f): Likewise.
42         [C99-based standards] (clog1pf): Likewise.
43         [C99-based standards] (clog2f): Likewise.
44         [C99-based standards] (clgammaf): Likewise.
45         [C99-based standards] (ctgammaf): Likewise.
46         [C99-based standards] (cerfl): Likewise.
47         [C99-based standards] (cerfcl): Likewise.
48         [C99-based standards] (cexp2l): Likewise.
49         [C99-based standards] (cexpm1l): Likewise.
50         [C99-based standards] (clog10l): Likewise.
51         [C99-based standards] (clog1pl): Likewise.
52         [C99-based standards] (clog2l): Likewise.
53         [C99-based standards] (clgammal): Likewise.
54         [C99-based standards] (ctgammal): Likewise.
55         * conform/data/inttypes.h-data [C99-based standards]: Include
56         stdint.h-data.  Remove all expectations for stdint.h contents.
57         [C99-based standards] (PRI*): Do not allow.
58         [C99-based standards] (SCN*): Likewise.
59         [C99-based standards] (*_t): Likewise.
60         [C99-based-standards] (PRId8): Expect macro.
61         [C99-based-standards] (PRIi8): Likewise.
62         [C99-based-standards] (PRIo8): Likewise.
63         [C99-based-standards] (PRIu8): Likewise.
64         [C99-based-standards] (PRIx8): Likewise.
65         [C99-based-standards] (PRIX8): Likewise.
66         [C99-based-standards] (SCNd8): Likewise.
67         [C99-based-standards] (SCNi8): Likewise.
68         [C99-based-standards] (SCNo8): Likewise.
69         [C99-based-standards] (SCNu8): Likewise.
70         [C99-based-standards] (SCNx8): Likewise.
71         [C99-based-standards] (PRIdLEAST8): Likewise.
72         [C99-based-standards] (PRIiLEAST8): Likewise.
73         [C99-based-standards] (PRIoLEAST8): Likewise.
74         [C99-based-standards] (PRIuLEAST8): Likewise.
75         [C99-based-standards] (PRIxLEAST8): Likewise.
76         [C99-based-standards] (PRIXLEAST8): Likewise.
77         [C99-based-standards] (SCNdLEAST8): Likewise.
78         [C99-based-standards] (SCNiLEAST8): Likewise.
79         [C99-based-standards] (SCNoLEAST8): Likewise.
80         [C99-based-standards] (SCNuLEAST8): Likewise.
81         [C99-based-standards] (SCNxLEAST8): Likewise.
82         [C99-based-standards] (PRIdFAST8): Likewise.
83         [C99-based-standards] (PRIiFAST8): Likewise.
84         [C99-based-standards] (PRIoFAST8): Likewise.
85         [C99-based-standards] (PRIuFAST8): Likewise.
86         [C99-based-standards] (PRIxFAST8): Likewise.
87         [C99-based-standards] (PRIXFAST8): Likewise.
88         [C99-based-standards] (SCNdFAST8): Likewise.
89         [C99-based-standards] (SCNiFAST8): Likewise.
90         [C99-based-standards] (SCNoFAST8): Likewise.
91         [C99-based-standards] (SCNuFAST8): Likewise.
92         [C99-based-standards] (SCNxFAST8): Likewise.
93         [C99-based-standards] (PRId16): Likewise.
94         [C99-based-standards] (PRIi16): Likewise.
95         [C99-based-standards] (PRIo16): Likewise.
96         [C99-based-standards] (PRIu16): Likewise.
97         [C99-based-standards] (PRIx16): Likewise.
98         [C99-based-standards] (PRIX16): Likewise.
99         [C99-based-standards] (SCNd16): Likewise.
100         [C99-based-standards] (SCNi16): Likewise.
101         [C99-based-standards] (SCNo16): Likewise.
102         [C99-based-standards] (SCNu16): Likewise.
103         [C99-based-standards] (SCNx16): Likewise.
104         [C99-based-standards] (PRIdLEAST16): Likewise.
105         [C99-based-standards] (PRIiLEAST16): Likewise.
106         [C99-based-standards] (PRIoLEAST16): Likewise.
107         [C99-based-standards] (PRIuLEAST16): Likewise.
108         [C99-based-standards] (PRIxLEAST16): Likewise.
109         [C99-based-standards] (PRIXLEAST16): Likewise.
110         [C99-based-standards] (SCNdLEAST16): Likewise.
111         [C99-based-standards] (SCNiLEAST16): Likewise.
112         [C99-based-standards] (SCNoLEAST16): Likewise.
113         [C99-based-standards] (SCNuLEAST16): Likewise.
114         [C99-based-standards] (SCNxLEAST16): Likewise.
115         [C99-based-standards] (PRIdFAST16): Likewise.
116         [C99-based-standards] (PRIiFAST16): Likewise.
117         [C99-based-standards] (PRIoFAST16): Likewise.
118         [C99-based-standards] (PRIuFAST16): Likewise.
119         [C99-based-standards] (PRIxFAST16): Likewise.
120         [C99-based-standards] (PRIXFAST16): Likewise.
121         [C99-based-standards] (SCNdFAST16): Likewise.
122         [C99-based-standards] (SCNiFAST16): Likewise.
123         [C99-based-standards] (SCNoFAST16): Likewise.
124         [C99-based-standards] (SCNuFAST16): Likewise.
125         [C99-based-standards] (SCNxFAST16): Likewise.
126         [C99-based-standards] (PRId32): Likewise.
127         [C99-based-standards] (PRIi32): Likewise.
128         [C99-based-standards] (PRIo32): Likewise.
129         [C99-based-standards] (PRIu32): Likewise.
130         [C99-based-standards] (PRIx32): Likewise.
131         [C99-based-standards] (PRIX32): Likewise.
132         [C99-based-standards] (SCNd32): Likewise.
133         [C99-based-standards] (SCNi32): Likewise.
134         [C99-based-standards] (SCNo32): Likewise.
135         [C99-based-standards] (SCNu32): Likewise.
136         [C99-based-standards] (SCNx32): Likewise.
137         [C99-based-standards] (PRIdLEAST32): Likewise.
138         [C99-based-standards] (PRIiLEAST32): Likewise.
139         [C99-based-standards] (PRIoLEAST32): Likewise.
140         [C99-based-standards] (PRIuLEAST32): Likewise.
141         [C99-based-standards] (PRIxLEAST32): Likewise.
142         [C99-based-standards] (PRIXLEAST32): Likewise.
143         [C99-based-standards] (SCNdLEAST32): Likewise.
144         [C99-based-standards] (SCNiLEAST32): Likewise.
145         [C99-based-standards] (SCNoLEAST32): Likewise.
146         [C99-based-standards] (SCNuLEAST32): Likewise.
147         [C99-based-standards] (SCNxLEAST32): Likewise.
148         [C99-based-standards] (PRIdFAST32): Likewise.
149         [C99-based-standards] (PRIiFAST32): Likewise.
150         [C99-based-standards] (PRIoFAST32): Likewise.
151         [C99-based-standards] (PRIuFAST32): Likewise.
152         [C99-based-standards] (PRIxFAST32): Likewise.
153         [C99-based-standards] (PRIXFAST32): Likewise.
154         [C99-based-standards] (SCNdFAST32): Likewise.
155         [C99-based-standards] (SCNiFAST32): Likewise.
156         [C99-based-standards] (SCNoFAST32): Likewise.
157         [C99-based-standards] (SCNuFAST32): Likewise.
158         [C99-based-standards] (SCNxFAST32): Likewise.
159         [C99-based-standards] (PRId64): Likewise.
160         [C99-based-standards] (PRIi64): Likewise.
161         [C99-based-standards] (PRIo64): Likewise.
162         [C99-based-standards] (PRIu64): Likewise.
163         [C99-based-standards] (PRIx64): Likewise.
164         [C99-based-standards] (PRIX64): Likewise.
165         [C99-based-standards] (SCNd64): Likewise.
166         [C99-based-standards] (SCNi64): Likewise.
167         [C99-based-standards] (SCNo64): Likewise.
168         [C99-based-standards] (SCNu64): Likewise.
169         [C99-based-standards] (SCNx64): Likewise.
170         [C99-based-standards] (PRIdLEAST64): Likewise.
171         [C99-based-standards] (PRIiLEAST64): Likewise.
172         [C99-based-standards] (PRIoLEAST64): Likewise.
173         [C99-based-standards] (PRIuLEAST64): Likewise.
174         [C99-based-standards] (PRIxLEAST64): Likewise.
175         [C99-based-standards] (PRIXLEAST64): Likewise.
176         [C99-based-standards] (SCNdLEAST64): Likewise.
177         [C99-based-standards] (SCNiLEAST64): Likewise.
178         [C99-based-standards] (SCNoLEAST64): Likewise.
179         [C99-based-standards] (SCNuLEAST64): Likewise.
180         [C99-based-standards] (SCNxLEAST64): Likewise.
181         [C99-based-standards] (PRIdFAST64): Likewise.
182         [C99-based-standards] (PRIiFAST64): Likewise.
183         [C99-based-standards] (PRIoFAST64): Likewise.
184         [C99-based-standards] (PRIuFAST64): Likewise.
185         [C99-based-standards] (PRIxFAST64): Likewise.
186         [C99-based-standards] (PRIXFAST64): Likewise.
187         [C99-based-standards] (SCNdFAST64): Likewise.
188         [C99-based-standards] (SCNiFAST64): Likewise.
189         [C99-based-standards] (SCNoFAST64): Likewise.
190         [C99-based-standards] (SCNuFAST64): Likewise.
191         [C99-based-standards] (SCNxFAST64): Likewise.
192         [C99-based-standards] (PRIdMAX): Likewise.
193         [C99-based-standards] (PRIiMAX): Likewise.
194         [C99-based-standards] (PRIoMAX): Likewise.
195         [C99-based-standards] (PRIuMAX): Likewise.
196         [C99-based-standards] (PRIxMAX): Likewise.
197         [C99-based-standards] (PRIXMAX): Likewise.
198         [C99-based-standards] (SCNdMAX): Likewise.
199         [C99-based-standards] (SCNiMAX): Likewise.
200         [C99-based-standards] (SCNoMAX): Likewise.
201         [C99-based-standards] (SCNuMAX): Likewise.
202         [C99-based-standards] (SCNxMAX): Likewise.
203         [C99-based-standards] (PRIdPTR): Likewise.
204         [C99-based-standards] (PRIiPTR): Likewise.
205         [C99-based-standards] (PRIoPTR): Likewise.
206         [C99-based-standards] (PRIuPTR): Likewise.
207         [C99-based-standards] (PRIxPTR): Likewise.
208         [C99-based-standards] (PRIXPTR): Likewise.
209         [C99-based-standards] (SCNdPTR): Likewise.
210         [C99-based-standards] (SCNiPTR): Likewise.
211         [C99-based-standards] (SCNoPTR): Likewise.
212         [C99-based-standards] (SCNuPTR): Likewise.
213         [C99-based-standards] (SCNxPTR): Likewise.
214         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
215         allow.
216         * conform/data/stdint.h-data: Update comments to clarify
217         requirements.
218         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
219         type.
220         [C99-based standards] (INT8_MAX): Likewise.
221         [C99-based standards] (INT16_MIN): Likewise.
222         [C99-based standards] (INT16_MAX): Likewise.
223         [C99-based standards] (INT32_MIN): Likewise.
224         [C99-based standards] (INT32_MAX): Likewise.
225         [C99-based standards] (INT64_MIN): Likewise.
226         [C99-based standards] (INT64_MAX): Likewise.
227         [C99-based standards] (UINT8_MAX): Likewise.
228         [C99-based standards] (UINT16_MAX): Likewise.
229         [C99-based standards] (UINT32_MAX): Likewise.
230         [C99-based standards] (UINT64_MAX): Likewise.
231         [C99-based standards] (INT_LEAST8_MIN): Likewise.
232         [C99-based standards] (INT_LEAST8_MAX): Likewise.
233         [C99-based standards] (INT_LEAST16_MIN): Likewise.
234         [C99-based standards] (INT_LEAST16_MAX): Likewise.
235         [C99-based standards] (INT_LEAST32_MIN): Likewise.
236         [C99-based standards] (INT_LEAST32_MAX): Likewise.
237         [C99-based standards] (INT_LEAST64_MIN): Likewise.
238         [C99-based standards] (INT_LEAST64_MAX): Likewise.
239         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
240         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
241         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
242         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
243         [C99-based standards] (INT_FAST8_MIN): Likewise.
244         [C99-based standards] (INT_FAST8_MAX): Likewise.
245         [C99-based standards] (INT_FAST16_MIN): Likewise.
246         [C99-based standards] (INT_FAST16_MAX): Likewise.
247         [C99-based standards] (INT_FAST32_MIN): Likewise.
248         [C99-based standards] (INT_FAST32_MAX): Likewise.
249         [C99-based standards] (INT_FAST64_MIN): Likewise.
250         [C99-based standards] (INT_FAST64_MAX): Likewise.
251         [C99-based standards] (UINT_FAST8_MAX): Likewise.
252         [C99-based standards] (UINT_FAST16_MAX): Likewise.
253         [C99-based standards] (UINT_FAST32_MAX): Likewise.
254         [C99-based standards] (UINT_FAST64_MAX): Likewise.
255         [C99-based standards] (INTPTR_MIN): Likewise.
256         [C99-based standards] (INTPTR_MAX): Likewise.
257         [C99-based standards] (UINTPTR_MAX): Likewise.
258         [C99-based standards] (INTMAX_MIN): Likewise.
259         [C99-based standards] (INTMAX_MAX): Likewise.
260         [C99-based standards] (UINTMAX_MAX): Likewise.
261         [C99-based standards] (PTRDIFF_MIN): Likewise.
262         [C99-based standards] (PTRDIFF_MAX): Likewise.
263         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
264         [C99-based standards] (SIZE_MAX): Likewise.
265         [C99-based standards] (WCHAR_MAX): Likewise.
266         [C99-based standards] (WINT_MAX): Likewise.
267         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
268         constraint on value.
269         [C99-based standards] (WCHAR_MIN): Likewise.
270         [C99-based standards] (WINT_MIN): Likewise.
271         [C99-based standards] (*_t): Allow.
272         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
273         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
274         Include math.h-data and complex.h-data.  Remove all expectations
275         of math.h and complex.h contents.
276         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
277         at end of line.
278         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
279         (struct tm): Expect tag.
280         [C99-based-standards] (wcstof): Expect function.
281         [C99-based-standards] (wcstold): Likewise.
282         [C99-based-standards] (wcstoll): Likewise.
283         [C99-based-standards] (wcstoull): Likewise.
284         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
285         macro-int-constant.  Specify type.
286         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
287         constraint on value.
288         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
289         Specify type.
290         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
291         Specify value.
292         [ISO C standards]: Do not allow headers.
293         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
294         wcs[abcdefghijklmnopqrstuvwxyz]*.
295         [ISO C standards] (*_t): Do not allow.
296         * conform/data/wctype.h-data [C99-based standards] (iswblank):
297         Expect function.
298         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
299         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
300         Specify type.
301         [ISO C standards]: Do not allow headers.
302         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
303         is[abcdefghijklmnopqrstuvwxyz]*.
304         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
305         to[abcdefghijklmnopqrstuvwxyz]*.
306         [ISO C standards] (*_t): Do not allow.
307         * conform/data/stdalign.h-data: New file.
308         * conform/data/stdbool.h-data: Likewise.
309         * conform/data/stdnoreturn.h-data: Likewise.
310
311 2012-11-07  Andreas Jaeger  <aj@suse.de>
312
313         [BZ #14809]
314         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
315         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
316         guards are changed.  Only define if not yet defined, #undef back
317         after including linux/sysctl.h if defined here.
318
319 2012-11-07  Roland McGrath  <roland@hack.frob.com>
320
321         [BZ #14815]
322         * manual/filesys.texi (Directory Entries): Typo fix.
323         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
324
325 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
326
327         * elf/elf.h (EM_AARCH64): New macro.
328         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
329         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
330         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
331         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
332         (R_AARCH64_TLSDESC): Likewise.
333         (NT_ARM_TLS): Likewise.
334         (NT_ARM_HW_BREAK): Likewise.
335         (NT_ARM_HW_WATCH): Likewise.
336
337 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
338
339         [BZ #14811]
340         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
341         (__ieee754_powl): Saturate nonzero exponents with absolute value
342         below 0x1p-79 to +/- 0x1p-79.
343         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
344         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
345         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
346         nonzero exponents with absolute value below 0x1p-32 to +/-
347         0x1p-32.
348         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
349         (__ieee754_powl): Saturate nonzero exponents with absolute value
350         below 0x1p-79 to +/- 0x1p-79.
351         * math/libm-test.inc (pow_test): Add more tests.
352
353 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
354
355         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
356         _dl_s390_cap_flags with kernel. Increase string length.
357         (_dl_s390_platforms): Add z196 and zEC12.
358
359 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
360
361         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
362         Change XOPEN21K to XOPEN2K.
363
364 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
365
366         * string/memmove.c: Use memcpy when possible.
367
368 2012-11-06  Andreas Jaeger  <aj@suse.de>
369
370         * po/eo.po: Update from translation team.
371
372 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
373
374         [BZ #14793]
375         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
376         exponent and small x and y exponents, scale x or y up.  Increase
377         by 2 the exponent used in scaling up.
378         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
379         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
380         * math/libm-test.inc (fma_test): Add more tests.
381         (fma_test_towardzero): Likewise.
382         (fma_test_downward): Likewise.
383         (fma_test_upward): Likewise.
384
385 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
386
387         [BZ #14805]
388         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
389         fenv_t *.
390
391         [BZ #14801]
392         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
393         namespace for names of struct fields.
394         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
395         fenv_t fields.
396         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
397         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
398
399 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
400
401         [BZ #3665]
402         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
403
404 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
405
406         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
407         PTR_DEMANGLE.
408
409         [BZ #5246]
410         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
411         PTR_DEMANGLE.
412
413 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
414
415         [BZ #14797]
416         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
417         definitely overflow as x * y not x * y + z.
418         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
419         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
420         * math/libm-test.inc (fma_test): Add more tests.
421         (fma_test_towardzero): Likewise.
422         (fma_test_downward): Likewise.
423         (fma_test_upward): Likewise.
424
425 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
426
427         [BZ #157]
428
429         * include/stub-tag.h: Remove file.
430         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
431         '#include' of it.
432         * manual/maint.texi (Porting): Don't reference it.
433         * Makerules ($(objpfx)stubs): Likewise.
434         * dirent/closedir.c: Don't include <stub-tag.h>.
435         * dirent/dirfd.c: Likewise.
436         * dirent/fdopendir.c: Likewise.
437         * dirent/getdents.c: Likewise.
438         * dirent/getdents64.c: Likewise.
439         * dirent/opendir.c: Likewise.
440         * dirent/readdir.c: Likewise.
441         * dirent/readdir64.c: Likewise.
442         * dirent/readdir64_r.c: Likewise.
443         * dirent/readdir_r.c: Likewise.
444         * dirent/rewinddir.c: Likewise.
445         * dirent/seekdir.c: Likewise.
446         * dirent/telldir.c: Likewise.
447         * gmon/profil.c: Likewise.
448         * grp/setgroups.c: Likewise.
449         * inet/if_index.c: Likewise.
450         * io/access.c: Likewise.
451         * io/chdir.c: Likewise.
452         * io/chmod.c: Likewise.
453         * io/chown.c: Likewise.
454         * io/close.c: Likewise.
455         * io/dup.c: Likewise.
456         * io/dup2.c: Likewise.
457         * io/dup3.c: Likewise.
458         * io/euidaccess.c: Likewise.
459         * io/faccessat.c: Likewise.
460         * io/fchdir.c: Likewise.
461         * io/fchmod.c: Likewise.
462         * io/fchmodat.c: Likewise.
463         * io/fchown.c: Likewise.
464         * io/fchownat.c: Likewise.
465         * io/fcntl.c: Likewise.
466         * io/flock.c: Likewise.
467         * io/fstatfs.c: Likewise.
468         * io/fstatfs64.c: Likewise.
469         * io/fstatvfs.c: Likewise.
470         * io/fstatvfs64.c: Likewise.
471         * io/futimens.c: Likewise.
472         * io/fxstat.c: Likewise.
473         * io/fxstat64.c: Likewise.
474         * io/fxstatat.c: Likewise.
475         * io/fxstatat64.c: Likewise.
476         * io/getcwd.c: Likewise.
477         * io/isatty.c: Likewise.
478         * io/lchmod.c: Likewise.
479         * io/lchown.c: Likewise.
480         * io/link.c: Likewise.
481         * io/linkat.c: Likewise.
482         * io/lseek.c: Likewise.
483         * io/lseek64.c: Likewise.
484         * io/lxstat64.c: Likewise.
485         * io/mkdir.c: Likewise.
486         * io/mkdirat.c: Likewise.
487         * io/mkfifo.c: Likewise.
488         * io/mkfifoat.c: Likewise.
489         * io/open.c: Likewise.
490         * io/open64.c: Likewise.
491         * io/openat.c: Likewise.
492         * io/openat64.c: Likewise.
493         * io/pipe.c: Likewise.
494         * io/pipe2.c: Likewise.
495         * io/poll.c: Likewise.
496         * io/posix_fadvise.c: Likewise.
497         * io/posix_fadvise64.c: Likewise.
498         * io/posix_fallocate.c: Likewise.
499         * io/posix_fallocate64.c: Likewise.
500         * io/read.c: Likewise.
501         * io/readlink.c: Likewise.
502         * io/readlinkat.c: Likewise.
503         * io/rmdir.c: Likewise.
504         * io/sendfile.c: Likewise.
505         * io/sendfile64.c: Likewise.
506         * io/statfs.c: Likewise.
507         * io/statfs64.c: Likewise.
508         * io/statvfs.c: Likewise.
509         * io/statvfs64.c: Likewise.
510         * io/symlink.c: Likewise.
511         * io/symlinkat.c: Likewise.
512         * io/ttyname.c: Likewise.
513         * io/ttyname_r.c: Likewise.
514         * io/umask.c: Likewise.
515         * io/unlink.c: Likewise.
516         * io/unlinkat.c: Likewise.
517         * io/utime.c: Likewise.
518         * io/utimensat.c: Likewise.
519         * io/write.c: Likewise.
520         * io/xmknod.c: Likewise.
521         * io/xmknodat.c: Likewise.
522         * io/xstat.c: Likewise.
523         * io/xstat64.c: Likewise.
524         * login/getpt.c: Likewise.
525         * login/grantpt.c: Likewise.
526         * login/unlockpt.c: Likewise.
527         * math/e_acoshl.c: Likewise.
528         * math/e_acosl.c: Likewise.
529         * math/e_asinl.c: Likewise.
530         * math/e_atan2l.c: Likewise.
531         * math/e_atanhl.c: Likewise.
532         * math/e_coshl.c: Likewise.
533         * math/e_expl.c: Likewise.
534         * math/e_fmodl.c: Likewise.
535         * math/e_gammal_r.c: Likewise.
536         * math/e_hypotl.c: Likewise.
537         * math/e_j0l.c: Likewise.
538         * math/e_j1l.c: Likewise.
539         * math/e_jnl.c: Likewise.
540         * math/e_lgammal_r.c: Likewise.
541         * math/e_log10l.c: Likewise.
542         * math/e_log2l.c: Likewise.
543         * math/e_logl.c: Likewise.
544         * math/e_powl.c: Likewise.
545         * math/e_rem_pio2l.c: Likewise.
546         * math/e_sinhl.c: Likewise.
547         * math/e_sqrtl.c: Likewise.
548         * math/fclrexcpt.c: Likewise.
549         * math/fedisblxcpt.c: Likewise.
550         * math/feenablxcpt.c: Likewise.
551         * math/fegetenv.c: Likewise.
552         * math/fegetexcept.c: Likewise.
553         * math/fegetround.c: Likewise.
554         * math/feholdexcpt.c: Likewise.
555         * math/fesetenv.c: Likewise.
556         * math/fesetround.c: Likewise.
557         * math/feupdateenv.c: Likewise.
558         * math/fgetexcptflg.c: Likewise.
559         * math/fraiseexcpt.c: Likewise.
560         * math/fsetexcptflg.c: Likewise.
561         * math/ftestexcept.c: Likewise.
562         * math/k_cosl.c: Likewise.
563         * math/k_rem_pio2l.c: Likewise.
564         * math/k_sinl.c: Likewise.
565         * math/k_tanl.c: Likewise.
566         * math/s_asinhl.c: Likewise.
567         * math/s_atanl.c: Likewise.
568         * math/s_cbrtl.c: Likewise.
569         * math/s_erfl.c: Likewise.
570         * math/s_expm1l.c: Likewise.
571         * math/s_log1pl.c: Likewise.
572         * math/s_tanhl.c: Likewise.
573         * misc/acct.c: Likewise.
574         * misc/brk.c: Likewise.
575         * misc/chflags.c: Likewise.
576         * misc/chroot.c: Likewise.
577         * misc/fchflags.c: Likewise.
578         * misc/fgetxattr.c: Likewise.
579         * misc/flistxattr.c: Likewise.
580         * misc/fremovexattr.c: Likewise.
581         * misc/fsetxattr.c: Likewise.
582         * misc/fsync.c: Likewise.
583         * misc/ftruncate.c: Likewise.
584         * misc/futimes.c: Likewise.
585         * misc/futimesat.c: Likewise.
586         * misc/getdomain.c: Likewise.
587         * misc/getdtsz.c: Likewise.
588         * misc/gethostid.c: Likewise.
589         * misc/gethostname.c: Likewise.
590         * misc/getloadavg.c: Likewise.
591         * misc/getpagesize.c: Likewise.
592         * misc/getsysstats.c: Likewise.
593         * misc/getxattr.c: Likewise.
594         * misc/gtty.c: Likewise.
595         * misc/ioctl.c: Likewise.
596         * misc/lgetxattr.c: Likewise.
597         * misc/listxattr.c: Likewise.
598         * misc/llistxattr.c: Likewise.
599         * misc/lremovexattr.c: Likewise.
600         * misc/lsetxattr.c: Likewise.
601         * misc/lutimes.c: Likewise.
602         * misc/madvise.c: Likewise.
603         * misc/mincore.c: Likewise.
604         * misc/mlock.c: Likewise.
605         * misc/mlockall.c: Likewise.
606         * misc/mmap.c: Likewise.
607         * misc/mprotect.c: Likewise.
608         * misc/msync.c: Likewise.
609         * misc/munlock.c: Likewise.
610         * misc/munlockall.c: Likewise.
611         * misc/munmap.c: Likewise.
612         * misc/preadv.c: Likewise.
613         * misc/preadv64.c: Likewise.
614         * misc/ptrace.c: Likewise.
615         * misc/pwritev.c: Likewise.
616         * misc/pwritev64.c: Likewise.
617         * misc/readv.c: Likewise.
618         * misc/reboot.c: Likewise.
619         * misc/remap_file_pages.c: Likewise.
620         * misc/removexattr.c: Likewise.
621         * misc/revoke.c: Likewise.
622         * misc/select.c: Likewise.
623         * misc/setdomain.c: Likewise.
624         * misc/setegid.c: Likewise.
625         * misc/seteuid.c: Likewise.
626         * misc/sethostid.c: Likewise.
627         * misc/sethostname.c: Likewise.
628         * misc/setregid.c: Likewise.
629         * misc/setreuid.c: Likewise.
630         * misc/setxattr.c: Likewise.
631         * misc/sstk.c: Likewise.
632         * misc/stty.c: Likewise.
633         * misc/swapoff.c: Likewise.
634         * misc/swapon.c: Likewise.
635         * misc/sync.c: Likewise.
636         * misc/syncfs.c: Likewise.
637         * misc/syscall.c: Likewise.
638         * misc/truncate.c: Likewise.
639         * misc/ualarm.c: Likewise.
640         * misc/usleep.c: Likewise.
641         * misc/ustat.c: Likewise.
642         * misc/utimes.c: Likewise.
643         * misc/vhangup.c: Likewise.
644         * misc/writev.c: Likewise.
645         * posix/_exit.c: Likewise.
646         * posix/alarm.c: Likewise.
647         * posix/execve.c: Likewise.
648         * posix/fexecve.c: Likewise.
649         * posix/fork.c: Likewise.
650         * posix/fpathconf.c: Likewise.
651         * posix/getaddrinfo.c: Likewise.
652         * posix/getegid.c: Likewise.
653         * posix/geteuid.c: Likewise.
654         * posix/getgid.c: Likewise.
655         * posix/getgroups.c: Likewise.
656         * posix/getlogin.c: Likewise.
657         * posix/getlogin_r.c: Likewise.
658         * posix/getpgid.c: Likewise.
659         * posix/getpid.c: Likewise.
660         * posix/getppid.c: Likewise.
661         * posix/getresgid.c: Likewise.
662         * posix/getresuid.c: Likewise.
663         * posix/getsid.c: Likewise.
664         * posix/getuid.c: Likewise.
665         * posix/glob64.c: Likewise.
666         * posix/nanosleep.c: Likewise.
667         * posix/pathconf.c: Likewise.
668         * posix/pause.c: Likewise.
669         * posix/posix_madvise.c: Likewise.
670         * posix/pread.c: Likewise.
671         * posix/pread64.c: Likewise.
672         * posix/pwrite.c: Likewise.
673         * posix/pwrite64.c: Likewise.
674         * posix/sched_getaffinity.c: Likewise.
675         * posix/sched_getp.c: Likewise.
676         * posix/sched_gets.c: Likewise.
677         * posix/sched_primax.c: Likewise.
678         * posix/sched_primin.c: Likewise.
679         * posix/sched_rr_gi.c: Likewise.
680         * posix/sched_setaffinity.c: Likewise.
681         * posix/sched_setp.c: Likewise.
682         * posix/sched_sets.c: Likewise.
683         * posix/sched_yield.c: Likewise.
684         * posix/setgid.c: Likewise.
685         * posix/setlogin.c: Likewise.
686         * posix/setpgid.c: Likewise.
687         * posix/setresgid.c: Likewise.
688         * posix/setresuid.c: Likewise.
689         * posix/setsid.c: Likewise.
690         * posix/setuid.c: Likewise.
691         * posix/sleep.c: Likewise.
692         * posix/spawni.c: Likewise.
693         * posix/sysconf.c: Likewise.
694         * posix/times.c: Likewise.
695         * posix/wait.c: Likewise.
696         * posix/wait3.c: Likewise.
697         * posix/wait4.c: Likewise.
698         * posix/waitpid.c: Likewise.
699         * resolv/gai_sigqueue.c: Likewise.
700         * resource/getpriority.c: Likewise.
701         * resource/getrlimit.c: Likewise.
702         * resource/getrusage.c: Likewise.
703         * resource/nice.c: Likewise.
704         * resource/setpriority.c: Likewise.
705         * resource/setrlimit.c: Likewise.
706         * resource/ulimit.c: Likewise.
707         * rt/aio_cancel.c: Likewise.
708         * rt/aio_fsync.c: Likewise.
709         * rt/aio_read.c: Likewise.
710         * rt/aio_sigqueue.c: Likewise.
711         * rt/aio_suspend.c: Likewise.
712         * rt/aio_write.c: Likewise.
713         * rt/clock_getres.c: Likewise.
714         * rt/clock_gettime.c: Likewise.
715         * rt/clock_nanosleep.c: Likewise.
716         * rt/clock_settime.c: Likewise.
717         * rt/lio_listio.c: Likewise.
718         * rt/mq_close.c: Likewise.
719         * rt/mq_getattr.c: Likewise.
720         * rt/mq_notify.c: Likewise.
721         * rt/mq_open.c: Likewise.
722         * rt/mq_receive.c: Likewise.
723         * rt/mq_send.c: Likewise.
724         * rt/mq_setattr.c: Likewise.
725         * rt/mq_timedreceive.c: Likewise.
726         * rt/mq_timedsend.c: Likewise.
727         * rt/mq_unlink.c: Likewise.
728         * rt/shm_open.c: Likewise.
729         * rt/shm_unlink.c: Likewise.
730         * rt/timer_create.c: Likewise.
731         * rt/timer_delete.c: Likewise.
732         * rt/timer_getoverr.c: Likewise.
733         * rt/timer_gettime.c: Likewise.
734         * rt/timer_settime.c: Likewise.
735         * setjmp/__longjmp.c: Likewise.
736         * setjmp/setjmp.c: Likewise.
737         * signal/kill.c: Likewise.
738         * signal/killpg.c: Likewise.
739         * signal/raise.c: Likewise.
740         * signal/sigaction.c: Likewise.
741         * signal/sigaltstack.c: Likewise.
742         * signal/sigblock.c: Likewise.
743         * signal/sigignore.c: Likewise.
744         * signal/sigintr.c: Likewise.
745         * signal/signal.c: Likewise.
746         * signal/sigpause.c: Likewise.
747         * signal/sigpending.c: Likewise.
748         * signal/sigqueue.c: Likewise.
749         * signal/sigreturn.c: Likewise.
750         * signal/sigset.c: Likewise.
751         * signal/sigsetmask.c: Likewise.
752         * signal/sigstack.c: Likewise.
753         * signal/sigsuspend.c: Likewise.
754         * signal/sigtimedwait.c: Likewise.
755         * signal/sigvec.c: Likewise.
756         * signal/sigwait.c: Likewise.
757         * signal/sigwaitinfo.c: Likewise.
758         * signal/sysv_signal.c: Likewise.
759         * socket/accept.c: Likewise.
760         * socket/accept4.c: Likewise.
761         * socket/bind.c: Likewise.
762         * socket/connect.c: Likewise.
763         * socket/getpeername.c: Likewise.
764         * socket/getsockname.c: Likewise.
765         * socket/getsockopt.c: Likewise.
766         * socket/isfdtype.c: Likewise.
767         * socket/listen.c: Likewise.
768         * socket/recv.c: Likewise.
769         * socket/recvfrom.c: Likewise.
770         * socket/recvmsg.c: Likewise.
771         * socket/send.c: Likewise.
772         * socket/sendmsg.c: Likewise.
773         * socket/sendto.c: Likewise.
774         * socket/setsockopt.c: Likewise.
775         * socket/shutdown.c: Likewise.
776         * socket/sockatmark.c: Likewise.
777         * socket/socket.c: Likewise.
778         * socket/socketpair.c: Likewise.
779         * stdio-common/ctermid.c: Likewise.
780         * stdio-common/cuserid.c: Likewise.
781         * stdio-common/remove.c: Likewise.
782         * stdio-common/rename.c: Likewise.
783         * stdio-common/renameat.c: Likewise.
784         * stdio-common/tempname.c: Likewise.
785         * stdlib/getcontext.c: Likewise.
786         * stdlib/makecontext.c: Likewise.
787         * stdlib/setcontext.c: Likewise.
788         * stdlib/swapcontext.c: Likewise.
789         * stdlib/system.c: Likewise.
790         * streams/fattach.c: Likewise.
791         * streams/fdetach.c: Likewise.
792         * streams/getmsg.c: Likewise.
793         * streams/getpmsg.c: Likewise.
794         * streams/putmsg.c: Likewise.
795         * streams/putpmsg.c: Likewise.
796         * sysdeps/unix/bsd/getpt.c: Likewise.
797         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
798         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
799         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
801         Likewise.
802         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
803         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
804         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
805         * sysvipc/msgctl.c: Likewise.
806         * sysvipc/msgget.c: Likewise.
807         * sysvipc/msgrcv.c: Likewise.
808         * sysvipc/msgsnd.c: Likewise.
809         * sysvipc/semctl.c: Likewise.
810         * sysvipc/semget.c: Likewise.
811         * sysvipc/semop.c: Likewise.
812         * sysvipc/semtimedop.c: Likewise.
813         * sysvipc/shmat.c: Likewise.
814         * sysvipc/shmctl.c: Likewise.
815         * sysvipc/shmdt.c: Likewise.
816         * sysvipc/shmget.c: Likewise.
817         * termios/tcdrain.c: Likewise.
818         * termios/tcflow.c: Likewise.
819         * termios/tcflush.c: Likewise.
820         * termios/tcgetattr.c: Likewise.
821         * termios/tcgetpgrp.c: Likewise.
822         * termios/tcsendbrk.c: Likewise.
823         * termios/tcsetattr.c: Likewise.
824         * termios/tcsetpgrp.c: Likewise.
825         * time/adjtime.c: Likewise.
826         * time/clock.c: Likewise.
827         * time/getitimer.c: Likewise.
828         * time/gettimeofday.c: Likewise.
829         * time/setitimer.c: Likewise.
830         * time/settimeofday.c: Likewise.
831         * time/stime.c: Likewise.
832         * time/time.c: Likewise.
833
834 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
835
836         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
837         /usr/old/bin.
838
839         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
840         instead of spaces.
841         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
842
843 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
844
845         [BZ #14796]
846         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
847         FE_TONEAREST before applying Dekker multiplication and Knuth
848         addition.  Clear inexact exceptions and check for exact zero
849         results afterwards.
850         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
851         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
852         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
853         * math/libm-test.inc (fma_test): Add more tests.
854         (fma_test_towardzero): Likewise.
855         (fma_test_downward): Likewise.
856         (fma_test_upward): Likewise.
857         * sysdeps/generic/math_private.h (default_libc_fesetround): New
858         function.
859         (libc_fesetround): New macro.
860         (libc_fesetroundf): Likewise.
861         (libc_fesetroundl): Likewise.
862         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
863         function.
864         (libc_fesetround_387): Likewise.
865         (libc_fesetroundf): New macro.
866         (libc_fesetround): Likewise.
867         (libc_fesetroundl): Likewise.
868         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
869         function.
870         (libc_fesetroundf): New macro.
871         (libc_fesetround): Likewise.
872         (libc_fesetroundl): Likewise.
873         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
874         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
875         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
876         libm_hidden_ver.
877         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
878         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
879         libm_hidden_def.
880         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
881         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
882         libm_hidden_ver.
883         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
884         libm_hidden_def.
885
886         [BZ #3439]
887         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
888         integer constant usable in #if and use that to give value to enum
889         constant.
890         (FE_DIVBYZERO): Likewise.
891         (FE_UNDERFLOW): Likewise.
892         (FE_OVERFLOW): Likewise.
893         (FE_INVALID): Likewise.
894         (FE_INVALID_SNAN): Likewise.
895         (FE_INVALID_ISI): Likewise.
896         (FE_INVALID_IDI): Likewise.
897         (FE_INVALID_ZDZ): Likewise.
898         (FE_INVALID_IMZ): Likewise.
899         (FE_INVALID_COMPARE): Likewise.
900         (FE_INVALID_SOFTWARE): Likewise.
901         (FE_INVALID_SQRT): Likewise.
902         (FE_INVALID_INTEGER_CONVERSION): Likewise.
903         (FE_TONEAREST): Likewise.
904         (FE_TOWARDZERO): Likewise.
905         (FE_UPWARD): Likewise.
906         (FE_DOWNWARD): Likewise.
907         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
908         (FE_DIVBYZERO): Likewise.
909         (FE_OVERFLOW): Likewise.
910         (FE_UNDERFLOW): Likewise.
911         (FE_INEXACT): Likewise.
912         (FE_TONEAREST): Likewise.
913         (FE_DOWNWARD): Likewise.
914         (FE_UPWARD): Likewise.
915         (FE_TOWARDZERO): Likewise.
916         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
917         (FE_UNDERFLOW): Likewise.
918         (FE_OVERFLOW): Likewise.
919         (FE_DIVBYZERO): Likewise.
920         (FE_INVALID): Likewise.
921         (FE_TONEAREST): Likewise.
922         (FE_TOWARDZERO): Likewise.
923         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
924         (FE_OVERFLOW): Likewise.
925         (FE_UNDERFLOW): Likewise.
926         (FE_DIVBYZERO): Likewise.
927         (FE_INEXACT): Likewise.
928         (FE_TONEAREST): Likewise.
929         (FE_TOWARDZERO): Likewise.
930         (FE_UPWARD): Likewise.
931         (FE_DOWNWARD): Likewise.
932         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
933         (FE_DIVBYZERO): Likewise.
934         (FE_OVERFLOW): Likewise.
935         (FE_UNDERFLOW): Likewise.
936         (FE_INEXACT): Likewise.
937         (FE_TONEAREST): Likewise.
938         (FE_DOWNWARD): Likewise.
939         (FE_UPWARD): Likewise.
940         (FE_TOWARDZERO): Likewise.
941
942 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
943
944         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
945
946 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
947
948         * scripts/cross-test-ssh.sh (command): Use newlines to separate
949         commands.  Quote $PWD.
950         (blacklist_exports): Don't use remove_newlines.  Replace "declare
951         -x" by "export".
952         (remove_newlines): Remove.
953
954 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
955
956         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
957         * stdlib/stdlib.h (atof): Moved to ...
958         * include/bits/stdlib-float.h: Here.  New file.
959         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
960         * stdlib/bits/stdlib-float.h: New file.
961         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
962         -mno-sse -mno-mmx.
963         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
964         <xmmintrin.h>.
965
966 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
967
968         * conform/conformtest.pl (@headers): Add fenv.h.
969         * conform/data/fenv.h-data: New file.
970         * include/fenv.h [_ISOMAC]: Disable all contents of file except
971         include of <math/fenv.h>.
972
973         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
974         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
975         && !UNIX98].  Enables tests for XOPEN2K8.
976         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
977         POSIX2008]: Likewise.
978
979         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
980         (struct rusage): Do not expect type or its members.
981
982         [BZ #3439]
983         * math/math.h (FP_NAN): Define macro to integer constant usable in
984         #if and use that to give value to enum constant.
985         (FP_INFINITE): Likewise.
986         (FP_ZERO): Likewise.
987         (FP_SUBNORMAL): Likewise.
988         (FP_NORMAL): Likewise.
989
990 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
991
992         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
993         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
994         arguments.
995
996 2012-11-02  Roland McGrath  <roland@hack.frob.com>
997
998         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
999         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1000         autoconf-time if not.
1001         * configure.in: Remove AC_PREREQ.
1002
1003 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1004
1005         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1006         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1007         of the internal implementation.
1008
1009 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1010
1011         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1012         except include of <misc/sys/syslog.h>.
1013
1014 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1015
1016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1017         function returns with a NULL context exit with zero.
1018
1019 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1020
1021         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1022
1023 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1024
1025         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1026         (run_program_cmd): This.
1027         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1028         (tst_langinfo): New variable.  Use it.
1029
1030 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1031
1032         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1033         floating point opcodes.
1034
1035 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1036
1037         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1038         variable.
1039
1040         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1041
1042         * sysdeps/mach/hurd/powerpc: Remove directory.
1043         * sysdeps/mach/powerpc: Likewise.
1044
1045 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1046
1047         * scripts/check-local-headers.sh: Ignore c++ headers.
1048
1049 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1050
1051         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1052         __libc_cleanup_region_start argument.
1053
1054 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1055
1056         [BZ #14784]
1057         [BZ #14785]
1058         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1059         x * y using scaling, not as x * y + z.
1060         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1061         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1062         * math/libm-test.inc (fma_test): Add more tests.
1063         (fma_test_towardzero): Likewise.
1064         (fma_test_downward): Likewise.
1065         (fma_test_upward): Likewise.
1066
1067 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1068
1069         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1070
1071 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1072
1073         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1074         New variable.
1075
1076 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1077
1078         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1079
1080 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1081
1082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1083         Fix sort order.
1084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1085         Likewise.
1086
1087 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1088
1089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1090         Fix the order of the list for glibc 2.17.
1091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1092         Likewise.
1093
1094 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1095
1096         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1097
1098 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1099
1100         [BZ #14610]
1101         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1102         for low part of x being zero before using __atanl (y).
1103         * math/libm-test.inc (atan2_test): Add another test.
1104
1105         * manual/install.texi (Configuring and compiling): Document
1106         general use of test-wrapper and test-wrapper-env.
1107         * INSTALL: Regenerated.
1108
1109         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1110         (__fma): Do not extract and scale down low bits on after-rounding
1111         systems when result rounded to normal precision would have normal
1112         exponent.
1113         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1114         (__fmal): 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-96/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         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1122         macro.
1123         (fma_test): Add more tests.
1124         (fma_test_towardzero): Likewise.
1125         (fma_test_downward): Likewise.
1126         (fma_test_upward): Likewise.
1127
1128 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1129
1130         * sysdeps/i386/tininess.h: Renamed to ...
1131         * sysdeps/x86/tininess.h: This.
1132         * sysdeps/x86_64/tininess.h: Removed.
1133
1134 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1135
1136         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1137         input.  Use $(build-program-cmd).
1138         ($(objpfx)tst-array1-static.out): Likewise.
1139         ($(objpfx)tst-array2.out): Likewise.
1140         ($(objpfx)tst-array3.out): Likewise.
1141         ($(objpfx)tst-array4.out): Likewise.
1142         ($(objpfx)tst-array5.out): Likewise.
1143         ($(objpfx)tst-array5-static.out): Likewise.
1144
1145 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1146
1147         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1148         if defined.
1149
1150         * nss/nsswitch.h (nss_interface_function): Provide new
1151         macro for use with NSS functions.
1152         * grp/initgroups.c: Use new macro.
1153         * nss/getXXbyYY.c: Likewise.
1154         * nss/getXXbyYY_r.c: Likewise.
1155         * nss/getXXent.c: Likewise.
1156         * nss/getXXent_r.c: Likewise.
1157         * sysdeps/posix/getaddrinfo.c: Likewise.
1158
1159 2012-10-30  Andreas Jaeger  <aj@suse.de>
1160
1161         * po/ru.po: Update Russion translation from translation project.
1162
1163 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1164
1165         [BZ #14152]
1166         [BZ #14783]
1167         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1168         result and shift together with sticky bit instead of replicating
1169         round-to-nearest rounding.
1170         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1171         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1172         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1173         missing underflow exceptions.
1174         (fma_test_towardzero): Add more tests.
1175         (fma_test_downward): Likewise.
1176         (fma_test_upward): Likewise.
1177
1178         [BZ #14047]
1179         * sysdeps/generic/tininess.h: New file.
1180         * sysdeps/i386/tininess.h: Likewise.
1181         * sysdeps/sh/tininess.h: Likewise.
1182         * sysdeps/x86_64/tininess.h: Likewise.
1183         * stdlib/tst-strtod-underflow.c: Likewise.
1184         * stdlib/tst-tininess.c: Likewise.
1185         * stdlib/strtod_l.c: Include <tininess.h>.
1186         (round_and_return): Do not set errno for exact underflow cases.
1187         Force an underflow exception when setting errno for underflow.
1188         Determine underflow based on rounding to normal precision if
1189         TININESS_AFTER_ROUNDING.
1190         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1191         ERANGE for exact underflow cases.
1192         * stdlib/Makefile (tests): Add tst-tininess and
1193         tst-strtod-underflow.
1194         ($(objpfx)tst-tininess): Use $(link-libm).
1195         ($(objpfx)tst-strtod-underflow): Likewise.
1196
1197 2012-10-30  Andreas Jaeger  <aj@suse.de>
1198
1199         [BZ#14767]
1200         * elf/Makefile (tests): Remove conditional for have-initfini-array
1201         since this is now always required and the variable does not exist
1202         anymore.
1203         (tests-static): Likewise.
1204         (modules-names): Likewise.
1205
1206         * po/eo.po: Add Esperanto translation from translation project.
1207
1208         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1209         merged with constructor/destructor.
1210         (init_array): Likewise.
1211         * elf/tst-array2dep.c (fini_array): Likewise.
1212         (init_array): Likewise.
1213
1214 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1215
1216         * manual/message.texi: Delete @cartouche tags.
1217
1218 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1219
1220         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1221         EOPNOTSUPP.
1222         * sysdeps/mach/hurd/fsync.c: Likewise.
1223
1224         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1225         [_POSIX_REALTIME_SIGNALS]: Change condition to
1226         [_POSIX_REALTIME_SIGNALS > 0].
1227
1228 2012-10-27  Andreas Jaeger  <aj@suse.de>
1229
1230         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1231         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1232         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1233         [__WORDSIZE != 64]: Likewise.
1234
1235 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1236
1237         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1238         *  iconvdata/tst-tables.sh: Likewise.
1239
1240 2012-10-25  David S. Miller  <davem@davemloft.net>
1241
1242         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1243         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1244         of strtoull.
1245
1246         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1247         ifunc-impl-list.c
1248         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1249         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1250         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1251         file.
1252
1253 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1254
1255         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1256         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1257         __getdirentries.
1258
1259 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1260             Jim Blandy  <jimb@codesourcery.com>
1261
1262         * scripts/cross-test-ssh.sh: New file.
1263         * manual/install.texi (Configuring and compiling): Document use of
1264         cross-test-ssh.sh.
1265         * INSTALL: Regenerated.
1266
1267 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1268
1269         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1270         EOPNOTSUPP.
1271
1272 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1273
1274         * Makeconfig (run-program-prefix): Fix comment.
1275
1276 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1277             Jim Blandy  <jimb@codesourcery.com>
1278
1279         * Makeconfig (test-wrapper): New variable,
1280         (test-wrapper-env): Likewise.
1281         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1282         (run-built-tests): Define to yes.
1283         (run-program-prefix): Use $(test-wrapper).
1284         (built-program-cmd): Likewise.
1285         * Rules (make-test-out): Use $(test-wrapper-env) and
1286         $(host-built-program-cmd).
1287         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1288         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1289         tst-pathopt.sh.
1290         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1291         $(test-wrapper-env) to tst-rtld-load-self.sh.
1292         ($(objpfx)order2.out): Use $(test-wrapper).
1293         ($(objpfx)tst-initorder.out): Likewise.
1294         ($(objpfx)tst-initorder2.out): Likewise.
1295         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1296         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1297         (test_wrapper_env): New variable.  Use it to run ld.so.
1298         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1299         Use it to run ld.so.
1300         (test_wrapper_env): Likewise.
1301         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1302         $(test-wrapper) to run-iconv-test.sh.
1303         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1304         (ICONV): Use $test_wrapper.
1305         * posix/Makefile ($(objpfx)globtest.out): Pass
1306         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1307         globtest.sh, not $(run-program-prefix).
1308         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1309         (test_wrapper): Likewise.
1310         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1311         set together with run_via_rtld_prefix.
1312         (run_program_prefix): Define in terms of test_wrapper and
1313         run_via_rtld_prefix.
1314
1315 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1316
1317         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1318         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1319         Targets removed.
1320
1321         [BZ #14743]
1322         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1323         Declare __clock_getres, __clock_gettime, __clock_settime,
1324         __clock_nanosleep, and __clock_getcpuclockid.
1325         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1326         Remove librt_hidden_def (clock_gettime).
1327         * sysdeps/unix/clock_gettime.c: Likewise.
1328         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1329         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1330         * rt/clock_getres.c: Define __clock_getres as an alias.
1331         * sysdeps/posix/clock_getres.c: Likewise.
1332         * rt/clock_settime.c: Define __clock_settime as an alias.
1333         * sysdeps/unix/clock_settime.c: Likewise.
1334         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1335         * sysdeps/unix/clock_nanosleep.c: Likewise.
1336         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1337         * rt/clock-compat.c: New file.
1338         * rt/Makefile (librt-routines): Add clock-compat and move
1339         $(clock-routines) to ...
1340         (routines): ... here, new variable.
1341         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1342         Don't add get_clockfreq here.
1343         * rt/Versions (libc: GLIBC_2.17): New version set.
1344         Add clock_* symbols here.
1345         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1346         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1347         (GLIBC_2.17): Add clock_* symbols.
1348         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1349         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1350         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1352         Likewise.
1353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1354         Likewise.
1355         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1356         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1357         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1358         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1359         * NEWS: Mention the move.
1360
1361         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1362         Use __open, __read, __close rather than their public counterparts.
1363         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1364         (__get_clockfreq_via_cpuinfo): Likewise.
1365         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1366         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1367
1368         * config.h.in (HAVE_IFUNC): New #undef.
1369         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1370         was successful.
1371         * configure: Regenerated.
1372
1373 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1374
1375         * configure.in: Move READELF check to start of file.
1376         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1377         libc_cv_asm_gnu_indirect_function in the process.
1378         * configure: Regenerated.
1379
1380 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1381
1382         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1383         send the output to /dev/null.
1384         (libc_cv_cc_with_libunwind): Likewise.
1385         (libc_cv_as_noexecstack): Likewise.
1386         * configure: Regenerate.
1387
1388 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1389
1390         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1391
1392         * posix/globtest.sh (TMPDIR): Do not set.
1393         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1394         (testout): Likewise.
1395
1396 2012-10-24  Andreas Jaeger  <aj@suse.de>
1397
1398         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1399         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1400         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1401         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1402         posix_fadvise64, posix_fallocate64.
1403
1404         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1405         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1406         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1407         Likewise.
1408         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1409         Likewise.
1410         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1411
1412         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1413         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1414         <bits/fcntl-linux.h>.
1415         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1416
1417         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1418         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1419         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1420         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1421         [__WORDSIZE != 64]: Likewise.
1422
1423 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1424
1425         * Makeconfig (run-built-tests): New variable.
1426         * Rules [$(cross-compiling) = yes]: Change condition to
1427         [$(run-built-tests) = no].
1428         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1429         to [$(run-built-tests) = yes].
1430         * elf/Makefile [$(cross-compiling) = no]: Likewise
1431         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1432         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1433         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1434         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1435         * io/Makefile [$(cross-compiling) = no]: Likewise.
1436         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1437         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1438         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1439         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1440         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1441         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1442         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1443         * string/Makefile [$(cross-compiling) = no]: Likewise.
1444
1445         * posix/Makefile ($(objpfx)globtest.out): Pass
1446         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1447         $(rtld-installed-name).
1448         * posix/globtest.sh (elf_objpfx): Remove variable.
1449         (rtld_installed_name): Likewise.
1450         (library_path): Likewise.
1451         (run_program_prefix): New variable.  Use for running globtest
1452         binary.
1453
1454 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1455             Joseph Myers  <joseph@codesourcery.com>
1456
1457         * Makeconfig (host-built-program-cmd): New variable.
1458         * elf/Makefile (tst-stackguard1-ARGS): Use
1459         $(host-built-program-cmd).
1460         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1461         (tst-spawn-ARGS): Likewise.
1462         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1463
1464 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1465             Jim Blandy  <jimb@codesourcery.com>
1466
1467         * Makeconfig (run-via-rtld-prefix): New variable.
1468         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1469         (built-program-cmd): Likewise.
1470
1471 2012-10-22  Andreas Jaeger  <aj@suse.de>
1472
1473         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1474         __O_RSYNC if it exists, otherwise to O_SYNC.
1475
1476 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1477             Joseph Myers  <joseph@codesourcery.com>
1478
1479         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1480         /dev/null.
1481         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1482         from /dev/null
1483         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1484         /dev/null.
1485
1486 2012-10-22  Andreas Jaeger  <aj@suse.de>
1487
1488         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1489         Define always.
1490         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1491
1492         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1493         bits/fcntl-linux.h.
1494
1495         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1496         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1497
1498         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1499         to __O_LARGEFILE.
1500         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1501         to __O_LARGEFILE.
1502
1503 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1504             Joseph Myers  <joseph@codesourcery.com>
1505
1506         * config.make.in (NM): New variable.
1507
1508 2012-10-21  Andreas Jaeger  <aj@suse.de>
1509
1510         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1511         definitions and declarations that are provided by
1512         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1513
1514 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1515
1516         [BZ #14683]
1517         * elf/Makefile (tests-static): Add tst-leaks1-static.
1518         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1519         ($(objpfx)tst-leaks1-static): New rule.
1520         ($(objpfx)tst-leaks1-static-mem): Likewise.
1521         (tst-leaks1-static-ENV): New macro.
1522         * elf/dl-open.c (dl_open_worker): Check the main application
1523         only if SHARED is defined.
1524         * elf/tst-leaks1-static.c: New file.
1525
1526 2012-10-20  Andreas Jaeger  <aj@suse.de>
1527
1528         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1529         generic values for Linux.
1530         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1531         and declarations that are provided by <bits/fcntl-linux.h> and
1532         include <bits/fcntl-linux.h>.
1533         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1534         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1535
1536 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1537
1538         * io/fcntl.h: Move include of <bits/types.h> to the top and
1539         include it unconditionally.
1540
1541 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1542
1543         * wcsmbs/Makefile (tests-ifunc): New variable.
1544         (tests): Add $(tests-ifunc).
1545         * wcsmbs/test-wcschr-ifunc.c: New file.
1546         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1547         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1548         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1549         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1550         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1551
1552         * string/Makefile (tests-ifunc): New variable.
1553         (tests): Add $(tests-ifunc).
1554         * string/test-memccpy.c (TEST_NAME): New macro.
1555         * string/test-memchr.c (TEST_NAME): Likewise.
1556         * string/test-memcmp.c (TEST_NAME): Likewise.
1557         * string/test-memcpy.c (TEST_NAME): Likewise.
1558         * string/test-memmem.c (TEST_NAME): Likewise.
1559         * string/test-memmove.c (TEST_NAME): Likewise.
1560         * string/test-memset.c (TEST_NAME): Likewise.
1561         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1562         * string/test-stpcpy.c (TEST_NAME): Likewise.
1563         * string/test-stpncpy.c (TEST_NAME): Likewise.
1564         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1565         * string/test-strcasestr.c (TEST_NAME): Likewise.
1566         * string/test-strcat.c (TEST_NAME): Likewise.
1567         * string/test-strchr.c (TEST_NAME): Likewise.
1568         * string/test-strcmp.c(TEST_NAME): Likewise.
1569         * string/test-strcpy.c (TEST_NAME): Likewise.
1570         * string/test-strcspn.c (TEST_NAME): Likewise.
1571         * string/test-strlen.c (TEST_NAME): Likewise.
1572         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1573         * string/test-strncmp.c (TEST_NAME): Likewise.
1574         * string/test-strncpy.c (TEST_NAME): Likewise.
1575         * string/test-strnlen.c (TEST_NAME): Likewise.
1576         * string/test-strpbrk.c (TEST_NAME): Likewise.
1577         * string/test-strrchr.c (TEST_NAME): Likewise.
1578         * string/test-strspn.c (TEST_NAME): Likewise.
1579         * string/test-strstr.c (TEST_NAME): Likewise.
1580         * string/test-bcopy-ifunc.c: New file.
1581         * string/test-bzero-ifunc.c: Likewise.
1582         * string/test-memccpy-ifunc.c: Likewise.
1583         * string/test-memchr-ifunc.c: Likewise.
1584         * string/test-memcmp-ifunc.c: Likewise.
1585         * string/test-memcpy-ifunc.c: Likewise.
1586         * string/test-memmem-ifunc.c: Likewise.
1587         * string/test-memmove-ifunc.c: Likewise.
1588         * string/test-mempcpy-ifunc.c: Likewise.
1589         * string/test-memset-ifunc.c: Likewise.
1590         * string/test-rawmemchr-ifunc.c: Likewise.
1591         * string/test-stpcpy-ifunc.c: Likewise.
1592         * string/test-stpncpy-ifunc.c: Likewise.
1593         * string/test-strcasecmp-ifunc.c: Likewise.
1594         * string/test-strcasestr-ifunc.c: Likewise.
1595         * string/test-strcat-ifunc.c: Likewise.
1596         * string/test-strchr-ifunc.c: Likewise.
1597         * string/test-strchrnul-ifunc.c: Likewise.
1598         * string/test-strcmp-ifunc.c: Likewise.
1599         * string/test-strcpy-ifunc.c: Likewise.
1600         * string/test-strcspn-ifunc.c: Likewise.
1601         * string/test-strlen-ifunc.c: Likewise.
1602         * string/test-strncasecmp-ifunc.c: Likewise.
1603         * string/test-strncat-ifunc.c: Likewise.
1604         * string/test-strncmp-ifunc.c: Likewise.
1605         * string/test-strncpy-ifunc.c: Likewise.
1606         * string/test-strnlen-ifunc.c: Likewise.
1607         * string/test-strpbrk-ifunc.c: Likewise.
1608         * string/test-strrchr-ifunc.c: Likewise.
1609         * string/test-strspn-ifunc.c: Likewise.
1610         * string/test-strstr-ifunc.c: Likewise.
1611
1612         * debug/Makefile (tests-ifunc): New variable.
1613         (tests): Add $(tests-ifunc).
1614         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1615         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1616         * debug/test-stpcpy_chk-ifunc.c: New file.
1617         * debug/test-strcpy_chk-ifunc.c: Likewise.
1618
1619 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1620
1621         [BZ #13601]
1622         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1623         header is not read in.
1624
1625 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1626
1627         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1628         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1629         directly.  Pass built executable to script as
1630         $(built-program-cmd).
1631         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1632         $testprogram without using LD_LIBRARY_PATH and $ldso.
1633
1634         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1635         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1636         $(rtld-installed-name).
1637         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1638         (rtld_installed_name): Likewise.
1639         (library_path): Likewise.
1640         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1641         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1642         $(run-program-prefix) to tst-tables.sh.
1643         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1644         it to run tst-table-from and tst-table-to.
1645         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1646         Pass it to tst-table.sh.
1647         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1648         $(run-program-prefix) to tst-gettext.sh.
1649         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1650         tst-translit.sh.
1651         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1652         tst-gettext2.sh.
1653         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1654         to run tst-gettext.
1655         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1656         to run tst-gettext2.
1657         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1658         to run tst-translit.
1659         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1660         $(run-program-prefix) to tst-mtrace.sh.
1661         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1662         to run tst-mtrace.
1663         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1664         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1665         $(rtld-installed-name).
1666         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1667         (rtld_installed_name): Likewise.
1668         (run_program_prefix): New variable.  Use it to run wordexp-test.
1669
1670         * Makeconfig (ARCH): Remove all definitions.
1671         (machine): Likewise.
1672         [ARCH]: Remove conditional code.
1673         [!objdir]: Give error.
1674         [!objdir] (objpfx): Remove.
1675         [!objdir] (common-objpfx): Likewise.
1676         [!objdir] (common-objdir): Likewise.
1677         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1678         AC_CONFIG_FILES call.
1679         * configure: Regenerated.
1680
1681         [BZ #13888]
1682         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1683         or TMPDIR.
1684         (testout): Likewise.
1685
1686         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1687         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1688         $(rtld-installed-name).
1689         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1690         (rtld_installed_name): Likwise.
1691         (runit): Remove function.
1692         (run_getconf): New variable,  Use it for running getconf binary.
1693
1694 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1695
1696         [BZ #14716]
1697         * string/test-memmem.c (check_result): New function.
1698         (do_one_test): Use it.
1699         (check1): New function.
1700         (test_main): Use it.
1701
1702 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1703
1704         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1705
1706 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1707
1708         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1709         (_G_LSEEK64): Likewise.
1710         (_G_MMAP64): Likewise.
1711         (_G_FSTAT64): Likewise.
1712         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1713         (_G_LSEEK64): Likewise.
1714         (_G_MMAP64): Likewise.
1715         (_G_FSTAT64): Likewise.
1716         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1717         unconditional.  Call __mmap64 directly.
1718         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1719         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1720         __lseek64 directly.
1721         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1722         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1723         __mmap64 directly.
1724         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1725         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1726         __lseek64 directly.
1727         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1728         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1729         __lseek64 directly.
1730         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1731         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1732         __lseek64 directly.
1733         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1734         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1735         __fxstat64 directly.
1736         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1737         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1738         unconditional.
1739         (freopen64) [!_G_OPEN64]: Remove conditional code.
1740         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1741         unconditional.
1742         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1743         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1744         unconditional.
1745         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1746         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1747         unconditional.
1748         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1749         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1750         unconditional.
1751         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1752         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1753         unconditional.
1754         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1755         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1756         unconditional.
1757         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1758         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1759         unconditional.
1760         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1761
1762 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1763
1764         [BZ #12140]
1765         * manual/memory.texi (Malloc Tunable Parameters): Add note
1766         about free list pointers overwriting some perturb bytes.
1767         Wording suggested by Roland McGrath.
1768
1769 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1770
1771         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1772         (lgamma_test): Likewise.
1773         (tgamma_test): Likewise.
1774
1775 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1776
1777         [BZ #14700]
1778         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1779         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1780
1781 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1782
1783         * NEWS: Mention BZ #14716.
1784         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1785         when removing AVAILABLE1_USES_J macro.
1786
1787 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1788
1789         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1790         (__bswap_64): __uint64_t for unsigned 64-bit int.
1791
1792 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1793
1794         * include/string.h (memmem): Declare libc hidden alias.
1795         * string/memmem.c (memmem): Define libc hidden alias.
1796         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1797         __read, __close instead of open, read, close.
1798
1799 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1800
1801         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1802         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1803         global and hidden.
1804         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1805         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1806         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1807         Likewise.
1808         (__rawmemchr_sse2): Likewise.
1809         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1810         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1811         (__strchr_sse2): Likewise.
1812         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1813         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1814         (__strcasecmp_sse2): Likewise.
1815         (__strncasecmp_sse2): Likewise.
1816         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1817         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1818         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1819         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1820         (__strrchr_sse2): Likewise.
1821         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1822         ifunc-impl-list.c.
1823         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1824         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1825         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1826         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1827         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1828         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1829         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1830         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1831         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1832         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1833         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1834         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1835         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1836         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1837         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1838         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1839         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1840         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1841         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1842         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1843         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1844         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1845         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1846         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1847         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1848         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1849         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1850         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1851         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1852         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1853
1854         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1855         global and hidden.
1856         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1857         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1858         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1859         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1860         Likewise.
1861         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1862         Likewise.
1863         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1864         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1865         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1866         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1867         ifunc-impl-list.c.
1868         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1869         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1870         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1871         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1872         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1873         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1874         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1875         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1876         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1877         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1878         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1879         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1880         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1881         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1882         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1883         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1884         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1885         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1886         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1887         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1888         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1889         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1890         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1891         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1892         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1893         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1894         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1895         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1896         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1897         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1898         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1899         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1900         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1901         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1902         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1903         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1904         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1905         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1906         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1907         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1908         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1909
1910         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1911         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1912         * include/ifunc-impl-list.h: New file.
1913         * misc/ifunc-impl-list.c: Likewise.
1914         * misc/Makefile (routines): Add ifunc-impl-list.
1915         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
1916         * string/test-string.h: Include <ifunc-impl-list.h>.
1917         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
1918         impl_array): New variables.
1919         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
1920         are defined.
1921         (test_init): Call __libc_ifunc_impl_list to initialize
1922         func_list if TEST_IFUNC and TEST_NAME are defined.
1923
1924         * string/Makefile (strop-tests): Add bcopy and bzero.
1925         * string/test-bcopy.c: New file.
1926         * string/test-bzero.c: Likewise.
1927         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
1928         defined.
1929         * string/test-memset.c: Support bzero test if TEST_BZERO is
1930         defined.
1931         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
1932         __libc_memmove.
1933         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
1934         __libc_memset.
1935         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
1936         of memset.
1937
1938 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
1939
1940         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1941         * configure: Regenerated.
1942
1943         * Makeconfig (+link-static-before-libc): Don't include
1944         $(link-static-libc).
1945
1946         * libio/libio.h (_IO_pos_t): Remove.
1947
1948 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1949
1950         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1951         McGrath.
1952
1953 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1954
1955         * crypt/crypt-entry.c: Include fips-private.h.
1956         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1957         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1958         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1959         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1960
1961 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1962
1963         * crypt/crypt-private.h: Include stdbool.h.
1964         (_ufc_setup_salt_r): Return bool.
1965         * crypt/crypt-entry.c: Include errno.h.
1966         (__crypt_r): Return NULL with EINVAL for bad salt.
1967         * crypt/crypt_util.c (bad_for_salt): New.
1968         (_ufc_setup_salt_r): Check that salt is long enough and within
1969         the specified alphabet.
1970         * crypt/badsalttest.c: New file.
1971         * crypt/Makefile (tests): Add it.
1972         ($(objpfx)badsalttest): New.
1973
1974 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1975
1976         * NEWS: Add entry for BZ #14602.
1977
1978 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1979
1980         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1981         type-generic.
1982         * math/libm-test.inc: Update comment listing what functions and
1983         macros are tested.
1984         (isgreater_test): New function.
1985         (isgreaterequal_test): Likewise.
1986         (isless_test): Likewise.
1987         (islessequal_test): Likewise.
1988         (islessgreater_test): Likewise.
1989         (isunordered_test): Likewise.
1990         (main): Call the new functions.
1991
1992 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1993
1994         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1995         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1996         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1997         * sysdeps/i386/configure: Regenerated.
1998         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1999         * sysdeps/mach/configure: Regenerated.
2000         * sysdeps/mach/hurd/configure: Regenerated.
2001         * sysdeps/powerpc/configure: Regenerated.
2002         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2003         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2004         * sysdeps/s390/s390-32/configure: Regenerated.
2005         * sysdeps/s390/s390-64/configure: Regenerated.
2006         * sysdeps/sh/configure: Regenerated.
2007         * sysdeps/sparc/configure: Regenerated.
2008         * sysdeps/unix/sysv/linux/configure: Regenerated.
2009         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2010         * sysdeps/x86_64/configure: Regenerated.
2011
2012         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2013         defined.  Don't check if MAP is NULL.
2014
2015 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2016
2017         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2018         (_G_stat64): Likewise.
2019         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2020         (_G_stat64): Likewise.
2021         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2022         instead of struct _G_stat64.
2023         * libio/fileops.c (mmap_remap_check): Likewise.
2024         (decide_maybe_mmap): Likewise.
2025         (_IO_new_file_seekoff): Likewise.
2026         (_IO_file_stat): Likewise.
2027         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2028         _G_off64_t.
2029         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2030         instead of struct _G_stat64.
2031         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2032
2033 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2034
2035         [BZ #14602]
2036         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2037         Replace with ...
2038         (CHECK_EOL): New macro.
2039         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2040         CHECK_EOL.
2041         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2042         Replace with CHECK_EOL.
2043         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2044         Replace with CHECK_EOL.
2045
2046 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2047
2048         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2049         type-generic.
2050         * math/libm-test.inc: Update comment listing what functions and
2051         macros are tested.
2052         (finite_test): New function.
2053         (isinf_test): Likewise.
2054         (isnan_test): Likewise.
2055         (fpclassify_test): Test subnormal input.
2056         (isfinite_test): Likewise.
2057         (isnormal_test): Likewise.
2058         (main): Call the new functions.
2059
2060 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2061
2062         [BZ #14660]
2063         * Makerules (%.dynsym): Force C locale when running
2064         $(OBJDUMP) --dynamic-syms.
2065
2066 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2067
2068         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2069         <stdint.h>.
2070
2071 2012-10-06  David S. Miller  <davem@davemloft.net>
2072
2073         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2074         upper 32-bits of the length value in %o2 since we use branch-on-register
2075         tests which consider the entire 64-bit register.
2076
2077 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2078
2079         * string/test-strstr.c (check2): Add a test for page boundary.
2080
2081 2012-10-05  David S. Miller  <davem@davemloft.net>
2082
2083         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2084         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2085         file.
2086         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2087         sysdep_routines.
2088         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2089         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2090         and bzero when HWCAP_SPARC_CRYPTO is present.
2091
2092 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2093
2094         [BZ #14602]
2095         * string/test-strstr.c (check2): New function.
2096         (test_main): Call check2.
2097
2098         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2099         and bug-strchr1.
2100         * string/bug-strcasestr1.c (do_test): Moved to ...
2101         * string/test-strcasestr.c (check1): Here.  New function.
2102         (do_one_test): Break out result checking code into ...
2103         (check_result): This.  New function.
2104         (do_one_test): Call check_result.
2105         (test_main): Call check1.
2106         * string/bug-strchr1.c (do_test): Moved to ...
2107         * string/test-strchr.c (check1): Here.  New function.
2108         (do_one_test): Break out result checking code into ...
2109         (check_result): This.  New function.
2110         (do_one_test): Call check_result.
2111         (test_main): Call check1.
2112         * string/bug-strstr1.c (main): Moved to ...
2113         * string/test-strchr.c (check1): Here.  New function.
2114         (do_one_test): Break out result checking code into ...
2115         (check_result): This.  New function.
2116         (do_one_test): Call check_result.
2117         (test_main): Call check1.
2118         * string/bug-strcasestr1.c: Removed.
2119         * string/bug-strchr1.c: Likewise.
2120         * string/bug-strstr1.c: Likewise.
2121
2122         * elf/Makefile (dl-routines): Add hwcaps.
2123         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2124         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2125         (_dl_important_hwcaps): Moved to ...
2126         * elf/dl-hwcaps.c: Here.  New file.
2127         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2128
2129         [BZ #14557]
2130         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2131         if IS_IN_rtld isn't defined.
2132
2133         * elf/dl-support.c (_dl_sysinfo_map): New.
2134         Include "get-dynamic-info.h" and "setup-vdso.h".
2135         (_dl_non_dynamic_init): Call setup_vdso.
2136         * elf/dynamic-link.h: Don't include <assert.h>.
2137         (elf_get_dynamic_info): Moved to ...
2138         * elf/get-dynamic-info.h: Here.  New file.
2139         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2140         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2141         * elf/setup-vdso.h: Here.  New file.
2142         * elf/rtld.c: Include "setup-vdso.h".
2143         (dl_main): Call setup_vdso.
2144
2145 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2146
2147         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2148         creal in comment listing functions tested.  List finite, isinf,
2149         isnan, isless, islessequal, isgreater, isgreaterequal,
2150         islessgreater, isunordered, lgamma_r and pow10 as functions and
2151         macros not tested.  Mention which functions not tested are aliases
2152         for other functions.  Fix typo.  Note that signs of NaNs are not
2153         tested.
2154
2155         * scripts/config.guess: Update from config.git.
2156         * scripts/config.sub: Likewise.
2157
2158 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2159
2160         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2161         * misc/madvise.c (madvise): Renamed to __madvise.
2162         Make madvise a weak alias.
2163         * include/sys/mman.h: Declare __madvise.
2164         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2165         * sysdeps/unix/syscalls.list
2166         (madvise): Make __madvise the strong name, and madvise a weak alias.
2167         * sysdeps/unix/sysv/linux/syscalls.list
2168         (madvise, mmap): Remove redundant entries.
2169         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2170         * malloc/malloc.c (mtrim): Likewise.
2171         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2172
2173 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2174
2175         * sysdeps/mach/hurd/dl-cache.c: File removed.
2176         * config.h.in (USE_LDCONFIG): New #undef.
2177         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2178         * configure: Regenerated.
2179         * elf/Makefile (dl-routines): Add dl-cache only under
2180         [$(use-ldconfig) = yes].
2181         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2182         cache on [USE_LDCONFIG].
2183         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2184         [USE_LDCONFIG].
2185         * elf/rtld.c (dl_main): Likewise.
2186
2187 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2188
2189         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2190         _SC_LEVEL4_CACHE_LINESIZE.
2191
2192 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2193
2194         * sysdeps/unix/bsd/confstr.h: File removed.
2195
2196 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2197
2198         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2199         sys/sdt-config.h.
2200
2201 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2202
2203         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2204         Make 'mapoff' field ElfW(Off) rather than off_t.
2205
2206 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2207
2208         * nscd/Makefile: Remove nscd-cflags and all its users.
2209         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2210         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2211
2212         [BZ #10631]
2213         * malloc.c (malloc_printerr): Clarify error message.
2214
2215 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2216
2217         [BZ #14648]
2218         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2219         Set bit_FMA_Usable if FMA is supported.
2220         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2221         macro.
2222         (bit_FMA4_Usable): Updated.
2223         (index_FMA_Usable): New macro.
2224         (CPUID_FMA): Likewise
2225         (HAS_FMA): Defined with bit_FMA_Usable.
2226
2227 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2228
2229         * bits/types.h (__swblk_t): Type removed.
2230         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2231         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2232         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2233         (__SWBLK_T_TYPE): Likewise.
2234         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2235         (__SWBLK_T_TYPE): Likewise.
2236         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2237         (__SWBLK_T_TYPE): Likewise.
2238         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2239         (__SWBLK_T_TYPE): Likewise.
2240
2241 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2242             Honza Horak <hhorak@redhat.com>
2243
2244         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2245         (xdr_mapname): Use YPMAXMAP as maxsize.
2246         (xdr_peername): Use YPMAXPEER as maxsize.
2247         (xdr_keydat): Use YPAXRECORD as maxsize.
2248         (xdr_valdat): Use YPMAXRECORD as maxsize.
2249
2250 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2251
2252         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2253
2254         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2255         * csu/init-first.c: ... here.
2256         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2257         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2258         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2259         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2260         * sysdeps/i386/init-first.c: File removed.
2261         * sysdeps/sh/init-first.c: File removed.
2262
2263 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2264
2265         [BZ #14645]
2266         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2267         if x * y might underflow to zero and z is zero.
2268         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2269         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2270         * math/libm-test.inc (min_subnorm_value): New variable.
2271         (fma_test): Add more tests.
2272         (fma_test_towardzero): Likewise.
2273         (fma_test_downward): Likewise
2274         (fma_test_upward): Likewise.
2275         (initialize): Set min_subnorm_value.
2276
2277 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2278
2279         [BZ #14638]
2280         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2281         0 + 0.
2282         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2283         mode for addition resulting in exact zero.
2284         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2285         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2286         exact 0 + 0.
2287         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2288         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2289         * math/libm-test.inc (fma_test): Add more tests.
2290         (fma_test_towardzero): New function.
2291         (fma_test_downward): Likewise.
2292         (fma_test_upward): Likewise.
2293         (main): Call the new functions.
2294
2295 2012-09-28  David S. Miller  <davem@davemloft.net>
2296
2297         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2298
2299 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2300
2301         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2302         instead of SIGALRM.
2303
2304         * sysdeps/gnu/_G_config.h: Moved to ...
2305         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2306         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2307         * sysdeps/generic/_G_config.h: ... here.
2308
2309         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2310
2311         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2312
2313         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2314         Conditionalize target on [libnss_test1.so-version].
2315
2316         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2317
2318         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2319         (elfobjdir): Move out of conditionals.
2320
2321         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2322         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2323         (__nss_lookup_function): Conditionalize label remove_from_tree on
2324         [!DO_STATIC_NSS || SHARED], matching its only use.
2325
2326 2012-09-28  David S. Miller  <davem@davemloft.net>
2327
2328         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2329         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2330         file.
2331         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2332         sysdep_routines.
2333         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2334         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2335         when HWCAP_SPARC_CRYPTO is present.
2336
2337 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2338
2339         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2340
2341 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2342
2343         [BZ #6530]
2344         * stdio-common/vfprintf.c (process_string_arg): Revert
2345         2000-07-22 change.
2346
2347 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2348
2349         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2350         for testcase.
2351         * stdio-common/tst-sprintf.c: Include <locale.h>
2352         (main): Test sprintf's handling of incomplete multibyte
2353         characters.
2354
2355 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2356
2357         * elf/dl-runtime.c (VERSYMIDX): Removed.
2358         * elf/dl-version.c (VERSYMIDX): Likewise.
2359         * elf/do-rel.h (VERSYMIDX): Likewise.
2360         (VALIDX): Likewise.
2361         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2362         * elf/rtld.c (VALIDX): Likewise.
2363         (ADDRIDX): Likewise.
2364         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2365         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2366         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2367         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2368         (VALIDX): Likewise.
2369         (ADDRIDX): Likewise.
2370
2371 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2372
2373         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2374
2375 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2376
2377         [BZ #11438]
2378         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2379         to global scope.
2380         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2381         addresses are in the same scope as 192.0.2/24.
2382         * posix/gai.conf: Document new scope table defaults.
2383
2384 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2385
2386         [BZ #5298]
2387         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2388         for ftell.  Compute offsets from write pointers instead.
2389         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2390
2391 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2392
2393         [BZ #14543]
2394         * libio/Makefile (tests): New test case tst-fseek.
2395         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2396         combination works in wide mode.
2397         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2398         state when the external buffer state changes.
2399
2400 2012-09-27  David S. Miller  <davem@davemloft.net>
2401
2402         [BZ #14376]
2403         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2404         pass reloc->r_addend in as the 'high' argument to
2405         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2406
2407         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2408
2409 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2410
2411         * rt/tst-aio2.c: Include <pthread.h>.
2412         * rt/tst-aio3.c: Likewise.
2413
2414 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2415
2416         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2417
2418 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2419
2420         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2421         contents on [SHARED].
2422
2423 2012-09-26  Marek Polacek  <polacek@redhat.com>
2424
2425         [BZ #14530]
2426         [BZ #13741]
2427         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2428         for C++ and GCC <4.3 as well as for non GCC compilers.
2429
2430 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2431
2432         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2433
2434 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2435
2436         * Makefile.in (all, install): Declare with .PHONY.
2437         Reported by Michael Hope <michael.hope@linaro.org>.
2438
2439 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2440
2441         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2442         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2443         system header.
2444         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2445         Likewise.
2446         (sydep_routines): Add the new and the internal functions.
2447         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2448         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2450         (GLIBC_2.17): Add the new function.
2451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2452         (GLIBC_2.17): Likewise.
2453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2454         (GLIBC_2.17): Likewise.
2455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2456         (GLIBC_2.17): Likewise.
2457         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2458
2459 2012-09-25  Alan Modra  <amodra@gmail.com>
2460
2461         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2462         Add release barrier before setting once_control to say
2463         initialisation is done.  Add hints on lwarx.  Use macro in
2464         place of isync.
2465         (clear_once_control): Add release barrier.
2466
2467 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2468
2469         [BZ #13629]
2470         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2471         specially.
2472         * math/s_clog10.c (__clog10): Likewise.
2473         * math/s_clog10f.c (__clog10f): Likewise.
2474         * math/s_clog10l.c (__clog10l): Likewise.
2475         * math/s_clogf.c (__clogf): Likewise.
2476         * math/s_clogl.c (__clogl): Likewise.
2477         * math/Makefile (libm-calls): Add x2y2m1.
2478         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2479         (__x2y2m1): Likewise.
2480         (__x2y2m1l): Likewise.
2481         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2482         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2483         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2484         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2485         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2486         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2487         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2488         * sysdeps/i386/fpu/libm-test-ulps: Update.
2489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2490
2491         [BZ #14621]
2492         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2493         int as type of variable DEPTH.
2494         (glob): Use size_t instead of int as type of variables NEWCOUNT
2495         and OLD_PATHC.
2496
2497 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2498
2499         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2500         Add s_sincosf-sse2.
2501         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2502         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2503         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2504         macros for using routine as __sincosf_ia32.
2505         Use macro for function declaration and weak_alias.
2506         * sysdeps/i386/fpu/libm-test-ulps: Update.
2507
2508         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2509         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2510
2511         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2512         subnormal argument.
2513         * math/s_cexpf.c (__cexpf): Likewise.
2514         * math/s_csinf.c (__csinf): Likewise.
2515         * math/s_csinhf.c (__csinhf): Likewise.
2516         * math/s_ctanf.c (__ctanf): Likewise.
2517         * math/s_ctanhf.c (__ctanhf): Likewise.
2518         * math/s_ccosh.c (__ccoshf): Likewise.
2519         * math/s_cexp.c (__cexpl): Likewise.
2520         * math/s_csin.c (__csin): Likewise.
2521         * math/s_csinh.c (__csinh): Likewise.
2522         * math/s_ctan.c (__ctan): Likewise.
2523         * math/s_ctanh.c (ctanh): Likewise.
2524         * math/s_ccoshl.c (__ccoshl): Likewise.
2525         * math/s_cexpl.c (__cexpl): Likewise.
2526         * math/s_csinl.c (__csinl): Likewise.
2527         * math/s_csinhl.c (__csinhl): Likewise.
2528         * math/s_ctanl.c (__ctanl): Likewise.
2529         * math/s_ctanhl.c (__ctanhl): Likewise.
2530
2531 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2532
2533         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2534         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2535         (_IO_off_t): Define to __off_t, not _G_off_t.
2536         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2537         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2538         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2539         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2540         type of __dummy and __dummy2 fields.
2541         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2542         (_G_ssize_t): Likewise.
2543         (_G_off_t): Likewise.
2544         (_G_pid_t): Likewise.
2545         (_G_uid_t): Likewise.
2546         (_G_wchar_t): Likewise.
2547         (_G_wint_t): Likewise.
2548         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2549         (_G_ssize_t): Likewise.
2550         (_G_off_t): Likewise.
2551         (_G_pid_t): Likewise.
2552         (_G_uid_t): Likewise.
2553         (_G_wchar_t): Likewise.
2554         (_G_wint_t): Likewise.
2555         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2556         (_G_ssize_t): Likewise.
2557         (_G_off_t): Likewise.
2558         (_G_pid_t): Likewise.
2559         (_G_uid_t): Likewise.
2560         (_G_wchar_t): Likewise.
2561         (_G_wint_t): Likewise.
2562
2563 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2564
2565         * malloc/arena.c: Include malloc-sysdep.h.
2566         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2567         is sufficient to shrink the heap or an unmap is needed.
2568         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2569         new function check_may_shrink_heap.
2570         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2571         new function check_may_shrink_heap.
2572
2573 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2574
2575         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2576         comments.
2577
2578 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2579
2580         * catgets/test-gencat.sh: Add "set -e".
2581         * elf/tst-pathopt.sh: Likewise.
2582         * grp/tst_fgetgrent.sh: Likewise.
2583         * iconvdata/run-iconv-test.sh: Likewise.
2584         * intl/tst-gettext.sh: Likewise.
2585         * intl/tst-gettext2.sh: Likewise.
2586         * intl/tst-gettext4.sh: Likewise.
2587         * intl/tst-gettext6.sh: Likewise.
2588         * intl/tst-translit.sh: Likewise.
2589         * io/ftwtest-sh: Likewise.
2590         * libio/test-freopen.sh: Likewise.
2591         * malloc/tst-mtrace.sh: Likewise.
2592         * posix/globtest.sh: Likewise.
2593         * posix/tst-getconf.sh: Likewise.
2594         * posix/wordexp-tst.sh: Likewise.
2595         * stdio-common/tst-printf.sh: Likewise.
2596         * stdio-common/tst-unbputc.sh: Likewise.
2597         * stdlib/tst-fmtmsg.sh: Likewise.
2598         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2599         * catgets/Makefile: Do not specify -e option when running
2600         testsuite shell scripts.
2601         * elf/Makefile: Likewise.
2602         * grp/Makefile: Likewise.
2603         * iconvdata/Makefile: Likewise.
2604         * intl/Makefile: Likewise.
2605         * io/Makefile: Likewise.
2606         * libio/Makefile: Likewise.
2607         * malloc/Makefile: Likewise.
2608         * posix/Makefile: Likewise.
2609         * stdio-common/Makefile: Likewise.
2610         * stdlib/Makefile: Likewise.
2611         * sysdeps/x86_64/Makefile: Likewise.
2612
2613         * io/ftwtest-sh: Add copyright header.
2614         * posix/globtest.sh: Likewise.
2615         * posix/tst-getconf.sh: Likewise.
2616         * posix/wordexp-tst.sh: Likewise.
2617         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2618
2619 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2620
2621         [BZ #13679]
2622         * Makeconfig (+link): Defined as $(+link-static) if
2623         $(build-shared) isn't yes.
2624         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2625         isn't yes.
2626         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2627
2628         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2629
2630         [BZ #14562]
2631         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2632         new chunk size with MALLOC_ALIGN_MASK.
2633
2634 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2635
2636         [BZ #5044]
2637         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2638         <rounding-mode.h>.
2639         (__printf_fphex): Determine rounding using get_rounding_mode and
2640         round_away.
2641         * stdio-common/tst-printf-round.c (struct hex_test): New
2642         structure.
2643         (hex_tests): New variable.
2644         (test_hex_in_one_mode): New function.
2645         (do_test): Also run tests for hex float output.
2646
2647 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2648
2649         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2650         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2651         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2652         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2653         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2654         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2655         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2656         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2657
2658 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2659
2660         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2661         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2662         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2663         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2664
2665 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2666
2667         [BZ #14579]
2668         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2669         mode only.
2670         * elf/tst-rtld-load-self.sh: New test.
2671         * elf/Makefile: Run it.
2672
2673 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2674
2675         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2676         (tst-writev-ENV): Remove.
2677         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2678
2679 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2680
2681         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2682
2683 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2684
2685         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2686         unconditional.
2687         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2688         Likewise.
2689         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2690         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2691         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2692         Likewise.
2693
2694 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2695
2696         [BZ #14587]
2697         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2698         * config.make.in (have-cpp-asm-debuginfo): Removed.
2699         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2700         * configure: Regenerated.
2701
2702 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2703
2704         [BZ #5044]
2705         * stdio-common/printf_fp.c: Include <stdbool.h> and
2706         <rounding-mode.h>.
2707         (___printf_fp): Determine rounding using get_rounding_mode and
2708         round_away.
2709         * stdio-common/tst-printf-round.c: New file.
2710         * stdio-common/Makefile (tests): Add tst-printf-round.
2711         (link-libm): New variable.
2712         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2713
2714 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2715
2716         [BZ #14576]
2717         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2718         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2719         Likewise.
2720         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2721         Likewise.
2722
2723 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2724
2725         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2726         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2727         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2728         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2729
2730 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2731
2732         [BZ #14518]
2733         * include/rounding-mode.h: New file.
2734         * sysdeps/generic/get-rounding-mode.h: Likewise.
2735         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2736         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2737         (MAX_VALUE): New macro.
2738         (MIN_VALUE): Likewise.
2739         (overflow_value): New function.
2740         (underflow_value): Likewise.
2741         (round_and_return): Use overflow_value and underflow_value to
2742         determine return values in overflow and underflow cases.  Use
2743         round_away to determine rounding depending on rounding mode.
2744         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2745         determine return values in overflow and underflow cases.
2746         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2747         (struct test_results): New structure.
2748         (struct test): Use struct test_results to store expected results
2749         for all rounding modes.
2750         (TEST): Include expected results for all rounding modes.
2751         (test_in_one_mode): New function.
2752         (do_test): Use test_in_one_mode to compute and check results.
2753         Check results for all rounding modes.
2754         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2755         $(link-libm).
2756
2757 2012-12-09  Allan McRae  <allan@archlinux.org>
2758
2759         * sysdeps/i386/fpu/libm-test-ulps: Update
2760
2761 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2762
2763         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2764         (_G_int32_t): Likewise.
2765         (_G_uint16_t): Likewise.
2766         (_G_uint32_t): Likewise.
2767         (_G_HAVE_BOOL): Likewise.
2768         (_G_HAVE_ATEXIT): Likewise.
2769         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2770         (_G_HAVE_IO_FILE_OPEN): Likewise.
2771         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2772         (_G_int32_t): Likewise.
2773         (_G_uint16_t): Likewise.
2774         (_G_uint32_t): Likewise.
2775         (_G_HAVE_BOOL): Likewise.
2776         (_G_HAVE_ATEXIT): Likewise.
2777         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2778         (_G_HAVE_IO_FILE_OPEN): Likewise.
2779         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2780         (_G_int32_t): Likewise.
2781         (_G_uint16_t): Likewise.
2782         (_G_uint32_t): Likewise.
2783         (_G_HAVE_BOOL): Likewise.
2784         (_G_HAVE_ATEXIT): Likewise.
2785         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2786         (_G_HAVE_IO_FILE_OPEN): Likewise.
2787
2788 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2789
2790         * csu/libc-tls.c: Update copyright years.
2791
2792 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2793
2794         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2795         [!_G_USING_THUNKS]: Remove conditional code.
2796         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2797         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2798
2799         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2800         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2801         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2802         (_G_VTABLE_LABEL_PREFIX): Likewise.
2803         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2804         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2805         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2806         (_G_VTABLE_LABEL_PREFIX): Likewise.
2807         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2808         * sysdeps/mach/hurd/_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
2813 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2814
2815         * libio/Makefile: Include ../Makeconfig before tests.
2816         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2817         only if $(build-shared) is yes.
2818
2819         * iconv/gconv_db.c: Update copyright years.
2820
2821 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2822
2823         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2824         unwind info if defined PIC. Fix special cases description.
2825         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2826
2827         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2828         DP_HI_MASK entry.
2829         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2830
2831 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2832
2833         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2834
2835         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2836         is NULL.
2837
2838         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2839         (LDLIBS-tst-chk4): This.
2840         (LDFLAGS-tst-chk5): Renamed to ...
2841         (LDLIBS-tst-chk5): This.
2842         (LDFLAGS-tst-chk6): Renamed to ...
2843         (LDLIBS-tst-chk6): This.
2844         (LDFLAGS-tst-lfschk4): Renamed to ...
2845         (LDLIBS-tst-lfschk4): This.
2846         (LDFLAGS-tst-lfschk5): Renamed to ...
2847         (LDLIBS-tst-lfschk5): This.
2848         (LDFLAGS-tst-lfschk6): Renamed to ...
2849         (LDLIBS-tst-lfschk6): This.
2850
2851         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2852         on $(common-objpfx)soversions.mk.
2853
2854 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2855
2856         [BZ #10014]
2857         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2858         example host name.
2859
2860 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2861
2862         * malloc/arena.c (arena_get_retry): New function that gets
2863         another arena for the caller to try its request on.
2864         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2865         current arena cannot fulfill the request.
2866         (__libc_memalign): Likewise.
2867         (__libc_memalign): Likewise.
2868         (__libc_pvalloc): Likewise.
2869         (__libc_calloc): Likewise.
2870
2871 2012-09-05  John Tobey  <john.tobey@gmail.com>
2872
2873         [BZ #13542]
2874         * manual/arith.texi (Operations on Complex): Fix description
2875         of carg branch cut.
2876
2877 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2878
2879         [BZ #10014]
2880         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2881         host name.
2882
2883         [BZ #10038]
2884         * manual/memory.texi (Memory): Make order of menu items match
2885         order of sections.
2886
2887 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2888
2889         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2890         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2891         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2892
2893 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2894
2895         * csu/libc-tls.c (static_dtv): Renamed to ...
2896         (_dl_static_dtv): This.  Make it global.
2897         (_dl_initial_dtv): Removed.
2898         (__libc_setup_tls): Updated.
2899         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2900         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2901         DL_INITIAL_DTV.
2902
2903 2012-09-06  Petr Machata  <pmachata@redhat.com>
2904
2905         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2906         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2907         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2908         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2909
2910 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2911
2912         [BZ #14545]
2913         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2914         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
2915         freeing dtv[-1].
2916
2917 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2918
2919         [BZ #14544]
2920         * Makeconfig (link-static-before-libc): Replace $(+prector)
2921         with $(+prectorT).
2922         (link-static-after-libc): Replace $(+postctor) with
2923         $(+postctorT).
2924         (link-bounded): Replace $(+prector)/$(+postctor) with
2925         $(+prectorT)/$(+postctorT).
2926         (+prectorT): New macro.
2927         (+postctorT): Likewise.
2928
2929 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2930
2931         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
2932         (round_str): Handle values above the maximum for IBM long double
2933         as inexact.
2934         * stdlib/tst-strtod-round.c (tests): Regenerated.
2935
2936 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2937
2938         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
2939         assembler flag.
2940         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2941         zarch_nohighgprs around the zarch optimized routines.
2942         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2943         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2944         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2945         for zarch.
2946
2947 2012-09-05  David S. Miller  <davem@davemloft.net>
2948
2949         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2950
2951         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2952         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2953         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2954         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2955         entries.
2956
2957 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2958
2959         * malloc/arena.c: Fold copyright years.
2960         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2961
2962 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2963
2964         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2965
2966 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2967
2968         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2969
2970 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2971
2972         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2973         change internal state upon failure.
2974
2975 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2976
2977         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2978         * malloc/memusage.c (mmap): Likewise.
2979         (mmap64, mremap): Likewise.  Adjust name in comment.
2980
2981 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2982
2983         * libio/fileops.c: Fix typos in comments.
2984         * libio/oldfileops.c: Likewise.
2985         * libio/wfileops.c: Likewise.
2986
2987 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2988
2989         [BZ #1349]
2990         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2991         (tst-malloc-usable-ENV): Set environment for test case.
2992         * malloc/hooks.c (malloc_check_get_size): New function to get
2993         requested size.
2994         * malloc/malloc.c (musable): Use malloc_check_get_size.
2995         * malloc/tst-malloc-usable.c: New test case.
2996
2997 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2998
2999         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3000
3001 2012-09-05  Allan McRae  <allan@archlinux.org>
3002
3003         [BZ #13966]
3004         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3005         determine header location.
3006         * configure: Regenerated.
3007
3008 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3009
3010         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3011         float format.
3012         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3013         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3014         format.
3015         (test): Regenerate.
3016
3017 2012-09-04  David S. Miller  <davem@davemloft.net>
3018
3019         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3020         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3021         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3022
3023 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3024
3025         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3026         failures.
3027
3028         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3029
3030 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3031
3032         [BZ #9914]
3033         * libio/iogetdelim.c: Include <limits.h>.
3034         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3035         + len + 1 would overflow.
3036
3037 2012-09-03  Andreas Jaeger  <aj@suse.de>
3038
3039         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3040         * sysdeps/i386/fpu/libm-test-ulps: Update.
3041
3042 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3043
3044         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3045         Add s_sinf-sse2, s_conf-sse2.
3046
3047         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3048         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3049         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3050         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3051
3052         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3053         for using routine as __sinf_ia32.
3054         Use macro for function declaration and weak_alias.
3055         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3056         for using routine as __cosf_ia32.
3057         Use macro for function declaration and weak_alias.
3058
3059         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3060         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3061
3062         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3063         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3064         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3065
3066         * math/libm-test.inc (cos_test): Add more test cases.
3067         (sin_test): Likewise.
3068         (sincos_test): Likewise.
3069
3070 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3071
3072         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3073         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3074         hidden.
3075         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3076
3077 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3078
3079         [BZ #14538]
3080         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3081         first element of the GOT.
3082         (elf_machine_load_address): Return the difference between
3083         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3084
3085 2012-09-01  Allan McRae  <allan@archlinux.org>
3086
3087         [BZ #13412]
3088         * configure.in (AWK): Require gawk version 3.0 or later.
3089         * configure: Regenerated.
3090
3091 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3092
3093         * sysdeps/unix/sysv/linux/kernel-features.h
3094         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3095         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3096         [__NR_clock_getres]: Make code unconditional.
3097         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3098         (clock_getcpuclockid): Remove code left unreachable by removal of
3099         conditionals.
3100         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3101         code unconditional.
3102         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3103         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3104         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3105         Make code unconditional.
3106         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3107         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3108         * sysdeps/unix/sysv/linux/clock_settime.c
3109         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3110         conditional code.
3111         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3112         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3113
3114 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3115
3116         [BZ #14476]
3117         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3118         scripts/test-installation.pl.
3119
3120         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3121         and $ld_so_version if it is set.
3122
3123 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3124
3125         [BZ #14516]
3126         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3127         failure if reading from procfs failed.
3128         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3129
3130 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3131
3132         * sysdeps/unix/sysv/linux/kernel-features.h
3133         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3134         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3135         Remove conditional code.
3136         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3137         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3138         Remove conditional code.
3139         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3140         * sysdeps/unix/sysv/linux/i386/fxstat.c
3141         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3142         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3143         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3144         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3145         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3146         * sysdeps/unix/sysv/linux/i386/lxstat.c
3147         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3148         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3149         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3150         Remove conditional code.
3151         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3152         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3153         Remove conditional code.
3154         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3155         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3156         <kernel-features.h>.
3157         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3158         Remove.
3159         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3160         Remove conditional code.
3161         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3162         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3163         Remove conditional.
3164
3165 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3166
3167         [BZ #5400]
3168         * NEWS: Add fixed bug number.
3169
3170 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3171
3172         [BZ #14519]
3173         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3174         underflowing exponent in case of negative sign.
3175         * stdlib/tst-strtod-round-data: Add more tests.
3176         * stdlib/tst-strtod-round.c (tests): Regenerated.
3177
3178         [BZ #3479]
3179         * stdlib/strtod_l.c (NDIG): Remove.
3180         (HEXNDIG): Likewise.
3181         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3182         smallest representable value.
3183         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3184         lie within an exact representation of 1/2 ulp of the result.
3185         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3186         unconditionally.
3187         (TENS_P9_IDX): Define unconditionally.
3188         (TENS_P9_SIZE): Likewise.
3189         (TENS_P10_IDX): Likewise.
3190         (TENS_P10_SIZE): Likewise.
3191         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3192         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3193         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3194         entries for 10^2^13 and 10^2^14.
3195         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3196         (TENS_P13_IDX): Define.
3197         (TENS_P13_SIZE): Likewise.
3198         (TENS_P14_IDX): Likewise.
3199         (TENS_P14_SIZE): Likewise.
3200         (_fpioconst_pow10): Change array size to
3201         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3202         unconditional.
3203         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3204         1024]: Add entries for 10^2^13 and 10^2^14.
3205         [LAST_POW10 > _LAST_POW10]: Remove #error.
3206         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3207         (_fpioconst_pow10): Change array size to
3208         FPIOCONST_POW10_ARRAY_SIZE.
3209         * stdlib/gen-fpioconst.c: New file.
3210         * stdlib/gen-tst-strtod-round.c: Likewise.
3211         * stdlib/tst-strtod-round-data: Likewise.
3212         * stdlib/tst-strtod-round.c: Likewise.
3213         * stdlib/Makefile (tests): Add tst-strtod-round.
3214
3215         [BZ #14459]
3216         * stdlib/strtod_l.c: Include <stdint.h>.
3217         (NDEBUG): Do not define.
3218         (round_and_return): Change EXPONENT parameter to type intmax_t.
3219         Rearrange calculations to avoid internal overflow possibilities.
3220         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3221         Rearrange calculations to avoid internal overflow possibilities.
3222         Assert that number fits inside MPNSIZE limbs.
3223         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3224         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3225         calculations and add assertions to avoid internal overflow
3226         possibilities.  Add casts to avoid signed/unsigned operations.
3227         * stdlib/tst-strtod-overflow.c: New file.
3228         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3229
3230 2012-08-25  Marek Polacek  <polacek@redhat.com>
3231
3232         * time/time.h: Fix some typos in comments.
3233
3234 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3235
3236         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3237         * posix/tst-rfc3484-2.c: Likewise.
3238         * posix/tst-rfc3484-3.c: Likewise.
3239
3240 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3241
3242         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3243         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3244
3245 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3246
3247         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3248         #include of fxstatat64.c.
3249
3250 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3251
3252         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3253         * shadow/getspent_r.c: Likewise.
3254         * shadow/getspnam.c: Likewise.
3255         * shadow/getspnam_r.c: Likewise.
3256         * gshadow/getsgent.c: Likewise.
3257         * gshadow/getsgent_r.c: Likewise.
3258         * gshadow/getsgnam.c: Likewise.
3259         * gshadow/getsgnam_r.c: Likewise.
3260         * inet/getnetbyad.c: Likewise.
3261         * inet/getnetbyad_r.c: Likewise.
3262         * inet/getnetbynm.c: Likewise.
3263         * inet/getnetbynm_r.c: Likewise.
3264         * inet/getnetent.c: Likewise.
3265         * inet/getnetent_r.c: Likewise.
3266         * inet/getproto.c: Likewise.
3267         * inet/getproto_r.c: Likewise.
3268         * inet/getprtent.c: Likewise.
3269         * inet/getprtent_r.c: Likewise.
3270         * inet/getprtname.c: Likewise.
3271         * inet/getprtname_r.c: Likewise.
3272         * inet/getrpcbyname.c: Likewise.
3273         * inet/getrpcbyname_r.c: Likewise.
3274         * inet/getrpcbynumber.c: Likewise.
3275         * inet/getrpcbynumber_r.c: Likewise.
3276         * inet/getrpcent.c: Likewise.
3277         * inet/getrpcent_r.c: Likewise.
3278         * inet/getaliasent.c: Likewise.
3279         * inet/getaliasent_r.c: Likewise.
3280         * inet/getaliasname.c: Likewise.
3281         * inet/getaliasname_r.c: Likewise.
3282         * nscd/getgrgid_r.c: Likewise.
3283         * nscd/getgrnam_r.c: Likewise.
3284         * nscd/gethstbyad_r.c: Likewise.
3285         * nscd/gethstbynm3_r.c: Likewise.
3286         * nscd/getpwnam_r.c: Likewise.
3287         * nscd/getpwuid_r.c: Likewise.
3288         * nscd/getsrvbynm_r.c: Likewise.
3289         * nscd/getsrvbypt_r.c: Likewise.
3290         * nscd/gai.c: Likewise.
3291
3292         * configure.in (build_nscd): New substituted variable, set
3293         by --disable-build-nscd and defaults to $use_nscd.
3294         * configure: Regenerated.
3295         * config.make.in (build-nscd): New substituted variable.
3296         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3297         Change conditional to require [$(build-nscd) = yes] as well.
3298         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3299
3300         [BZ# 13696]
3301         * configure.in (use_nscd): New substituted variable, set by
3302         --disable-nscd.  If enabled, define USE_NSCD.
3303         * configure: Regenerated.
3304         * config.h.in: Add USE_NSCD.
3305         * config.make.in (use-nscd): New substituted variable.
3306         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3307         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3308         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3309         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3310         (CFLAGS-getgrnam_r.c): Likewise.
3311         (CFLAGS-initgroups.c): Likewise.
3312         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3313         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3314         Variables removed.
3315         * inet/getnetgrent_r.c
3316         (nscd_setnetgrent): New function, broken out of ...
3317         (setnetgrent): ... here.  Call it.
3318         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3319         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3320         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3321         * nscd/Makefile (routines, aux): Move definitions after include of
3322         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3323         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3324         Conditionalize on [USE_NSCD].
3325         (is_nscd, nscd_init_cb): Likewise.
3326         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3327         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3328         * nss/nss_db/db-init.c: Likewise.
3329         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3330         [USE_NSCD].
3331         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3332         (make_request): Use it.
3333         (cache_valid_p): New function.
3334         (__check_pf): Use it.
3335         * NEWS: Add item for --disable-nscd.
3336
3337 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3338
3339         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3340         to support sed >= 4.2.1-20-ga9bf076.
3341         * configure: Regenerated.
3342
3343 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3344
3345         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3346         Conditionalize whole body on [IREL].
3347
3348 2012-08-22  Jeff Law <law@redhat.com>
3349
3350         [BZ #14505]
3351         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3352         if the family is PF_UNSPEC.
3353
3354 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3355
3356         * Makerules (lib-version): Rename from V.
3357         (install-lib-nosubdir): Change V to lib-version.
3358
3359 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3360
3361         [BZ #14252]
3362         * powerpc32/power6/wcschr.c: New file.
3363         * powerpc32/power6/wcscpy.c: New file.
3364         * powerpc32/power6/wcsrchr.c: New file.
3365         * powerpc64/power6/wcschr.c: New file.
3366         * powerpc64/power6/wcscpy.c: New file.
3367         * powerpc64/power6/wcsrchr.c: New file.
3368
3369 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3370
3371         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3372         (two_way_short_needle): Use it.
3373         * string/strstr.c (AVAILABLE1_USES_J): Define.
3374         * string/strcasestr.c: Likewise.
3375
3376         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3377         array references.
3378         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3379
3380         [BZ #11607]
3381         * NEWS: Add an entry.
3382         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3383         define their defaults.
3384         (two_way_short_needle): Detect end-of-string on-the-fly.
3385         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3386         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3387         * string/bug-strcasestr1.c: New test.
3388         * string/Makefile: Run it.
3389
3390 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3391
3392         [BZ #11607]
3393         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3394         the first character.
3395
3396 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3397
3398         * csu/elf-init.c (__libc_csu_irel): Function removed.
3399         * csu/libc-start.c (apply_irel): New function.
3400         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3401
3402 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3403
3404         * sysdeps/unix/sysv/linux/kernel-features.h
3405         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3406         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3407         <kernel-features.h>.
3408         [__NR_fadvise64_64]: Make code unconditional.
3409         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3410         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3411         !__NR_fadvise64_64)]: Likewise.
3412         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3413         !__NR_fadvise64_64))]: Likewise.
3414         [__NR_fadvise64]: Make code unconditional.
3415         [!__NR_fadvise64]: Remove conditional code.
3416         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3417         <kernel-features.h>.
3418         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3419         unconditional.
3420         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3421         conditional code.
3422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3423         not include <kernel-features.h>.
3424         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3425         unconditional.
3426         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3427         conditional code.
3428         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3429         include <kernel-features.h>.
3430         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3431         unconditional.
3432         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3433         conditional code.
3434
3435 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3436
3437         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3438         slight instruction rearrangements per scrollpipe analysis.
3439         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3440
3441 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3442
3443         * manual/syslog.texi (syslog; vsyslog, closelog):
3444         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3445         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3446
3447         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3448         DSOCAPS to match condition on defining it.
3449
3450 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3451
3452         * sysdeps/unix/sysv/linux/kernel-features.h
3453         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3455         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3456         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3458         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3459         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3461         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3462         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3463
3464         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3465         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3466
3467         * sysdeps/unix/sysv/linux/kernel-features.h
3468         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3469         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3470         unconditional.
3471         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3472         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3473         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3474         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3475         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3476         Make code unconditional.
3477         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3478         (__mmap64) [!__NR_mmap2]: Likewise.
3479         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3480         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3481         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3482         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3483         [__NR_mmap2]: Make code unconditional.
3484         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3485         (__mmap64) [!__NR_mmap2]: Likewise.
3486
3487 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3488
3489         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3490
3491 2012-08-18  Andreas Jaeger  <aj@suse.de>
3492
3493         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3494
3495 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3496
3497         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3498         * include/unistd.h (__have_sock_cloexec): Likewise.
3499         (__have_pipe2): Likewise.
3500         (__have_dup3): Likewise.
3501
3502 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3503
3504         [BZ #9685]
3505         * include/unistd.h (__have_pipe2): Change define into an extern int.
3506         (__have_dup3): Likewise.
3507         * socket/have_sock_cloexec.c: Include fcntl.h.
3508         (__have_pipe2): New variable.
3509         (__have_dup3): Likewise.
3510
3511 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3512
3513         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3514
3515 2012-08-17  Marek Polacek  <polacek@redhat.com>
3516
3517         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3518         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3519
3520 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3521
3522         * configure.in: Add AC_SUBST for sysheaders.
3523         * configure: Regenerated.
3524         * config.make.in (sysheaders): New substituted variable.
3525
3526         * sysdeps/unix/mkfifo.c: Moved ...
3527         * sysdeps/posix/mkfifo.c: ... here.
3528         * sysdeps/unix/mkfifoat.c: Moved ...
3529         * sysdeps/posix/mkfifoat.c: ... here.
3530
3531         * sysdeps/unix/utime.c: Moved ...
3532         * sysdeps/posix/utime.c: ... here.
3533
3534         * sysdeps/unix/time.c: Moved ...
3535         * sysdeps/posix/time.c: ... here.
3536         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3537         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3538
3539         * sysdeps/unix/nice.c: Moved ...
3540         * sysdeps/posix/nice.c: ... here.
3541
3542         * sysdeps/unix/alarm.c: Moved ...
3543         * sysdeps/posix/alarm.c: ... here.
3544
3545         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3546
3547 2012-08-17  Jeff Law <law@redhat.com>
3548
3549         * intl/Makefile (codeset_mo): New variable.
3550         ($(codeset_mo)): New target.
3551         (tst-codeset.out): Depend on that.  Remove explicit rule.
3552         (tst-gettext3.out, tst-gettext5.out): Likewise.
3553         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3554         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3555         * intl/tst-codeset.sh: Remove.
3556         * intl/tst-gettext3.sh: Likewise.
3557         * intl/tst-gettext5.sh: Likewise.
3558
3559 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3560
3561         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3562         * sysdeps/unix/syscalls.list: ... here.
3563
3564         * sysdeps/posix/getaddrinfo.c
3565         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3566         (gaiconf_init, gaiconf_reload): Use them.
3567         [!_STATBUF_ST_NSEC]
3568         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3569         Define using time_t rather than struct timespec.
3570
3571         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3572         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3573         Macros removed.
3574         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3575         [!NO_THREADS].
3576         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3577         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3578         Likewise.
3579
3580         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3581         __libc_cleanup_push argument.
3582
3583         * bits/param.h: New file.
3584         * misc/sys/param.h: New file.
3585         * include/sys/param.h: New file.
3586         * misc/Makefile (headers): Add bits/param.h.
3587         * sysdeps/generic/sys/param.h: File removed.
3588         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3589         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3590         * sysdeps/mach/hurd/bits/param.h: New file.
3591         * sysdeps/mach/hurd/sys/param.h: File removed.
3592
3593         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3594         last change.
3595
3596         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3597         [_IO_MTSAFE_IO].
3598         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3599         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3600         New macros.
3601
3602         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3603         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3604         rather than -D_IO_MTSAFE_IO conditionally.
3605         * stdio-common/Makefile (CPPFLAGS): Likewise.
3606         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3607         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3608         Use $(libio-mtsafe).
3609         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3610         of -D_IO_MTSAFE_IO.
3611         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3612         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3613         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3614         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3615         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3616         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3617         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3618         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3619         (CFLAGS-fread_u_chk.c): Likewise.
3620         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3621         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3622         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3623         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3624         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3625         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3626         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3627         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3628         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3629
3630         * libio/Makefile: Test [$(libc-reentrant) = yes]
3631         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3632
3633         * Makeconfig
3634         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3635         * sysdeps/pthread/configure: File removed.
3636         * sysdeps/pthread/Makeconfig: New file.
3637         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3638         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3639
3640 2012-08-16  Gary Benson  <gbenson@redhat.com>
3641
3642         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3643         unmapping the first object in a namespace.
3644
3645 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3646
3647         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3648         (__internal_setnetgrent): ... this.  Add internal_function to
3649         definition.  Add libc_hidden_def.
3650         (setnetgrent): Update caller.
3651         (internal_endnetgrent): Renamed to ...
3652         (__internal_endnetgrent): ... this.  Add internal_function to
3653         definition.  Add libc_hidden_def.
3654         (endnetgrent): Update caller.
3655         (internal_getnetgrent_r): Renamed to ...
3656         (__internal_getnetgrent_r): ... this.  Add internal_function to
3657         definition.  Add libc_hidden_def.
3658         (__getnetgrent_r): Update caller.
3659         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3660
3661 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3662
3663         * stdlib/longlong.h: Update from GCC.
3664
3665 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3666
3667         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3668         on _QL, which is set by umul_ppmm but never used.
3669         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3670         variables, which are set by GMP macros but never used.
3671         * stdio-common/_itowa.c (_itowa): Likewise.
3672         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3673         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3674
3675 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3676
3677         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3678         struct La_sh_regs is not constant.
3679         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3680         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3681         and struct La_sparc64_regs are not constant.
3682
3683 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3684
3685         * sysdeps/unix/sysv/linux/kernel-features.h
3686         (__ASSUME_POSIX_TIMERS): Remove.
3687         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3688         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3689         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3690         Make code unconditional.
3691         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3692         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3693         Make code unconditional.
3694         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3695         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3696         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3697         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3698         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3699         Make code unconditional.
3700         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3701         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3702         (__libc_missing_posix_timers): Remove.
3703
3704 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3705
3706         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3707         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3708
3709         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3710
3711         * elf/dl-sym.c: Include <stdlib.h>.
3712
3713         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3714         constants, which avoids warnings in 32-bit builds.
3715
3716         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3717         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3718
3719         * misc/lseek.c: File moved to ...
3720         * io/lseek.c: ... here.
3721
3722         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3723
3724         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3725         shifting LEN more than 31 bits at once.
3726
3727 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3728
3729         [BZ #14195]
3730         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3731         segmentation fault for a case of two empty input strings.
3732         * string/test-strncasecmp.c (check1): Renamed to...
3733         (bz12205): ...this.
3734         (bz14195): Add new testcase for two empty input strings and N > 0.
3735         (test_main): Call new testcase, adapt for renamed function.
3736
3737 2012-08-15  Andreas Jaeger  <aj@suse.de>
3738
3739         [BZ #14090]
3740         * crypt/md5test2.c: New test, based on test supplied by Serge
3741         Belyshev <belyshev@depni.sinp.msu.ru>.
3742         * crypt/Makefile (xtests): Add md5test-giant..
3743         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3744
3745 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3746
3747         [BZ #14090]
3748         * crypt/md5.c (md5_process_block): Don't assume the buffer
3749         length is less than 2**32.
3750         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3751         length is less than 2**64.
3752
3753 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3754
3755         * string/str-two-way.h: Include <sys/param.h>.
3756         (MAX): Macro removed.
3757
3758         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3759         Move #define and #undef of memmove to just before and after
3760         including <string.h>.
3761
3762         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3763         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3764         and after including <string.h>.  Move declarations of
3765         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3766         to before #include "string/memmove.c".
3767
3768         * include/dirent.h: Declare __getdirentries.
3769
3770         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3771         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3772
3773 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3774
3775         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3776         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3777         * sysdeps/i386/configure: Regenerated.
3778         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3779         STABS_CURRENT_FILE, and STABS_FUN.
3780         (END): Remove call to STABS_FUN_END.
3781         (STABS_CURRENT_FILE1): Delete.
3782         (STABS_CURRENT_FILE): Likewise.
3783         (STABS_FUN): Likewise.
3784         (STABS_FUN_END): Likewise.
3785         (STABS_FUN2): Likewise.
3786         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3787         * sysdeps/x86_64/configure: Regenerated.
3788
3789 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3790
3791         * elf/dl-open.c: Include <atomic.h>.
3792         * elf/dl-lookup.c: Likewise.
3793
3794 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3795
3796         * sysdeps/unix/sysv/linux/kernel-features.h
3797         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3798         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3799         unconditionally.
3800         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3801         unconditionally.
3802         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3803         condition on __ASSUME_CLONE_THREAD_FLAGS.
3804
3805 2012-08-14  Andreas Jaeger  <aj@suse.de>
3806
3807         * sysdeps/i386/fpu/libm-test-ulps: Update.
3808
3809 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3810
3811         * include/atomic.h (atomic_exchange_and_add): Split into ...
3812         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3813         New atomic macros.
3814
3815 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3816
3817         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3818
3819 2012-08-13  Jeff Law <law@redhat.com>
3820
3821         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3822         null byte in the output string.
3823
3824 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3825
3826         * sysdeps/unix/sysv/linux/kernel-features.h
3827         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3828         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3829         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3830         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3831         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3832         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3833         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3834
3835 2012-08-09  Jeff Law <law@redhat.com>
3836
3837         [BZ #13939]
3838         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3839         When avoid_arena is set, don't retry in the that arena.  Pick the
3840         next one, whatever it might be.
3841         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3842         (arena_lock): Pass in new parameter to arena_get2.
3843         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3844         arena_get2.
3845         (__libc_malloc): Unify retrying after main arena failure with
3846         __libc_memalign version.
3847         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3848
3849 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3850
3851         [BZ #14166]
3852         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3853         to __redirect_strstr.
3854         (__strstr_sse42): Use typeof __redirect_strstr.
3855         (__strstr_ia32): Likewise.
3856         (__libc_strstr): New prototype.
3857         (strstr): Renamed to ...
3858         (__libc_strstr): This.
3859         (strstr): New strong alias of __libc_strstr.
3860         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3861         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3862         __redirect_time.
3863         Include <time.h>.
3864         (__libc_time): New prototype.
3865         (time_ifunc): Replace time with __libc_time.
3866         (time): New strong alias and hidden definition of __libc_time.
3867         (__GI_time): Remove strong alias.
3868         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3869         Include <stddef.h>.
3870         (memmove): Redefined to __redirect_memmove.
3871         (__memmove_sse2): Use typeof __redirect_memmove.
3872         (__memmove_ssse3): Likewise.
3873         (__memmove_ssse3_back): Likewise.
3874         (__libc_memmove): New prototype.
3875         (memmove): Renamed to ...
3876         (__libc_memmove): This.
3877         (memmove): New strong alias of __libc_memmove.
3878
3879 2012-08-08  Mark Salter  <msalter@redhat.com>
3880
3881         * elf/elf.h
3882         (R_MN10300_TLS_GD): Define.
3883         (R_MN10300_TLS_LD): Likewise.
3884         (R_MN10300_TLS_LDO): Likewise.
3885         (R_MN10300_TLS_GOTIE): Likewise.
3886         (R_MN10300_TLS_IE): Likewise.
3887         (R_MN10300_TLS_LE): Likewise.
3888         (R_MN10300_TLS_DTPMOD): Likewise.
3889         (R_MN10300_TLS_DTPOFF): Likewise.
3890         (R_MN10300_TLS_TPOFF): Likewise.
3891         (R_MN10300_SYM_DIFF): Likewise.
3892         (R_MN10300_ALIGN): Likewise.
3893         (R_MN10300_NUM): Update.
3894
3895 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3896
3897         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3898         Remove.
3899
3900 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3901
3902         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3903
3904         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3905         sysdeps/unix -> sysdeps/posix move.
3906         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3907
3908 2012-08-07      Allan McRae     <allan@archlinux.org>
3909
3910         [BZ #14303]
3911         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3912         (SUNOS_CPP): Likewise.
3913         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3914         not found.
3915         (open_input): Call CPP using execvp.
3916
3917 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3918
3919         * sysdeps/unix/sysv/linux/kernel-features.h
3920         (__ASSUME_PROT_GROWSUPDOWN): Remove.
3921         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3922         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3923         (__ASSUME_WAITID_SYSCALL): Likewise.
3924         * sysdeps/unix/sysv/linux/dl-execstack.c
3925         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
3926         code unconditional.
3927         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
3928         conditional code.
3929         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
3930         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
3931         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
3932         code.
3933         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
3934         unconditional.
3935         [__ASSUME_WAITID_SYSCALL]: Likewise.
3936         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
3937
3938 2012-08-07  Roland McGrath  <roland@hack.frob.com>
3939
3940         * sysdeps/unix/closedir.c: Renamed to ...
3941         * sysdeps/posix/closedir.c: ... here.
3942         * sysdeps/unix/dirfd.c: Renamed to ...
3943         * sysdeps/posix/dirfd.c: ... here.
3944         * sysdeps/unix/dirstream.h: Renamed to ...
3945         * sysdeps/posix/dirstream.h: ... here.
3946         * sysdeps/unix/fdopendir.c: Renamed to ...
3947         * sysdeps/posix/fdopendir.c: ... here.
3948         * sysdeps/unix/opendir.c: Renamed to ...
3949         * sysdeps/posix/opendir.c: ... here.
3950         * sysdeps/unix/readdir.c: Renamed to ...
3951         * sysdeps/posix/readdir.c: ... here.
3952         * sysdeps/unix/readdir_r.c: Renamed to ...
3953         * sysdeps/posix/readdir_r.c: ... here.
3954         * sysdeps/unix/rewinddir.c: Renamed to ...
3955         * sysdeps/posix/rewinddir.c: ... here.
3956         * sysdeps/unix/seekdir.c: Renamed to ...
3957         * sysdeps/posix/seekdir.c: ... here.
3958         * sysdeps/unix/telldir.c: Renamed to ...
3959         * sysdeps/posix/telldir.c: ... here.
3960         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3961         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3962         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3963         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3964
3965         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3966         * bits/fcntl.h: ... here.
3967
3968         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3969         not 0.
3970         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3971         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3972         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3973         (struct flock): Move l_start, l_len to the beginning.
3974         Use __pid_t for l_pid.
3975         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3976         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3977         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3978         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3979         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3980         [__USE_LARGEFILE64] (struct flock64): New type.
3981         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3982
3983         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3984         * bits/dirent.h: ... here.
3985
3986         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3987         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3988
3989 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3990
3991         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3992         Change from 2.6.0 to 2.6.16.
3993         * sysdeps/unix/sysv/linux/configure: Regenerated.
3994         * sysdeps/unix/sysv/linux/kernel-features.h
3995         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3996         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3997         version.
3998         (__ASSUME_UTIMES): Likewise.
3999         (__ASSUME_CLONE_STOPPED): Remove.
4000         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4001         architectures, not kernel version.
4002         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4003         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4004         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4005         (__ASSUME_WAITID_SYSCALL): Likewise.
4006         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4007         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4008         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4009         refer to older versions.
4010
4011 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4012
4013         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4014         Define alphasort64 as an alias.
4015         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4016         Define versionsort64 as an alias.
4017         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4018         Define scandir64 as an alias.
4019         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4020         Define scandirat64 as an alias.
4021         * dirent/alphasort64.c (alphasort64):
4022         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4023         * dirent/versionsort64.c: Likewise.
4024         * dirent/scandir64.c: Likewise.
4025         * dirent/scandirat64.c: Likewise.
4026         * sysdeps/wordsize-64/alphasort.c: File removed.
4027         * sysdeps/wordsize-64/alphasort64.c: File removed.
4028         * sysdeps/wordsize-64/scandir.c: File removed.
4029         * sysdeps/wordsize-64/scandir64.c: File removed.
4030         * sysdeps/wordsize-64/scandirat.c: File removed.
4031         * sysdeps/wordsize-64/scandirat64.c: File removed.
4032         * sysdeps/wordsize-64/versionsort.c: File removed.
4033         * sysdeps/wordsize-64/versionsort64.c: File removed.
4034         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4035         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4036         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4037         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4038         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4039         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4040         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4041         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4042
4043         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4044         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4045         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4046         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4047         [defined __arch64__ || defined __sparcv9]
4048         (__INO_T_MATCHES_INO64_T): New macro.
4049         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4050         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4051         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4052         * sysdeps/unix/sysv/linux/bits/dirent.h
4053         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4054         (_DIRENT_MATCHES_DIRENT64): New macro.
4055
4056         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4057         Define lockf64 as an alias.
4058         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4059         Define fseeko64 as an alias.
4060         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4061         Define ftello64 as an alias.
4062         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4063         Define _IO_fgetpos64 and fgetpos64 as aliases.
4064         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4065         Define _IO_fsetpos64 and fsetpos64 as aliases.
4066         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4067         Conditionalize body on this.
4068         * libio/fseeko64.c: Likewise.
4069         * libio/ftello64.c: Likewise.
4070         * libio/iofgetpos64.c: Likewise.
4071         * libio/iofsetpos64.c: Likewise.
4072         * sysdeps/wordsize-64/lockf.c: File removed.
4073         * sysdeps/wordsize-64/lockf64.c: File removed.
4074         * sysdeps/wordsize-64/fseeko.c: File removed.
4075         * sysdeps/wordsize-64/fseeko64.c: File removed.
4076         * sysdeps/wordsize-64/ftello.c: File removed.
4077         * sysdeps/wordsize-64/ftello64.c: File removed.
4078         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4079         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4080         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4081         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4082         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4083         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4084         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4085         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4086         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4087         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4088         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4089         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4090         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4091         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4092
4093         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4094         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4095         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4096         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4097         [defined __arch64__ || defined __sparcv9]
4098         (__OFF_T_MATCHES_OFF64_T): New macro.
4099         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4100         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4101         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4102         (__OFF_T_MATCHES_OFF64_T): New macro.
4103
4104 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4105
4106         * stdlib/secure-getenv.c (__secure_getenv): Replace
4107         GLIBC_2_16 with GLIBC_2_17.
4108
4109 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4110
4111         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4112         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4113
4114 2012-08-03  David S. Miller  <davem@davemloft.net>
4115
4116         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4117
4118 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4119
4120         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4121         Remove.
4122         (__ASSUME_CORRECT_SI_PID): Likewise.
4123         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4124         (__ASSUME_TMPFS_NAME): Likewise.
4125         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4126         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4127         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4128         (HAVE_AUX_SECURE): Make definition unconditional.
4129         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4130         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4131
4132 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4133
4134         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4135         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4136         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4137         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4138         __eloop_threshold instead of SYMLOOP_MAX.
4139
4140         * sysdeps/generic/eloop-threshold.h: New file.
4141         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4142         of MAXSYMLINKS.
4143         * elf/chroot_canon.c (chroot_canon): Likewise.
4144
4145 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4146
4147         [BZ #13717]
4148         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4149         Change to 2.6.0 everywhere.
4150         * sysdeps/unix/sysv/linux/configure: Regenerated.
4151         * sysdeps/unix/sysv/linux/kernel-features.h
4152         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4153         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4154         kernel versions.
4155         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4156         (__ASSUME_FUTEX_REQUEUE): Remove.
4157         (__ASSUME_STATFS64): Define unconditionally.
4158         (__ASSUME_AT_SECURE): Likewise.
4159         (__ASSUME_CORRECT_SI_PID): Likewise.
4160         (__ASSUME_TGKILL): Define without depending on kernel version for
4161         i386.
4162         (__ASSUME_UTIMES): Likewise.
4163         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4164         kernel version.
4165         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4166         (__ASSUME_TMPFS_NAME): Likewise.
4167         * README: Update reference to Linux kernel versions.
4168
4169 2012-08-02  Marek Polacek  <polacek@redhat.com>
4170
4171         [BZ# 14150]
4172         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4173         libc_cv_asm_type_prefix with %.
4174         * configure: Regenerated.
4175         * include/libc-symbols.h: Remove comment about
4176         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4177         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4178         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4179         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4180         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4181         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4182         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4183         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4184         * elf/tst-unique2mod1.c: Likewise.
4185         * elf/tst-unique1mod2.c: Likewise.
4186         * elf/tst-unique1mod1.c: Likewise.
4187         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4188         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4189         Replace ASM_TYPE_DIRECTIVE with .type.
4190         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4191         * sysdeps/i386/sysdep.h: Likewise.
4192         * sysdeps/x86_64/sysdep.h: Likewise.
4193         * sysdeps/sh/sysdep.h: Likewise.
4194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4195         Do not define ASM_TYPE_DIRECTIVE.
4196         * sysdeps/powerpc/sysdep.h: Likewise.
4197         * sysdeps/powerpc/powerpc32/sysdep.h:
4198         Replace ASM_TYPE_DIRECTIVE with .type.
4199         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4200         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4201         * sysdeps/i386/fpu/e_powf.S: Likewise.
4202         * sysdeps/i386/fpu/e_expl.S: Likewise.
4203         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4204         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4205         * sysdeps/i386/fpu/e_pow.S: Likewise.
4206         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4207         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4208         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4209         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4210         * sysdeps/i386/fpu/e_log2.S: Likewise.
4211         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4212         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4213         * sysdeps/i386/fpu/e_powl.S: Likewise.
4214         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4215         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4216         * sysdeps/i386/fpu/e_logl.S: Likewise.
4217         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4218         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4219         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4220         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4221         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4222         * sysdeps/i386/fpu/e_log.S: Likewise.
4223         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4224         * sysdeps/i386/fpu/e_logf.S: Likewise.
4225         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4226         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4227         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4228         * sysdeps/i386/fpu/e_log10.S: Likewise.
4229         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4230         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4231         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4232         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4233         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4234         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4235         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4236         * sysdeps/i386/i686/strtok.S: Likewise.
4237         * sysdeps/i386/i386-mcount.S: Likewise.
4238         * sysdeps/i386/strtok.S: Likewise.
4239         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4240         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4241         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4242         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4243         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4244         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4245         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4246         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4247         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4248         * sysdeps/x86_64/_mcount.S: Likewise.
4249         * sysdeps/x86_64/strtok.S: Likewise.
4250         * sysdeps/sh/_mcount.S: Likewise.
4251
4252 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4253
4254         * libio/iofopen.c: Include <fcntl.h>.
4255         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4256         (_IO_fopen64, fopen64): Define as aliases.
4257         * libio/iofopen64.c: Include <fcntl.h>.
4258         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4259         Conditionalize body on this.
4260         * sysdeps/wordsize-64/iofopen.c: File removed.
4261         * sysdeps/wordsize-64/iofopen64.c: File removed.
4262
4263 2012-08-01  Marek Polacek  <polacek@redhat.com>
4264
4265         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4266         Use dlfcn directly instead of a variable.
4267         (binfmt-subdir): Do not define.
4268         (dlfcn): Likewise.
4269
4270 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4271
4272         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4273         Remove all definitions.
4274         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4275         <kernel-features.h>.
4276         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4277         (miss_F_GETOWN_EX): Remove all definitions.
4278         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4279         macro definition.
4280         [!__ASSUME_FCNTL64]: Remove conditional code.
4281         [__ASSUME_FCNTL64]: Make code unconditional.
4282         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4283         <kernel-features.h>.
4284         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4285         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4286         (lockf64) [__NR_fcntl64]: Make code unconditional.
4287         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4288
4289         * sysdeps/unix/sysv/linux/kernel-features.h
4290         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4291         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4292         Make code unconditional.
4293         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4294         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4296         [__NR_vfork]: Make code unconditional.
4297         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4298         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4300         [__NR_vfork]: Make code unconditional.
4301         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4302         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4303
4304 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4305
4306         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4307         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4308
4309         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4310         Define mkstemp64 as an alias.
4311         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4312         Define mkstemps64 as an alias.
4313         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4314         Define mkostemp64 as an alias.
4315         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4316         Define mkostemps64 as an alias.
4317         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4318         Conditionalize body on this.
4319         * misc/mkostemp64.c: Likewise.
4320         * misc/mkostemps64.c: Likewise.
4321         * misc/mkstemps64.c: Likewise.
4322         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4323         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4324         * sysdeps/wordsize-64/mkostemp.c: File removed.
4325         * sysdeps/wordsize-64/mkstemp.c: File removed.
4326         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4327         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4328         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4329         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4330
4331         [BZ #14138]
4332         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4333         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4334         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4335         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4336
4337         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4338         compat_symbol macros from <shlib-compat.h> rather than the underlying
4339         default_symbol_version and symbol_version macros, so that DEFAULT
4340         lines in shlib-versions are respected.
4341         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4342
4343 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4344
4345         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4346         Declare with warn_unused_result.
4347         (setgid, setregid, setegid, setresgid): Likewise.
4348         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4349         Likewise.
4350         * WUR-REPORT: Remove set*id functions.
4351
4352 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4353
4354         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4355
4356 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4357
4358         * include/sys/socket.h (__libc_accept, __libc_accept4):
4359         Add attribute_hidden.
4360         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4361
4362         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4363         use of PTR_MANGLE.
4364         * inet/getnetgrent_r.c (setup): Likewise.
4365
4366         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4367
4368 2012-07-31  David S. Miller  <davem@davemloft.net>
4369
4370         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4371
4372 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4373
4374         [BZ #13629]
4375         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4376         value between 1.0 and 2.0 and smaller part has absolute value less
4377         than 1.0.
4378         * math/s_clog10.c (__clog10): Likewise.
4379         * math/s_clog10f.c (__clog10f): Likewise.
4380         * math/s_clog10l.c (__clog10l): Likewise.
4381         * math/s_clogf.c (__clogf): Likewise.
4382         * math/s_clogl.c (__clogl): Likewise.
4383         * math/libm-test.inc (clog_test): Add more tests.
4384         (clog10_test): Likewise.
4385         * sysdeps/i386/fpu/libm-test-ulps: Update.
4386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4387
4388 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4389
4390         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4391         Exit with zero in case no suitable GID is found, and write a
4392         message to standard error.
4393
4394 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4395
4396         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4397         rather than to 1.
4398         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4399         (MAXPATHLEN): Removed.
4400         (NOGROUP, NODEV): New macros.
4401         (setbit, clrbit, isset, isclr): New macros.
4402         (howmany, roundup, powerof2): New macros.
4403         (DEV_BSIZE): New macro.
4404
4405         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4406         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4407
4408         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4409         definition on [!__NO_LONG_DOUBLE_MATH].
4410
4411         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4412         PTR_MANGLE and PTR_DEMANGLE.
4413
4414         * socket/accept4.c (accept4): Rename to __libc_accept4.
4415         Define accept4 as a weak alias.
4416
4417         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4418         on [_DIRENT_HAVE_D_TYPE].
4419         * io/ftw.c (ftw_dir): Likewise.
4420
4421         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4422
4423         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4424
4425         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4426         Use the BSD numbers rather than the arbitrary ones we had.
4427         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4428         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4429         (SIGXCPU, SIGXFSZ): New macros.
4430         (_NSIG): Now 32.
4431
4432         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4433         initializer on [_LIBC_REENTRANT].
4434
4435         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4436         definitions inside [_POSIX_MAPPED_FILES].
4437
4438         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4439
4440         * dirent/opendir.c: Include <fcntl.h>.
4441
4442         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4443         (__libc_getspecific): Likewise.
4444         (__libc_key_create): Likewise.
4445
4446         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4447         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4448         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4449         (tmpfile64): Define as alias.
4450         * sysdeps/wordsize-64/tmpfile.c: File removed.
4451         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4452         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4453         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4454
4455         * stdio-common/vfscanf.c: Include <stdbool.h>.
4456         * nss/makedb.c: Likewise.
4457         * stdio-common/_i18n_number.h: Likewise.
4458         * argp/argp-help.c: Likewise.
4459         * posix/wordexp.c: Likewise.
4460         * sysdeps/posix/spawni.c: Likewise.
4461         * nss/nss_files/files-initgroups.c: Likewise.
4462         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4463         * nss/nss_files/files-initgroups.c: Likewise.
4464         * nss/nss_db/db-netgrp.c: Likewise.
4465         * nss/nss_db/db-initgroups.c: Likewise.
4466         * io/fchmodat.c: Include <sys/stat.h>.
4467
4468         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4469         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4470
4471         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4472         [HAVE_MMAP].
4473
4474         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4475         Add multiple inclusion protection.
4476
4477 2012-07-27  David S. Miller  <davem@davemloft.net>
4478
4479         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4480
4481 2012-07-27  Gary Benson  <gbenson@redhat.com>
4482
4483         [BZ #14298]
4484         * elf/rtld.c: Include <stap-probe.h>.
4485         (dl_main): Added static probes "init_start" and "init_complete".
4486         * elf/dl-load.c: Include <stap-probe.h>.
4487         (lose): Take new parameter "nsid".
4488         Added static probe "map_failed".
4489         (_dl_map_object_from_fd): Pass namespace id to lose.
4490         Added static probe "map_start".
4491         (open_verify): Pass namespace id to lose.
4492         * elf/dl-open.c: Include <stap-probe.h>.
4493         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4494         and "reloc_complete".
4495         * elf/dl-close.c: Include <stap-probe.h>.
4496         (_dl_close_worker): Added static probes "unmap_start" and
4497         "unmap_complete".
4498         * elf/rtld-debugger-interface.txt: New file documenting the above.
4499
4500 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4501
4502         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4503         rather than a string variable.
4504         * sunrpc/rpc_main.c (h_output): Likewise.
4505         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4506
4507 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4508
4509         * inet/check_native.c: New file.
4510
4511 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4512
4513         [BZ #13629]
4514         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4515         if larger part has absolute value 1.0.
4516         * math/s_clog10.c (__clog10): Likewise.
4517         * math/s_clog10f.c (__clog10f): Likewise.
4518         * math/s_clog10l.c (__clog10l): Likewise.
4519         * math/s_clogf.c (__clogf): Likewise.
4520         * math/s_clogl.c (__clogl): Likewise.
4521         * math/libm-test.inc (clog_test): Add more tests.
4522         (clog10_test): Likewise.
4523         * sysdeps/i386/fpu/libm-test-ulps: Update.
4524         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4525
4526         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4527         (pltexit): Likewise.
4528         (La_regs): Likewise.
4529         (La_retval): Likewise.
4530         (int_retval): Likewise.
4531         Update #error for removed macros to refer only to definitions in
4532         tst-audit.h.
4533         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4534         macro.
4535         (pltexit): Likewise.
4536         (La_regs): Likewise.
4537         (La_retval): Likewise.
4538         (int_retval): Likewise.
4539         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4540         macro.
4541         (pltexit): Likewise.
4542         (La_regs): Likewise.
4543         (La_retval): Likewise.
4544         (int_retval): Likewise.
4545         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4546         macro.
4547         (pltexit): Likewise.
4548         (La_regs): Likewise.
4549         (La_retval): Likewise.
4550         (int_retval): Likewise.
4551         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4552         macro.
4553         (pltexit): Likewise.
4554         (La_regs): Likewise.
4555         (La_retval): Likewise.
4556         (int_retval): Likewise.
4557         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4558         macro.
4559         (pltexit): Likewise.
4560         (La_regs): Likewise.
4561         (La_retval): Likewise.
4562         (int_retval): Likewise.
4563         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4564         macro.
4565         (pltexit): Likewise.
4566         (La_regs): Likewise.
4567         (La_retval): Likewise.
4568         (int_retval): Likewise.
4569         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4570         macro definitions in tst-audit.h.
4571         * sysdeps/i386/tst-audit.h: New file.
4572         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4573         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4574         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4575         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4576         * sysdeps/sh/tst-audit.h: Likewise.
4577         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4578         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4579         * sysdeps/x86_64/tst-audit.h: Likewise.
4580
4581 2012-07-26  Andreas Jaeger  <aj@suse.de>
4582
4583         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4584         ptrace.
4585
4586         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4587         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4588         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4589         PTRACE_O_MASK.
4590         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4591         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4592         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4593
4594         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4595         value.
4596
4597         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4598         _sigsys.
4599         (si_call_addr, si_syscall, si_arch): Define new macro.
4600         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4601         _sigsys.
4602         (si_call_addr, si_syscall, si_arch): Define new marcro.
4603         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4604         _sigsys.
4605         (si_call_addr, si_syscall, si_arch): Define new macro.
4606         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4607         _sigsys.
4608         (si_call_addr, si_syscall, si_arch): Define new macro.
4609
4610 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4611
4612         [BZ #13717]
4613         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4614         Change to 2.4.21 where previously 2.4.1.
4615         * sysdeps/unix/sysv/linux/configure: Regenerated.
4616         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4617         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4618         Linux kernel version.
4619         (__ASSUME_STD_AUXV): Remove.
4620         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4621         kernel version.
4622         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4623         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4624         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4625         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4626         (__ASSUME_NETLINK_SUPPORT): Likewise.
4627         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4628         (__no_netlink_support): Remove conditional definition.
4629         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4630         Remove.
4631         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4632         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4633         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4634         (if_nameindex_ioctl): Remove.
4635         (if_nameindex_netlink): Do not handle __no_netlink_support.
4636         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4637         code.
4638         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4639         Remove conditional code.
4640         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4641         code.
4642         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4643         unconditional.
4644         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4645         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4646         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4647         Remove.
4648         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4649         [!__ASSUME_STD_AUXV]: Remove conditional code.
4650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4651         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4652         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4654         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4655         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4656         code.
4657         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4659         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4660         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4661         conditional code.
4662         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4664         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4665         code.
4666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4667         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4668         conditional code.
4669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4670         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4671         code unconditional.
4672         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4673         conditional code.
4674         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4675         unconditional.
4676         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4677         conditional code.
4678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4679         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4680         unconditional.
4681         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4682         conditional code.
4683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4684         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4685         code unconditional.
4686         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4687         conditional code.
4688         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4689         unconditional.
4690         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4691         conditional code.
4692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4693         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4694         code unconditional.
4695         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4696         conditional code.
4697         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4698         unconditional.
4699         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4700         conditional code.
4701
4702 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4703
4704         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4705         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4706         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4707         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4708         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4709         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4710         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4711         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4712         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4713         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4714         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4715         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4716         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4717         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4718         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4719         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4720         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4721         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4722         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4723         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4724         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4725         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4726         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4727
4728 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4729
4730         * Versions.def: Add GLIBC_2.17.
4731         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4732         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4733         Introduce __libc_secure_getenv.
4734         * stdlib/Versions (2.17): Add secure_getenv
4735         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4736         * stdlib/secure-getenv.c: Rename __secure_getenv to
4737         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4738         symbol __secure_getenv for GLIBC_2.0.
4739         * stdlib/tst-secure-getenv.c: New.
4740         * stdlib/Makefile (tests): Add testcase.
4741         * manual/startup.texi (Environment Access): Document
4742         secure_getenv.
4743         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4744         __libc_secure_getenv.
4745         * inet/ruserpass.c (ruserpass): Likewise.
4746         * malloc/mtrace.c (mtrace): Likewise.
4747         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4748         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4749         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4750         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4751         HAVE_SECURE_GETENV.
4752         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4753         __secure_getenv to __libc_secure_getenv.
4754         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4756         Likewise.
4757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4758         Likewise.
4759         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4760         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4761         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4762         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4763         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4764         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4765         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4766
4767 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4768
4769         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4770         (struct La_i86_retval): Likewise.
4771         (struct La_x86_64_regs): Likewise.
4772         (struct La_x86_64_retval): Likewise.
4773         (struct La_x32_regs): Likewise.
4774         (struct La_x32_retval): Likewise.
4775         (struct La_ppc32_regs): Likewise.
4776         (struct La_ppc32_retval): Likewise.
4777         (struct La_ppc64_regs): Likewise.
4778         (struct La_ppc64_retval): Likewise.
4779         (struct La_sh_regs): Likewise.
4780         (struct La_sh_retval): Likewise.
4781         (struct La_s390_32_regs): Likewise.
4782         (struct La_s390_32_retval): Likewise.
4783         (struct La_s390_64_regs): Likewise.
4784         (struct La_s390_64_retval): Likewise.
4785         (struct La_sparc32_regs): Likewise.
4786         (struct La_sparc32_retval): Likewise.
4787         (struct La_sparc64_regs): Likewise.
4788         (struct La_sparc64_retval): Likewise.
4789         (struct audit_ifaces): Remove architecture-specific pltenter and
4790         pltexit members.
4791         * sysdeps/i386/ldsodefs.h: New file.
4792         * sysdeps/powerpc/ldsodefs.h: Likewise.
4793         * sysdeps/s390/ldsodefs.h: Likewise.
4794         * sysdeps/sh/ldsodefs.h: Likewise.
4795         * sysdeps/sparc/ldsodefs.h: Likewise.
4796         * sysdeps/x86_64/ldsodefs.h: Likewise.
4797
4798 2012-07-25  Marek Polacek  <polacek@redhat.com>
4799
4800         [BZ #6808]
4801         * math/libm-test.inc (yn_test): Add another test.
4802         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4803         to ERANGE when the result is +-Inf.
4804         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4805         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4806         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4807         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4808
4809 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4810
4811         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4812         equal to 0.
4813         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4814         clock_t.
4815         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4816
4817 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4818
4819         * configure.in <sysdeps resolving>: Correct printing
4820         Implies_before.
4821         * configure: Regenerate.
4822
4823 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4824
4825         * math/w_ilogb.c: Include <limits.h>.
4826         * math/w_ilogbl.c: Likewise.
4827
4828 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4829
4830         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4831         va_copy.  Document allowing for unavailable va_copy only as
4832         pre-C99 compatibility.
4833         * manual/string.texi (Copying and Concatenation): Use va_copy
4834         instead of __va_copy in concat example.
4835
4836 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4837
4838         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4839         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4840         it if not null.
4841
4842         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4843         with O_NOLINK passed to __file_name_lookup.
4844
4845         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4846         with O_NOLINK passed to __file_name_lookup.
4847
4848         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4849         negative N or less than NGIDS.
4850
4851         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4852         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4853         enough.  Use memcpy instead of strncpy.
4854
4855 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4856
4857         * elf/Makefile (check-data): Remove.
4858         (localplt.data): New vpath directive.
4859         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4860         instead of $(check-data).
4861         * scripts/data/localplt-generic.data: Move to ...
4862         * sysdeps/generic/localplt.data: ... here.
4863         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4864         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4865         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4867         ... here.
4868         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4870         ... here.
4871         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4872         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4873         ... here.
4874         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4875         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4876         ... here.
4877         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4878         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4879         ... here.
4880         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4881         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4882         ... here.
4883
4884 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4885
4886         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4887         PPC32 and PPC64 files.
4888         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4889         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4890
4891 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4892
4893         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4894         __makecontext_ret to ...
4895         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4896         ... here and call exit if uc_link is NULL.  New file.
4897         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4898         __makecontext_ret.S.
4899         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4900         __makecontext_ret to ...
4901         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4902         ... here and call exit if uc_link is NULL.  New file.
4903         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4904         __makecontext_ret.S.
4905
4906 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4907
4908         * elf/elf.h (R_390_IRELATIVE): New definition.
4909         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4910         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4911         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4912         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4913         (elf_machine_lazy_rel): Likewise.
4914         * sysdeps/s390/dl-irel.h: New file.
4915         * sysdeps/s390/s390-64/memcpy.S: New asm code.
4916         * sysdeps/s390/s390-64/memset.S: New asm code.
4917         * sysdeps/s390/s390-64/memcmp.S: New asm code.
4918         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
4919         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
4920         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
4921         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
4922         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
4923         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
4924         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
4925         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
4926         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
4927         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
4928         * sysdeps/s390/s390-32/memcpy.S: New asm code.
4929         * sysdeps/s390/s390-32/memset.S: New asm code.
4930         * sysdeps/s390/s390-32/memcmp.S: New asm code.
4931
4932 2012-07-17  Marek Polacek  <polacek@redhat.com>
4933
4934         [BZ #14349]
4935         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
4936         * sysdeps/s390/s390-64/configure.in: Likewise.
4937         * sysdeps/sparc/configure.in: Likewise.
4938         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
4939         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
4940         * sysdeps/i386/configure.in: Likewise.
4941         * sysdeps/x86_64/configure.in: Likewise.
4942         * sysdeps/sh/configure.in: Likewise.
4943         * sysdeps/s390/s390-32/configure: Regenerated.
4944         * sysdeps/s390/s390-64/configure: Likewise.
4945         * sysdeps/x86_64/configure: Likewise.
4946         * sysdeps/sh/configure: Likewise.
4947         * sysdeps/powerpc/powerpc64/configure: Likewise.
4948         * sysdeps/powerpc/powerpc32/configure: Likewise.
4949         * sysdeps/sparc/configure: Likwise.
4950         * sysdeps/i386/configure: Likewise.
4951
4952         * elf/dl-open.c: Comment fixes.
4953
4954 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4955
4956         * Makefile [CXX] (check-data): Remove.
4957         [CXX] (c++-types.data): New vpath directive.
4958         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4959         vpath.  Do not allow for C++ type data being missing.
4960         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4961         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4962         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4963         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4964         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4965         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4966         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4968         ... here.
4969         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4971         ... here.
4972         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4973         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4974         ... here.
4975         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4976         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4977         ... here.
4978         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4979         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4980         ... here.
4981         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4982         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4983         ... here.
4984         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4985         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4986         ... here.
4987         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4988         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4989
4990         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4991         definitions to architecture-specific files.
4992         (TLS_IE): Likewise.
4993         (TLS_LD): Likewise.
4994         (TLS_GD): Likewise.
4995         * sysdeps/i386/tls-macros.h: New file.
4996         * sysdeps/powerpc/tls-macros.h: Likewise.
4997         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4998         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4999         * sysdeps/sh/tls-macros.h: Likewise.
5000         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5001         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5002         * sysdeps/x86_64/tls-macros.h: Likewise.
5003
5004 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5005
5006         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5007         zero value for regular exit case.
5008
5009         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5010         (__start_context): Preserve zero value for regular exit case.
5011
5012 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5013             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5014
5015         * manual/setjmp.texi (setcontext): Clarify normal process
5016         termination when uc_link is the null pointer.
5017         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5018         exit call.
5019
5020 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5021
5022         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5023         preprocessor.  Test for each exception mask separately.
5024
5025 2012-07-16  Andreas Jaeger  <aj@suse.de>
5026
5027         * po/ru.po: Update from translation team.
5028
5029 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5030
5031         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5032         equal to 0.
5033         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5034         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5035         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5036         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5037         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5038
5039 2012-07-13  Andreas Jaeger  <aj@suse.de>
5040
5041         * po/fr.po: Update from translation team.
5042
5043 2012-07-12  Marek Polacek  <polacek@redhat.com>
5044
5045         [BZ #14173]
5046         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5047         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5048         loop condition.
5049
5050 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5051
5052         [BZ #13717]
5053         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5054         Change to 2.4.1 where previously 2.4.0.
5055         * sysdeps/unix/sysv/linux/configure: Regenerated.
5056         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5057         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5058         version.
5059         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5060         (__ASSUME_AT_CLKTCK): Remove.
5061         (__ASSUME_AT_PAGESIZE): Likewise.
5062         (__ASSUME_AT_XID): Likewise.
5063         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5064         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5065         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5066         unconditionally.
5067         (HAVE_AUX_PAGESIZE): Likewise.
5068         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5069         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5070         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5071
5072 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5073
5074         [BZ #14307]
5075         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5076         the temporary buffer used to invoke __gethostbyname2_r,
5077         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5078         host_data / struct gaih_addrtuple.
5079         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5080         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5081         header file nss/nsswitch.h.
5082         * nss/nsswitch.h (global scope): Add definition of implementation
5083         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5084         resolv/nss_dns/dns-host.c).
5085
5086 2012-07-11  Andreas Jaeger  <aj@suse.de>
5087
5088         * po/fr.po: Update from translation team.
5089
5090         * po/sv.po: Update from translation team
5091         * po/fr.po: Another update from translation team.
5092
5093 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5094
5095         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5096         for subnormals or multiply small sinh result by itself.
5097         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5098         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5099
5100 2012-07-11  David S. Miller  <davem@davemloft.net>
5101
5102         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5103
5104 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5105
5106         [BZ #14347]
5107         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5108         (INTERNAL_MARK): Shift it here.
5109
5110 2012-07-10  Marek Polacek  <polacek@redhat.com>
5111
5112         [BZ #14151]
5113         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5114         libc_cv_asm_global_directive with .globl.
5115         * configure: Regenerated.
5116         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5117         with .globl.
5118         * sysdeps/i386/configure: Regenerated.
5119         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5120         with .globl.
5121         * sysdeps/x86_64/configure: Regenerated.
5122         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5123         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5124         * elf/tst-unique2mod2.c: Likewise.
5125         * elf/tst-unique2mod1.c: Likewise.
5126         * elf/tst-unique1mod2.c: Likewise.
5127         * elf/tst-unique1mod1.c: Likewise.
5128         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5129         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5130         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5131         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5132         * sysdeps/mach/sysdep.h: Likewise.
5133         * sysdeps/i386/sysdep.h: Likewise.
5134         * sysdeps/i386/i386-mcount.S: Likewise.
5135         * sysdeps/x86_64/_mcount.S: Likewise.
5136         * sysdeps/x86_64/sysdep.h: Likewise.
5137         * sysdeps/sh/_mcount.S: Likewise.
5138         * sysdeps/sh/sysdep.h: Likewise.
5139         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5140         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5141         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5142         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5143         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5144         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5145         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5146         * locale/localeinfo.h: Likewise.
5147         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5148         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5149
5150 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5151
5152         [BZ #14336]
5153         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5154         system".
5155         * manual/message.texi (The Uniforum approach): Likewise.
5156         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5157         (glibc iconv Implementation): Likewise.
5158
5159 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5160
5161         [BZ #14337]
5162         * math/s_clog.c (__clog): Avoid scaling a value down where that
5163         could result in underflow.
5164         * math/s_clog10.c (__clog10): Likewise.
5165         * math/s_clog10f.c (__clog10f): Likewise.
5166         * math/s_clog10l.c (__clog10l): Likewise.
5167         * math/s_clogf.c (__clogf): Likewise.
5168         * math/s_clogl.c (__clogl): Likewise.
5169         * math/libm-test.inc (clog_test): Add more tests.
5170         (clog10_test): Likewise.
5171         * sysdeps/i386/fpu/libm-test-ulps: Update.
5172         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5173
5174 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5175
5176         [BZ #14283]
5177         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5178         by 7 not 8 to examine high bit of fractional part.
5179
5180         [BZ #14042]
5181         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5182         for call to __mcount_internal.
5183         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5184         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5185         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5186
5187 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5188
5189         [BZ #14154]
5190         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5191         approximation for values within 0x1p-13f of an odd multiple of
5192         pi/4.
5193         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5194         exception.  Add more tests.
5195         * sysdeps/i386/fpu/libm-test-ulps: Update.
5196
5197         [BZ #6778]
5198         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5199         inputs and return -1 for them.  Do not check for +Inf in case not
5200         reachable for +Inf.
5201         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5202         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5203         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5204         and return -1 for them.  Do not check for +Inf in case not
5205         reachable for +Inf.
5206         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5207         define.
5208         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5209         and return -1 for them.  Do not check for +Inf in case not
5210         reachable for +Inf.
5211         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5212         spurious underflow.
5213         * sysdeps/i386/fpu/libm-test-ulps: Update.
5214         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5215
5216 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5217
5218         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5219
5220 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5221
5222         [BZ #14157]
5223         [BZ #14331]
5224         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5225         could result in spurious underflow.  Scale down values above
5226         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5227         * math/s_csqrtf.c (__csqrtf): Likewise.
5228         * math/s_csqrtl.c (__csqrtl): Likewise.
5229         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5230         spurious underflow.
5231         * sysdeps/i386/fpu/libm-test-ulps: Update.
5232         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5233
5234 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5235
5236         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5237         xopen-msg.sed.
5238         * catgets/xopen-msg.awk: New file.
5239         * catgets/xopen-msg.sed: Removed.
5240
5241         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5242         po2text.sed.
5243         * intl/po2test.awk: New file.
5244         * intl/po2test.sed: Removed.
5245
5246 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5247
5248         [BZ #14328]
5249         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5250         or multiply small sinh result by itself.
5251         * math/s_ctanf.c (__ctanf): Likewise.
5252         * math/s_ctanh.c (__ctanh): Likewise.
5253         * math/s_ctanhf.c (__ctanhf): Likewise.
5254         * math/s_ctanhl.c (__ctanhl): Likewise.
5255         * math/s_ctanl.c (__ctanl): Likewise.
5256         * math/libm-test.inc (ctan_test_tonearest): New function.
5257         (ctan_test_towardzero): Likewise.
5258         (ctan_test_downward): Likewise.
5259         (ctan_test_upward): Likewise.
5260         (ctanh_test_tonearest): Likewise.
5261         (ctanh_test_towardzero): Likewise.
5262         (ctanh_test_downward): Likewise.
5263         (ctanh_test_upward): Likewise.
5264         (main): Call these new functions.
5265         * sysdeps/i386/fpu/libm-test-ulps: Update.
5266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5267
5268 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5269
5270         * .gitignore: Delete /ports entry.
5271
5272 2012-07-03  Andreas Jaeger  <aj@suse.de>
5273
5274         * po/bg.po: Update from translation team.
5275         * po/cs.po: Likewise.
5276         * po/de.po: Likewise.
5277         * po/hr.po: Likewise.
5278         * po/nl.pl: Likewise.
5279         * po/pl.po: Likewise.
5280         * po/vi.po: Likewise.
5281
5282 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5283
5284         * Makeconfig [!+link] (+link-before-libc): New variable.
5285         [!+link] (+link-after-libc): Likewise.
5286         [!+link] (+link-tests): Likewise.
5287         [!+link] (+link): Define in terms of $(+link-before-libc) and
5288         $(+link-after-libc).
5289         [!+link-static] (+link-static-before-libc): New variable.
5290         [!+link-static] (+link-static-after-libc): Likewise.
5291         [!+link-static] (+link-static-tests): Likewise.
5292         [!+link-static] (+link-static): Define in terms of
5293         $(+link-static-before-libc) and $(+link-static-after-libc).
5294         [build-shared] (link-libc-before-gnulib): New variable.
5295         [build-shared] (link-libc-tests): Likewise.
5296         [build-shared] (link-libc): Define in terms of
5297         $(link-libc-before-gnulib).
5298         [!build-shared] (link-libc-tests): New variable.
5299         (link-libc-static-tests): New variable.
5300         [!gnulib] (gnulib-arch): New variable.
5301         [!gnulib] (gnulib-tests): Likewise.
5302         [!gnulib] (static-gnulib-arch): Likewise.
5303         [!gnulib] (static-gnulib-tests): Likewise.
5304         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5305         Define with "=" instead of ":=".
5306         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5307         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5308         * Rules (binaries-all-notests): New variable.
5309         (binaries-all-tests): Likewise.
5310         (binaries-static-notests): Likewise.
5311         (binaries-static-tests): Likewise.
5312         (binaries-all): Define using $(binaries-all-notests) and
5313         $(binaries-all-tests).
5314         (binaries-static): Define using $(binaries-static-notests) and
5315         $(binaries-static-tests).
5316         (binaries-shared-tests): New variable.
5317         (binaries-shared-notests): Likewise.
5318         (binaries-shared): Remove variable.
5319         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5320         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5321         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5322         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5323         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5324         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5325         * elf/Makefile (sln-modules): New variable.
5326         (extra-objs): Add $(sln-modules:=.o).
5327         (ldconfig-modules): Add static-stubs.
5328         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5329         * elf/static-stubs.c: New file.
5330
5331         [BZ #14283]
5332         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5333         by 7 not 8 to examine high bit of fractional part.  Use volatile
5334         variables when splitting into final array of floats if
5335         __FLT_EVAL_METHOD__ != 0.
5336         * math/libm-test.inc (cos_test): Add another test.
5337         (sin_test): Likewise.
5338         * sysdeps/i386/fpu/libm-test-ulps: Update.
5339
5340         [BZ #14273]
5341         * math/libm-test.inc (cosh_test): Add more tests.
5342
5343         * version.h (RELEASE): Set to "development".
5344         (VERSION): Set to "2.16.90".
5345
5346 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5347
5348         * NEWS: Update copyright. Remove last-updated date.
5349         Mention math library bug fixes and timezone data changes.
5350         * README: Mention GNU/Hurd, x32, and HPPA support status.
5351
5352 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5353
5354         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5355
5356 2012-06-27  Andreas Jaeger  <aj@suse.de>
5357
5358         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5359
5360 2012-06-25  Andreas Jaeger  <aj@suse.de>
5361
5362         * sysdeps/s390/fpu/libm-test-ulps: Update.
5363
5364 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5365             Thomas Schwinge  <thomas@codesourcery.com>
5366
5367         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5368         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5369         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5370         fanotify_mark.
5371
5372 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5373
5374         * sysdeps/mach/start.c: Remove file.
5375         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5376         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5377         * sysdeps/sh/init-first.c: Likewise.
5378
5379         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5380         registers for frame unwinding purposes, add CFI directives.
5381         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5382         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5383         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5384         Likewise.
5385
5386         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5387         __fortify_fail returning.
5388         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5389
5390         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5391         sysdeps/sh/____longjmp_chk.S.
5392         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5393         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5394         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5395         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5396
5397         * sysdeps/sh/abort-instr.h: New file.
5398         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5399         process in case exit returns.
5400
5401         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5402         initialize the GOT register before use.
5403
5404         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5405         calculation of ARGC > 4.
5406
5407         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5408         meaningful names to some local labels.
5409
5410 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5411             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5412
5413         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5414         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5415         (__arch_compare_and_exchange_val_16_acq): Likewise.
5416         (__arch_compare_and_exchange_val_32_acq): Likewise.
5417         (atomic_exchange_and_add): Fix gUSA sequence.
5418         (atomic_add): Likewise.
5419         (atomic_add_negative): Likewise.
5420         (atomic_add_zero): Likewise.
5421         (atomic_bit_test_set): Likewise.
5422
5423 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5424
5425         [BZ #13579]
5426         * include/link.h (struct link_map): Add l_free_initfini.
5427         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5428         l_initfini.
5429         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5430         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5431         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5432         set.
5433
5434 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5435
5436         * configure.in: Use AC_LANG_SOURCE.
5437         * configure: Regenerate.
5438
5439 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5440
5441         * configure.in (libc_cv_localstatedir): New substituted variable.
5442         * configure: Regenerated.
5443         * config.make.in (localstatedir): New variable, substituted from
5444         libc_cv_localstatedir.
5445         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5446         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5447         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5448         * sysdeps/gnu/configure: Regenerated.
5449
5450 2012-06-21  Jeff Law  <law@redhat.com>
5451
5452         [BZ #14277]
5453         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5454         free.  Simplify list management for _LIBC case.
5455
5456 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5457
5458         [BZ #14273]
5459         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5460         Clear sign bit of 64-bit integer value before comparing against
5461         overflow value.
5462
5463         * sysdeps/mach/configure: Regenerated.
5464
5465 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5466
5467         [BZ #14278]
5468         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5469
5470 2012-06-21  Jeff Law  <law@redhat.com>
5471
5472         [BZ #13882]
5473         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5474         uint16_t for elements in the "seen" array to avoid char overflows.
5475         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5476         * elf/dl-open.c (dl_open_worker): Likewise.
5477
5478 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5479
5480         * scripts/list-sources.sh: Scan PORTS for translations.
5481         * po/libc.pot: Regenerated.
5482
5483 2012-06-21  Andreas Jaeger  <aj@suse.de>
5484
5485         [BZ #12194]
5486         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5487         warning.
5488         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5489         * bits/byteswap-16.h (__bswap_16): Likewise.
5490         * bits/byteswap.h (__bswap_constant_16): Likewise.
5491
5492 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5493
5494         [BZ #14117]
5495         * sysdeps/i386/fpu_control.h: Removed.
5496         * sysdeps/x86_64/fpu_control.h: Moved to ...
5497         * sysdeps/x86/fpu_control.h: Here.
5498
5499         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5500         (_FPU_SETCW): Likewise.
5501
5502 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5503
5504         [BZ #14117]
5505         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5506         * sysdeps/x86/fpu/bits/mathinline.h: This.
5507         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5508
5509         [BZ #14050]
5510         [BZ #14117]
5511         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5512         functions if __x86_64__ is defined.
5513
5514 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5515
5516         * string/endian.h: Add !__ASSEMBLER__ condition for including
5517         conversion interfaces.
5518
5519 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5520
5521         [BZ #14241]
5522         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5523         of ABS(x) in calculating zero to negative powers other than odd
5524         integers.
5525         * math/libm-test.inc (pow_test): Add more tests.
5526
5527 2012-06-15  Andreas Jaeger  <aj@suse.de>
5528
5529         * manual/contrib.texi (Contributors): Update entry of Liubov
5530         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5531         Machado Filho.
5532
5533 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5534
5535         * string/string.h: Add __wur to GNU version of strerror_r.
5536
5537 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5538
5539         [BZ #14229]
5540         * string/Makefile (tests): Add tst-strtok_r.
5541         * string/tst-strtok_r.c: New file.
5542         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5543         RAX_LP/RDX_LP on SAVE_PTR.
5544
5545 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5546
5547         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5548
5549 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5550
5551         * libm_test.inc (csqrt_test): Allow more spurious underflow
5552         exceptions.
5553         (j0_test): Likewise.
5554         (j1_test): Likewise.
5555         (y0_test): Likewise.
5556         (y1_test): Likewise.
5557
5558 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5559
5560         * po/Makefile (libc.pot): Use UTF-8 charset.
5561
5562 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5563
5564         [BZ #14210]
5565         Suppress sign-conversion warning from FD_SET.
5566         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5567         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5568         not unsigned long int.
5569         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5570
5571 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5572
5573         [BZ #14050]
5574         [BZ #14117]
5575         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5576         __extern_always_inline instead of __extern_inline.
5577         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5578         (__signbit): Likewise.
5579         (__signbitl): Support C++ namespace.
5580         (lrintf): New inline function.
5581         (lrint): Likewise.
5582         (llrintf): Likewise.
5583         (llrint): Likewise.
5584         (fmaxf): Likewise.
5585         (fmax): Likewise.
5586         (fminf): Likewise.
5587         (fmin): Likewise.
5588         (rint): Likewise.
5589         (rintf): Likewise.
5590         (ceil): Likewise.
5591         (ceilf): Likewise.
5592         (floor): Likewise.
5593         (floorf): Likewise.
5594         (nearbyint): Likewise.
5595         (nearbyintf): Likewise.
5596
5597 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5598
5599         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5600         non-default versions.
5601
5602 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5603
5604         [BZ #14218]
5605         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5606
5607 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5608
5609         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5610         (FE_UPWARD, FE_DOWNWARD): Don't define.
5611         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5612         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5613
5614         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5615         reading it.
5616         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5617         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5618
5619 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5620
5621         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5622         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5623         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5624         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5625
5626 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5627
5628         [BZ #14117]
5629         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5630         * sysdeps/i386/fpu/Implies: New file.
5631         * sysdeps/x86_64/fpu/Implies: Likewise.
5632         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5633         * sysdeps/x86/fpu/bits/fenv.h: This.
5634
5635         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5636         __SSE_MATH__.
5637
5638 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5639
5640         [BZ #14134]
5641         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5642         character 0xffff that matches the last element of the
5643         conversion table.
5644
5645 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5646
5647         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5648         fmodl commit.
5649
5650 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5651
5652         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5653         values higher than 25.6283.
5654
5655 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5656
5657         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5658         subnormal exponent extraction and add some __builtin_expect.
5659         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5660         Fix for subnormal mantissa calculation.
5661
5662 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5663
5664         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5665         cpu2 is -1 and errno is not ENOSYS.
5666
5667 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5668
5669         [BZ #14117]
5670         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5671         * sysdeps/x86/bits/string.h: This.
5672         * sysdeps/x86_64/bits/string.h: Removed.
5673
5674         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5675         if not compiling for x86-64, but compiling for >= i486.
5676
5677         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5678         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5679
5680         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5681         New macro from Linux kernel 3.4.0.
5682         (FP_XSTATE_MAGIC2): Likewise.
5683         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5684         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5685         (struct _fpx_sw_bytes): New struct.
5686         (struct _xsave_hdr): Likewise.
5687         (struct _ymmh_state): Likewise.
5688         (struct _xstate): Likewise.
5689
5690         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5691         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5692         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5693         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5694         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5695         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5696
5697         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5698         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5699         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5700         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5701         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5702         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5703
5704 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5705
5706         [BZ #13743]
5707         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5708         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5709         (sysdep_headers): Include sys/platform/ppc.h.
5710         * sysdeps/powerpc/test-gettimebase.c: Test for
5711         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5712         * manual/Makefile (appendices): Include platform.texi.
5713         * manual/contrib.texi (Contributors): Update @node pointers.
5714         * manual/maint.texi (Maintenance): Likewise.
5715         (Platform): New node.
5716         * manual/platform.texi: New file.  Document the new features.
5717
5718 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5719             Jakub Jelinek  <jakub@redhat.com>
5720
5721         [BZ #14188]
5722         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5723         where __builtin_expect is unavailable.
5724
5725 2012-06-03  David S. Miller  <davem@davemloft.net>
5726
5727         * stdlib/longlong.h: Updated from GCC.
5728
5729 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5730
5731         [BZ #14042]
5732         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5733         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5734         __mcount_internal.
5735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5736         (GLIBC_2.16): Likewise.
5737
5738 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5739
5740         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5741
5742 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5743
5744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5745         (default-abi): New variable.
5746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5747         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5748         variable.
5749         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5750         Likewise.
5751         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5752         Likewise.
5753         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5754         Likewise.
5755
5756         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5757         definition.  Document in comment.
5758
5759 2012-06-01  David S. Miller  <davem@davemloft.net>
5760
5761         * stdlib/longlong.h: Updated from GCC.
5762
5763 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5764
5765         [BZ #14117]
5766         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5767         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5768         sys/debugreg.h sys/io.h here.
5769         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5770         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5771         sys/io.h.
5772         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5773         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5774         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5775         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5776         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5777         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5778
5779         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5780         Define only if __x86_64__ is defined.
5781
5782 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5783
5784         [BZ #14048]
5785         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5786         Use int64_t for variable i.
5787         * math/libm-test.inc (fmod_test): Add more tests.
5788
5789         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5790         z computation is not scheduled after fetestexcept.
5791         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5792         Use math_force_eval instead of asm to ensure calculation scheduled
5793         before exception test.
5794         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5795         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5796
5797 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5798
5799         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5800         computation is not scheduled after fetestexcept.
5801
5802 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5803
5804         [BZ #14117]
5805         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5806         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5807
5808 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5809
5810         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5811         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5812
5813 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5814
5815         [BZ #14117]
5816         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5817         <bits/wordsize.h>.
5818         (__WCHAR_MIN): Support __WORDSIZE == 64.
5819         (__WCHAR_MAX): Likewise.
5820
5821         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5822         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5823
5824         [BZ #14183]
5825         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5826         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5827
5828         [BZ #14117]
5829         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5830         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5831
5832         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5833         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5834
5835         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5836         Defined to 1 if __x86_64__ isn't defined.
5837         (_STAT_VER_LINUX_OLD): New.
5838         (st_atime): Remove duplicate.
5839         (st_mtime): Likewise.
5840         (st_ctime): Likewise.
5841
5842 2012-05-31  David S. Miller  <davem@davemloft.net>
5843
5844         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5845         entries.
5846
5847 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5848
5849         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5850         gen-libm-test.pl.
5851
5852         [BZ #14132]
5853         * elf/dl-reloc.c: Include <_itoa.h>.
5854         (_dl_reloc_bad_type): Remove use of INTUSE.
5855         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5856         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5857         * stdio-common/psiginfo.c (psiginfo): Likewise.
5858         * stdio-common/psignal.c (psignal): Likewise.
5859         * string/strsignal.c (strsignal): Likewise.
5860         * include/signal.h (_sys_siglist): Declare hidden proto.
5861         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5862         INTVARDEF with libc_hidden_data_def.
5863         * stdio-common/itoa-udigits.c: Likewise.
5864         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5865         (_itoa_lower_digits_internal): Remove declaration.
5866         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5867         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5868         (_sys_sigabbrev_internal): Remove aliases.
5869         (_sys_siglist): Define hidden alias.
5870
5871 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5872
5873         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5874         bits/sysctl.h.
5875
5876 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5877
5878         [BZ #14117]
5879         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5880         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5881
5882         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5883         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5884         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5885         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5886         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5887         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5888
5889         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5890         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5891         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5892
5893         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5894         with __addr.
5895         (insw): Likewise.
5896         (insl): Likewise.
5897         (outsb): Likewise.
5898         (outsw): Likewise.
5899         (outsl): Likewise.
5900
5901         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5902         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5903         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5904
5905         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5906         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5907         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5908         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5909         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5910         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5911
5912         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5913         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5914
5915         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
5916         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
5917
5918         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
5919         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
5920         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
5921
5922         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
5923         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
5924         to ...
5925         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
5926
5927         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
5928         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
5929         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
5930
5931         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
5932         for x86-64.
5933         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
5934
5935 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
5936
5937         * math/math.h (M_El): Use two more decimal places.
5938         (M_LOG2El): Likewise.
5939         (M_LOG10El): Likewise.
5940         (M_LN2l): Likewise.
5941         (M_LN10l): Likewise.
5942         (M_PIl): Likewise.
5943         (M_PI_2l): Likewise.
5944         (M_PI_4l): Likewise.
5945         (M_1_PIl): Likewise.
5946         (M_2_PIl): Likewise.
5947         (M_2_SQRTPIl): Likewise.
5948         (M_SQRT2l): Likewise.
5949         (M_SQRT1_2l): Likewise.
5950
5951 2012-05-31  David S. Miller  <davem@davemloft.net>
5952
5953         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5954         values between float registers.
5955         * sysdeps/sparc/sparc64/memset.S: Likewise.
5956         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5957
5958 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5959
5960         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5961         -D_FORTIFY_SOURCE=1.
5962         (CPPFLAGS-tst-longjmp_chk.c): Define.
5963         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5964         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5965         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5966         CFLAGS-tst-wchar-h.c.
5967
5968 2012-05-31  Marek Polacek  <polacek@redhat.com>
5969
5970         [BZ #14132]
5971         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5972         __endmntent_internal): Remove declaration.
5973         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5974         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5975         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5976
5977 2012-05-30  David S. Miller  <davem@davemloft.net>
5978
5979         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5980         (___Q_simulate_exceptions): Use real FP ops rather than writing
5981         into the %fsr.
5982         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5983         Likewise.
5984
5985 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5986
5987         [BZ #14117]
5988         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5989         * sysdeps/x86/bits/xtitypes.h: This.
5990
5991         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5992         * sysdeps/x86/bits/wordsize.h: This.
5993
5994         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5995         * sysdeps/x86/bits/huge_vall.h: This.
5996
5997         * sysdeps/i386/bits/select.h: Removed.
5998         * sysdeps/x86_64/bits/select.h: Renamed to ...
5999         * sysdeps/x86/bits/select.h: This.
6000
6001         * sysdeps/i386/bits/setjmp.h: Removed.
6002         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6003         * sysdeps/x86/bits/setjmp.h: This.
6004
6005         * sysdeps/i386/bits/mathdef.h: Removed.
6006         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6007         * sysdeps/x86/bits/mathdef.h: This.
6008
6009 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6010
6011         [BZ #14132]
6012         * include/sys/socket.h (__connect_internal)
6013         (__libc_sa_len_internal): Remove declaration.
6014         (__connect, __libc_sa_len): Declare hidden_proto.
6015         (SA_LEN): Remove use of INTUSE.
6016         * socket/connect.c: Add libc_hidden_def.
6017         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6018         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6019         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6020         alias.
6021         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6022         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6023         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6024         of adding _internal alias.
6025
6026 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6027
6028         [BZ #14117]
6029         * sysdeps/i386/bits/link.h: Removed.
6030         * sysdeps/i386/bits/linkmap.h: Likewise.
6031         * sysdeps/x86_64/bits/link.h: Renamed to ...
6032         * sysdeps/x86/bits/link.h: This.
6033         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6034         * sysdeps/x86/bits/linkmap.h: This.
6035
6036         * sysdeps/i386/bits/endian.h: Removed.
6037         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6038         * sysdeps/x86/bits/endian.h: This.
6039
6040         * sysdeps/i386/bits/byteswap.h: Removed.
6041         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6042         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6043         * sysdeps/x86/bits/byteswap.h: This.
6044         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6045         * sysdeps/x86/bits/byteswap-16.h: This.
6046         * sysdeps/i386/Implies: Add x86.
6047         * sysdeps/x86_64/Implies: Likewise.
6048
6049 2012-05-30  David S. Miller  <davem@davemloft.net>
6050
6051         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6052         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6053         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6054         (FP_TRAPPING_EXCEPTIONS): Define.
6055         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6056         (FP_TRAPPING_EXCEPTIONS): Define.
6057         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6058         subnormals only when inexact has been signalled or underflow
6059         exceptions are enabled.
6060         (_FP_PACK_CANONICAL): Likewise.
6061
6062 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6063
6064         [BZ #14183]
6065         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6066         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6067
6068 2012-05-30  Richard Henderson  <rth@twiddle.net>
6069
6070         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6071         with #ifndef NOT_IN_libc.
6072
6073         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6074         marked to avoid plt entry.
6075
6076 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6077
6078         [BZ #14112]
6079         * Makeconfig (default-abi): New macro.
6080         (abi-includes): Likewise.
6081         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6082         $(abi-$(default-abi)-lib-soname) for soname if defined.
6083         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6084         abi-variants.
6085         * Makefile (installed-stubs): Likewise.
6086         * include/stubs-biarch.h: Removed.
6087         * scripts/lib-names.awk: Only handle one library at a time.
6088         * scripts/soversions.awk: Remove WORDSIZE support.
6089         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6090         entries.
6091         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6092         Removed.
6093         (syscall-list-default-condition): Likewise.
6094         (syscall-list-default-condition): Likewise.
6095         (syscall-list-includes): Likewise.
6096         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6097         syscall-list-* with abi-*.  Handle undefined abi-variants.
6098         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6099         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6100         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6101         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6102         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6103         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6104         Removed.
6105         (syscall-list-32-options): Likewise.
6106         (syscall-list-32-condition): Likewise.
6107         (syscall-list-64-options): Likewise.
6108         (syscall-list-64-condition): Likewise.
6109         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6110         macro.
6111         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6112         Renamed to ...
6113         (abi-*): This.
6114         (abi-64-ld-soname): New macro.
6115         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6116         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6117         Renamed to ...
6118         (abi-*): This.
6119         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6120         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6121
6122 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6123
6124         * sysdeps/unix/sysv/linux/kernel-features.h
6125         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6126         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6127         include <kernel-features.h>.
6128         [!__NR_ftruncate64]: Remove conditional code.
6129         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6130         [__NR_ftruncate64]: Make code unconditional.
6131         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6132         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6133         include <kernel-features.h>.
6134         [!__NR_ftruncate64]: Remove conditional code.
6135         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6136         [__NR_ftruncate64]: Make code unconditional.
6137         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6139         include <kernel-features.h>.
6140         [!__NR_ftruncate64]: Remove conditional code.
6141         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6142         [__NR_ftruncate64]: Make code unconditional.
6143         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6145         include <kernel-features.h>.
6146         [!__NR_ftruncate64]: Remove conditional code.
6147         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6148         [__NR_ftruncate64]: Make code unconditional.
6149         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6150
6151         * configure.in (libc_cv_fpie): Weaken to a compile test using
6152         LIBC_TRY_CC_OPTION.
6153         * configure: Regenerated.
6154
6155 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6156
6157         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6158         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6159         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6160         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6161         Refreshed.
6162         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6163         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6164         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6165         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6166         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6167         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6168         Refreshed.
6169
6170 2012-05-27  David S. Miller  <davem@davemloft.net>
6171
6172         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6173         (___Q_zero): New.
6174         (__Q_simulate_exceptions): Return void.  Change to simulate
6175         exceptions by writing into the %fsr.
6176         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6177         (__Qp_handle_exceptions): Likewise.
6178         (numbers): Delete.
6179         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6180         __Qp_handle_exceptions.
6181         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6182         __Qp_handle_exceptions.
6183         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6184         as unused and give dummy FP_RND_NEAREST initializer.
6185         (FP_INHIBIT_RESULTS): Define.
6186         (___Q_simulate_exceptions): Update declaration.
6187         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6188         formatting.
6189         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6190         as unused and give dummy FP_RND_NEAREST initializer.
6191         (__Qp_handle_exceptions): Update declaration.
6192         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6193         formatting.
6194
6195 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6196
6197         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6198         the temporary FPU control word.
6199         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6200         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6201         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6202         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6203         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6204         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6205         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6206         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6207         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6208         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6209         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6210
6211 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6212
6213         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6214         fields.
6215
6216 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6217
6218         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6219         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6220         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6221         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6222         Likewise.
6223         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6224         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6225         Likewise.
6226
6227 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6228
6229         * po/h.po: Update from translation team.
6230
6231 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6232
6233         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6234
6235         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6236         handling of denormals.
6237         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6238         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6239         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6240         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6241         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6242         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6243         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6244         Likewise.
6245
6246 2012-05-26  Marek Polacek  <polacek@redhat.com>
6247
6248         [BZ #14152]
6249         * math/libm-test.inc (fma_test): Don't always expect underflow
6250         exception.
6251
6252 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6253
6254         [BZ #12416]
6255         * elf/tst-execstack.c: Include stackinfo.h.
6256         (do_test): Adjust test case to ensure that pthread_getattr_np
6257         behaviour remains the same after marking stack executable.
6258
6259 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6260
6261         * sysdeps/unix/sysv/linux/kernel-features.h
6262         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6263         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6264         kernel-features.h.
6265         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6266         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6267         * sysdeps/unix/sysv/linux/i386/setrlimit.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
6272 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6273
6274         * configure.in: Define the default includes to being none.
6275         * configure: Regenerated.
6276
6277 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6278
6279         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6280         * sysdeps/x86_64/setjmp.S: Likewise.
6281         * sysdeps/i386/bsd-setjmp.S: Likewise.
6282         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6283         * sysdeps/i386/setjmp.S: Likewise.
6284         * sysdeps/i386/__longjmp.S: Likewise.
6285         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6286         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6287
6288         * include/stap-probe.h: New file.
6289         * configure.in: Handle --enable-systemtap.
6290         * configure: Regenerated.
6291         * config.h.in (USE_STAP_PROBE): New #undef.
6292         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6293         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6294         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6295
6296 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6297
6298         [BZ #13717]
6299         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6300         to 2.4.0 where earlier.
6301         * sysdeps/unix/sysv/linux/configure: Regenerated.
6302         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6303         <kernel-features.h>.
6304         [__ASSUME_32BITUIDS]: Make code unconditional.
6305         [!__ASSUME_32BITUIDS]: Remove conditional code.
6306         * sysdeps/unix/sysv/linux/i386/fchown.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/fchownat.c (fchownat)
6311         [__ASSUME_32BITUIDS]: Make code unconditional.
6312         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6313         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6314         <kernel-features.h>.
6315         [__ASSUME_32BITUIDS]: Make code unconditional.
6316         [!__ASSUME_32BITUIDS]: Remove conditional code.
6317         * sysdeps/unix/sysv/linux/i386/geteuid.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/getgid.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/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.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/msgctl.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/semctl.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/setegid.c: Do not include
6354         <kernel-features.h>.
6355         [__NR_setresgid] (__setresgid): Do not declare.
6356         [__ASSUME_32BITUIDS]: Make code unconditional.
6357         [!__ASSUME_32BITUIDS]: Remove conditional code.
6358         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6359         <kernel-features.h>.
6360         [__NR_setresuid] (__setresuid): Do not declare.
6361         [__ASSUME_32BITUIDS]: Make code unconditional.
6362         [!__ASSUME_32BITUIDS]: Remove conditional code.
6363         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6364         <kernel-features.h>.
6365         [__ASSUME_32BITUIDS]: Make code unconditional.
6366         [!__ASSUME_32BITUIDS]: Remove conditional code.
6367         * sysdeps/unix/sysv/linux/i386/setfsuid.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/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/setreuid.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/setuid.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/shmctl.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/kernel-features.h
6404         (__ASSUME_SETRESUID_SYSCALL): Remove.
6405         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6406         (__ASSUME_32BITUIDS): Likewise.
6407         (__ASSUME_LDT_WORKS): Likewise.
6408         (__ASSUME_O_DIRECTORY): Likewise.
6409         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6410         architecture but not kernel version.
6411         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6412         (__ASSUME_MMAP2_SYSCALL): Likewise.
6413         (__ASSUME_STAT64_SYSCALL): Likewise.
6414         (__ASSUME_IPC64): Likewise.
6415         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6416         <kernel-features.h>.
6417         [__ASSUME_32BITUIDS]: Make code unconditional.
6418         [!__ASSUME_32BITUIDS]: Remove conditional code.
6419         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6420         <kernel-features.h>.
6421         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6422         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6423         132096]: Remove conditional code.
6424         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6425         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6426         <kernel-features.h>.
6427         [__ASSUME_32BITUIDS]: Make code unconditional.
6428         [!__ASSUME_32BITUIDS]: Remove conditional code.
6429         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.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/setegid.c: Do not include
6434         <kernel-features.h>.
6435         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6436         unconditional.
6437         (__setresgid): Do not declare.
6438         [__ASSUME_32BITUIDS]: Make code unconditional.
6439         [!__ASSUME_32BITUIDS]: Remove conditional code.
6440         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6441         <kernel-features.h>.
6442         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6443         unconditional.
6444         (__setresuid): Do not declare.
6445         [__ASSUME_32BITUIDS]: Make code unconditional.
6446         [!__ASSUME_32BITUIDS]: Remove conditional code.
6447         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6448         <kernel-features.h>.
6449         [__ASSUME_32BITUIDS]: Make code unconditional.
6450         [!__ASSUME_32BITUIDS]: Remove conditional code.
6451         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6452         <kernel-features.h>.
6453         [__ASSUME_32BITUIDS]: Make code unconditional.
6454         [!__ASSUME_32BITUIDS]: Remove conditional code.
6455
6456 2012-05-25  Richard Henderson  <rth@twiddle.net>
6457
6458         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6459         dl_hwcap to ifunc resolver.
6460         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6461         elf_ifunc_invoke.
6462         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6463         dl_hwcap to ifunc resolver.
6464         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6465
6466 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6467
6468         [BZ #14153]
6469         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6470         for |x| <= 2**-26, not 2**-57.
6471         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6472         exception.
6473
6474 2012-05-24  Jeff Law  <law@redhat.com>
6475
6476         * stdio-common/Makefile (tests): Add bug25.
6477         * stdio-common/bug25.c: New test.
6478
6479 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6480
6481         [BZ #13576]
6482         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6483         multiple of MALLOC_ALIGNMENT in size.
6484         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6485
6486 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6487
6488         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6489         Require >= 256.
6490         (FILENAME_MAX): Use macro-int-constant.
6491         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6492         (_IOFBF): Use macro-int-constant.
6493         (_IOLBF): Likewise.
6494         (_IONBF): Likewise.
6495         (SEEK_CUR): Likewise.
6496         (SEEK_END): Likewise.
6497         (SEEK_SET): Likewise.
6498         (TMP_MAX): Likewise.
6499         (EOF): Use macro-int-constant.  Require < 0.
6500         (NULL): Use macro-constant.  Require == 0.
6501         (stdin): Require type to be FILE *.
6502         (stdout): Likewise.
6503         (stderr): Likewise.
6504         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6505         macro-int-constant.
6506         (EXIT_SUCCESS): Likewise.
6507         (NULL): Use macro-constant.  Require == 0.
6508         (RAND_MAX): Use macro-int-constant.
6509         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6510         [C99-based standards] (strtof): Require function.
6511         [C99-based standards] (strtold): Likewise.
6512         [C99-based standards] (strtoll): Likewise.
6513         [C99-based standards] (strtoull): Likewise.
6514         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6515         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6516         [ISO || ISO99 || ISO11] (math.h): Likewise.
6517         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6518         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6519         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6520
6521 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6522
6523         [BZ #14132]
6524         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6525         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6526         * intl/dgettext.c (DCGETTEXT): Likewise.
6527         * intl/gettext.c (DCGETTEXT): Likewise.
6528         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6529         * posix/regex_internal.h (gettext): Likewise.
6530         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6531         Remove declaration.
6532         * include/argz.h (__argz_count_internal)
6533         (__argz_stringify_internal): Remove declaration.
6534         (__argz_count, __argz_stringify): Declare hidden proto.
6535         * intl/dcgettext.c: Remove use of INTDEF.
6536         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6537         * string/argz-stringify.c: Likewise.
6538         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6539         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6540         Declare hidden proto.
6541         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6542         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6543         Declare hidden proto.
6544         * include/stdio.h (__asprintf_internal): Don't declare.
6545         (__asprintf): Don't define as macro.  Declare hidden proto.
6546         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6547         (__fsetlocking): Declare hidden proto.
6548         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6549         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6550         hidden proto.
6551         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6552         (_IO_setlinebuf): Remove use of INTUSE.
6553         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6554         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6555         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6556         Remove declaration.
6557         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6558         (_IO_do_flush): Remove use of INTUSE.
6559         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6560         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6561         (_IO_adjust_column, _IO_least_wmarker)
6562         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6563         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6564         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6565         (_IO_default_doallocate, _IO_wdefault_doallocate)
6566         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6567         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6568         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6569         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6570         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6571         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6572         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6573         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6574         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6575         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6576         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6577         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6578         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6579         proto.
6580         (_IO_flush_all_internal, _IO_adjust_column_internal)
6581         (_IO_default_uflow_internal, _IO_default_finish_internal)
6582         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6583         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6584         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6585         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6586         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6587         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6588         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6589         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6590         (_IO_file_close_internal, _IO_file_close_it_internal)
6591         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6592         (_IO_file_init_internal, _IO_file_attach_internal)
6593         (_IO_file_fopen_internal, _IO_file_read_internal)
6594         (_IO_file_sync_internal, _IO_file_seek_internal)
6595         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6596         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6597         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6598         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6599         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6600         (_IO_list_all_internal, _IO_link_in_internal)
6601         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6602         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6603         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6604         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6605         (_IO_do_write_internal, _IO_padn_internal)
6606         (_IO_getline_info_internal, _IO_getline_internal)
6607         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6608         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6609         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6610         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6611         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6612         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6613         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6614         with libc_hidden_ver, remove use of INTUSE.
6615         * libio/genops.c: Likewise.
6616         * libio/freopen.c: Likewise.
6617         * libio/freopen64.c: Likewise.
6618         * libio/iofclose.c: Likewise.
6619         * libio/iofdopen.c: Likewise.
6620         * libio/iofflush.c: Likewise.
6621         * libio/iofflush_u.c: Likewise.
6622         * libio/iofgets.c: Likewise.
6623         * libio/iofgets_u.c: Likewise.
6624         * libio/iofopen.c: Likewise.
6625         * libio/iofopncook.c: Likewise.
6626         * libio/iofread.c: Likewise.
6627         * libio/iofread_u.c: Likewise.
6628         * libio/ioftell.c: Likewise.
6629         * libio/iofwrite.c: Likewise.
6630         * libio/iogetline.c: Likewise.
6631         * libio/iogets.c: Likewise.
6632         * libio/iogetwline.c: Likewise.
6633         * libio/iopadn.c: Likewise.
6634         * libio/iopopen.c: Likewise.
6635         * libio/ioseekoff.c: Likewise.
6636         * libio/ioseekpos.c: Likewise.
6637         * libio/iosetbuffer.c: Likewise.
6638         * libio/iosetvbuf.c: Likewise.
6639         * libio/ioungetc.c: Likewise.
6640         * libio/ioungetwc.c: Likewise.
6641         * libio/iovdprintf.c: Likewise.
6642         * libio/iovsprintf.c: Likewise.
6643         * libio/iovsscanf.c: Likewise.
6644         * libio/memstream.c: Likewise.
6645         * libio/obprintf.c: Likewise.
6646         * libio/oldfileops.c: Likewise.
6647         * libio/oldiofclose.c: Likewise.
6648         * libio/oldiofdopen.c: Likewise.
6649         * libio/oldiofopen.c: Likewise.
6650         * libio/oldiopopen.c: Likewise.
6651         * libio/oldstdfiles.c: Likewise.
6652         * libio/putc.c: Likewise.
6653         * libio/setbuf.c: Likewise.
6654         * libio/setlinebuf.c: Likewise.
6655         * libio/stdfiles.c: Likewise.
6656         * libio/strops.c: Likewise.
6657         * libio/vasprintf.c: Likewise.
6658         * libio/vscanf.c: Likewise.
6659         * libio/vsnprintf.c: Likewise.
6660         * libio/vswprintf.c: Likewise.
6661         * libio/wfiledoalloc.c: Likewise.
6662         * libio/wfileops.c: Likewise.
6663         * libio/wgenops.c: Likewise.
6664         * libio/wmemstream.c: Likewise.
6665         * libio/wstrops.c: Likewise.
6666         * libio/__fpurge.c: Likewise.
6667         * libio/__fsetlocking.c: Likewise.
6668         * assert/assert.c: Likewise.
6669         * debug/fgets_chk.c: Likewise.
6670         * debug/fgets_u_chk.c: Likewise.
6671         * debug/fread_chk.c: Likewise.
6672         * debug/fread_u_chk.c: Likewise.
6673         * debug/gets_chk.c: Likewise.
6674         * debug/obprintf_chk.c: Likewise.
6675         * debug/vasprintf_chk.c: Likewise.
6676         * debug/vdprintf_chk.c: Likewise.
6677         * debug/vsnprintf_chk.c: Likewise.
6678         * debug/vsprintf_chk.c: Likewise.
6679         * malloc/mtrace.c: Likewise.
6680         * misc/error.c: Likewise.
6681         * misc/syslog.c: Likewise.
6682         * stdio-common/asprintf.c: Likewise.
6683         * stdio-common/fxprintf.c: Likewise.
6684         * stdio-common/getw.c: Likewise.
6685         * stdio-common/isoc99_fscanf.c: Likewise.
6686         * stdio-common/isoc99_scanf.c: Likewise.
6687         * stdio-common/isoc99_vfscanf.c: Likewise.
6688         * stdio-common/isoc99_vscanf.c: Likewise.
6689         * stdio-common/isoc99_vsscanf.c: Likewise.
6690         * stdio-common/printf-prs.c: Likewise.
6691         * stdio-common/printf_fp.c: Likewise.
6692         * stdio-common/printf_fphex.c: Likewise.
6693         * stdio-common/printf_size.c: Likewise.
6694         * stdio-common/putw.c: Likewise.
6695         * stdio-common/scanf.c: Likewise.
6696         * stdio-common/sprintf.c: Likewise.
6697         * stdio-common/tmpfile.c: Likewise.
6698         * stdio-common/vfprintf.c: Likewise.
6699         * stdio-common/vfscanf.c: Likewise.
6700         * stdlib/strfmon_l.c: Likewise.
6701         * sunrpc/openchild.c: Likewise.
6702         * sunrpc/xdr_stdio.c: Likewise.
6703         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6704         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6705
6706 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6707
6708         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6709
6710         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6711         in the third column, to generate for the shared library an IFUNC
6712         that uses _dl_vdso_vsym.
6713         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6714         * Makeconfig (object-suffixes-noshared): New variable.
6715
6716         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6717         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6718         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6719         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6720
6721         [BZ #14132]
6722         * include/sys/time.h (__gettimeofday): Remove macro.
6723         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6724         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6725         Remove INTDEF.
6726         (__gettimeofday): Add libc_hidden_def.
6727         (gettimeofday): Add libc_hidden_weak.
6728         * sysdeps/mach/gettimeofday.c: Likewise.
6729         * sysdeps/posix/gettimeofday.c: Likewise.
6730         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6731         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6732         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6733         (__gettimeofday_internal): Remove strong_alias.
6734         (__gettimeofday): Add libc_hidden_def.
6735         (gettimeofday): Add libc_hidden_weak.
6736         * sysdeps/unix/syscalls.list (gettimeofday):
6737         Remove __gettimeofday_internal alias.
6738
6739 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6740             H.J. Lu  <hongjiu.lu@intel.com>
6741
6742         [BZ #12495]
6743         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6744         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6745         (largebin_index_32_big): New.
6746         (largebin_index): Use it for 16-byte alignment.
6747         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6748         correction with front_misalign.
6749
6750 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6751
6752         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6753         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6754         Likewise.
6755         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6756         Likewise.
6757         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6758         Likewise.
6759         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6760         Likewise.
6761         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6762         Likewise.
6763         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6764         Likewise.
6765         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6766         Likewise.
6767         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6768         Likewise.
6769         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6770         Likewise.
6771         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6772         Likewise.
6773         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6774         Likewise.
6775         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6776         Likewise.
6777
6778         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6779         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6780
6781 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6782
6783         [BZ #10846]
6784         [BZ #14036]
6785         * math/libm-test.inc (exp_test): Add test from bug 14036.
6786         (pow_test): Add test from bug 10846.
6787
6788         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6789         and other flags.
6790         (special_function): Do not include flags in test name.
6791         (parse_args): Likewise.
6792         * sysdeps/i386/fpu/libm-test-ulps: Update.
6793         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6794         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6795         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6797
6798         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6799         exceptions.
6800         * math/libm-test.inc ("Philosophy"): Update comment about
6801         exception testing.
6802         (UNDERFLOW_EXCEPTION): New macro.
6803         (UNDERFLOW_EXCEPTION_OK): Likewise.
6804         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6805         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6806         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6807         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6808         (INVALID_EXCEPTION_OK): Update value.
6809         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6810         (OVERFLOW_EXCEPTION_OK): Likewise.
6811         (IGNORE_ZERO_INF_SIGN): Likewise.
6812         (test_exceptions): Handle underflow exceptions.
6813         (acos_test): Update for underflow exception expectations.
6814         (cexp_test): Likewise.
6815         (clog_test): Likewise.
6816         (clog10_test): Likewise.
6817         (csqrt_test): Likewise.
6818         (ctan_test): Likewise.
6819         (ctanh_test): Likewise.
6820         (exp_test): Likewise.
6821         (exp10_test): Likewise.
6822         (exp2_test): Likewise.
6823         (expm1_test): Likewise.
6824         (fma_test): Likewise.
6825         (j0_test): Likewise.
6826         (jn_test): Likewise.
6827         (nexttoward_test): Likewise.
6828         (pow_test): Likewise.
6829         (scalbn_test): Likewise.
6830         (scalbln_test): Likewise.
6831         (tan_test): Likewise.
6832         (y1_test): Likewise.
6833         * sysdeps/i386/fpu/libm-test-ulps: Update.
6834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6835
6836 2012-05-23  David S. Miller  <davem@davemloft.net>
6837
6838         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6839         (__libc_sigaction): Remove unused local variables.
6840
6841 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6842
6843         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6844
6845 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6846
6847         mktime: avoid signed integer overflow
6848         * time/mktime.c (__mktime_internal): Do not mishandle the case
6849         where diff == INT_MIN.
6850
6851         mktime: simplify computation of average
6852         * time/mktime.c (ranged_convert): Use new time_t_avg function
6853         instead of rolling our own (probably-slower) code.
6854
6855         mktime: do not assume signed right shift propagates sign bit
6856         * time/mktime.c (isdst_differ): New static function.
6857         (__mktime_internal): No need to normalize tm_isdst now.
6858         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6859         tm_isdst values.
6860
6861         mktime: merge another wrapv change from gnulib
6862         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6863         from some compilers.
6864
6865         mktime: remove incorrect attempt at unusual arithmetics
6866         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6867         The code didn't really work on such machines anyway.
6868         (TYPE_MINIMUM): Assume two's complement.
6869         (twos_complement_arithmetic): Verify that long_int and time_t
6870         are two's complement (or unsigned, in the latter case).
6871
6872         mktime: check signed shifts on long_int and time_t, too
6873         * time/mktime.c (SHR): Check that shifts work as desired
6874         on the types long_int and time_t too, as SHR is used on
6875         such types.
6876
6877         mktime: do not assume 'long' is wide enough
6878         * time/mktime.c (verify): Move decl up.
6879         (long_int): New type.
6880         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6881         to remove assumption in the code that 'long' is wide enough to
6882         store year values.  This assumption is not true on x32 and on
6883         some non-glibc platforms.
6884
6885         mktime: merge wrapv change from gnulib
6886         * time/mktime.c (WRAPV): New macro.
6887         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6888         (guess_time_tm, __mktime_internal): Do not assume that signed
6889         integer overflow wraps around; modern compilers generate code
6890         where this assumption is no longer valid.
6891
6892 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6893
6894         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6895         Replace "jmp L(pseudo_end)" with "ret".
6896         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6897         Likewise.
6898
6899 2012-05-23  Andreas Jaeger  <aj@suse.de>
6900
6901         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6902         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6903
6904 2012-05-23  Andreas Jaeger  <aj@suse.de>
6905             Maximilian Attems  <max@stro.at>
6906
6907         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6908         New macros.
6909
6910 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6911
6912         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6913         code so that pseudo_end is just ret and the stack pointer is
6914         correct also for static library in error case.
6915
6916 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
6917
6918         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
6919         move to syscalls.list.
6920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6924
6925         * manual/install.texi (Running make install): Do not mention Linux
6926         kernel version for which pt_chown is not needed.
6927         (Linux): Do not mention problems with nscd with 2.0 kernels.
6928         * INSTALL: Regenerated.
6929
6930 2012-05-23  Andreas Jaeger  <aj@suse.de>
6931
6932         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
6933         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
6934         macro.
6935         * sysdeps/unix/sysv/linux/s390/bits/mman.h
6936         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6937         * sysdeps/unix/sysv/linux/sh/bits/mman.h
6938         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6939         * sysdeps/unix/sysv/linux/i386/bits/mman.h
6940         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6941         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6942         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6943         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6944         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6945         * sysdeps/unix/sysv/linux/bits/in.h
6946         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6947
6948 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6949
6950         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6951         (PREPARE_VERSION): Just use assert instead, it will be elided
6952         under [NDEBUG] anyway.
6953
6954 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6955
6956         * sysdeps/unix/sysv/linux/Makefile: Include
6957         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6958         (sysdep_routines): Remove sysctl.
6959         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6960         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6961         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6962         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6963         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6964
6965 2012-05-22  Andreas Jaeger  <aj@suse.de>
6966
6967         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6968         that pseudo_end is just ret and the stack pointer is correct also
6969         for static library in error case.
6970
6971 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6972
6973         [BZ #14122]
6974         * nss/nsswitch.c (defconfig_entries): New variable.
6975         (__nss_database_lookup): Don't leak defconfig entries.
6976         (nss_parse_service_list): Don't leak on error paths.
6977         (free_database_entries): New function.
6978         (free_defconfig): New function.
6979         (free_mem): Move common code to free_database_entries.
6980
6981 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6982
6983         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6984         Add arch_prctl.
6985         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6986
6987         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6988         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6989         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6990         New macro.
6991         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6992         (INTERNAL_SYSCALL_TYPES): Likewise.
6993         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6994         (LOAD_REGS_TYPES_[1-6]): Likewise.
6995         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6996         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6997
6998 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6999
7000         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7001         copysignl for GLIBC_2_0.
7002         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7003         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7004         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7005         logbl for GLIBC_2_0.
7006         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7007         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7008
7009 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7010
7011         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7012         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7013
7014         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7015         Use "neg %eax".
7016
7017         * time/mktime.c: Update copyright years.
7018
7019 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7020
7021         mktime: merge comment-quoting-style change from gnulib
7022         * time/mktime.c: Quote 'like this' in comments.
7023         The GNU coding standards suggest that we no longer quote `like this',
7024         as "`" and "'" are typically rendered asymmetrically nowadays.
7025         The typical gnulib style is to quote 'like this' when quoting
7026         code, and "like this" when quoting English.
7027
7028         * time/mktime.c (compile-command): Add "-I.".
7029
7030         mktime: merge mktime-internal.h change from gnulib
7031         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7032
7033         mktime: merge time_r change from gnulib
7034         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7035
7036         mktime: merge DEBUG change from gnulib
7037         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7038         case system <time.h> has a #define.
7039
7040         mktime: merge <sys/types.h> change from gnulib
7041         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7042         since <time.t> is now guaranteed to define time_t.
7043
7044         mktime: merge HAVE_CONFIG_H change from gnulib
7045         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7046
7047 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7048
7049         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7050         Use "neg %eax".
7051
7052         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7053         __rlim_t cast.
7054         (struct rusage): Use anonymous union to pad each field to
7055         __syscall_slong_t.
7056
7057 2012-05-21  David S. Miller  <davem@davemloft.net>
7058
7059         * Makefules (o-iterator): Remove .s cases.
7060         (compile-command.s): Delete.
7061         (COMPILE.s): Delete.
7062         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7063
7064 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7065
7066         * configure.in (libc_cv_predef_stack_protector): Only consider
7067         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7068         * configure: Regenerated.
7069
7070 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7071
7072         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7073         New macro.  Use R*LP on int and pointer.
7074         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7075         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7076         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7077         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7078
7079         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7080         [__WORDSIZE_TIME64_COMPAT32] instead of
7081         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7082         (struct utmp): Likewise.
7083         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7084         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7085         Renamed to ...
7086         (__WORDSIZE_TIME64_COMPAT32): This.
7087         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7088         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7089         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7090         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7091         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7092         (__WORDSIZE_TIME64_COMPAT32): New macro.
7093
7094 2012-05-21  Andreas Jaeger  <aj@suse.de>
7095
7096         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7097         only if [SHARED]. Add prototype for __wcschr_ia32.
7098
7099 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7100
7101         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7102         of %rbp unmolested in the jmp_buf while mangling the low bits.
7103         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7104         unmolested high bits of %rbp while demangling the low bits.
7105         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7106
7107 2012-05-21  Andreas Jaeger  <aj@suse.de>
7108
7109         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7110         * sunrpc/svc_simple.c: Use it for registerrpc.
7111         * sunrpc/xcrypt.c: Use it for passwd2des.
7112
7113         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7114
7115 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7116
7117         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7118         Don't define if [__SYSCALL_WORDSIZE != 32].
7119         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7120         New macro.
7121
7122 2012-05-21  Bruno Haible  <bruno@clisp.org>
7123             Andreas Jaeger  <aj@suse.de>
7124
7125         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7126         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7127         inptr and inend for must_buffer_ch.
7128         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7129         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7130         * stdio-common/Makefile (tests): Remove bug15.
7131         (bug15-ENV): Remove macro.
7132         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7133         anymore.
7134
7135 2012-05-19  Andreas Jaeger  <aj@suse.de>
7136             Roland McGrath  <roland@hack.frob.com>
7137
7138         * manual/contrib.texi: Completely rewritten. It contains now an
7139         alphabetical list of contributors and their contributions.
7140
7141 2012-05-21  Richard Henderson  <rth@twiddle.net>
7142
7143         * misc/getauxval.c (__getauxval): Use unsigned long int.
7144         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7145         (getauxval): Use unsigned long int.
7146
7147 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7148
7149         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7150
7151 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7152
7153         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7154         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7155         __alignof__ (long double).
7156
7157 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7158
7159         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7160
7161 2012-05-20  Richard Henderson  <rth@twiddle.net>
7162
7163         * misc/getauxval.c: New file.
7164         * misc/sys/auxv.h: New file.
7165         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7166         (routines): Add getauxval.
7167         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7168         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7169         * elf/dl-sysdep.c (_dl_auxv): Remove.
7170         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7171         * elf/dl-support.c (_dl_auxv): New variable.
7172         (_dl_aux_init): Initialize it.
7173         * manual/startup.texi (Auxiliary Vector): New node.
7174         * sysdeps/generic/bits/hwcap.h: New file.
7175         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7176         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7177         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7178         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7179         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7180         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7182         Update.
7183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7184         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7185         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7186         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7187         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7188         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7189         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7190         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7191
7192 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7193
7194         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7195
7196 2012-05-19  David S. Miller  <davem@davemloft.net>
7197
7198         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7199
7200 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7201
7202         [BZ #14123]
7203         * math/s_ccosh.c: Include <float.h>
7204         (__ccosh): Avoid internal overflow calculating sinh and cosh
7205         values before multiplying by sin and cos values.
7206         * math/s_ccoshf.c: Likewise.
7207         * math/s_ccoshl.c: Likewise.
7208         * math/s_csin.c: Likewise.
7209         * math/s_csinf.c: Likewise.
7210         * math/s_csinl.c: Likewise.
7211         * math/s_csinh.c: Likewise.
7212         * math/s_csinhf.c: Likewise.
7213         * math/s_csinhl.c: Likewise.
7214         * math/libm-test.inc (ccos_test): Add more tests.
7215         (ccosh_test): Likewise.
7216         (csin_test): Likewise.
7217         (csinh_test): Likewise.
7218         * sysdeps/i386/fpu/libm-test-ulps: Update.
7219         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7220
7221 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7222
7223         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7224         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7225
7226         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7227
7228 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7229
7230         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7231         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7232         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7233         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7234         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7235         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7236         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7237         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7238         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7239         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7240         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7241         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7242         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7243         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7244         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7245         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7246         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7247         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7248         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7249         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7250         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7251         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7252         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7253         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7254         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7255         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7256         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7257         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7258         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7259         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7260         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7261
7262 2012-05-18  Andreas Jaeger  <aj@suse.de>
7263
7264         * csu/.gitignore: Delete.
7265
7266 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7267
7268         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7269         (timex): Use __syscall_slong_t.
7270
7271 2012-05-18  Andreas Jaeger  <aj@suse.de>
7272             Carlos O'Donell  <carlos_odonell@mentor.com>
7273
7274         * manual/install.texi (Configuring and compiling): Update
7275         description about files modified in the source directory.
7276         * INSTALL: Regenerated.
7277
7278 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7279
7280         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7281         value.  Use "or" to set return value to -1.
7282         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7283         negate return value.
7284
7285 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7286
7287         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7288         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7289         failure if the compiler has Graphite support disabled.
7290         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7291         Likewise.
7292         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7293         CFLAGS-memmove.c): Likewise.
7294         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7295         Likewise.
7296
7297 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7298
7299         * sysdeps/x86_64/x32/_itoa.h: New file.
7300
7301         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7302         getdents system call only if kernel and user dirents have the
7303         same d_ino and d_off.
7304
7305         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7306         LLONG_MAX != LONG_MAX.
7307         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7308         (_fitoa_word): Likewise.
7309
7310         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7311         years.
7312         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7313         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7314         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7315
7316         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7317         include <bits/wordsize.h>.  Check __x86_64__ instead of
7318         __WORDSIZE.
7319         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7320         if __x86_64__ is defined.  Use anonymous union on fpstate.
7321
7322         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7323         anonymous union.
7324
7325 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7326
7327         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7328         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7329         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7330         Refer to _rtld_local_ro instead of _rtld_global_ro.
7331         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7332         Likewise.
7333         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7334         Likewise.
7335         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7336         Likewise.
7337         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7338         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7339         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7340
7341         * sysdeps/powerpc/powerpc32/dl-machine.c
7342         (__elf_machine_runtime_setup) [PROF]: Don't reference
7343         _dl_prof_resolve.
7344
7345 2012-05-18  Andreas Jaeger  <aj@suse.de>
7346
7347         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7348         function only available for GCCs before 3.4 since GCC 3.4
7349         introduced a builtin.
7350         (lrint): Likewise.
7351         (llrintf): Likewise.
7352         (llrint): Likewise.
7353         (fmaxf): Likewise.
7354         (fmax): Likewise.
7355         (fminf): Likewise.
7356         (fmin): Likewise.
7357         (rint): Likewise.
7358         (rintf): Likewise.
7359         (nearbyint): Likewise.
7360         (nearbyintf): Likewise.
7361         (ceil): Likewise.
7362         (ceilf): Likewise.
7363         (floor): Likewise.
7364         (floorf): Likewise.
7365
7366 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7367
7368         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7369         on both fields and cast pointer to __syscall_ulong_t.
7370
7371         * bits/types.h (__fsword_t): New type.
7372         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7373         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7374         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7375         (__FSWORD_T_TYPE): Likewise.
7376         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7377         (__FSWORD_T_TYPE): Likewise.
7378         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7379         (__FSWORD_T_TYPE): Likewise.
7380         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7381         (__FSWORD_T_TYPE): Likewise.
7382         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7383         __SWORD_TYPE with __fsword_t.
7384         (statfs64): Likewise.
7385
7386 2012-05-17  David S. Miller  <davem@davemloft.net>
7387
7388         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7389
7390 2012-05-17  Andreas Jaeger  <aj@suse.de>
7391
7392         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7393         warning.
7394
7395 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7396
7397         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7398
7399 2012-05-17  Andreas Jaeger  <aj@suse.de>
7400
7401         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7402         when it is used.
7403
7404 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7405
7406         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7407
7408 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7409
7410         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7411         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7412
7413 2012-05-17  Andreas Jaeger  <aj@suse.de>
7414             Carlos O'Donell  <carlos_odonell@mentor.com>
7415
7416         [BZ #14059]
7417         * sysdeps/x86_64/multiarch/init-arch.h
7418         (bit_YMM_Usable): Rename to...
7419         (bit_AVX_Usable): ... this.
7420         (bit_FMA4_Usable): New macro.
7421         (bit_XMM_state): New macro.
7422         (bit_YMM_state): New macro.
7423         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7424         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7425         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7426         (CPUID_OSXSAVE): New macro.
7427         (CPUID_AVX): New macro.
7428         (CPUID_FMA4): New macro.
7429         (index_YMM_Usable): Rename to...
7430         (index_AVX_Usable): ... this.
7431         (HAS_AVX): Use HAS_ARCH_FEATURE.
7432         (HAS_FMA4): Likewise.
7433         (HAS_YMM_USABLE): Remove.
7434         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7435         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7436         are present.
7437         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7438         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7439         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7440         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7441         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7442
7443 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7444
7445         * math/libm-test.c: Support platforms without multiple rounding modes.
7446         * math/bug-nextafter.c: Support platforms without FP exceptions.
7447         * math/bug-nexttoward.c: Likewise.
7448         * math/test-fenv.c: Likewise.
7449         * math/test-misc.c: Likewise.
7450         * stdlib/bug-getcontext.c: Likewise.
7451
7452 2012-05-17  Andreas Jaeger  <aj@suse.de>
7453
7454         * manual/examples/search.c (critter_cmp): Change signature to
7455         avoid warnings.
7456         * manual/string.texi (Collation Functions): Likewise.
7457
7458 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7459
7460         * bits/types.h: Fold copyright years.
7461         * bits/typesizes.h: Likewise.
7462         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7463         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7464         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7465         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7466         * time/time.h: Likewise.
7467
7468 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7469
7470         [BZ #208]
7471         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7472         in instead of returning them.  Return void.
7473         (__libc_mallinfo): Accumulate over all arenas.
7474         (__malloc_stats): Adjust for change in int_mallinfo interface.
7475
7476 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7477
7478         [BZ #10375]
7479         * configure.in (NM): Add AC_CHECK_TOOL for it.
7480         (libc_extra_cflags): New substituted variable.
7481         Check for -fstack-protector being used implicitly.
7482         * configure: Regenerated.
7483         * config.make.in (config-extra-cflags): New variable,
7484         gets @libc_extra_cflags@.
7485         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7486
7487         [BZ #10375]
7488         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7489         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7490         * configure: Regenerated.
7491         * config.make.in (CPPUNDEFS): New substituted variable.
7492         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7493         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7494         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7495
7496 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7497
7498         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7499         (mq_attr): Use __syscall_slong_t.
7500
7501 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7502
7503         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7504         Check __x86_64__ instead of __WORDSIZE.
7505         (_STAT_VER_LINUX): Likewise.
7506         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7507         __syscall_ulong_t and __syscall_slong_t.
7508         (stat64): Likewise.
7509
7510 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7511
7512         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7513
7514 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7515
7516         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7517
7518 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7519
7520         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7521         __syscall_ulong_t.
7522
7523         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7524         include <bits/wordsize.h>.  Check __x86_64__ instead of
7525         __WORDSIZE.
7526         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7527         defined.
7528         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7529
7530         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7531         include <bits/wordsize.h>.  Check __x86_64__ instead of
7532         __WORDSIZE.
7533         (user_regs_struct): Use "__extension__ unsigned long long"
7534         instead of "unsigned long" if __x86_64__ is defined.
7535         (user): Likewise.  Pad after pointer field if __ILP32__ is
7536         defined.
7537
7538 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7539
7540         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7541         versions 5 to 9.
7542         * configure: Regenerated.
7543         * manual/install.texi (texinfo): Increase version requirement to
7544         4.5 or later.
7545         * INSTALL: Regenerated.
7546
7547         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7548
7549 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7550
7551         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7552
7553         * sysdeps/x86_64/x32/ffs.c: New file.
7554
7555         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7556         __syscall_ulong_t.
7557         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7558         defined.  Use __syscall_ulong_t.
7559         (shminfo): Use __syscall_ulong_t.
7560         (shm_info): Likewise.
7561
7562         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7563         __syscall_ulong_t.
7564
7565         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7566         <bits/wordsize.h>.
7567         (msgqnum_t): Use __syscall_ulong_t.
7568         (msglen_t): Likewise.
7569         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7570         __syscall_ulong_t.
7571
7572         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7573         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7574
7575         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7576
7577         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7578         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7579
7580         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7581         __syscall_slong_t.
7582
7583         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7584         include <bits/wordsize.h>.  Check __x86_64__ instead of
7585         __WORDSIZE.
7586
7587         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7588         "unsigned long long int" if __x86_64__ is defined.
7589         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7590
7591         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7592         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7593         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7594
7595         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7596         <stdint.h>.
7597         (GET_PC): Cast to uintptr_t first.
7598         (GET_FRAME): Likewise.
7599         (GET_STACK): Likewise.
7600
7601         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7602         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7603         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7604         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7605         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7606         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7607         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7608         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7609         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7610         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7611         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7612         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7613         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7614         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7615         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7616         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7617         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7618         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7619         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7620         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7621         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7622         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7623         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7624         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7625         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7626         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7627         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7628         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7629         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7630
7631 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7632
7633         * Makerules (+depfiles): Also collect depfiles from .oS in
7634         $(extra-objs).
7635         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7636         .oS, $(libnldbl-routines)).
7637
7638         * Makerules (native-compile-mkdep-flags): Define.
7639         * sunrpc/Makefile (extra-objs): Add $(addprefix
7640         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7641         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7642         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7643         calling $(make-target-directory).
7644
7645 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7646
7647         * bits/types.h (__snseconds_t): Removed.
7648         * time/time.h (struct timespec): Replace __snseconds_t with
7649         __syscall_slong_t.
7650         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7651         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7652         Likewise.
7653         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7654         (__SNSECONDS_T_TYPE): Likewise.
7655         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7656         (__SNSECONDS_T_TYPE): Likewise.
7657         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7658         (__SNSECONDS_T_TYPE): Likewise.
7659
7660 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7661
7662         * sysdeps/mach/hurd/bits/typesizes.h
7663         (__SYSCALL_SLONG_TYPE): New macro.
7664         (__SYSCALL_ULONG_TYPE): Likewise.
7665
7666 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7667
7668         * bits/types.h (__syscall_slong_t): New type.
7669         (__syscall_ulong_t): Likewise.
7670
7671         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7672         (__SYSCALL_ULONG_TYPE): Likewise.
7673         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7674         (__SYSCALL_SLONG_TYPE): Likewise.
7675         (__SYSCALL_ULONG_TYPE): Likewise.
7676         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7677         (__SYSCALL_SLONG_TYPE): Likewise.
7678         (__SYSCALL_ULONG_TYPE): Likewise.
7679         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7680         (__SYSCALL_SLONG_TYPE): Likewise.
7681         (__SYSCALL_ULONG_TYPE): Likewise.
7682
7683 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7684
7685         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7686         Add sigaltstack-offsets.sym.
7687         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7688         <sigaltstack-offsets.h>.
7689         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7690         longjmp_msg pointer.
7691         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7692         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7693         signal stack.
7694         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7695
7696 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7697
7698         * elf/stackguard-macros.h: Remove file.
7699         * sysdeps/generic/stackguard-macros.h: New file.
7700         * sysdeps/i386/stackguard-macros.h: Likewise.
7701         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7702         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7703         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7704         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7705         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7706         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7707         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7708         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7709         <elf/stackguard-macros.h>.
7710
7711         [BZ #14109]
7712         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7713         __aligned__ in attribute.
7714         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7715         (gregset_t): Likewise.
7716
7717 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7718
7719         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7720         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7721         * sysdeps/x86_64/x32/Implies-after: New file.
7722
7723 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7724
7725         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7726         and access return value for _dl_profile_fixup.  Use R10_LP to
7727         load frame size.
7728
7729 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7730
7731         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7732
7733 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7734
7735         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7736         * sysdeps/x86_64/x32/sysdep.h: New file.
7737
7738 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7739
7740         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7741         * sysdeps/x86_64/setjmp.S: Likewise.
7742
7743 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7744
7745         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7746         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7747         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7748         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7749         remove unused global constant.
7750
7751 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7752
7753         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7754         include of <not-cancel.h>.
7755
7756 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7757
7758         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7759
7760 2012-05-15  Jeff Law  <law@redhat.com>
7761             Andreas Jaeger  <aj@suse.de>
7762
7763         [BZ #13594]
7764         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7765         out from...
7766         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7767         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7768         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7769         code changing __hst_map_handle.map.
7770
7771 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7772
7773         * configure.in (sysnames): Look for Implies-before and Implies-after
7774         files.
7775         * configure: Regenerated.
7776
7777 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7778
7779         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7780         8-byte data alignment with LP_SIZE alignment.
7781
7782 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7783
7784         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7785         into R10_LP.
7786
7787 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7788
7789         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7790
7791 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7792
7793         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7794         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7795         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7796         Likewise.
7797         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7798
7799 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7800
7801         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7802         (stackinfo_sub_sp): Likewise.
7803
7804 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7805
7806         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7807         RAX_LP.
7808
7809 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7810
7811         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7812         into R*_LP.
7813
7814 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7815
7816         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7817         sizes into R*_LP.
7818
7819 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7820
7821         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7822
7823 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7824
7825         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7826         into R11_LP and load __x86_64_shared_cache_size_half into
7827         R8_LP.
7828
7829 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7830
7831         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7832         R8_LP.
7833
7834 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7835
7836         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7837         logb for POWER7.
7838         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7839         logbf for POWER7.
7840         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7841         logbl for POWER7.
7842         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7843         powerpc32/power7/fpu/s_logb.c via #include.
7844         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7845         powerpc32/power7/fpu/s_logbf.c via #include.
7846         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7847         powerpc32/power7/fpu/s_logbl.c via #include.
7848
7849 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7850
7851         * README.libm: Remove file.
7852
7853 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7854
7855         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7856         count for x32.  Use R*_LP and omit operand-size suffix.
7857
7858 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7859
7860         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7861         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7862         * sysdeps/x86_64/x32/shlib-versions: New file.
7863
7864 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7865
7866         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7867         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7868         Use _dl_fatal_printf instead.
7869
7870 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7871
7872         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7873         set if not set by the user.  Do not allow for being unset.
7874         * sysdeps/unix/sysv/linux/configure: Regenerated.
7875
7876 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7877
7878         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7879         the `q' suffix from lea and replace .quad with ASM_ADDR.
7880
7881 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7882
7883         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7884         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7885         instead of $17.
7886         (PTR_DEMANGLE): Likewise.
7887
7888 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7889
7890         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7891         (LP_OP): Likewise.
7892         (ASM_ADDR): Likewise.
7893         (RAX_LP): Likewise.
7894         (RBP_LP): Likewise.
7895         (RBX_LP): Likewise.
7896         (RCX_LP): Likewise.
7897         (RDI_LP): Likewise.
7898         (RSI_LP): Likewise.
7899         (RSP_LP): Likewise.
7900         (R8_LP): Likewise.
7901         (R9_LP): Likewise.
7902         (R10_LP): Likewise.
7903         (R10_LP): Likewise.
7904         (R11_LP): Likewise.
7905         (R12_LP): Likewise.
7906         (R13_LP): Likewise.
7907         (R14_LP): Likewise.
7908         (R15_LP): Likewise.
7909
7910 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7911
7912         * sysdeps/x86_64/x32/dl-machine.h: New file.
7913
7914 2012-05-14  Andreas Jaeger  <aj@suse.de>
7915
7916         * manual/Makefile (subdir): Remove export of subdir.
7917         (all): Remove target.
7918         (.PHONY): Remove all from list.
7919         (mkinstalldirs): Remove.
7920         (.PHONY): Remove installdirs from list.
7921         ($(inst_infodir)/libc.info): Use make-target-directory.
7922         (installdirs): Remove.
7923         (subdir_%): Remove.
7924         (glibc-targets): Remove.
7925         (lib): Remove.
7926         (stubs): Remove.
7927         ($(objpfx)stubs ../po/manual.pot): Remove.
7928         ($(objpfx)stamp%): Remove.
7929         (make-target-directory): Remove.
7930         (subdir_install): Remove.
7931         (routines): Remove.
7932         (aux): Remove.
7933         (sources): Remove.
7934         (objects): Remove.
7935         (headers): Remove.
7936
7937         [BZ #13750]
7938         * manual/.gitignore: Remove, it's not needed anymore.
7939         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
7940         all files in it.
7941         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7942         directory.
7943         (texis): Renamed to $(objpfx)texis.
7944         (texis-path): New, contains path to generated files.
7945         (chapters.%): Use texis-path for complete path, add extra argument
7946         libc-texinfo.sh.
7947         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7948         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7949         (summary,texi, stamp-summary): Use complete path of
7950         files. Generate files in build dir.
7951         (dir-add.texi): Build in build dir.
7952         (libm-err.texi,stamp-libm-err): Likewise.
7953         (version.texi, stamp-version): Likewise.
7954         (.%c.texi): Likewise.
7955         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7956         (mostlyclean): Remove target.
7957         (realclean): Remove target.
7958         (generated): Add new variable with contents from mostlyclean and
7959         realclean, remove entries duplicated in common-mostlyclean, add
7960         stamp-libm-err and stamp-version.
7961         (generated-dirs): Add libc directory.
7962         ($(inst_infodir)/libc.info): Install files from build dir.
7963
7964         * manual/install.texi (Configuring and compiling): Adjust since
7965         the info files are not part of the tar ball anymore.
7966
7967 2012-05-14  Andreas Jaeger  <aj@suse.de>
7968
7969         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7970         variable.
7971
7972 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7973
7974         [BZ #13717]
7975         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7976         to 2.2.0 where earlier.
7977         * sysdeps/unix/sysv/linux/configure: Regenerated.
7978         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7979         Remove conditional code.
7980         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7981         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7982         Remove conditional code.
7983         [!__NR_lchown]: Likewise.
7984         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7985         [__NR_lchown]: Likewise.
7986         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7987         comment referencing __ASSUME_LCHOWN_SYSCALL.
7988         * sysdeps/unix/sysv/linux/i386/sigaction.c
7989         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7990         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7991         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7992         Remove conditional code.
7993         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7994         (__protocol_available): Remove #if 0 code.
7995         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7996         conditional code.
7997         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7998         * sysdeps/unix/sysv/linux/kernel-features.h
7999         (__ASSUME_GETCWD_SYSCALL): Don't define.
8000         (__ASSUME_REALTIME_SIGNALS): Likewise.
8001         (__ASSUME_PREAD_SYSCALL): Likewise.
8002         (__ASSUME_PWRITE_SYSCALL): Likewise.
8003         (__ASSUME_POLL_SYSCALL): Likewise.
8004         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8005         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8006         non-SPARC.
8007         (__ASSUME_SIOCGIFNAME): Don't define.
8008         (__ASSUME_MSG_NOSIGNAL): Likewise.
8009         (__ASSUME_SENDFILE): Define unconditionally.
8010         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8011         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8012         conditional code.
8013         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8014         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8015         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8016         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8017         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8018         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8019         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8021         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8022         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8024         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8025         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8027         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8028         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8030         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8031         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8033         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8034         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8036         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8037         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8039         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8040         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8042         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8043         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8044         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8045         Remove conditional code.
8046         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8047         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8048         Remove conditional code.
8049         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8050         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8051         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8052         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8053         Remove conditional code.
8054         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8055         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8056         Remove conditional code.
8057         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8058         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8059         Remove conditional code.
8060         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8061         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8062         Remove conditional code.
8063         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8064         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8065         Remove conditional code.
8066         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8067         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8068         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8069         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8070         * sysdeps/unix/sysv/linux/sigaction.c
8071         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8072         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8073         * sysdeps/unix/sysv/linux/sigpending.c
8074         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8075         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8076         * sysdeps/unix/sysv/linux/sigprocmask.c
8077         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8078         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8079         * sysdeps/unix/sysv/linux/sigsuspend.c
8080         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8081         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8082         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8083         (__libc_missing_rt_sigs): Remove.
8084         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8085         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8086         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8087         Remove conditional code.
8088         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8089         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8090         return 1.
8091         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8092         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8093         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8094         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8095
8096 2012-05-14  Andreas Jaeger  <aj@suse.de>
8097
8098         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8099         it's not used in glibc.
8100         (__coshm1): Likewise.
8101         (__acosh1p): Likewise.
8102         (__sgn): Likewise.
8103
8104         * manual/string.texi (Copying and Concatenation): Add missing
8105         variable in concat example.
8106         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8107
8108 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8109
8110         [BZ #14103]
8111         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8112         __builtin_clzl with __builtin_clzll.
8113
8114 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8115
8116         [BZ #14104]
8117         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8118         libc_freeres_ptr.
8119
8120 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8121
8122         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8123         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8124         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8125         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8126
8127 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8128
8129         * NEWS: Update ia64 info.
8130
8131 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8132
8133         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8134         used as bcopy.
8135
8136 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8137
8138         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8139         * sysdeps/unix/syscalls.list (dup3): Likewise.
8140         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8141         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8142
8143 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8144
8145         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8146         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8147
8148 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8149
8150         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8151         thread pointer.
8152         (TLS_IE): Use mov/add instead of movq/addq to load thread
8153         pointer.
8154         (TLS_GD_PREFIX): New.
8155         (TLS_GD): Use it.
8156
8157 2012-05-11  David S. Miller  <davem@davemloft.net>
8158
8159         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8160         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8161         (_FPU_SETCW): Likewise.
8162
8163 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8164
8165         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8166         is 32-byte aligned.
8167
8168 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8169
8170         [BZ #11837]
8171         * iconvdata/gb18030.c: Update tables.
8172         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8173         characters specially.
8174         (BODY for TO_LOOP): Add encoding of missing ranges.
8175
8176 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8177
8178         [BZ #13673]
8179         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8180         * sysdeps/mach/hurd/dup3.c: Likewise.
8181         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8182         * sysdeps/powerpc/memmove.c:: Likewise.
8183
8184 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8185
8186         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8187         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8188
8189 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8190
8191         * elf/elf.h (R_X86_64_RELATIVE64): New.
8192         (R_X86_64_NUM): Updated.
8193         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8194         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8195         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8196         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8197         tst-quad1pie tst-quad2pie
8198         (modules-names): Add tst-quadmod1 tst-quadmod2.
8199         ($(objpfx)tst-quad1): New dependency.
8200         ($(objpfx)tst-quad2): Likewise.
8201         ($(objpfx)tst-quad1pie): Likewise.
8202         ($(objpfx)tst-quad2pie): Likewise.
8203         * sysdeps/x86_64/tst-quad1.c: New file.
8204         * sysdeps/x86_64/tst-quad1pie.c: New file.
8205         * sysdeps/x86_64/tst-quad2.c: Likewise.
8206         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8207         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8208         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8209         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8210         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8211
8212 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8213
8214         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8215         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8216         * streams/stropts.h (t_scalar_t): Define type.
8217
8218         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8219         (_PATH_PRESERVE): Set to "/var/lib".
8220         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8221
8222         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8223         instead of int.
8224
8225         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8226         if __dir_mkfile succeeded.
8227
8228         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8229         checking for _hurd_dtablesize.  Unlock it right after having
8230         finished _hurd_dtable allocation.
8231
8232 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8233
8234         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8235         * sysdeps/mach/hurd/configure: Regenerated.
8236         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8237         special-casing to...
8238         * sysdeps/gnu/configure.in: ... this new file.
8239         * sysdeps/unix/sysv/linux/configure: Regenerated.
8240         * sysdeps/gnu/configure: New generated file.
8241
8242         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8243         for Linux: use nsec instead of usec, as well as:
8244         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8245         members of type struct timespec.
8246         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8247         New macros.
8248         (struct stat64): Likewise.
8249         (_STATBUF_ST_NSEC): New macro.
8250         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8251
8252         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8253         __strtoul_internal rather than strtoul.
8254
8255 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8256
8257         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8258         and reject them.
8259
8260 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8261
8262         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8263         which preserves existing values.
8264         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8265
8266 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8267
8268         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8269         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8270         greater than FD_SETSIZE.
8271
8272 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8273
8274         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8275         allocated, call __vm_protect to finish enabling the existing space, and
8276         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8277         allocate the remainder.
8278
8279 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8280
8281         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8282         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8283
8284 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8285
8286         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8287         sysdeps/mach/hurd/readlink.c.
8288
8289         * posix/tst-sysconf.c (posix_options): Only use
8290         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8291         _POSIX_SYNCHRONIZED_IO when they are defined
8292         * sysdeps/mach/hurd/bits/posix_opt.h:
8293         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8294         (_XOPEN_REALTIME): Undefine macro.
8295         (_XOPEN_REALTIME_THREADS): Undefine macro.
8296         (_XOPEN_SHM): Undefine macro.
8297         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8298         macro to -1.
8299         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8300         macro to -1.
8301         (_POSIX_ASYNC_IO): Undefine macro.
8302         (_POSIX_PRIORITIZED_IO): Undefine macro.
8303         (_POSIX_SPIN_LOCKS): Define macro to -1.
8304
8305         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8306         SA_NODEFER, SA_RESETHAND.
8307         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8308         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8309         F_DUPFD_CLOEXEC.
8310
8311 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8312
8313         * elf/Makefile (pldd-modules): Define unconditionally.
8314
8315 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8316
8317         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8318
8319 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8320
8321         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8322         Return ENOENT when name is empty.
8323         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8324
8325 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8326
8327         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8328
8329         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8330
8331 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8332
8333         Fix mlock in all cases except non-readable pages.
8334         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8335         instead of VM_PROT_ALL as parameter to __vm_wire function.
8336
8337         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8338         (__mkdir): When path is `/', just fail with EEXIST.
8339         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8340
8341 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8342
8343         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8344         <sys/uio.h> (for writev).
8345         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8346         and <sys/param.h> (for MIN).
8347
8348 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8349
8350         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8351         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8352         if interrupted.
8353
8354 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8355
8356         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8357         Depend on against $(link-rpcuserlibs).
8358
8359 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8360
8361         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8362         (__libc_stack_end): Do not use attribute_relro.
8363         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8364         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8365         to libthread-provided value.
8366         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8367         attribute_relro.
8368
8369 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8370
8371         [BZ #3748]
8372         * bits/libc-lock.h (__libc_once_get): New macro.
8373         * sysdeps/mach/bits/libc-lock.h: Likewise.
8374         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8375         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8376         instead of using implementation details.
8377
8378         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8379         * libio/freopen.c: Likewise.
8380         * libio/freopen64.c: Likewise.
8381         * misc/syslog.c: Likewise.
8382         * nscd/connections.c: Likewise.
8383         * nscd/netgroupcache.c: Likewise.
8384         * sysdeps/posix/getcwd.c: Likewise.
8385
8386 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8387
8388         * math/w_ilogbf.c: Add #include <limits.h>.
8389
8390 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8391
8392         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8393         path instead of returning without unlocking.
8394
8395         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8396         immediate-write ioctls.
8397         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8398
8399 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8400
8401         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8402         __builtin_frame_address instead of making assumptions about the
8403         location of the return address relative to DATA.  Force early load of
8404         the return address.
8405         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8406         __builtin_frame_address.
8407
8408         dup3 for GNU Hurd.
8409         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8410         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8411         implement dup3 and do some further code clean-ups.
8412         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8413         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8414
8415 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8416
8417         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8418
8419         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8420         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8421         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8422         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8423         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8424         d->port.lock.
8425
8426         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8427         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8428         when handler == SIG_ERR, not when handler != SIG_ERR.
8429
8430 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8431
8432         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8433         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8434         definitions.
8435
8436         accept4 for GNU Hurd.
8437         * include/sys/socket.h (__libc_accept4): New prototype.
8438         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8439         to implement __libc_accept4.
8440         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8441         __libc_accept4.
8442         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8443
8444         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8445         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8446         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8447         signal-defines.sym.
8448
8449 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8450
8451         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8452
8453 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8454
8455         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8456         assertion on O_CLOEXEC flag.
8457         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8458         * hurd/intern-fd.c: Likewise.
8459         * hurd/port2fd.c: Likewise.
8460
8461 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8462
8463         [BZ #3906]
8464         * bits/in.h (IPV6_PKTINFO): Define new macro.
8465         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8466
8467 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8468
8469         [BZ #13954]
8470         [BZ #13955]
8471         [BZ #13956]
8472         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8473         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8474         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8475         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8476         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8477         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8478         * math/libm-test.inc (logb_test) : Additional logb tests.
8479
8480 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8481             Andreas Jaeger  <aj@suse.de>
8482
8483         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8484         * configure: Regenerated.
8485         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8486         * config.make.in (link-obsolete-rpc): New substituted variable.
8487         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8488         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8489         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8490         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8491         so that libc.a contains the symbols.
8492         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8493         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8494         * sunrpc/auth_none.c: Likewise.
8495         * sunrpc/auth_unix.c: Likewise.
8496         * sunrpc/authdes_prot.c: Likewise.
8497         * sunrpc/authuxprot.c: Likewise.
8498         * sunrpc/clnt_gen.c: Likewise.
8499         * sunrpc/clnt_perr.c: Likewise.
8500         * sunrpc/clnt_raw.c: Likewise.
8501         * sunrpc/clnt_simp.c: Likewise.
8502         * sunrpc/clnt_tcp.c: Likewise.
8503         * sunrpc/clnt_udp.c: Likewise.
8504         * sunrpc/clnt_unix.c: Likewise.
8505         * sunrpc/des_crypt.c: Likewise.
8506         * sunrpc/des_soft.c: Likewise.
8507         * sunrpc/get_myaddr.c: Likewise.
8508         * sunrpc/key_call.c: Likewise.
8509         * sunrpc/key_prot.c: Likewise.
8510         * sunrpc/netname.c: Likewise.
8511         * sunrpc/pm_getmaps.c: Likewise.
8512         * sunrpc/pm_getport.c: Likewise.
8513         * sunrpc/pmap_clnt.c: Likewise.
8514         * sunrpc/pmap_prot.c: Likewise.
8515         * sunrpc/pmap_prot2.c: Likewise.
8516         * sunrpc/pmap_rmt.c: Likewise.
8517         * sunrpc/publickey.c: Likewise.
8518         * sunrpc/rpc_cmsg.c: Likewise.
8519         * sunrpc/rpc_common.c: Likewise.
8520         * sunrpc/rpc_dtable.c: Likewise.
8521         * sunrpc/rpc_prot.c: Likewise.
8522         * sunrpc/rpc_thread.c: Likewise.
8523         * sunrpc/rtime.c: Likewise.
8524         * sunrpc/svc.c: Likewise.
8525         * sunrpc/svc_auth.c: Likewise.
8526         * sunrpc/svc_raw.c: Likewise.
8527         * sunrpc/svc_run.c: Likewise.
8528         * sunrpc/svc_tcp.c: Likewise.
8529         * sunrpc/svc_udp.c: Likewise.
8530         * sunrpc/svc_unix.c: Likewise.
8531         * sunrpc/svcauth_des.c: Likewise.
8532         * sunrpc/xcrypt.c: Likewise.
8533         * sunrpc/xdr.c: Likewise.
8534         * sunrpc/xdr_array.c: Likewise.
8535         * sunrpc/xdr_float.c: Likewise.
8536         * sunrpc/xdr_intXX_t.c: Likewise.
8537         * sunrpc/xdr_mem.c: Likewise.
8538         * sunrpc/xdr_rec.c: Likewise.
8539         * sunrpc/xdr_ref.c: Likewise.
8540         * sunrpc/xdr_sizeof.c: Likewise.
8541         * sunrpc/xdr_stdio.c: Likewise.
8542
8543 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8544
8545         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8546         change.  Update copyright years.
8547
8548 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8549
8550         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8551
8552 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8553             Joseph Myers  <joseph@codesourcery.com>
8554             Paul Pluzhnikov  <ppluzhnikov@google.com>
8555
8556         [BZ #14012]
8557         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8558         requiring rpcgen.
8559         [cross-compiling] (extra-libs): Likewise.
8560         [cross-compiling] (extra-libs-others): Likewise.
8561         [cross-compiling] (librpcsvc-routines): Likewise.
8562         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8563         [cross-compiling] (omit-deps): Likewise.
8564         (sunrpc-CPPFLAGS): New variable.
8565         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8566         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8567         (cross-rpcgen-objs): New variable.
8568         (extra-objs): Append $(cross-rpcgen-objs).
8569         ($(cross-rpcgen-objs)): New rule.
8570         ($(objpfx)cross-rpcgen): Likewise.
8571         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8572         comment.
8573         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8574         ($(objpfx)x%.stmp): Likewise.
8575         * sunrpc/proto.h [IS_IN_build] (_): Define.
8576         [IS_IN_build] (_libc_intl_domainname): Likewise.
8577
8578 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8579
8580         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8581         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8582         and R_X86_64_TPOFF64.
8583
8584 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8585
8586         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8587         sysdeps/unix/sysv/syscalls.list.
8588         (stime): Likewise.
8589         (utime): Likewise.
8590         * sysdeps/unix/sysv/syscalls.list: Remove file.
8591
8592 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8593
8594         [BZ #3440]
8595         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8596         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8597         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8598         (__LC_IDENTIFICATION): Make these macros useful in #if
8599         expressions, as required by C99.
8600
8601 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8602
8603         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8604         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8605         after this.
8606
8607 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8608
8609         * stdlib/longlong.h: Updated from GCC.
8610
8611 2012-05-09  Andreas Jaeger  <aj@suse.de>
8612
8613         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8614         default is first entry.
8615         (run_mode): Set type.
8616         (main): Remove informal message about syslog.
8617         (options): Fix typo.
8618
8619         [BZ #14053]
8620         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8621         to asm.
8622         (lrint): Likewise.
8623         (llrintf): Likewise.
8624         (llrint): Likewise.
8625         (rint): Likewise.
8626         (rintf): Likewise.
8627         (nearbyint): Likewise.
8628         (nearbyintf): Likewise.
8629
8630 2012-05-09  Andreas Jaeger  <aj@suse.de>
8631             Pedro Alves  <palves@redhat.com>
8632
8633         * nscd/nscd.c (run_mode): Use enum.
8634         (main): Cleanup coding style issue.
8635
8636 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8637             Andreas Jaeger  <aj@suse.de>
8638
8639         * nscd/nscd.c (go_background): Replaced with...
8640         (run_mode): ... this.
8641         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8642         (options): Add -F --foreground.
8643         (main): Implement it.
8644         (parse_opt): Parse it.
8645
8646 2012-05-09  Andreas Jaeger  <aj@suse.de>
8647
8648         [BZ #14083]
8649         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8650         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8651         -Wconversion warning.
8652         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8653         Likewise.
8654
8655 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8656
8657         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8658         == 0.
8659         (LC_ALL): Use macro-int-constant.
8660         (LC_COLLATE): Likewise.
8661         (LC_CTYPE): Likewise.
8662         (LC_MESSAGES): Likewise.
8663         (LC_MONETARY): Likewise.
8664         (LC_NUMERIC): Likewise.
8665         (LC_TIME): Likewise.
8666         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8667         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8668         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8669         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8670         Specify type.
8671         [C99-based standards] (float_t): Expect type.
8672         [C99-based standards] (double_t): Expect type.
8673         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8674         type.
8675         [C99-based standards] (HUGE_VALL): Likewise.
8676         [C99-based standards] (INFINITY): Likewise.
8677         [C99-based standards] (NAN): Likewise.
8678         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8679         [C99-based standards] (FP_NAN): Likewise.
8680         [C99-based standards] (FP_NORMAL): Likewise.
8681         [C99-based standards] (FP_SUBNORMAL): Likewise.
8682         [C99-based standards] (FP_ZERO): Likewise.
8683         [C99-based standards] (FP_FAST_FMA): Use
8684         optional-macro-int-constant.  Specify type.  Require == 1.
8685         [C99-based standards] (FP_FAST_FMAF): Likewise.
8686         [C99-based standards] (FP_FAST_FMAL): Likewise.
8687         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8688         [C99-based standards] (FP_ILOGBNAN): Likewise.
8689         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8690         Specify type.
8691         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8692         [C99-based standards] (math_errhandling): Specify type.
8693         [ISO99 || ISO11] (signgam): Do not allow.
8694         [non-C99-based standards] (copysignf): Do not allow.
8695         [non-C99-based standards] (exp2f): Likewise.
8696         [non-C99-based standards] (log2f): Likewise.
8697         [non-C99-based standards] (modff): Allow.
8698         [non-C99-based standards] (erff): Do not allow.
8699         [non-C99-based standards] (erfcf): Likewise.
8700         [non-C99-based standards] (gammaf): Likewise.
8701         [non-C99-based standards] (hypotf): Likewise.
8702         [non-C99-based standards] (j0f): Likewise.
8703         [non-C99-based standards] (j1f): Likewise.
8704         [non-C99-based standards] (jnf): Likewise.
8705         [non-C99-based standards] (lgammaf): Likewise.
8706         [non-C99-based standards] (tgammaf): Likewise.
8707         [non-C99-based standards] (y0f): Likewise.
8708         [non-C99-based standards] (y1f): Likewise.
8709         [non-C99-based standards] (ynf): Likewise.
8710         [non-C99-based standards] (isnanf): Likewise.
8711         [non-C99-based standards] (acoshf): Likewise.
8712         [non-C99-based standards] (asinhf): Likewise.
8713         [non-C99-based standards] (atanhf): Likewise.
8714         [non-C99-based standards] (cbrtf): Likewise.
8715         [non-C99-based standards] (expm1f): Likewise.
8716         [non-C99-based standards] (ilogbf): Likewise.
8717         [non-C99-based standards] (log1pf): Likewise.
8718         [non-C99-based standards] (logbf): Likewise.
8719         [non-C99-based standards] (nextafterf): Likewise.
8720         [non-C99-based standards] (remainderf): Likewise.
8721         [non-C99-based standards] (rintf): Likewise.
8722         [non-C99-based standards] (scalbf): Likewise.
8723         [non-C99-based standards] (copysignl): Likewise.
8724         [non-C99-based standards] (exp2l): Likewise.
8725         [non-C99-based standards] (log2l): Likewise.
8726         [non-C99-based standards] (modfl): Allow.
8727         [non-C99-based standards] (erfl): Do not allow.
8728         [non-C99-based standards] (erfcl): Likewise.
8729         [non-C99-based standards] (gammal): Likewise.
8730         [non-C99-based standards] (hypotl): Likewise.
8731         [non-C99-based standards] (j0l): Likewise.
8732         [non-C99-based standards] (j1l): Likewise.
8733         [non-C99-based standards] (jnl): Likewise.
8734         [non-C99-based standards] (lgammal): Likewise.
8735         [non-C99-based standards] (tgammal): Likewise.
8736         [non-C99-based standards] (y0l): Likewise.
8737         [non-C99-based standards] (y1l): Likewise.
8738         [non-C99-based standards] (ynl): Likewise.
8739         [non-C99-based standards] (isnanl): Likewise.
8740         [non-C99-based standards] (acoshl): Likewise.
8741         [non-C99-based standards] (asinhl): Likewise.
8742         [non-C99-based standards] (atanhl): Likewise.
8743         [non-C99-based standards] (cbrtl): Likewise.
8744         [non-C99-based standards] (expm1l): Likewise.
8745         [non-C99-based standards] (ilogbl): Likewise.
8746         [non-C99-based standards] (log1pl): Likewise.
8747         [non-C99-based standards] (logbl): Likewise.
8748         [non-C99-based standards] (nextafterl): Likewise.
8749         [non-C99-based standards] (remainderl): Likewise.
8750         [non-C99-based standards] (rintl): Likewise.
8751         [non-C99-based standards] (scalbl): Likewise.
8752         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8753         [non-C99-based standards] (FP_*): Do not allow.
8754         [C99-based standards] (FP_*): Change to
8755         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8756         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8757         allow.
8758         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8759         (SIG_ERR): Likewise.
8760         [X/Open-based standards] (SIG_HOLD): Likewise.
8761         (SIG_IGN): Likewise.
8762         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8763         positive value.
8764         (SIGFPE): Likewise.
8765         (SIGILL): Likewise.
8766         (SIGINT): Likewise.
8767         (SIGSEGV): Likewise.
8768         (SIGTER): Likewise.
8769         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8770         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8771         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8772         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8773         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8774         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8775         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8776         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8777         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8778         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8779         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8780         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8781         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8782         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8783         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8784         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8785         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8786         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8787         [X/Open-based standards] (SIGTRAP): Likewise.
8788         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8789         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8790         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8791         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8792         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8793         allow.
8794
8795 2012-05-08  Ian Wienand  <ianw@vmware.com>
8796
8797         [BZ #14080]
8798         * time/tzset.c (__tzset_parse_tz): Update default rules for
8799         daylight time changes in the Energy Policy Act of 2005.
8800
8801 2012-05-09  Andreas Jaeger  <aj@suse.de>
8802
8803         [BZ #13983]
8804         * elf/ldconfig.c (parse_conf): Change string to make clear that
8805         ldconfig only issued a warning if ld.so.conf does not exist.
8806
8807 2012-05-08  David S. Miller  <davem@davemloft.net>
8808
8809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8810         movxtod instead of popping the value on the stack.
8811
8812         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8813
8814 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8815
8816         * config.h.in: Add HAVE_ARM_PCS_VFP.
8817
8818 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8819
8820         [BZ #13979]
8821         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8822         checking but the checks are disabled for any reason.
8823
8824 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8825
8826         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8827         and ELF64_R_TYPE with ELFW(R_TYPE).
8828
8829 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8830
8831         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8832         (ulimit): Likewise.
8833
8834         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8835         (settimeofday): Likewise.
8836
8837 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8838
8839         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8840         a struct th_u2 inside the union, and move tu_block/tu_code into
8841         a new th_u3 union of tu_block/tu_code inside of that.  Move
8842         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8843         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8844         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8845         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8846         (th_stuff): Change to th_u1.tu_stuff.
8847         (th_data): Define.
8848         (th_msg): Change to th_u1.th_u2.tu_data.
8849
8850 2012-05-07  David S. Miller  <davem@davemloft.net>
8851
8852         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8853
8854         [BZ #14074]
8855         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8856         (SETUP_PIC_REG): Use it.
8857         (SETUP_PIC_REG_LEAF): Use it.
8858
8859 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8860
8861         [BZ #13885]
8862         [BZ #13923]
8863         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8864         USE_AS_EXPM1L.
8865         (EXPL_FINITE): Likewise.
8866         (FLDLOG): Likewise.
8867         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8868         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8869         e_expl.S.
8870         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8871         USE_AS_EXPM1L.
8872         (EXPL_FINITE): Likewise.
8873         (FLDLOG): Likewise.
8874         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8875         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8876         e_expl.S.
8877         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8878         test of -max_value argument for long double.
8879         * sysdeps/i386/fpu/libm-test-ulps: Update.
8880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8881
8882 2012-05-06  David S. Miller  <davem@davemloft.net>
8883
8884         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8885         quad soft-float symbols whose references which are compiler
8886         generated.
8887         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8888
8889 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8890
8891         [BZ #13884]
8892         [BZ #13914]
8893         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8894         USE_AS_EXP10L.
8895         (EXPL_FINITE): Likewise.
8896         (FLDLOG): Likewise.
8897         (c0): Likewise.
8898         (c1): Likewise.
8899         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8900         Adjust comments for base varying.
8901         (__expl_finite): Change alias to EXPL_FINITE.
8902         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8903         e_expl.S.
8904         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8905         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8906         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8907         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8908         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8909         USE_AS_EXP10L.
8910         (EXPL_FINITE): Likewise.
8911         (FLDLOG): Likewise.
8912         (c0): Likewise.
8913         (c1): Likewise.
8914         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8915         Adjust comments for base varying.
8916         (__expl_finite): Change alias to EXPL_FINITE.
8917         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
8918         tests for bugs.
8919         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8920
8921         [BZ #14064]
8922         * math/libm-test.inc (check_float_internal): Correct ulp
8923         calculation for subnormal expected results.
8924
8925 2012-05-06  Andreas Jaeger  <aj@suse.de>
8926
8927         * Makeconfig (+math-flags): New, set to -frounding-math.
8928         (+cflags): Add +math-flags so that all of glibc gets compiled with
8929         it.
8930
8931         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
8932
8933 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
8934
8935         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
8936         Disable one test.
8937
8938         [BZ #13787]
8939         [BZ #13922]
8940         [BZ #14036]
8941         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8942         (__ieee754_expl): Allow for and saturate large arguments.
8943         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8944         (u_threshold): Likewise.
8945         (__exp): Call __ieee754_exp before checking for overflow and
8946         underflow.
8947         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8948         (u_threshold): Likewise.
8949         (__expf): Call __ieee754_expf before checking for overflow and
8950         underflow.
8951         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8952         (u_threshold): Likewise.
8953         (__expl): Call __ieee754_expl before checking for overflow and
8954         underflow.
8955         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8956         (__ieee754_expl): Allow for and saturate large arguments.
8957         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8958         missing overflow exception on overflow.
8959         (expm1_test): Do not allow missing overflow exception on overflow.
8960
8961         * sysdeps/i386/fpu/e_expl.c: Move to ...
8962         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8963         rather than using inline asm.
8964         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8965         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8966         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8967
8968         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8969         (nice): Likewise.
8970         (poll): Likewise.
8971         (signal): Likewise.
8972         (time): Likewise.
8973         (times): Likewise.
8974
8975 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8976
8977         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8978         sysdeps/unix/common/syscalls.list.
8979         (fchmod): Likewise.
8980         (fchown): Likewise.
8981         (ftruncate): Likewise.
8982         (getrusage): Likewise.
8983         (gettimeofday): Likewise.
8984         (setpgid): Likewise.
8985         (setregid): Likewise.
8986         (setreuid): Likewise.
8987         (sigaction): Likewise.
8988         (truncate): Likewise.
8989         (vhangup): Likewise.
8990         * sysdeps/unix/common/syscalls.list: Remove file.
8991         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8992         * sysdeps/unix/sysv/linux/Implies: Likewise.
8993
8994 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8995
8996         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8997         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8998         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8999         Moved to ...
9000         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9001         Here.
9002         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9003         to ...
9004         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9005         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9006         to ...
9007         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9008         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9009         to ...
9010         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9011         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9012         to ...
9013         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9014         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9015         to ...
9016         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9017         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9018         to ...
9019         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9020         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9021         to ...
9022         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9023         Here.
9024         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9025         to ...
9026         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9027         Here.
9028         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9029         to ...
9030         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9031         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9032         Moved to ...
9033         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9034         Here.
9035         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9036         to ...
9037         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9038
9039 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9040
9041         * sysdeps/unix/common/bits/dirent.h: Remove file.
9042         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9043
9044         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9045         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9046         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9047         * sysdeps/unix/bsd/isatty.c: Likewise.
9048         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9049         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9050         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9051
9052 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9053
9054         [BZ #13563]
9055         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9056         long double comparison inaccuracies.
9057         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9058         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9059
9060 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9061
9062         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9063         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9064
9065 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9066
9067         [BZ #14049]
9068         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9069         nonzero digits before rounding a hex value.
9070         * stdlib/tst-strtod.c (tests): Add another test.
9071
9072 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9073
9074         * sysdeps/s390/fpu/libm-test-ulps: Update.
9075
9076 2012-05-03  Andreas Jaeger  <aj@suse.de>
9077
9078         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9079         does not get optimized out.
9080         (malloc_opt_barrier): New.
9081
9082 2012-05-03  Andreas Jaeger  <aj@suse.de>
9083             Roland McGrath  <roland@hack.frob.com>
9084
9085         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9086         intermediate file deletion.
9087         (generated): Add .symlist files.
9088
9089 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9090
9091         [BZ #13775]
9092         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9093         Redirect under this condition.
9094         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9095         [__USE_GNU] (__dprintf_chk): Not under this condition.
9096         [__USE_GNU] (__vdprintf_chk): Likewise.
9097         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9098         under this condition.
9099         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9100         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9101         [__USE_XOPEN2K8] (vdprintf): Likewise.
9102         [__USE_GNU] (__dprintf_chk): Not under this condition.
9103         [__USE_GNU] (__vdprintf_chk): Likewise.
9104         [__USE_GNU] (dprintf): Likewise.
9105         [__USE_GNU] (vdprintf): Likewise.
9106
9107 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9108
9109         * elf/Makefile (common-generated): Set this instead of generated for
9110         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9111         $(all-built-dso)-derived lists.
9112
9113 2012-05-03  Andreas Jaeger  <aj@suse.de>
9114
9115         * sysdeps/i386/fpu/libm-test-ulps: Update.
9116
9117         * FAQ: Removed.
9118         * FAQ.in: Likewise.
9119         * scripts/gen-FAQ.pl: Likewise.
9120         * manual/install.texi (Installation): Point to online location of
9121         FAQ.
9122         * Makefile (files-for-dist): Remove FAQ.
9123         (FAQ): Remove.
9124
9125 2012-05-02  Allan McRae  <allan@archlinux.org>
9126
9127         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9128         (LDFLAGS-reldepmod5.so): Likewise.
9129         (LDFLAGS-reldep6mod1.so): Likewise.
9130         (LDFLAGS-reldep6mod4.so): Likewise.
9131         (LDFLAGS-reldep8mod3.so): Likewise.
9132         (LDFLAGS-unload4mod1.so): Likewise.
9133         (LDFLAGS-unload4mod2.so): Likewise.
9134         (LDFLAGS-tst-initorder): Likewise.
9135         (LDFLAGS-tst-initordera2.so): Likewise.
9136         (LDFLAGS-tst-initordera3.so): Likewise.
9137         (LDFLAGS-tst-initordera4.so): Likewise.
9138         (LDFLAGS-tst-initorderb2.so): Likewise.
9139         (LDFLAGS-noload): Likewise.
9140         (LDFLAGS-next): Likewise.
9141         (LDFLAGS-order2mod1.so): Likewise.
9142         (LDFLAGS-order2mod2.so): Likewise.
9143         (LDFLAGS-tst-initorder2): Likewise.
9144         (LDFLAGS-tst-initorder2a.so): Likewise.
9145         (LDFLAGS-tst-initorder2b.so): Likewise.
9146         (LDFLAGS-tst-initorder2c.so): Likewise.
9147         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9148
9149 2012-05-02  David S. Miller  <davem@davemloft.net>
9150
9151         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9152
9153 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9154
9155         [BZ #14055]
9156         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9157
9158 2012-05-02  Andreas Jaeger  <aj@suse.de>
9159
9160         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9161         since we manipulate rounding mode.
9162         (CPPFLAGS-test-idouble.c): Likewise.
9163         (CPPFLAGS-test-ifloat.c): Likewise.
9164         (CFLAGS-test-ldouble.c): Likewise.
9165         (CFLAGS-test-double.c): Likewise.
9166         (CFLAGS-test-float.c): Likewise.
9167         (CFLAGS-test-misc.c): Likewise.
9168         (CFLAGS-test-test-fenv.c): Likewise.
9169
9170 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9171
9172         [BZ #2550]
9173         [BZ #2570]
9174         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9175         comparisons to determine direction to adjust input.
9176
9177 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9178
9179         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9180         output to the target.
9181
9182         * scripts/localplt.awk: New file.
9183         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9184         (check-localplt-CFLAGS): Variable removed.
9185         ($(all-built-dso:=.jmprel)): New static pattern rule.
9186         (generated): Add those targets.
9187         (localplt-built-dso): New variable.
9188         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9189
9190         * elf/check-localplt.c: File removed.
9191
9192         * scripts/check-execstack.awk: New file.
9193         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9194         (check-execstack-CFLAGS): Variable removed.
9195         ($(objpfx)check-execstack.h): Target removed.
9196         ($(objpfx)execstack-default): New target.
9197         (generated): Add that instead of check-execstack.h.
9198         ($(all-built-dso:=.phdr)): New static pattern rule.
9199         (generated): Add those targets.
9200         * elf/check-execstack.c: File removed.
9201
9202         * scripts/check-textrel.awk: New file.
9203         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9204         (check-textrel-CFLAGS): Variable removed.
9205         (all-built-dso): Use := to define.o
9206         ($(all-built-dso:=.dyn)): New static pattern rule.
9207         (generated): Add those targets.
9208         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9209         * config.make.in (READELF): New substituted variable.
9210         * elf/check-textrel.c: File removed.
9211
9212 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9213
9214         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9215         allow.
9216         * conform/data/ctype.h-data [C99-based standards] (isblank):
9217         Expect function.
9218         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9219         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9220         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9221         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9222         Specify type.  Require positive value.
9223         (EILSEQ): Likewise.
9224         (ERANGE): Likewise.
9225         [ISO || POSIX] (EILSEQ): Do not expect.
9226         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9227         Specify type.  Require positive value.
9228         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9229         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9230         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9231         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9232         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9233         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9234         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9235         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9236         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9237         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9238         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9239         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9240         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9241         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9242         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9243         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9244         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9245         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9246         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9247         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9248         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9249         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9250         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9251         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9252         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9253         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9254         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9255         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9256         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9257         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9258         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9259         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9260         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9261         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9262         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9263         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9264         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9265         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9266         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9267         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9268         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9269         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9270         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9271         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9272         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9273         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9274         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9275         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9276         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9277         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9278         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9279         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9280         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9281         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9282         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9283         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9284         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9285         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9286         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9287         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9288         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9289         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9290         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9291         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9292         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9293         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9294         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9295         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9296         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9297         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9298         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9299         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9300         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9301         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9302         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9303         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9304         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9305         Require >= 2.
9306         (FLT_ROUNDS): Expect as macro, not constant.
9307         (FLT_MANT_DIG): Use macro-int-constant.
9308         (DBL_MANT_DIG): Likewise.
9309         (LDBL_MANT_DIG): Likewise.
9310         (FLT_DIG): Likewise.
9311         (DBL_DIG): Likewise.
9312         (LDBL_DIG): Likewise.
9313         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9314         (DBL_MIN_EXP): Likewise.
9315         (LDBL_MIN_EXP): Likewise.
9316         (FLT_MAX_EXP): Use macro-int-constant.
9317         (DBL_MAX_EXP): Likewise.
9318         (LDBL_MAX_EXP): Likewise.
9319         (FLT_MAX_10_EXP): Likewise.
9320         (DBL_MAX_10_EXP): Likewise.
9321         (LDBL_MAX_10_EXP): Likewise.
9322         (FLT_MAX): Use macro-constant.
9323         (DBL_MAX): Likewise.
9324         (LDBL_MAX): Likewise.
9325         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9326         (DBL_EPSILON): Likewise.
9327         (LDBL_EPSILON): Likewise.
9328         (FLT_MIN): Likewise.
9329         (DBL_MIN): Likewise.
9330         (LDBL_MIN): Likewise.
9331         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9332         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9333         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9334         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9335         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9336         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9337         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9338         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9339         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9340         [ISO11] (FLT_TRUE_MIN): Likewise.
9341         [ISO11] (LDBL_TRUE_MIN): Likewise.
9342         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9343         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9344         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9345         (SCHAR_MAX): Likewise.
9346         (UCHAR_MAX): Likewise.
9347         (CHAR_MIN): Likewise.
9348         (CHAR_MAX): Likewise.
9349         (MB_LEN_MAX): Use macro-int-constant.
9350         (SHRT_MIN): Use macro-int-constant.  Specify type.
9351         (SHRT_MAX): Likewise.
9352         (USHRT_MAX): Likewise.
9353         (INT_MAX): Likewise.
9354         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9355         bound negative.
9356         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9357         bound with "U".
9358         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9359         bound with "L".
9360         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9361         bound negative.  Suffix upper bound with "L".
9362         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9363         bound with "UL".
9364         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9365         Specify type.
9366         [C99-based standards] (LLONG_MAX): Likewise.
9367         [C99-based standards] (ULLONG_MAX): Likewise.
9368         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9369         == 0.
9370         [ISO11] (max_align_t): Require type.
9371         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9372
9373         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9374         from $CFLAGS, without defining away __attribute__ calls.
9375         (checknamespace): Use $CFLAGS_namespace.
9376
9377         * conform/conformtest.pl (@keywords): Only include C99 keywords
9378         for standards based on C99 or C11.
9379
9380         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9381         Disable tests.
9382         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9383         UNIX98]: Likewise.
9384
9385         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9386         usability of symbols in #if.
9387
9388         * conform/conformtest.pl: If macro or constant types start
9389         "promoted:", expect the symbol to be of the following type
9390         promoted by the integer promotions.
9391
9392         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9393         in one place.  Also handle "macro-constant".
9394
9395         * conform/conformtest.pl: Only accept expected macro values with
9396         "==".  Parse all "macro" lines in one place.
9397         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9398
9399         * conform/conformtest.pl: Handle braced types on "constant" lines
9400         instead of handling "typed-constant".
9401         * conform/data/signal.h-data: Use "constant" instead of
9402         "typed-constant".
9403
9404         * conform/conformtest.pl: Handle "optional-" at start of lines in
9405         one place rather than duplicating several cases.  Handle each
9406         format of "macro" line with initial "optional-".
9407
9408         * conform/conformtest.pl: Only accept expected constant or
9409         optional-constant values with "==".  Parse all "constant" lines in
9410         one place.  Parse all "optional-constant" lines in one place.
9411         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9412         * conform/data/fmtmsg.h-data: Likewise.
9413         * conform/data/netinet/in.h-data: Likewise.
9414         * conform/data/tar.h-data: Likewise.
9415         * conform/data/limits.h-data: Use "==" form on "constant" and
9416         "optional-constant" lines.
9417
9418         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9419         Use -std=c99 for XOPEN2K.
9420         (@knownproblems): Remove.
9421         (newtoken): Don't check %isknown.
9422
9423         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9424         Do not expect macro.
9425         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9426         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9427         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9428         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9429         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9430         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9431         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9432         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9433         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9434         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9435         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9436         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9437         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9438         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9439         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9440         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9441         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9442         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9443         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9444         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9445         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9446         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9447         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9448         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9449         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9450         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9451         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9452         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9453         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9454         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9455         [XPG3] (acosh): Likewise.
9456         [XPG3] (asinh): Likewise.
9457         [XPG3] (atanh): Likewise.
9458         [XPG3] (cbrt): Likewise.
9459         [XPG3] (expm1): Likewise.
9460         [XPG3] (ilogb): Likewise.
9461         [XPG3] (log1p): Likewise.
9462         [XPG3] (logb): Likewise.
9463         [XPG3] (nextafter): Likewise.
9464         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9465         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9466         [XPG3] (remainder): Likewise.
9467         [XPG3] (rint): Likewise.
9468         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9469         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9470         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9471         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9472         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9473         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9474         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9475         [UNIX98 || XOPEN2K] (scalb): Expect.
9476         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9477         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9478         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9479         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9480         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9481         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9482         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9483         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9484         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9485         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9486         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9487         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9488         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9489         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9490         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9491         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9492         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9493         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9494         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9495         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9496         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9497         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9498         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9499         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9500         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9501         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9502         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9503         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9504         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9505         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9506         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9507         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9508         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9509         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9510         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9511         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9512         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9513         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9514         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9515         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9516         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9517         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9518         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9519         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9520         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9521         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9522         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9523         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9524         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9525         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9526         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9527         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9528         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9529         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9530         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9531         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9532         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9533         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9534         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9535         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9536         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9537         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9538         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9539         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9540         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9541         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9542         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9543         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9544         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9545         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9546         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9547         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9548         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9549         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9550         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9551         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9552         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9553         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9554         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9555         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9556         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9557         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9558         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9559         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9560         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9561         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9562         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9563         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9564         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9565         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9566         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9567         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9568         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9569         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9570         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9571         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9572         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9573         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9574         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9575         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9576         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9577         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9578         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9579         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9580         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9581         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9582         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9583         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9584         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9585         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9586         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9587         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9588         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9589         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9590         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9591         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9592         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9593         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9594         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9595         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9596         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9597         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9598         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9599         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9600         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9601         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9602         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9603         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9604         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9605         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9606         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9607         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9608         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9609         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9610         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9611         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9612         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9613
9614         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9615         _XOPEN_SOURCE_EXTENDED for XPG4.
9616
9617         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9618
9619         * Makeconfig (localtime): Remove variable.
9620         (inst_localtime-file): Likewise.
9621
9622 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9623
9624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9625         Update.
9626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9627         Update.
9628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9629         Update.
9630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9631         Update.
9632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9633         Update.
9634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9635         Update.
9636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9637         Update.
9638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9639         Update.
9640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9641         Update.
9642
9643 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9644
9645         [BZ #2550]
9646         [BZ #2570]
9647         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9648         comparisons to determine direction to adjust input.
9649         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9650         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9651         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9652         Likewise.
9653         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9654         Likewise.
9655         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9656         Likewise.
9657         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9658         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9659         Likewise.
9660         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9661         Likewise.
9662         * math/libm-test.inc (nexttoward_test): Add more tests.
9663
9664 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9665
9666         [BZ #14040]
9667         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9668         in version GLIBC_2.1, not GLIBC_2.0.
9669         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9670         Likewise.
9671
9672 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9673
9674         [BZ #13942]
9675         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9676         (1 - x) * (1 + x).
9677         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9678         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9679         * math/libm-test.inc (acos_test): Add more tests.
9680         (asin_test): Likewise.
9681         * sysdeps/i386/fpu/libm-test-ulps: Update.
9682         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9683
9684         [BZ #14034]
9685         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9686         of square root.
9687         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9688         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9689         * math/libm-test.inc (acos_test_tonearest): New function.
9690         (acos_test_towardzero): Likewise.
9691         (acos_test_downward): Likewise.
9692         (acos_test_upward): Likewise.
9693         (asin_test_tonearest): Likewise.
9694         (asin_test_towardzero): Likewise.
9695         (asin_test_downward): Likewise.
9696         (asin_test_upward): Likewise.
9697         (main): Call the new functions.
9698         * sysdeps/i386/fpu/libm-test-ulps: Update.
9699         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9700
9701         [BZ #13884]
9702         [BZ #13924]
9703         * math/e_exp10.c: Include <float.h>.
9704         (__ieee754_exp10): Handle underflow here rather than multiplying
9705         large negative argument by M_LN10.
9706         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9707         of __ieee754_expf.
9708         * math/e_exp10l.c: Include <float.h>.
9709         (__ieee754_exp10l): Handle underflow here rather than multiplying
9710         large negative argument by M_LN10l.
9711         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9712         spurious overflow exception on underflow.
9713
9714 2012-04-29  Marek Polacek  <polacek@redhat.com>
9715
9716         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9717         (__fortify_function): New macro.
9718         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9719         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9720         __extern_always_inline.
9721         * libio/bits/stdio2.h: Likewise.
9722         * libio/bits/stdio.h: Likewise.
9723         * string/string.h: Likewise.
9724         * string/bits/string3.h: Likewise.
9725         * include/stdio.h: Likewise.
9726         * stdlib/bits/stdlib.h: Likewise.
9727         * stdlib/stdlib.h: Likewise.
9728         * rt/bits/mqueue2.h: Likewise.
9729         * rt/mqueue.h: Likewise.
9730         * posix/bits/unistd.h: Likewise.
9731         * posix/unistd.h: Likewise.
9732         * io/bits/poll2.h: Likewise.
9733         * io/bits/fcntl2.h: Likewise.
9734         * io/fcntl.h: Likewise.
9735         * io/sys/poll.h: Likewise.
9736         * misc/bits/syslog.h: Likewise.
9737         * misc/bits/syslog-ldbl.h: Likewise.
9738         * misc/sys/syslog.h: Likewise.
9739         * socket/bits/socket2.h: Likewise.
9740         * socket/sys/socket.h: Likewise.
9741         * debug/tst-chk1.c: Likewise.
9742         * wcsmbs/bits/wchar2.h: Likewise.
9743         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9744         * wcsmbs/wchar.h: Likewise.
9745
9746 2012-04-29  Andreas Jaeger  <aj@suse.de>
9747
9748         * Makerules (tests): Remove enable-check-abi protection.
9749         (check-abi-warn): Remove.
9750         (check-abi-%): Remove check-abi-warn usage.
9751
9752         * configure.in: Remove check-abi configure option.
9753         * configure: Regenerated.
9754         * config.make.in (enable-check-abi): Remove.
9755
9756 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9757
9758         [BZ #14033]
9759         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9760         double functions to double *_finite functions.
9761
9762         [BZ #13941]
9763         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9764         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9765         LDBL_MIN_EXP.
9766         * stdio-common/Makefile (tests): Add tst-sprintf3.
9767         * stdio-common/tst-sprintf3.c: New file.
9768
9769         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9770         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9771
9772 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9773
9774         * conform/conformtest.pl: Remove duplicate typed-constant
9775         handling.
9776
9777 2012-04-28  David S. Miller  <davem@davemloft.net>
9778
9779         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9780         (check-abi-%): Remove AWK script prerequisite and explicit
9781         abilist directory.
9782         (check-abi): Rewrite to just diff the symlist with the abilist.
9783         (config-tls, config-abi-config): Delete, no longer used.
9784         (update-abi-%): Remove AWK script and explicit abilist directory.
9785         (update-abi): Rewrite to simply compare and conditionally copy the
9786         symlist and the sysdep abilist file.  Remove update-abi-config
9787         checks.
9788         * abilist/ld.abilist: Remove.
9789         * abilist/libBrokenLocale.abilist: Remove.
9790         * abilist/libanl.abilist: Remove.
9791         * abilist/libcrypt.abilist: Remove.
9792         * abilist/libdl.abilist: Remove.
9793         * abilist/librt.abilist: Remove.
9794         * abilist/libthread_db.abilist: Remove.
9795         * abilist/libutil.abilist: Remove.
9796         * scripts/extract-abilist.awk: Remove.
9797         * scripts/merge-abilist.awk: Remove.
9798         * sysdeps/generic/libcidn.abilist: New file.
9799         * sysdeps/generic/libnss_compat.abilist: New file.
9800         * sysdeps/generic/libnss_db.abilist: New file.
9801         * sysdeps/generic/libnss_dns.abilist: New file.
9802         * sysdeps/generic/libnss_files.abilist: New file.
9803         * sysdeps/generic/libnss_hesiod.abilist: New file.
9804         * sysdeps/generic/libnss_nis.abilist: New file.
9805         * sysdeps/generic/libnss_nisplus.abilist: New file.
9806         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9807         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9808         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9809         file.
9810         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9811         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9812         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9813         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9814         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9815         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9816         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9817         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9818         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9819         file.
9820         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9821         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9822         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9823         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9824         file.
9825         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9826         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9827         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9828         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9829         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9830         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9831         file.
9832         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9833         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9834         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9835         file.
9836         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9837         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9838         New file.
9839         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9840         New file.
9841         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9842         New file.
9843         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9844         New file.
9845         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9846         New file.
9847         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9848         New file.
9849         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9850         New file.
9851         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9852         New file.
9853         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9854         New file.
9855         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9856         New file.
9857         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9858         New file.
9859         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9860         New file.
9861         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9862         New file.
9863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9864         file.
9865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9866         New file.
9867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9868         New file.
9869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9870         file.
9871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9872         New file.
9873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9874         New file.
9875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9876         file.
9877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9878         New file.
9879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9880         New file.
9881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9882         New file.
9883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9884         New file.
9885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9886         New file.
9887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9888         New file.
9889         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9890         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9891         file.
9892         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9893         New file.
9894         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9895         file.
9896         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9897         file.
9898         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9899         file.
9900         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9901         file.
9902         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9903         file.
9904         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9905         New file.
9906         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9907         file.
9908         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9909         file.
9910         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9911         New file.
9912         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9913         file.
9914         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
9915         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
9916         file.
9917         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
9918         New file.
9919         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
9920         file.
9921         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
9922         file.
9923         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
9924         file.
9925         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
9926         file.
9927         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
9928         file.
9929         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9930         New file.
9931         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
9932         file.
9933         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
9934         file.
9935         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
9936         New file.
9937         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
9938         file.
9939         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9940         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9941         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9942         file.
9943         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9944         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9945         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9946         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9947         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9948         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9949         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9950         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9951         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9952         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9953         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9954         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9955         file.
9956         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9957         New file.
9958         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9959         file.
9960         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9961         file.
9962         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9963         file.
9964         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9965         file.
9966         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9967         file.
9968         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9969         New file.
9970         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9971         New file.
9972         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9973         file.
9974         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9975         New file.
9976         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9977         file.
9978         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9979         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9980         file.
9981         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9982         New file.
9983         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9984         file.
9985         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9986         file.
9987         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9988         file.
9989         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9990         file.
9991         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9992         file.
9993         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9994         New file.
9995         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9996         New file.
9997         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9998         file.
9999         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10000         New file.
10001         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10002         file.
10003
10004 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10005
10006         * conform/conformtest.pl: Fix typo in handling typed-constant from
10007         allow-header.
10008
10009 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10010
10011         * README: Cut down references to pre-2.6 Linux kernels and
10012         Linuxthreads.  Update lists of configurations in libc and ports
10013         and sort alphabetically.  Say "or newer" with Linux kernel version
10014         requirements.
10015
10016         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10017
10018 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10019
10020         [BZ #887]
10021         * math/libm-test.inc (logb_test_downward): New test to expose
10022         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10023         rounding mode.
10024
10025 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10026
10027         [BZ #14027]
10028         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10029         to be done.
10030         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10031         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10032
10033 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10034
10035         * sysdeps/unix/i386/brk.S: Remove file.
10036         * sysdeps/unix/i386/dl-brk.S: Likewise.
10037         * sysdeps/unix/i386/pipe.S: Likewise.
10038         * sysdeps/unix/i386/sigreturn.S: Likewise.
10039         * sysdeps/unix/i386/syscall.S: Likewise.
10040         * sysdeps/unix/i386/vfork.S: Likewise.
10041         * sysdeps/unix/i386/wait.S: Likewise.
10042
10043         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10044         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10045
10046         * configure.in (arm*-none*): Do not allow without
10047         --enable-hacker-mode.
10048         (netbsd*): Remove case setting base_os.
10049         (386bsd*): Likewise.
10050         (freebsd*): Likewise.
10051         (bsdi*): Likewise.
10052         (osf*): Likewise.
10053         (sunos*): Likewise.
10054         (ultrix*): Likewise.
10055         (newsos*): Likewise.
10056         (dynix*): Likewise.
10057         (*bsd*): Likewise.
10058         (sysv*): Likewise.
10059         (isc*): Likewise.
10060         (esix*): Likewise.
10061         (sco*): Likewise.
10062         (minix*): Likewise.
10063         (irix4*): Likewise.
10064         (irix6*): Likewise.
10065         (solaris[2-9]*): Likewise.
10066         (none): Likewise.
10067         * configure: Regenerated.
10068
10069 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10070
10071         [BZ #11521]
10072         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10073         overflow or cancellation in calculating denominator.
10074         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10075         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10076         down expression to avoid unexpected rounding in newer GCCs.
10077         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10078
10079 2012-04-26  David S. Miller  <davem@davemloft.net>
10080
10081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10082         long-double compat symbols.
10083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10088         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10089         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10090         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10091         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10092         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10093         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10094         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10095         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10096
10097 2012-04-25  David S. Miller  <davem@davemloft.net>
10098
10099         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10100         HWCAP_* values only after the memory barriers have been defined.
10101         (atomic_full_barrier): Define.
10102         (atomic_read_barrier): Define.
10103         (atomic_write_barrier): Define.
10104
10105 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10106
10107         * shlib-versions: Add libgcc_s version information.
10108         * sysdeps/generic/libgcc_s.h: Remove.
10109         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10110         libgcc_s.h.
10111         * sysdeps/gnu/unwind-resume.c: Likewise.
10112         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10113
10114 2012-04-25  David S. Miller  <davem@davemloft.net>
10115
10116         * sysdeps/unix/sparc/brk.S: Delete.
10117         * sysdeps/unix/sparc/dl-brk.S: Delete.
10118         * sysdeps/unix/sparc/pipe.S: Delete.
10119         * sysdeps/unix/sparc/sysdep.S: Delete.
10120         * sysdeps/unix/sparc/sysdep.h: Delete.
10121         * sysdeps/unix/sparc/vfork.S: Delete.
10122         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10123         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10124         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10125         ret_ERRVAL, r0, r1, MOVE): Define.
10126         (JUMPTARGET): Remove.
10127         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10128         sysdeps/unix/sparc/sysdep.h
10129         (ENTRY, END): Remove.
10130         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10131
10132 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10133
10134         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10135         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10136         -DIS_IN_build.
10137
10138         * timezone/README: Update upstream location and email address for
10139         tzcode and tzdata.
10140         * timezone/zdump.c: Update from tzcode 2012b.
10141         * timezone/zic.c: Likewise.
10142
10143         * configure.in (libc_cv_as_needed): Remove test.
10144         * configure: Regenerated.
10145         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10146         conditional definition.
10147         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10148         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10149         * config.make.in (have-as-needed): Remove variable.
10150
10151 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10152             Paul Pluzhnikov  <ppluzhnikov@google.com>
10153
10154         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10155         strings correctly.
10156
10157 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10158
10159         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10160         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10161         * sysdeps/sh/strlen.S: Likewise.
10162
10163 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10164
10165         * sysdeps/unix/fork.S: Remove file.
10166         * sysdeps/unix/i386/fork.S: Likewise.
10167         * sysdeps/unix/sparc/fork.S: Likewise.
10168
10169         * sysdeps/unix/system.c: Remove file.
10170         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10171
10172         * sysdeps/unix/getegid.S: Remove file.
10173         * sysdeps/unix/geteuid.S: Likewise.
10174
10175 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10176
10177         * scripts/check-localplt.awk: New file.
10178         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10179         of diff.
10180         * scripts/data/localplt-generic.data: Add a comment.
10181
10182         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10183         NODE when __dir_mkfile failed.
10184         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10185         Reported by Ludovic Courtès <ludo@gnu.org>.
10186
10187 2012-04-24  Andreas Jaeger  <aj@suse.de>
10188
10189         * Makerules (common-clean): Also remove gen-as-const-headers
10190         files.
10191
10192 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10193
10194         * Makerules (native-compile): Do not change working directory for
10195         build.  Use $(OUTPUT_OPTION) in command.
10196         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10197
10198 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10199
10200         [BZ #13886]
10201         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10202         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10203         * math/libm-test.inc (floor_test): Add more tests.
10204         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10205
10206 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10207
10208         * sysdeps/unix/getdents.c: Remove file.
10209         * sysdeps/unix/sysv/getdents.c: Likewise.
10210         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10211
10212         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10213         sysdeps/unix/mman/syscalls.list.
10214         (mmap): Likewise.
10215         (mprotect): Likewise.
10216         (msync): Likewise.
10217         (munmap): Likewise.
10218         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10219         * sysdeps/unix/mman/syscalls.list: Remove.
10220         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10221
10222         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10223         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10224         * configure: Regenerated.
10225         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10226         $(libgcc_s_suffix).
10227         * config.make.in (libgcc_s_suffix): Remove variable.
10228
10229 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10230
10231         * sysdeps/unix/sysv/gethostname.c: Move to ...
10232         * sysdeps/posix/gethostname.c: ... here.
10233
10234         * sysdeps/unix/execve.S: Remove file.
10235
10236         * sysdeps/unix/_exit.S: Remove file.
10237
10238 2012-04-23  Andreas Jaeger  <aj@suse.de>
10239
10240         [BZ #13739]
10241         * manual/Makefile: Remove make dist support, there's no
10242         need for a stand-alone documentation tar ball.
10243         (TEXI2DVI): Define always, it's not in Makeconfig.
10244         (dist): Removed.
10245         (tar-it): Removed.
10246         (edition): Removed.
10247         (glibc-doc-$(edition).tar): Removed
10248         (%.Z): Removed.
10249         (%.gz): Removed.
10250         (%.uu): Removed.
10251         (ETAGS): Remove, it's in Makeconfig.
10252         (move-if-change): Remove, it's in Makeconfig.
10253
10254 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10255
10256         [BZ #13970]
10257         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10258         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10259         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10260         (strtod_l, strtof_l, strtold_l): Remove __wur.
10261         It is not necessarily an error to ignore strtol's return value.
10262         One can reliably look at the stored endptr to decide whether
10263         the number had valid syntax.
10264
10265 2012-04-21  Andreas Jaeger  <aj@suse.de>
10266
10267         [BZ #13739]
10268         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10269
10270 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10271
10272         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10273         * sysdeps/unix/sysv/Versions: Remove file.
10274
10275 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10276
10277         [BZ #13927]
10278         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10279
10280 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10281
10282         [BZ #7064]
10283         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10284         version from __vm86.
10285
10286 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10287
10288         * sysdeps/unix/common/lxstat.c: Remove file.
10289         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10290
10291         * sysdeps/unix/sysv/Makefile: Remove file.
10292
10293         * sysdeps/unix/sysv/direct.h: Remove file.
10294
10295         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10296         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10297         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10298         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10299         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10300         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10301         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10302
10303         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10304
10305         * sysdeps/unix/xmknod.c: Remove file.
10306         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10307
10308         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10309
10310         * sysdeps/unix/sysv/i386/time.S: Remove file.
10311
10312         * sysdeps/unix/fxstat.c: Remove file.
10313         * sysdeps/unix/xstat.c: Likewise.
10314         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10315
10316         * sysdeps/unix/sysv/sigaction.c: Remove file.
10317
10318         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10319         (sysdep_headers): Remove variable.
10320         [termio.h not in sysdep_headers] (generated): Likewise.
10321         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10322         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10323         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10324         * sysdeps/unix/sysv/tcflow.c: Likewise.
10325         * sysdeps/unix/sysv/tcflush.c: Likewise.
10326         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10327         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10328         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10329         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10330         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10331
10332         * sysdeps/unix/siglist.c: Remove file.
10333
10334         * sysdeps/unix/getppid.S: Remove file.
10335
10336         * sysdeps/unix/mkdir.c: Remove file.
10337         * sysdeps/unix/rmdir.c: Likewise.
10338
10339 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10340
10341         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10342         ERR_MAX value.
10343         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10344         errlist-compat value.
10345
10346 2012-04-18  David S. Miller  <davem@davemloft.net>
10347
10348         * sysdeps/generic/memcopy.h (reg_char): Delete.
10349         * debug/strcat_chk.c: Use char, not reg_char.
10350         * debug/strcpy_chk.c: Likewise.
10351         * debug/strncat_chk.c: Likewise.
10352         * debug/strncpy_chk.c: Likewise.
10353         * string/memchr.c: Likewise.
10354         * string/memrchr.c: Likewise.
10355         * string/rawmemchr.c: Likewise.
10356         * string/strcat.c: Likewise.
10357         * string/strchr.c: Likewise.
10358         * string/strchrnul.c: Likewise.
10359         * string/strcmp.c: Likewise.
10360         * string/strcpy.c: Likewise.
10361         * string/strncat.c: Likewise.
10362         * string/strncmp.c: Likewise.
10363         * string/strncpy.c: Likewise.
10364
10365 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10366
10367         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10368         __builtin_memcopy is called when src and dest ranges are known to not
10369         overlap.
10370
10371 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10372
10373         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10374         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10375         fwd_align_merge macro call.
10376         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10377         bwd_align_merge macro call.
10378         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10379
10380 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10381
10382         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10383         bwd_align_merge macros.
10384         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10385         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10386         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10387
10388 2012-04-18  David S. Miller  <davem@davemloft.net>
10389
10390         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10391
10392 2012-04-18  Andreas Jaeger  <aj@suse.de>
10393
10394         [BZ# 6794]
10395         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10396         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10397         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10398
10399         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10400         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10401         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10402
10403         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10404         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10405         Adjust for changed ldbl-128 files.
10406
10407         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10408         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10409         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10410
10411 2012-04-17  David S. Miller  <davem@davemloft.net>
10412
10413         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10414
10415 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10416
10417         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10418         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10419         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10420         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10421         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10422         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10423
10424 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10425
10426         [BZ #6794]
10427         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10428         * math/libm-test.inc: Add ilogb errno and exception tests.
10429         * math/w_ilogb.c: New file: ilogb wrapper.
10430         * math/w_ilogbf.c: New file: ilogbf wrapper.
10431         * math/w_ilogbl.c: New file: ilogbl wrapper.
10432         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10433         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10434         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10435         exception being thrown with 0.0 as argument.
10436         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10437         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10438         exception being thrown with 0.0 as argument.
10439         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10440         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10441         exception being thrown with 0.0 as argument.
10442         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10443         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10444         exception being thrown with 0.0 as argument.
10445         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10446         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10447         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10448         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10449         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10450         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10451         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10452         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10453         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10454
10455 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10456
10457         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10458         with altivec.
10459
10460 2012-04-16  Marek Polacek  <polacek@redhat.com>
10461
10462         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10463
10464 2012-04-16  Marek Polacek  <polacek@redhat.com>
10465
10466         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10467         operands of fdivp instruction.
10468
10469 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10470
10471         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10472         * elf/tst-auditmod3b.c: Likewise.
10473         * elf/tst-auditmod4b.c: Likewise.
10474         * elf/tst-auditmod5b.c: Likewise.
10475         * elf/tst-auditmod6b.c: Likewise.
10476         * elf/tst-auditmod6c.c: Likewise.
10477         * elf/tst-auditmod7b.c: Likewise.
10478         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10479         * sysdeps/x86_64/preconfigure.in: Likewise.
10480         * sysdeps/x86_64/preconfigure: Regenerated.
10481
10482 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10483
10484         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10485         __ILP32__.
10486
10487 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10488
10489         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10490         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10491
10492 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10493
10494         [BZ #13973]
10495         * locale/iso-639.def: Fix gl language name. Spotted by
10496         Yaron Shahrabani.
10497
10498 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10499
10500         [BZ #2074]
10501         * libio/libio.h (__io_write_fn): Update comment.
10502
10503 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10504
10505         [BZ #2074]
10506         * stdio.texi (Hook Functions): The user provided writer function
10507         is not allowed to return -1.
10508
10509 2012-04-11  David S. Miller  <davem@davemloft.net>
10510
10511         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10512
10513 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10514
10515         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10516         Add a leading slash to rtkaio.
10517
10518 2012-04-11  Jim Meyering  <meyering@redhat.com>
10519
10520         [BZ #11959]
10521         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10522         It is not necessarily an error to ignore fwrite's return
10523         value.  One can reliably use ferror to test for errors after
10524         the fact.
10525
10526 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10527
10528         * bits/types.h (__snseconds_t): New type.
10529         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10530
10531         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10532         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10533         (__SNSECONDS_T_TYPE): Likewise.
10534         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10535         (__SNSECONDS_T_TYPE): Likewise.
10536         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10537         (__SNSECONDS_T_TYPE): Likewise.
10538
10539 2012-04-10  Andreas Jaeger  <aj@suse.de>
10540
10541         [BZ #2636]
10542         * manual/time.texi (Processor Time): Return type of times is
10543         elapsed real time since an arbitrary point in the past.
10544         (CPU Time): Move CLK_TCK from here...
10545         (Processor Time): ...to here.  Correct description.
10546         * manual/conf.texi (Constants for Sysconf): Correct description of
10547         _SC_CLK_TCK.
10548
10549 2012-04-10  David S. Miller  <davem@davemloft.net>
10550
10551         [BZ #13967]
10552         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10553         where the is a gap between DT_REL(A) and DT_JMPREL.
10554
10555 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10556
10557         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10558         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10559         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10560
10561 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10562
10563         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10564         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10565         (dl_main): Handle --inhibit-cache.
10566         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10567         _dl_inhibit_cache.
10568         * elf/dl-load.c (_dl_map_object): Use it.
10569         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10570
10571 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10572
10573         [BZ #13872]
10574         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10575         (__ieee754_powl): Saturate large exponents rather than testing for
10576         overflow of y*log2(x).
10577         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10578         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10579         exceptions.
10580
10581         [BZ #11521]
10582         * math/s_ctan.c: Include <float.h>.
10583         (__ctan): Avoid internal overflow or cancellation in calculating
10584         denominator.
10585         * math/s_ctanf.c: Likewise.
10586         * math/s_ctanl.c: Likewise.
10587         * math/s_ctanh.c: Likewise.
10588         * math/s_ctanhf.c: Likewise.
10589         * math/s_ctanhl.c: Likewise.
10590         * math/libm-test.inc (ctan_test): Add more tests.
10591         (ctanh_test): Likewise.
10592         * sysdeps/i386/fpu/libm-test-ulps: Update.
10593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10594
10595 2012-04-09  Andreas Jaeger  <aj@suse.de>
10596
10597         [BZ #6894]
10598         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10599         is an optional BSD extension.
10600
10601         [BZ #10254]
10602         * manual/stdio.texi (Opening Streams): Document additional fopen
10603         parameters.
10604
10605 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10606
10607         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10608         %eax without telling the compiler.
10609
10610 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10611
10612         [BZ # 13963]
10613         * manual/install.texi: Use sourceware.org.
10614
10615 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10616
10617         [BZ #13873]
10618         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10619         (__ieee754_pow): Generate overflow and underflow using huge*huge
10620         and tiny*tiny rather than just returning constant infinity or zero
10621         for large exponents.
10622         * math/libm-test.inc (pow_test): Require overflow exceptions for
10623         applicable cases of large exponents.
10624
10625         [BZ #706]
10626         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10627         (__ieee754_pow): Use iterative multiplication algorithm only for
10628         integer exponents with absolute value below 1024.  Check for odd
10629         integer exponents when using algorithm for real exponents.
10630         * math/libm-test.inc (pow_test): Add more tests.
10631         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10632
10633 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10634
10635         [BZ #13705]
10636         * math/libm-test.inc (exp_test): Do not allow overflow exception
10637         on underflow test.
10638
10639 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10640
10641         [BZ #13705]
10642         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10643         instead of __kernel_standard_f.
10644
10645 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10646
10647         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10648         * sysdeps/x86_64/memset_chk.S: Likewise.
10649
10650 2012-04-08  Andreas Jaeger  <aj@suse.de>
10651
10652         [BZ #10153]
10653         * manual/startup.texi (Environment Access): Describe return value
10654         for putenv and setenv.
10655
10656         [BZ #6895]
10657         * manual/filesys.texi (Directory Entries): Add description for
10658         DT_LNK.
10659
10660         [BZ #6890]
10661         * manual/filesys.texi (Directory Entries): Clarify that it's file
10662         system not operating system in the description of DT_UNKNOWN.
10663
10664         [BZ #6578]
10665         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10666
10667 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10668
10669         [BZ #6649]
10670         * manual/llio.texi (Opening and Closing Files): Add cross
10671         reference to explain mode argument.
10672
10673 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10674
10675         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10676         * sysdeps/x86_64/memset_chk.S: Likewise.
10677
10678 2012-04-07  David S. Miller  <davem@davemloft.net>
10679
10680         * elf/elf.h (R_SPARC_WDISP10): Define.
10681         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10682         R_SPARC_SIZE32.
10683         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10684         R_SPARC_SIZE64 and R_SPARC_H34.
10685
10686 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10687
10688         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10689         conditions and remove no longer applicable assertion.
10690
10691 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10692
10693         * bits/byteswap.h: Include <features.h>.
10694         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10695         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10696
10697 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10698
10699         * bits/byteswap.h (__bswap_16): Removed.
10700         Include <bits/byteswap-16.h> to get __bswap_16.
10701         * sysdeps/i386/bits/byteswap.h: Likewise.
10702         * sysdeps/s390/bits/byteswap.h: Likewise.
10703         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10704         * bits/byteswap-16.h: New file.
10705         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10706         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10707         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10708         * string/Makefile (headers): Add bits/byteswap-16.h.
10709
10710 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10711
10712         [BZ #13895]
10713         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10714         extra indirection.
10715         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10716         * nss/tst-nss-static.c: New.
10717
10718 2012-04-06  Robert Millan  <rmh@gnu.org>
10719
10720         [BZ #6486]
10721         * manual/llio.texi (File Position Primitive): lseek
10722         refers to WHENCE when it really means OFFSET.
10723
10724 2012-04-06  Andreas Jaeger  <aj@suse.de>
10725
10726         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10727         strncmp declarations.
10728
10729         * abilist/libc.abilist: Add __poll and __ppoll.
10730
10731 2012-04-05  David S. Miller  <davem@davemloft.net>
10732
10733         * scripts/check-local-headers.sh: Accept a host triplet in the
10734         path matched by the exclude regexp.
10735
10736         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10737         definition.
10738         * sysdeps/powerpc/powerpc32/dl-machine.h
10739         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10740         * sysdeps/s390/s390-32/dl-machine.h
10741         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10742         * sysdeps/sparc/sparc32/dl-machine.h
10743         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10744         * sysdeps/sparc/sparc64/dl-machine.h
10745         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10746
10747         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10748         lazy binding.
10749         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10750         undefined symbol errors.
10751
10752         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10753         DT_NEEDED entries.
10754
10755 2012-04-05  Michael Matz  <matz@suse.de>
10756
10757         [BZ #13592]
10758         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10759
10760 2012-04-05  Andreas Jaeger  <aj@suse.de>
10761
10762         [BZ #13908]
10763         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10764         comment.
10765
10766 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10767
10768         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10769         which ROUND is no valid rounding mode.
10770
10771 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10772
10773         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10774         read again.
10775         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10776
10777 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10778
10779         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10780         an exception using FPU order intentionally.
10781
10782 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10783
10784         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10785         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10786         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10787         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10788
10789 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10790
10791         [BZ #12340]
10792         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10793         EINVAL when BUFLEN is too smal.
10794
10795 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10796
10797         [BZ #13553]
10798         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10799         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10800
10801 2012-04-03  Andreas Jaeger  <aj@suse.de>
10802
10803         [BZ #13938]
10804         * manual/setjmp.texi (System V contexts): Fix sentence.
10805
10806         [BZ #13926]
10807         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10808         New macro for this case.
10809         [!__GNUC__] (__bswap_64): New inline function for this case.
10810         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10811         * bits/byteswap.h: Likewise.
10812         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10813         ull, guard with __GLIBC_HAVE_LONG_LONG.
10814
10815         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10816         __GLIBC_HAVE_LONG_LONG.
10817
10818         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10819         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10820
10821 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10822
10823         [BZ #13691]
10824         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10825         inptr and inend, rather than using last_ch.
10826
10827 2012-04-02  David S. Miller  <davem@davemloft.net>
10828
10829         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10830         * stdio-common/printf-parse.h (read_int): Change return type to
10831         'int', return -1 on INT_MAX overflow.
10832         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10833         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10834         overflows INT_MAX.  Check for overflow of in-format-string precision
10835         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10836         SIZE_MAX not INT_MAX for integer overflow test.
10837         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10838         skip the construct in the format string but do not record anything.
10839         * stdio-common/bug22.c: Adjust to test both width/prevision
10840         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10841         explicitly for proper errno values.
10842
10843 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10844
10845         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10846         CHAR_MAX.
10847         * string/test-strcmp.c [! WIDE]: Likewise.
10848         * time/tst-mktime2.c: Likewise for INT_MAX.
10849         * string/test-string.h: #include <sys/param.h> for MIN.
10850
10851         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10852         * sysdeps/i386/init-first.c (init): Likewise.
10853         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10854         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10855         * sysdeps/sh/init-first.c (init): Likewise.
10856
10857 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10858
10859         * po/ru.po: Update from translation team.
10860         * po/vi.po: Likewise.
10861
10862 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10863
10864         * resolv/nss_dns/dns-host.c: Merge copyright years.
10865
10866 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10867
10868         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10869         Optimize memcpy with prefetch if
10870         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10871         src, dst pointers have unequal 16 byte alignments.
10872
10873 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10874
10875         [BZ #13928]
10876         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10877         from a CNAME entry and return the minimum ttl for the query.
10878         (gaih_getanswer_slice): Likewise.
10879
10880 2012-03-30  Jeff Law  <law@redhat.com>
10881
10882         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10883         due to long keys.
10884         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10885         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10886
10887         * resolv/nss_dns/dns-host.c: Update copyright year.
10888
10889 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10890
10891         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10892         requests to save a system call.  Fix check that all bytes are sent.
10893
10894         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10895         comments for sendmmsg.
10896
10897 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10898
10899         [BZ #13691]
10900         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10901         with only 1 character between 0x0041 and 0x01b0.
10902         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10903         * wcsmbs/tst-mbsnrtowcs.c: New file.
10904
10905 2012-03-29  David S. Miller  <davem@davemloft.net>
10906
10907         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10908         small copies by hand.
10909
10910 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10911
10912         [BZ #13761]
10913         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10914         _nss_compat_initgroups_dyn): Fall back to malloc/free
10915         for large group memberships.
10916
10917 2012-03-28  David S. Miller  <davem@davemloft.net>
10918
10919         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
10920         that branches into memcpy.
10921         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10922         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
10923         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10924         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
10925         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
10926         bits.
10927         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
10928         implementation too.
10929         * sysdeps/sparc/mempcpy.S: New file.
10930
10931         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
10932         the IFUNC routine in the libc case.
10933         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10934
10935         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
10936         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
10937         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
10938         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
10939         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
10940         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10941         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10942         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10943
10944         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10945         loop to 256 bytes instead of 64 bytes and fix test signedness.
10946
10947         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10948         * sysdeps/sparc/sparc32/Makefile: rather than here...
10949         * sysdeps/sparc/sparc64/Makefile: and here.
10950
10951 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10952
10953         * malloc/mallocbug.c: Avoid warnings about unused variables.
10954
10955 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10956
10957         [BZ #13760]
10958         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10959         in the right place. Discard and retry query if response is
10960         larger than input buffer size.
10961
10962 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10963
10964         [BZ #369]
10965         [BZ #2678]
10966         [BZ #3866]
10967         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10968         x for large integer exponent.
10969         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10970         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10971         sign of result as needed afterwards.
10972         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10973         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10974         result for underflowing pow the same as for overflow.
10975         (__kernel_standard_l): Handle powl overflow and underflow here
10976         rather than calling __kernel_standard.
10977         * math/libm-test.inc (pow_test): Add more tests.
10978
10979         [BZ #3868]
10980         [BZ #13879]
10981         [BZ #13910]
10982         [BZ #13911]
10983         [BZ #13912]
10984         [BZ #13913]
10985         [BZ #13915]
10986         [BZ #13916]
10987         [BZ #13917]
10988         [BZ #13918]
10989         [BZ #13919]
10990         [BZ #13920]
10991         [BZ #13921]
10992         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10993         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10994         (__kernel_standard_l): New function.
10995         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10996         __kernel_standard.
10997         * math/w_acosl.c (__acosl): Likewise.
10998         * math/w_asinl.c (__asinl): Likewise.
10999         * math/w_atan2l.c (__atan2l): Likewise.
11000         * math/w_atanhl.c (__atanhl): Likewise.
11001         * math/w_coshl.c (__coshl): Likewise.
11002         * math/w_exp10l.c (__exp10l): Likewise.
11003         * math/w_exp2l.c (__exp2l): Likewise.
11004         * math/w_fmodl.c (__fmodl): Likewise.
11005         * math/w_hypotl.c (__hypotl): Likewise.
11006         * math/w_j0l.c (__j0l, __y0l): Likewise.
11007         * math/w_j1l.c (__j1l, __y1l): Likewise.
11008         * math/w_jnl.c (__jnl, __ynl): Likewise.
11009         * math/w_lgammal.c (__lgammal): Likewise.
11010         * math/w_log10l.c (__log10l): Likewise.
11011         * math/w_log2l.c (__log2l): Likewise.
11012         * math/w_logl.c (__logl): Likewise.
11013         * math/w_powl.c (__powl): Likewise.
11014         * math/w_remainderl.c (__remainderl): Likewise.
11015         * math/w_scalbl.c (sysv_scalbl): Likewise.
11016         * math/w_sinhl.c (__sinhl): Likewise.
11017         * math/w_sqrtl.c (__sqrtl): Likewise.
11018         * math/w_tgammal.c (__tgammal): Likewise.
11019         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11020         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11021         * math/libm-test.inc (acos_test): Add more tests.
11022         (acosh_test): Likewise.
11023         (asin_test): Likewise.
11024         (atanh_test): Likewise.
11025         (exp_test): Likewise.
11026         (exp10_test): Likewise.
11027         (exp2_test): Likewise.
11028         (expm1_test): Likewise.
11029         (lgamma_test): Likewise.
11030         (log_test): Likewise.
11031         (log10_test): Likewise.
11032         (log1p_test): Likewise.
11033         (log2_test): Likewise.
11034         (pow_test): Do not allow some spurious overflow exceptions.
11035         (sqrt_test): Add more tests.
11036         (tgamma_test): Likewise.
11037         (y0_test): Likewise.
11038         (y1_test): Likewise.
11039         (yn_test): Likewise.
11040
11041 2012-03-27  Anton Blanchard  <anton@samba.org>
11042
11043         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11044         MAP_HUGETLB.
11045         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11046         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11047         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11048
11049 2012-03-27  David S. Miller  <davem@davemloft.net>
11050
11051         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11052
11053         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11054         have-as-vis3 check.
11055
11056 2012-03-27  Andreas Jaeger  <aj@suse.de>
11057
11058         * sysdeps/x86_64/elf/configure.in: Moved to ...
11059         * sysdeps/x86_64/configure.in: ... here.
11060         * sysdeps/x86_64/elf/start.S: Moved to ...
11061         * sysdeps/x86_64/start.S: ... here.
11062         * sysdeps/x86_64/elf/configure: Delete.
11063
11064         * sysdeps/x86_64/configure.in: Merge contents from
11065         sysdeps/i386/configure.in (without i686 check).
11066
11067         * sysdeps/i386/elf/Versions: Merge into ...
11068         * sysdeps/i386/Versions: ... this.
11069         * sysdeps/i386/elf/Versions: Delete file.
11070         * sysdeps/i386/elf/start.S: Moved to ...
11071         * sysdeps/i386/start.S: ...here.
11072         * sysdeps/i386/elf/configure.in: Merge into...
11073         * sysdeps/i386/configure.in: ...here.
11074         * sysdeps/i386/elf/configure.in: Delete file.
11075         * sysdeps/i386/elf/configure: Delete file.
11076
11077         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11078         * debug/backtracesyms.c: ... here.
11079         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11080         * debug/backtracesymsfd.c: ... here.
11081         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11082         * sysdeps/generic/ifunc-sel.h: ... here.
11083
11084         * sysdeps/unix/i386/start.c: Delete file.
11085         * sysdeps/unix/sparc/start.c: Delete file.
11086         * sysdeps/unix/start.c: Delete file.
11087
11088         * sysdeps/sh/elf/configure.in: Moved to ...
11089         * sysdeps/sh/configure.in: ... here.
11090         * sysdeps/sh/elf/start.S: Moved to ...
11091         * sysdeps/sh/start.S: ... here.
11092         * sysdeps/sh/elf/configure: Delete file.
11093
11094         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11095         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11096         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11097         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11098         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11099         * sysdeps/powerpc/powerpc64/start.S: here.
11100         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11101         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11102         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11103         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11104         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11105
11106         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11107         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11108         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11109         * sysdeps/powerpc/powerpc32/start.S: ... here.
11110         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11111         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11112         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11113
11114         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11115         * sysdeps/powerpc/ifunc-sel.h: ... here.
11116         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11117         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11118
11119         * sysdeps/sparc/elf/configure.in: Moved to ...
11120         * sysdeps/sparc/configure.in: ... here.
11121         * sysdeps/sparc/elf/configure: Delete file.
11122         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11123         * sysdeps/sparc/sparc32/start.S: ... here.
11124         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11125         * sysdeps/sparc/sparc64/start.S: ... here.
11126         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11127         * sysdeps/sparc/sparc32/Makefile: ... this.
11128         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11129         * sysdeps/sparc/sparc64/Makefile: ... this.
11130
11131         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11132         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11133         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11134         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11135         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11136         * sysdeps/s390/s390-32/setjmp.S: ... here.
11137         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11138         * sysdeps/s390/s390-32/configure.in: ... here.
11139         * sysdeps/s390/s390-32/elf/configure: Delete file.
11140         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11141         * sysdeps/s390/s390-32/start.S: ... here.
11142
11143         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11144         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11145         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11146         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11147         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11148         * sysdeps/s390/s390-64/setjmp.S: ... here.
11149         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11150         * sysdeps/s390/s390-64/configure.in: ... here
11151         * sysdeps/s390/s390-64/elf/configure: Delete file.
11152         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11153         * sysdeps/s390/s390-64/start.S: ... here.
11154         * sysdeps/s390/s390-64/elf/configure: Delete.
11155
11156         * configure.in: Remove support for elf directories in sysdeps.
11157
11158         * configure: Regenerated.
11159         * sysdeps/i386/configure: Regenerated.
11160         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11161         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11162         * sysdeps/s390/s390-32/configure: Regenerated.
11163         * sysdeps/s390/s390-64/configure: Regenerated.
11164         * sysdeps/sh/configure: Regenerated.
11165         * sysdeps/sparc/configure: Regenerated.
11166         * sysdeps/x86_64/configure: Regenerated.
11167
11168 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11169
11170         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11171
11172         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11173         denormal result into account.
11174
11175 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11176
11177         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11178         Reported by Allan McRae <allan@archlinux.org>.
11179
11180 2012-03-23  Jeff Law  <law@redhat.com>
11181
11182         * nss/getnssent.c (__nss_getent): Fix typo.
11183
11184 2012-03-23  David S. Miller  <davem@davemloft.net>
11185
11186         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11187
11188 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11189
11190         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11191         to pad to uint64_t for each field.
11192         (dl_tls_index): Replace unsigned long with uint64_t.
11193
11194 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11195         Paul Pluzhnikov  <ppluzhnikov@google.com>
11196
11197         [BZ #6528]
11198         * grp/Makefile (otherlibs): Don't set it.
11199         * inet/Makefile (otherlibs): Likewise.
11200         * login/Makefile (otherlibs): Likewise.
11201         * nscd/Makefile (otherlibs): Likewise.
11202         * posix/Makefile (otherlibs): Likewise.
11203         * pwd/Makefile (otherlibs): Likewise.
11204         * rt/Makefile (otherlibs): Likewise.
11205         * sunrpc/Makefile (otherlibs): Likewise.
11206         * nss/Makefile (otherlibs): Likewise.
11207         Add libnss_files to routines and static-only-routines.
11208         ($(objpfx)getent): Remove rule.
11209         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11210         static-only-routines.
11211
11212 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11213
11214         [BZ #13892]
11215         * math/s_cexp.c: Include <float.h>.
11216         (__cexp): Handle exp result overflowing not necessarily
11217         overflowing both real and imaginary parts of result.
11218         * math/s_cexpf.c: Likewise.
11219         * math/s_cexpl.c: Likewise.
11220         * math/libm-test.inc (cexp_test): Add more tests.
11221         * sysdeps/i386/fpu/libm-test-ulps: Update.
11222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11223
11224 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11225
11226         * include/link.h (ELFW): New macro.
11227         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11228         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11229
11230 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11231
11232         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11233         with uint64_t.
11234
11235 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11236
11237         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11238         declaration.
11239         (struct La_x32_retval): Likewise.
11240
11241 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11242
11243         * sysdeps/x86_64/preconfigure.in: New file.
11244         * sysdeps/x86_64/preconfigure: New generated file.
11245
11246 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11247
11248         [BZ #13824]
11249         * math/e_exp2l.c: Include <float.h>.
11250         (__ieee754_exp2l): Handle overflow and underflow cases
11251         separately.  Only pass fractional part of argument to
11252         __ieee754_expl.
11253         * math/libm-test.inc (exp2_test): Add more tests.
11254
11255         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11256         negating x to take absolute value.
11257         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11258         Likewise.
11259         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11260         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11261         Likewise.
11262         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11263         computing low part if x was negated.
11264         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11265
11266 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11267
11268         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11269         la_x32_gnu_pltexit.
11270         (pltexit): Cast int_retval to ptrdiff_t.
11271         * elf/tst-auditmod3b.c: Likewise.
11272         * elf/tst-auditmod4b.c: Likewise.
11273         * elf/tst-auditmod5b.c: Likewise.
11274         * elf/tst-auditmod6b.c: Likewise.
11275         * elf/tst-auditmod6c.c: Likewise.
11276         * elf/tst-auditmod7b.c: Likewise.
11277
11278         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11279         and x32_gnu_pltexit.
11280
11281         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11282         __ELF_NATIVE_CLASS.
11283         (La_x32_regs): New macro.
11284         (La_x32_retval): Likewise.
11285         (la_x32_gnu_pltenter): New function prototype.
11286         (la_x32_gnu_pltexit): Likewise.
11287
11288 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11289
11290         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11291         exponent.
11292
11293         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11294
11295         * configure.in (libc_cv_cc_nofma): Check for option to disable
11296         generation of FMA instructions.
11297         * configure: Regenerate.
11298         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11299         * sysdeps/ieee754/dbl-64/Makefile: New file.
11300         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11301         Remove brandred-fma4.
11302         (CFLAGS-brandred-fma4.c): Remove.
11303         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11304         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11305         define.
11306         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11307         define.
11308
11309 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11310
11311         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11312         LLONG_MAX != LONG_MAX.
11313         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11314         (_fitoa_word): Likewise.
11315         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11316         LLONG_MAX != LONG_MAX.
11317         * stdio-common/_itowa.h: Include <_itoa.h>.
11318         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11319         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11320         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11321         only if not defined.
11322         (_ITOA_WORD_TYPE): Likewise.
11323         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11324         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11325
11326 2012-03-21  David S. Miller  <davem@davemloft.net>
11327
11328         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11329
11330 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11331
11332         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11333         of x86_64 when setting libc_cv_slibdir, libdir and
11334         libc_cv_localedir.
11335         * sysdeps/unix/sysv/linux/configure: Regenerated.
11336
11337 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11338
11339         * manual/lang.texi (Old Varargs): Remove section.
11340         (How Variadic): Update menu.
11341         (va_start): Do not mention varargs.h.
11342
11343 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11344             Joseph Myers  <joseph@codesourcery.com>
11345
11346         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11347         link test.
11348         * configure: Regenerated.
11349
11350 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11351
11352         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11353         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11354         conformtest.pl
11355
11356 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11357
11358         * NOTES: Remove.
11359         * Makefile (files-for-dist): Remove NOTES.
11360         (NOTES): Remove rule.
11361         * README: Don't refer to NOTES.
11362         * manual/creature.texi: Don't include macros.texi.
11363         * manual/intro.texi (creature.texi): Remove comment referring to
11364         NOTES.
11365
11366         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11367         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11368         * configure: Regenerated.
11369         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11370         LIBC_TRY_CC_OPTION.
11371         (libc_cv_as_i686): Likewise.
11372         (libc_cv_cc_avx): Likewise.
11373         (libc_cv_cc_sse2avx): Likewise.
11374         (libc_cv_cc_fma4): Likewise.
11375         (libc_cv_cc_novzeroupper): Likewise.
11376         * sysdeps/i386/configure: Regenerated.
11377
11378         [BZ #13883]
11379         * sysdeps/i386/fpu/s_cexp.S: Remove.
11380         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11381         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11382         * math/libm-test.inc (cexp_test): Add more tests.
11383         * sysdeps/i386/fpu/libm-test-ulps: Update.
11384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11385
11386 2012-03-21  Allan McRae  <allan@archlinux.org>
11387
11388         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11389
11390 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11391
11392         [BZ #13871]
11393         * math/w_exp2.c: Do not include <float.h>.
11394         (o_threshold, u_threshold): Remove.
11395         (__exp2): Calculate result before checking finiteness and calling
11396         __kernel_standard.
11397         * math/w_exp2f.c: Likewise.
11398         * math/w_exp2l.c: Likewise.
11399         * math/libm-test.inc (exp2_test): Require overflow exception for
11400         1e6 input.
11401
11402         [BZ #3866]
11403         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11404         range of signed 64-bit integers before using fistpll.  Remove
11405         checks for whether integers fit in mantissa bits.
11406         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11407         the range of signed 32-bit integers before using fistpl.  Remove
11408         checks for whether integers fit in mantissa bits.
11409         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11410         (__ieee754_powl): Test for y outside the range of signed 64-bit
11411         integers before using fistpll.  Reduce 64-bit values to 63-bit
11412         ones as needed.
11413         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11414         divide-by-zero is raised for zero to large negative powers.
11415         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11416         (__ieee754_powl): Test for y outside the range of signed 64-bit
11417         integers before using fistpll.  Reduce 64-bit values to 63-bit
11418         ones as needed.
11419         * math/libm-test.inc (pow_test): Add more tests.
11420
11421 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11422
11423         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11424         <stdio-common/_itoa.h>.
11425         * debug/segfault.c: Likewise.
11426         * elf/dl-cache.c: Likewise.
11427         * elf/dl-minimal.c: Likewise.
11428         * elf/dl-misc.c: Likewise.
11429         * elf/dl-sysdep.c: Likewise.
11430         * elf/dl-version.c: Likewise.
11431         * elf/rtld.c: Likewise.
11432         * hurd/hurdsock.c: Likewise.
11433         * hurd/lookup-retry.c: Likewise.
11434         * malloc/malloc.c: Likewise.
11435         * malloc/mtrace.c: Likewise.
11436         * nscd/nscd_getgr_r.c: Likewise.
11437         * nscd/nscd_getpw_r.c: Likewise.
11438         * nscd/nscd_getserv_r.c: Likewise.
11439         * posix/getopt_init.c: Likewise.
11440         * posix/wordexp.c: Likewise.
11441         * stdio-common/_itoa.c: Likewise.
11442         * stdio-common/printf_fphex.c: Likewise.
11443         * stdio-common/vfprintf.c: Likewise.
11444         * string/_strerror.c: Likewise.
11445         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11446         * sysdeps/i386/i686/hp-timing.h: Likewise.
11447         * sysdeps/mach/_strerror.c: Likewise.
11448         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11449         * sysdeps/mach/hurd/sethostid.c: Likewise.
11450         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11451         * sysdeps/mach/xpg-strerror.c: Likewise.
11452         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11453         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11454         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11455         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11456         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11457         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11458         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11459         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11460         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11461         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11462         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11463         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11464         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11465         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11466         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11467         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11468         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11469         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11470         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11471         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11472         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11473
11474         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11475
11476         * stdio-common/_itoa.h: Moved to ...
11477         * sysdeps/generic/_itoa.h: Here.
11478
11479         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11480
11481         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11482         instead of "_itoa.h" and "_itowa.h".
11483         * stdio-common/vfprintf.: Likewise.
11484
11485 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11486
11487         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11488         <bits/wordsize.h>.
11489         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11490         (__signbit): Likwise.
11491         (llrintf): Likwise.
11492         (llrint): Likwise.
11493
11494 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11495
11496         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11497         __WORDSIZE != 64.
11498
11499 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11500
11501         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11502         OVERFLOW_EXCEPTION_OK.
11503         * math/libm-test.inc ("Philosophy"): Update comment about
11504         exception testing.
11505         (OVERFLOW_EXCEPTION): Define.
11506         (OVERFLOW_EXCEPTION_OK): Likewise.
11507         (INVALID_EXCEPTION_OK): Renumber.
11508         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11509         (IGNORE_ZERO_INF_SIGN): Likewise.
11510         (test_exceptions): Handle FE_OVERFLOW.
11511         (exp10_test): Expect overflow exceptions.
11512         (exp2_test): Likewise.
11513         (expm1_test): Likewise.
11514         (nextafter_test): Likewise.
11515         (pow_test): Likewise.
11516         (scalbn_test): Likewise.
11517         (scalbln_test): Likewise.
11518
11519 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11520
11521         * sysdeps/x86_64/bits/atomic.h
11522         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11523         64bit integer.
11524         (atomic_exchange_acq): Likewise.
11525         (__arch_exchange_and_add_body): Likewise.
11526         (__arch_add_body): Likewise.
11527         (atomic_add_negative): Likewise.
11528         (atomic_add_zero): Likewise.
11529
11530 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11531
11532         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11533         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11534
11535 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11536
11537         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11538         Check __x86_64__ instead of __WORDSIZE.
11539
11540 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11541
11542         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11543
11544 2012-03-19  David S. Miller  <davem@davemloft.net>
11545
11546         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11547
11548         * sysdeps/sparc/fpu/fenv_private.h: New file.
11549         * sysdeps/sparc/fpu/math_private.h: Use it.
11550         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11551         Remove.
11552         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11553         (libc_feholdexcept_setroundl): Remove.
11554         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11555         Remove.
11556         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11557         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11558
11559 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11560
11561         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11562         int64_t instead of long int.
11563         (INSERT_WORDS64): Likwise.
11564
11565 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11566
11567         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11568         _Unwind_GetCFA return to _Unwind_Ptr first.
11569
11570 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11571
11572         [BZ #13629]
11573         * math/s_clog.c: Include <float.h>.
11574         (__clog): Scale large or subnormal inputs.
11575         * math/s_clogf.c: Likewise.
11576         * math/s_clogl.c: Likewise.
11577         * math/s_clog10.c: Include <float.h>.
11578         (M_LOG10_2): Define.
11579         (__clog10): Scale large or subnormal inputs.
11580         * math/s_clog10f.c: Likewise.
11581         * math/s_clog10l.c: Likewise.
11582         * math/libm-test.inc (clog_test): Add more tests.
11583         (clog10_test): Likewise.
11584         * sysdeps/i386/fpu/libm-test-ulps: Update.
11585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11586
11587         [BZ #11451]
11588         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11589         x and y.
11590         * math/libm-test.inc (atan2_test): Add another test.
11591
11592         * Makerules (common-objdir-compile): Remove.
11593         * sysdeps/unix/Makefile (config-generated): Do not add
11594         $(unix-generated) to variable.
11595         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11596         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11597         Remove rule.
11598         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11599         Likewise.
11600         [generic bits/local_lim.h] (before-compile): Do not append to
11601         variable.
11602         [generic bits/local_lim.h] (common-generated): Likewise.
11603         [generic sys/param.h] (before-compile): Do not append to variable.
11604         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11605         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11606         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11607         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11608         include.
11609         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11610         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11611         [generic sys/param.h] ($(addprefix
11612         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11613         [generic sys/param.h] (common-generated): Do not append to
11614         variable.
11615         [generic sys/param.h] (sysdep_headers): Likewise.
11616         [generic bits/errno.h] (before-compile): Do not append to
11617         variable.
11618         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11619         rule.
11620         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11621         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11622         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11623         [generic bits/errno.h] (common-generated): Do not append to
11624         variable.
11625         [generic bits/ioctls.h] (before-compile): Do not append to
11626         variable.
11627         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11628         rule.
11629         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11630         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11631         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11632         rule.
11633         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11634         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11635         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11636         [generic bits/ioctls.h] (common-generated): Do not append to
11637         variable.
11638         [generic sys/syscall.h] (syscall.h): Remove variable.
11639         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11640         rule.
11641         [generic sys/syscall.h] (before-compile): Do not append to
11642         variable.
11643         [generic sys/syscall.h] (common-generated): Likewise.
11644         * sysdeps/unix/errnos-tmpl.c: Remove file.
11645         * sysdeps/unix/errnos.awk: Likewise.
11646         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11647         * sysdeps/unix/ioctls.awk: Likewise.
11648         * sysdeps/unix/mk-local_lim.c: Likewise.
11649         * sysdeps/unix/snarf-ioctls: Likewise.
11650
11651 2012-03-19  Richard Henderson  <rth@twiddle.net>
11652
11653         * sysdeps/i386/fpu/fenv_private.h: New file.
11654         * sysdeps/i386/fpu/math_private.h: Use it.
11655         (math_opt_barrier, math_force_eval): Remove.
11656         (libc_feholdexcept_setround_53bit): Remove.
11657         (libc_feupdateenv_53bit): Remove.
11658         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11659         (math_opt_barrier, math_force_eval): Remove.
11660         (libc_feholdexcept): Remove.
11661         (libc_feholdexcept_setround): Remove.
11662         (libc_fetestexcept, libc_fesetenv): Remove.
11663         (libc_feupdateenv_test): Remove.
11664         (libc_feupdateenv, libc_feholdsetround): Remove.
11665         (libc_feresetround): Remove.
11666
11667         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11668         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11669
11670         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11671         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11672         (libc_feupdateenv_testl): New.
11673         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11674         (libc_feupdateenv_testf): New.
11675         (libc_feupdateenv): Use libc_feupdateenv_test.
11676         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11677         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11678
11679         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11680         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11681         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11682         (libc_feresetround_noex): New.
11683         (libc_feresetround_noexf): New.
11684         (libc_feresetround_noexl): New.
11685         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11686         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11687         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11688         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11689         SET_RESTORE_ROUND.
11690         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11691         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11692         (__cos): Likewise.
11693         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11694         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11695         SET_RESTORE_ROUND_NOEX.
11696         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11697         SET_RESTORE_ROUND_NOEXF.
11698         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11699         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11700         (libc_feholdsetroundf): New.
11701         (libc_feresetround, libc_feresetroundf): New.
11702
11703         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11704         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11705         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11706
11707         * sysdeps/generic/math_private.h: Include <fenv.h>.
11708         (default_libc_feholdexcept): New.
11709         (default_libc_feholdexcept_setround): New.
11710         (default_libc_fesetenv, default_libc_feupdateenv): New.
11711         (libc_feholdexcept): Only define if undefined.
11712         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11713         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11714         (libc_feholdexcept_setroundl): Likewise.
11715         (libc_feholdexcept_setround_53bit): Likewise.
11716         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11717         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11718         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11719         (libc_feupdateenv_53bit): Likewise.
11720         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11721         (libc_feholdexcept): Convert from macro to inline function.
11722         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11723         (libc_fesetenv, libc_feupdateenv): Likewise.
11724
11725         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11726         not previously defined.
11727         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11728         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11729         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11730         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11731         * sysdeps/ieee754/flt-32/math_private.h: New file.
11732         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11733         math_private.h below SET_FLOAT_WORD.
11734         (__isnan, __isinf_ns, __finite): Remove.
11735         (__isnanf, __isinf_nsf, __finitef): Remove.
11736
11737 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11738
11739         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11740
11741 2012-03-17  David S. Miller  <davem@davemloft.net>
11742
11743         [BZ #6471]
11744         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11745         for 2.16.
11746
11747 2012-03-16  David S. Miller  <davem@davemloft.net>
11748
11749         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11750         warnings.
11751
11752         [BZ #6471]
11753         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11754         properly.
11755         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11756         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11757         sysdep_routines when subdir is sysvipc.
11758         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11759         __getshmlba helper.
11760
11761         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11762
11763 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11764
11765         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11766         [__LP64__].
11767
11768 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11769
11770         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11771         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11772         (__lround): Renamed to ...
11773         (__llround): This.  Replace long int with long long int.
11774         Define lround functions as aliases of llround functions.
11775         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11776
11777 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11778
11779         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11780         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11781         adresses to uintptr_t.  Replace "long int" and "unsigned long
11782         int" with "greg_t" on va_arg.
11783
11784 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11785
11786         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11787         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11788
11789         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11790         Move e_machine check before EI_CLASS check.  Handle x32
11791         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11792         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11793         SKIP_EM_IA_64 and include
11794         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11795
11796         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11797         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11798         (add_system_dir): New macro.
11799
11800         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11801         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11802
11803 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11804
11805         [BZ #2551]
11806         [BZ #2552]
11807         [BZ #2553]
11808         [BZ #2554]
11809         [BZ #2562]
11810         [BZ #2563]
11811         [BZ #2565]
11812         [BZ #2566]
11813         [BZ #2576]
11814         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11815         (y0): Likewise.
11816         * math/w_j0f.c (j0f): Likewise.
11817         (y0f): Likewise.
11818         * math/w_j0l.c (__j0l): Likewise.
11819         (__y0l): Likewise.
11820         * math/w_j1.c (j1): Likewise.
11821         (y1): Likewise.
11822         * math/w_j1f.c (j1f): Likewise.
11823         (y1f): Likewise.
11824         * math/w_j1l.c (__j1l): Likewise.
11825         (__y1l): Likewise.
11826         * math/w_jn.c (jn): Likewise.
11827         (yn): Likewise.
11828         * math/w_jnf.c (jnf): Likewise.
11829         (ynf): Likewise.
11830         * math/w_jnl.c (__jnl): Likewise.
11831         (__ynl): Likewise.
11832         * math/libm-test.inc (j0_test): Add more tests.
11833         (j1_test): Likewise.
11834         (jn_test): Likewise.  Add trailing semicolon to existing test.
11835         (y0_test): Likewise.
11836         (y1_test): Likewise.
11837         * sysdeps/i386/fpu/libm-test-ulps: Update.
11838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11839
11840         [BZ #13851]
11841         [BZ #13854]
11842         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11843         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11844         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11845         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11846         (__tanl): Set errno for infinite argument.
11847         * sysdeps/i386/fpu/mptan.c: Remove.
11848         * sysdeps/i386/fpu/s_tan.S: Likewise.
11849         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11850         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11851         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11852         * math/libm-test.inc (tan_test): Add more tests and enable more
11853         tests for double and long double.
11854         * sysdeps/i386/fpu/libm-test-ulps: Update.
11855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11856
11857 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11858
11859         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11860         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11861
11862 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11863
11864         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11865         * configure.in: Use it for both main tree and add-ons.
11866         * configure: Regenerated.
11867
11868 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11869
11870         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11871
11872 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11873
11874         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11875         in comment.
11876
11877         [BZ #13851]
11878         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11879         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11880         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11881         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11882         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11883         infinite argument.
11884         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11885         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11886         != 0 for prec == 2.
11887         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11888         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11889         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11890         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11891         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11892         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11893         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11894         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11895         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11896         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11897         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11898         * math/libm-test.inc (cos_test): Add more tests and enable more
11899         tests for long double.
11900         (sin_test): Likewise.
11901         (sincos_test): Likewise.
11902         * sysdeps/i386/fpu/libm-test-ulps: Update.
11903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11904
11905 2012-03-16  David S. Miller  <davem@davemloft.net>
11906
11907         * sysdeps/sparc/fpu/math_private.h: New file.
11908
11909 2012-03-15  David S. Miller  <davem@davemloft.net>
11910
11911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11912         file.
11913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
11915         file.
11916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
11917         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
11918         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
11919         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
11920         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
11921         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
11922         sysdep routines.
11923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11924
11925         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
11926         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
11927
11928         * sysdeps/sparc/sparc-ifunc.h: New file.
11929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
11930         sparc-ifunc.h
11931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11933         Likewise.
11934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
11935         Likewise.
11936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
11937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
11938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11940         Likewise.
11941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11946         Likewise.
11947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11948         Likewise.
11949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11953         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11954         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11955         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11956         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11957         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11958         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11959         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11960         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11961         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11962         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11963         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11964         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11965         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11966         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11967         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11968         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11969         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11970         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11971         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11972         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11973
11974 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11975
11976         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11977         scaling.
11978         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11979
11980 2012-03-15  Andreas Jaeger  <aj@suse.de>
11981
11982         [BZ #13852]
11983         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11984         ieee754/flt-32 implementation for sin, cos and sincos.
11985         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11986         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11987         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11988         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11989         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11990         ieee754/flt-32 implementation for tan.
11991
11992         * math/libm-test.inc (cos_test): Enable some large input tests for
11993         float as well
11994         (sin_test): Likewise.
11995         (sincos_test): Likewise.
11996         (tan_test): Add tests for large input.
11997
11998         * sysdeps/i386/fpu/libm-test-ulps: Update.
11999
12000 2012-03-15  Andreas Jaeger  <aj@suse.de>
12001
12002         [BZ #13658]
12003         * math/libm-test.inc (cos_test): Add more test cases.
12004         (sin_test): Likewise.
12005         (sincos_test): Likewise.
12006
12007 2012-03-15  Andreas Jaeger  <aj@suse.de>
12008
12009         [BZ #13837]
12010         * math/libm-test.inc (cos_test): Add a test case for large input
12011         value.
12012         (sin_test): Likewise.
12013         (sincos_test): Likewise.
12014
12015 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12016         Joseph Myers  <joseph@codesourcery.com>
12017
12018         [BZ #13658]
12019         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12020         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12021         * sysdeps/i386/fpu/branred.c: Likewise.
12022         * sysdeps/i386/fpu/dosincos.c: Likewise.
12023         * sysdeps/i386/fpu/mpa.c: Likewise.
12024         * sysdeps/i386/fpu/s_cos.S: Likewise.
12025         * sysdeps/i386/fpu/s_sin.S: Likewise.
12026         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12027         * sysdeps/i386/fpu/sincos32.c: Likewise.
12028
12029         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12030         Define.
12031         (libc_feupdateenv_53bit): Define.
12032         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12033         Define.
12034         (libc_feupdateenv_53bit): Define.
12035
12036         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12037         53 bit (without extend i386 double precision).
12038
12039         * math/libm-test.inc (sincos_test): Add tests for large input.
12040         (sin): Likewise.
12041         (cos): Likewise.
12042
12043         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12044
12045 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12046
12047         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12048
12049 2012-03-15  David S. Miller  <davem@davemloft.net>
12050
12051         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12052         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12053         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12054         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12055         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12056         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12057         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12058         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12059         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12060         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12061         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12062         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12063         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12064         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12065         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12067         file.
12068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12070         file.
12071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12073         file.
12074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12076         file.
12077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12078         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12079         fmin/fmax sysdep routines.
12080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12081
12082 2012-03-14  David S. Miller  <davem@davemloft.net>
12083
12084         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12085         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12086         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12087         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12088         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12089         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12090         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12091         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12092         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12093         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12094         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12095         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12096         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12097         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12098         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12099         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12100         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12101         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12102         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12103         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12104         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12105         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12106         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12107         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12108         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12109         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12110         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12111         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12112         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12113         routines.
12114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12115         file.
12116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12118         file.
12119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12121         file.
12122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12124         file.
12125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12127         file.
12128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12130         file.
12131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12132         file.
12133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12134         file.
12135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12136         file.
12137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12138         New file.
12139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12140         file.
12141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12142         file.
12143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12145         file.
12146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12148         file.
12149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12151         file.
12152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12154         VIS3 routines.
12155
12156         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12157         New file.
12158
12159         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12160
12161         * sysdeps/sparc/configure.in: New file.
12162         * sysdeps/sparc/configure: Generate.
12163         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12164         * configure: Regenerate.
12165         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12166         * config.make.in (have-as-vis3): New.
12167         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12168         available use -Av9d instead of -Av9a.
12169         * sysdeps/sparc/sparc64/Makefile: Likewise.
12170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12172         New file.
12173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12174         file.
12175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12176         New file.
12177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12178         file.
12179         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12180         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12181         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12182         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12183         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12184
12185         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12186         fzeros/fnegs to load 0x80000000 into a float register instead of
12187         using the stack.
12188         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12189
12190 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12191
12192         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12193         bits/syscall.h.
12194         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12195         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12196         ($(inst_includedir)/bits/syscall.h): Remove rule.
12197         ($(objpfx)bits/syscall.d): Include instead of
12198         $(objpfx)syscall-list.d.
12199         (generated): Change syscall-list.h and syscall-list.d to
12200         bits/syscall.h and bits/syscall.d.
12201
12202 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12203
12204         [BZ #13846]
12205         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12206
12207 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12208
12209         [BZ #13841]
12210         * math/s_csqrt.c: Include <float.h>.
12211         (__csqrt): Scale large or subnormal inputs.
12212         * math/s_csqrtf.c: Likewise.
12213         * math/s_csqrtl.c: Likewise.
12214         * math/libm-test.inc (csqrt_test): Add more tests.
12215         * sysdeps/i386/fpu/libm-test-ulps: Update.
12216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12217
12218         [BZ #13840]
12219         * math/libm-test.inc (hypot_test): Add more tests.
12220
12221 2012-03-13  David S. Miller  <davem@davemloft.net>
12222
12223         [BZ #13840]
12224         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12225         double-precision for the calculation instead of scaling.
12226
12227 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12228
12229         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12230         manipulate bits before adding and subtracting TWO52[sx].
12231         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12232         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12233         Likewise.
12234         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12235
12236 2012-03-13  David S. Miller  <davem@davemloft.net>
12237
12238         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12239         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12240         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12241         rtld-global-offsets.h
12242         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12243
12244         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12245         large parameters.
12246
12247         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12248
12249         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12250         'err' in the ifdef scope in which it is actually used.
12251
12252         * nss/nss_db/db-init.c: Include string.h
12253
12254 2012-03-12  David S. Miller  <davem@davemloft.net>
12255
12256         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12257         masking out of the most significant byte of random value used.
12258         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12259         Fix coding style in previous change.
12260
12261         * sysdeps/unix/sysv/linux/kernel-features.h
12262         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12263         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12264         expression.
12265         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12266         later.
12267
12268 2012-03-11  David S. Miller  <davem@davemloft.net>
12269
12270         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12271         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12272         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12273         for 'resultvar' otherwise things get truncated on 64-bit.
12274
12275         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12276         Fix masking out of the most significant byte of random value used.
12277
12278         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12279
12280 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12281
12282         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12283
12284 2012-03-09  David S. Miller  <davem@davemloft.net>
12285
12286         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12287         variables with appropriate CPP guards.
12288         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12289         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12290         on resulting framesize and the management of the outregs buffer for pltexit.
12291         Preserve floating point return values across _dl_call_pltexit call.
12292         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12293         framesize and the management of the outregs buffer for pltexit.
12294         Preserve floating point return values across _dl_call_pltexit
12295         call.
12296         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12297         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12298         (print_exit): Fix format string for return register value.
12299
12300 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12301
12302         * sunrpc/Makefile (others): Add rpcgen.
12303         ($(objpfx)rpcgen): Remove special build rule and dependency on
12304         libc.
12305         * sunrpc/rpcgen.c: New file.
12306
12307 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12308
12309         [BZ #13673]
12310         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12311         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12312         * sysdeps/i386/crti.S: Likewise.
12313         * sysdeps/i386/crtn.S: Likewise.
12314         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12315         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12316         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12317         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12318         * sysdeps/sh/crti.S: Likewise.
12319         * sysdeps/sh/crtn.S: Likewise.
12320         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12321
12322         [BZ #13673]
12323         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12324         with URL.
12325         * locale/programs/locfile-kw.gperf: Likewise.
12326         * locale/programs/charmap-kw.h: Regenerated.
12327         * locale/programs/locfile-kw.h: Likewise.
12328
12329         [BZ #13673]
12330         * intl/plural.y: Replace FSF snail mail address with URL.
12331         * intl/plural.c: Regenerated.
12332
12333 2012-03-09  Richard Henderson  <rth@twiddle.net>
12334
12335         * include/math_private.h: Remove file.
12336         * math/math_private.h: Move file ...
12337         * sysdeps/generic/math_private.h: ... here.
12338
12339         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12340         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12341         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12342
12343         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12344         and <math_private.h>.
12345         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12346         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12347         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12348         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12349         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12350         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12351         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12352         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12353         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12354         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12355         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12356         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12357         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12358         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12359         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12360         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12361         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12362         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12363         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12364         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12365         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12366         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12367         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12368         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12369         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12370         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12371         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12372         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12373         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12374         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12375         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12376         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12377         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12378         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12379         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12380         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12381         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12382         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12383         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12384         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12385         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12386         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12387         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12388         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12389         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12390         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12391         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12392         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12393         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12394         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12395         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12396         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12397         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12398         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12399         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12400         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12401         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12402         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12403         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12404         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12405         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12406         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12407         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12408         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12409         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12410         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12411         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12412         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12413         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12414         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12415         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12416         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12417         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12418         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12419         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12420         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12421         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12422         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12423         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12424         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12425         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12426         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12427         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12428         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12429         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12430         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12431         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12432         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12433         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12434         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12435         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12436         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12437         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12438         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12439         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12440         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12441         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12442         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12443         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12444         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12445         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12446         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12447         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12448         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12449         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12450         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12451         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12452         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12453         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12454         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12455         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12456         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12457         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12458         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12459         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12460         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12461         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12462         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12463         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12464         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12465         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12466         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12467         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12468         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12469         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12470         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12471         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12472         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12473         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12474         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12475         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12476         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12477         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12478         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12479         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12480         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12481         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12482         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12483         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12484         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12485         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12486         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12487         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12488         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12489         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12490         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12491         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12492         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12493         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12494         * sysdeps/ieee754/k_standard.c: Likewise.
12495         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12496         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12497         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12498         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12499         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12500         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12501         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12502         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12503         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12504         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12505         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12506         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12507         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12508         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12509         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12510         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12511         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12512         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12513         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12514         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12515         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12516         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12517         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12518         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12519         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12520         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12521         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12522         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12523         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12524         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12525         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12526         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12527         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12528         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12529         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12530         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12531         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12532         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12533         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12534         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12535         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12536         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12537         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12538         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12539         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12540         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12541         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12542         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12543         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12544         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12545         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12546         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12547         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12548         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12549         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12550         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12551         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12552         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12553         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12554         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12555         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12556         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12557         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12558         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12559         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12560         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12561         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12562         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12563         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12564         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12565         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12566         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12567         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12568         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12569         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12570         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12571         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12572         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12573         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12574         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12575         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12576         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12577         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12578         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12579         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12580         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12581         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12582         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12583         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12584         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12585         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12586         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12587         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12588         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12589         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12590         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12591         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12592         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12593         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12594         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12595         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12596         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12597         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12598         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12599         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12600         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12601         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12602         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12603         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12604         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12605         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12606         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12607         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12608         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12609         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12610         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12611         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12612         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12613         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12614         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12615         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12616         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12617         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12618         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12619         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12620         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12621         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12622         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12623         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12624         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12625         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12626         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12627         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12628         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12629         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12630         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12631         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12632         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12633         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12634         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12635         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12636         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12637         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12638         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12639         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12640         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12641         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12642         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12643         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12644         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12645         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12646         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12647         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12648         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12649         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12650         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12651         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12652         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12653         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12654         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12655         * sysdeps/ieee754/s_lib_version.c: Likewise.
12656         * sysdeps/ieee754/s_matherr.c: Likewise.
12657         * sysdeps/ieee754/s_signgam.c: Likewise.
12658         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12659         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12660         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12661         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12662         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12663         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12664         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12665         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12666         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12667         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12668         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12669         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12670         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12671         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12672         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12673         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12674         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12675         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12676         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12677         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12678         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12679
12680 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12681
12682         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12683         * sunrpc/rpc_main.c: Likewise.
12684         * sunrpc/rpc_svcout.c: Likewise.
12685
12686 2012-03-09  David S. Miller  <davem@davemloft.net>
12687
12688         * include/math_private.h: New file.
12689
12690 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12691
12692         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12693         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12694         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12695         from <bits/socket_type.h>.
12696         (enum __socket_type): Don't define here.
12697         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12698         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12699         bits/socket_type.h.
12700
12701         [BZ #13566]
12702         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12703         checking __USE_GNU.
12704
12705         * Makerules ($(inst_includedir)/%.h): New rule.
12706         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12707         (install-others): Remove variable setting.
12708         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12709
12710 2012-03-08  Richard Henderson  <rth@twiddle.net>
12711
12712         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12713         from macro to inline function; merge with the
12714         !__LIBC_INTERNAL_MATH_INLINES version.
12715         (__ieee754_sqrtf): Likewise.
12716
12717         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12718         to inline function.
12719         (__rintf, __floor, __floorf): Likewise.
12720
12721         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12722         macro to inline function.
12723         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12724
12725         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12726         not <math/math_private.h>.
12727
12728 2012-03-08  David S. Miller  <davem@davemloft.net>
12729
12730         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12731         copyright year.
12732         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12733
12734 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12735
12736         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12737         normalization.
12738         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12739         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12740
12741 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12742
12743         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12744         be defined individually, they must be defined as a block.  Define
12745         S for printing a string instead of hidint the different by using a
12746         macro for adding the 'l'.
12747         * stdio-common/tst-fphex-wide.c: Adjust.
12748
12749 2012-03-07  Marek Polacek  <polacek@redhat.com>
12750
12751         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12752
12753 2012-03-08  Marek Polacek  <polacek@redhat.com>
12754
12755         [BZ #13806]
12756         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12757         * stdio-common/tst-fphex.c: Define a few macros to make the
12758         test reusable.  Use them.
12759         * stdio-common/tst-fphex-wide.c: New file.
12760
12761 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12762
12763         [BZ #6911]
12764         * manual/macros.texi (gnusystems): New macro.
12765         (nongnusystems): Likewise.
12766         (gnulinuxhurdsystems): Likewise.
12767         (gnuhurdsystems): Likewise..
12768         (gnulinuxsystems): Likewise.
12769         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12770         variants of the GNU system, not "GNU system".
12771         * manual/conf.texi: Likewise.
12772         * manual/errno.texi: Likewise.  Update example of errno macro
12773         expansion.
12774         * manual/filesys.texi: Likewise.
12775         (getumask): Document as specific to GNU/Hurd.
12776         * manual/install.texi: Likewise.  Reword some references to
12777         GNU/Linux.
12778         * manual/intro.texi: Likewise.
12779         * manual/io.texi: Likewise.
12780         (File Name Portability): Detail which constraints are inapplicable
12781         to all GNU systems and which are only inapplicable to GNU/Hurd.
12782         * manual/job.texi: Likewise.
12783         * manual/llio.texi: Likewise.
12784         (O_NOCTTY): Document as present on GNU/Linux.
12785         * manual/maint.texi: Likewise.
12786         * manual/memory.texi: Likewise.
12787         * manual/pattern.texi: Likewise.
12788         * manual/pipe.texi: Likewise.
12789         * manual/process.texi: Likewise.
12790         * manual/resource.texi: Likewise.
12791         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12792         child on GNU/Hurd.
12793         * manual/setjmp.texi: Likewise.
12794         * manual/signal.texi: Likewise.
12795         * manual/startup.texi: Likewise.
12796         * manual/stdio.texi: Likewise.
12797         * manual/terminal.texi: Likewise.
12798         (ONLCR): Document as POSIX.
12799         (OXTABS): Document availability on GNU/Linux as XTABS.
12800         (ONOEOT): Document availability separately from other bits.
12801         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12802         * manual/time.texi: Likewise.
12803         * manual/users.texi: Likewise.
12804         * INSTALL: Regenerated.
12805         * sysdeps/gnu/errlist.c: Regenerated.
12806
12807         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12808         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12809         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12810         puts.
12811         * configure: Regenerated.
12812
12813 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12814
12815         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12816         default includes instead of AC_HEADER_CHECK.
12817         * sysdeps/i386/configure: Regenerated.
12818
12819         [BZ #10716]
12820         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12821         * math/s_cacoshf.c (__cacoshf): Likewise.
12822         * math/s_cacoshl.c (__cacoshl): Likewise.
12823         * math/s_casinh.c (__casinh): Set signs of result from argument.
12824         * math/s_casinhf.c (__casinhf): Likewise.
12825         * math/s_casinhl.c (__casinhl): Likewise.
12826         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12827         (casinh_test): Add more tests.
12828         * sysdeps/i386/fpu/libm-test-ulps: Update.
12829         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12830
12831 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12832
12833         * po/zh_TW.po: Update from translation team.
12834
12835         * login/Makefile (distribute): Remove variable.
12836         * catgets/Makefile: Likewise.
12837         * mach/Makefile: Likewise.
12838         * malloc/Makefile: Likewise.
12839         * misc/Makefile: Likewise.
12840         * iconv/Makefile: Likewise.
12841         * nscd/Makefile: Likewise.
12842         * hurd/Makefile: Likewise.
12843         * manual/Makefile: Likewise.
12844         * locale/Makefile: Likewise.
12845         * intl/Makefile: Likewise.
12846         * conform/Makefile: Likewise.
12847         * nss/Makefile: Likewise.
12848         * time/Makefile: Likewise.
12849         * soft-fp/Makefile: Likewise.
12850         * dirent/Makefile: Likewise.
12851         * gmon/Makefile: Likewise.
12852         * po/Makefile: Likewise.
12853         * rt/Makefile: Likewise.
12854         * socket/Makefile: Likewise.
12855         * math/Makefile: Likewise.
12856         * signal/Makefile: Likewise.
12857         * debug/Makefile: Likewise.
12858         * elf/Makefile: Likewise.
12859         * timezone/Makefile: Likewise.
12860         * stdlib/Makefile: Likewise.
12861         * iconvdata/Makefile: Likewise.
12862         * sunrpc/Makefile: Likewise.
12863         * io/Makefile: Likewise.
12864         * argp/Makefile: Likewise.
12865         * inet/Makefile: Likewise.
12866         * hesiod/Makefile: Likewise.
12867         * grp/Makefile: Likewise.
12868         * csu/Makefile: Likewise.
12869         * wctype/Makefile: Likewise.
12870         * crypt/Makefile: Likewise.
12871         * libio/Makefile: Likewise.
12872         * string/Makefile: Likewise.
12873         * nis/Makefile: Likewise.
12874         * resolv/Makefile: Likewise.
12875         * stdio-common/Makefile: Likewise.
12876         * wcsmbs/Makefile: Likewise.
12877         * dlfcn/Makefile: Likewise.
12878         * posix/Makefile: Likewise.
12879
12880         [BZ #6959]
12881         * timezone/Makefile: Don't install timezone files, just the programs
12882         and scripts.
12883
12884 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12885
12886         * nss/databases.def: Add missing gshadow entry.
12887
12888         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12889
12890 2012-03-06  Marek Polacek  <polacek@redhat.com>
12891
12892         [BZ #13726]
12893         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12894         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12895         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12896         * stdio-common/tst-long-dbl-fphex.c: New file.
12897
12898 2012-03-06  David S. Miller  <davem@davemloft.net>
12899
12900         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12901         (set_obp_int): New function.
12902         (get_obp_int): New function.
12903         (__get_clockfreq_via_dev_openprom): Likewise.
12904         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12905         Avoid unused variable warnings on 'val' and use builtin_expect.
12906         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12907         __builtin_expect.
12908         (INLINE_CLONE_SYSCALL): Likewise.
12909
12910 2012-03-05  David S. Miller  <davem@davemloft.net>
12911
12912         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12913
12914 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
12915
12916         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12917
12918         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
12919         only for |x| >= 40.
12920         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12921
12922 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12923
12924         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
12925         Replace gettimeofday with __vdso_gettimeofday.
12926
12927         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12928         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
12929         __vdso_clock_gettime and __vdso_getcpu.
12930
12931         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
12932         time with __vdso_time.
12933
12934 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12935
12936         * manual/lang.texi (size_t): Note types to which size_t may be
12937         equivalent with the GNU C Library, but do not describe when
12938         differences between them are significant.
12939
12940 2012-03-05  Andreas Jaeger  <aj@suse.de>
12941
12942         * sysdeps/i386/fpu/libm-test-ulps: Update.
12943
12944 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12945
12946         [BZ #3976]
12947         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12948         (__ieee754_pow): Save and restore rounding mode and use
12949         round-to-nearest for main computations.
12950         * math/libm-test.inc (pow_test_tonearest): New function.
12951         (pow_test_towardzero): Likewise.
12952         (pow_test_downward): Likewise.
12953         (pow_test_upward): Likewise.
12954         (main): Call the new functions.
12955         * sysdeps/i386/fpu/libm-test-ulps: Update.
12956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12957
12958         [BZ #3976]
12959         * math/libm-test.inc (cosh_test_tonearest): New function.
12960         (cosh_test_towardzero): Likewise.
12961         (cosh_test_downward): Likewise.
12962         (cosh_test_upward): Likewise.
12963         (sinh_test_tonearest): Likewise.
12964         (sinh_test_towardzero): Likewise.
12965         (sinh_test_downward): Likewise.
12966         (sinh_test_upward): Likewise.
12967         (main): Call the new functions.
12968         * sysdeps/i386/fpu/libm-test-ulps: Update.
12969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12970
12971 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12972
12973         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12974         default stack guard is set in last bytes.
12975         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12976
12977 2012-03-05  Kees Cook  <keescook@chromium.org>
12978
12979         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12980
12981         [BZ #13656]
12982         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12983         possibly allocate from heap instead of stack.
12984         * stdio-common/bug-vfprintf-nargs.c: New file.
12985         * stdio-common/Makefile (tests): Add nargs overflow test.
12986
12987 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12988
12989         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12990
12991 2012-03-03  Marek Polacek  <polacek@redhat.com>
12992
12993         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12994         * math/math_private.h: Likewise.
12995         * stdlib/tst-strtod.c: Likewise.
12996         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12997         * sysdeps/x86_64/bits/atomic.h: Likewise.
12998
12999 2012-03-02  David S. Miller  <davem@davemloft.net>
13000
13001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13002         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13003         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13004         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13005         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13006         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13007         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13008         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13009
13010 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13011
13012         [BZ #13792]
13013         * manual/examples/README: New file, says the example source files
13014         can be used under GPL>=2.
13015         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13016         line containing just "*/".
13017         * manual/examples/add.c: Add copyright header (GPL>=2).
13018         * manual/examples/argp-ex1.c: Likewise.
13019         * manual/examples/argp-ex2.c: Likewise.
13020         * manual/examples/argp-ex3.c: Likewise.
13021         * manual/examples/argp-ex4.c: Likewise.
13022         * manual/examples/atexit.c: Likewise.
13023         * manual/examples/db.c: Likewise.
13024         * manual/examples/dir.c: Likewise.
13025         * manual/examples/dir2.c: Likewise.
13026         * manual/examples/execinfo.c: Likewise.
13027         * manual/examples/filecli.c: Likewise.
13028         * manual/examples/filesrv.c: Likewise.
13029         * manual/examples/fmtmsgexpl.c: Likewise.
13030         * manual/examples/genpass.c: Likewise.
13031         * manual/examples/inetcli.c: Likewise.
13032         * manual/examples/inetsrv.c: Likewise.
13033         * manual/examples/isockad.c: Likewise.
13034         * manual/examples/longopt.c: Likewise.
13035         * manual/examples/memopen.c: Likewise.
13036         * manual/examples/memstrm.c: Likewise.
13037         * manual/examples/mkfsock.c: Likewise.
13038         * manual/examples/mkisock.c: Likewise.
13039         * manual/examples/mygetpass.c: Likewise.
13040         * manual/examples/pipe.c: Likewise.
13041         * manual/examples/popen.c: Likewise.
13042         * manual/examples/rprintf.c: Likewise.
13043         * manual/examples/search.c: Likewise.
13044         * manual/examples/select.c: Likewise.
13045         * manual/examples/setjmp.c: Likewise.
13046         * manual/examples/sigh1.c: Likewise.
13047         * manual/examples/sigusr.c: Likewise.
13048         * manual/examples/stpcpy.c: Likewise.
13049         * manual/examples/strdupa.c: Likewise.
13050         * manual/examples/strftim.c: Likewise.
13051         * manual/examples/strncat.c: Likewise.
13052         * manual/examples/subopt.c: Likewise.
13053         * manual/examples/swapcontext.c: Likewise.
13054         * manual/examples/termios.c: Likewise.
13055         * manual/examples/testopt.c: Likewise.
13056         * manual/examples/testpass.c: Likewise.
13057         * manual/examples/timeval_subtract.c: Likewise.
13058
13059         [BZ #13792]
13060         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13061         function to ...
13062         * manual/timeval_subtract.c.texi: ... here, new file.
13063
13064 2012-03-02  David S. Miller  <davem@davemloft.net>
13065
13066         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13067
13068 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13069
13070         [BZ #3976]
13071         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13072         (__sin): Save and restore rounding mode and use round-to-nearest
13073         for all computations.
13074         (__cos): Save and restore rounding mode and use round-to-nearest
13075         for all computations.
13076         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13077         <fenv.h>.
13078         (tan): Save and restore rounding mode and use round-to-nearest for
13079         all computations.
13080         * math/libm-test.inc (cos_test_tonearest): New function.
13081         (cos_test_towardzero): Likewise.
13082         (cos_test_downward): Likewise.
13083         (cos_test_upward): Likewise.
13084         (sin_test_tonearest): Likewise.
13085         (sin_test_towardzero): Likewise.
13086         (sin_test_downward): Likewise.
13087         (sin_test_upward): Likewise.
13088         (tan_test_tonearest): Likewise.
13089         (tan_test_towardzero): Likewise.
13090         (tan_test_downward): Likewise.
13091         (tan_test_upward): Likewise.
13092         (main): Call the new functions.
13093         * sysdeps/i386/fpu/libm-test-ulps: Update.
13094         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13095
13096         [BZ #10135]
13097         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13098         small n, then large n, before computing and testing k+n.
13099         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13100         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13101         Likewise.
13102         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13103         Likewise.
13104         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13105         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13106         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13107         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13108         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13109         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13110         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13111         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13112         * math/libm-test.inc (scalbn_test): Add more tests.
13113         (scalbln_test): Likewise.
13114
13115         * manual/filesys.texi (mode_t): Describe constraints on size and
13116         signedness, not exact equivalence to a particular type.
13117         (ino_t): Likewise.
13118         (ino64_t): Likewise.
13119         (dev_t): Likewise.
13120         (nlink_t): Likewise.
13121         (blkcnt_t): Likewise.
13122         (blkcnt64_t): Likewise.
13123         * manual/llio.texi (off_t): Likewise.
13124
13125         [BZ #3976]
13126         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13127         (__ieee754_exp): Save and restore rounding mode and use
13128         round-to-nearest for all computations.
13129         * math/libm-test.inc (exp_test_tonearest): New function.
13130         (exp_test_towardzero): Likewise.
13131         (exp_test_downward): Likewise.
13132         (exp_test_upward): Likewise.
13133         (main): Call the new functions.
13134         * sysdeps/i386/fpu/libm-test-ulps: Update.
13135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13136
13137 2012-03-01  Chris Demetriou  <cgd@google.com>
13138
13139         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13140         have predictable order.
13141
13142 2012-03-01  David S. Miller  <davem@davemloft.net>
13143
13144         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13145
13146         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13147         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13148         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13149         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13150
13151         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13152         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13153         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13154         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13155         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13156         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13157         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13158         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13159         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13160
13161         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13162
13163         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13164         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13165         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13166
13167         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13168         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13169         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13170         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13171         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13172         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13173         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13174         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13175         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13176         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13177         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13178         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13179         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13180         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13181         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13182         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13183         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13184         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13185         * sysdeps/sparc/elf/configure: Regenerated.
13186
13187 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13188
13189         * configure.in (AS, LD): Require binutils 2.20 or later.
13190         * configure: Regenerated.
13191         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13192         as required minimum version.
13193         * INSTALL: Regenerated.
13194
13195         [BZ #2541]
13196         [BZ #4108]
13197         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13198         before squaring exponent.
13199         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13200         bottom long double and 27 bits of top long double before squaring
13201         exponent.
13202         * math/libm-test.inc (erfc_test): Add more tests.
13203         * sysdeps/i386/fpu/libm-test-ulps: Update.
13204         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13205         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13206
13207 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13208
13209         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13210         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13211         containing bit-fields.
13212         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13213         * soft-fp/single.h (_FP_UNION_S): Likewise.
13214         * soft-fp/double.h (_FP_UNION_D): Likewise.
13215
13216 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13217
13218         [BZ #13786]
13219         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13220         not include ../strcmp.S.
13221         [USE_AS_STRNCASECMP_L]: Likewise.
13222         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13223         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13224         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13225         (__strncasecmp_l_ia32): Define as alias to
13226         __strncasecmp_l_nonascii.
13227
13228         [BZ #5794]
13229         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13230         * sysdeps/i386/fpu/libm-test-ulps: Update.
13231         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13232
13233         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13234         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13235
13236 2012-02-29  Jeff Law  <law@redhat.com>
13237
13238         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13239         out of bounds read.
13240
13241 2012-02-29  Marek Polacek  <polacek@redhat.com>
13242
13243         [BZ #13706]
13244         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13245         * elf/Makefile: Add rules to run tst-unused-dep.out.
13246
13247 2012-02-28  David S. Miller  <davem@davemloft.net>
13248
13249         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13250         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13251         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13252         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13253         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13254         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13255
13256 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13257
13258         * math/libm-test.inc (llround_test): Move one test from
13259         lround_test.  Use TEST_f_L in moved test.
13260         (lround_test): Move misplaced test to llround_test.  Add testcase
13261         from bug 2561.
13262
13263 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13264
13265         * sysdeps/x86_64/fpu/e_expf.S: New file.
13266         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13267
13268 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13269
13270         [BZ #13637]
13271         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13272         of remain_len that may cause incomplete multi-byte character and
13273         false match.
13274         * posix/bug-regex33.c: New file.
13275         * posix/Makefile (tests): Add bug-regex33.
13276
13277 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13278
13279         * manual/macros.texi: New file.
13280         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13281         * manual/libc.texinfo: Include macros.texi.
13282         * manual/creatute.texi: Likewise.
13283         * manual/install.texi: Likewise.
13284         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13285         @glibcadj{} in references to the GNU C Library.
13286         * manual/charset.texi: Likewise.
13287         * manual/conf.texi: Likewise.
13288         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13289         when not using those macros.
13290         * manual/creature.texi: Likewise.
13291         * manual/crypt.texi: Likewise.
13292         * manual/errno.texi: Likewise.
13293         * manual/filesys.texi: Likewise.
13294         * manual/header.texi: Likewise.
13295         * manual/install.texi: Likewise.
13296         * manual/intro.texi: Likewise.
13297         * manual/io.texi: Likewise.
13298         * manual/job.texi: Likewise.
13299         * manual/lang.texi: Likewise.
13300         * manual/libc.texiinfo: Likewise.
13301         * manual/llio.texi: Likewise.
13302         * manual/locale.texi: Likewise.
13303         * manual/maint.texi: Likewise.
13304         * manual/math.texi: Likewise.
13305         * manual/memory.texi: Likewise.
13306         * manual/message.texi: Likewise.
13307         * manual/nss.texi: Likewise.
13308         * manual/pattern.texi: Likewise.
13309         * manual/process.texi: Likewise.
13310         * manual/resource.texi: Likewise.
13311         * manual/search.texi: Likewise.
13312         * manual/setjmp.texi: Likewise.
13313         * manual/signal.texi: Likewise.
13314         * manual/socket.texi: Likewise.
13315         * manual/startup.texi: Likewise.
13316         * manual/stdio.texi: Likewise.
13317         * manual/string.texi: Likewise.
13318         * manual/sysinfo.texi: Likewise.
13319         * manual/syslog.texi: Likewise.
13320         * manual/terminal.texi: Likewise.
13321         * manual/time.texi: Likewise.
13322         * manual/users.texi: Likewise.
13323         * INSTALL: Regenerated.
13324         * NOTES: Regenerated.
13325         * sysdeps/gnu/errlist.c: Regenerated.
13326
13327 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13328
13329         * include/dirent.h: Include <dirstream.h> before
13330         <dirent/dirent.h>.
13331
13332 2012-02-28  David S. Miller  <davem@davemloft.net>
13333
13334         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13335         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13336         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13337         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13338
13339 2012-02-27  David S. Miller  <davem@davemloft.net>
13340
13341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13342         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13343         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13344         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13345
13346         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13347         frame pointer instead of stack pointer relative arg slot.
13348         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13349         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13350         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13351
13352 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13353
13354         [BZ #3992]
13355         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13356
13357 2012-02-27  David S. Miller  <davem@davemloft.net>
13358
13359         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13360         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13361         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13362         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13363         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13364         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13365         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13366         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13367
13368 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13369
13370         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13371         later.  Allow versions 5-9.
13372         * configure: Regenerated.
13373         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13374         required minimum version and 4.6 as recommended version.  Do not
13375         mention bugs in GCC 2.7 and 2.8.
13376         * INSTALL: Regenerated.
13377
13378 2012-02-27  David S. Miller  <davem@davemloft.net>
13379
13380         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13381         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13382         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13383         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13384         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13385         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13386         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13387         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13388
13389         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13390         manipulate bits before adding and subtracting TWO112[sx].
13391         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13392
13393 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13394
13395         [BZ #13775]
13396         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13397         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13398         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13399         being in POSIX, because they are in 1003.1-2008.
13400
13401         * rt/tst-aio.c: Include <fcntl.h>.
13402         * rt/tst-aio7.c: Likewise.
13403         * rt/tst-aio64.c: Likewise.
13404
13405         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13406
13407 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13408
13409         * manual/install.texi (--with-headers): Describe headers as
13410         interface headers, not private headers.
13411         (Specific advice for GNU/Linux systems): Describe use of headers
13412         from "make headers_install", not private headers from older
13413         kernels.
13414         * INSTALL: Regenerated.
13415         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13416         Change to 2.6.19.
13417         * sysdeps/unix/sysv/linux/configure: Regenerated.
13418
13419         * manual/llio.texi (fclean): Remove documentation.
13420
13421         * manual/Makefile (libc-texi-generated): New variable.  Include
13422         version.texi.
13423         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13424         $(libc-texi-generated), not duplicated list of files.
13425         (version.texi, stamp-version): New rules.
13426         (realclean): Remove $(libc-texi-generated), not individual files
13427         from that list.  Do not remove dir-add.texinfo.
13428         * manual/libc.texinfo: Comment out uses of edition numbers and
13429         references to printed manual.  Remove last-updated dates.
13430         (EDITION): Comment out.
13431         (ISBN): Likewise.
13432         (VERSION, UPDATED): Remove.
13433         (version.texi): Include.
13434
13435 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13436
13437         * sysdeps/posix/spawni.c: Include <signal.h>.
13438         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13439         * sysdeps/pthread/aio_fsync.c: Likewise.
13440
13441 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13442
13443         * conform/Makefile (tests): Run only when not cross-compiling and
13444         when fast-check is not defined.
13445
13446         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13447         * conform/data/limits.h-data: Fixes for POSIX2008.
13448         * conform/run-conformtest.sh: Run all tests.
13449         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13450         headers.
13451         * include/bits/dlfcn.h: Likewise.
13452         * include/langinfo.h: Likewise.
13453         * include/monetary.h: Likewise.
13454         * include/sys/poll.h: Likewise.
13455
13456         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13457         for __USE_GNU.
13458         * posix/spawn.h: Define __need_sigset_t.
13459         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13460         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13461         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13462         to get sigevent_t only.
13463         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13464         only for __USE_GNU.
13465         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13466         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13467         process_vm_writev only for __USE_GNU.
13468         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13469
13470         * conform/Makefile: For now ignore errors from run-conformtest.
13471         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13472         POSIX to avoid namespace pollution.  Don't prepend headers.
13473         * conform/data/aio.h-data: Fixes for POSIX testing.
13474         * conform/data/fcntl.h-data: Likewise.
13475         * conform/data/glob.h-data: Likewise.
13476         * conform/data/grp.h-data: Likewise.
13477         * conform/data/pthread.h-data: Likewise.
13478         * conform/data/pwd.h-data: Likewise.
13479         * conform/data/signal.h-data: Likewise.
13480         * conform/data/spawn.h-data: Likewise.
13481         * conform/data/stdio.h-data: Likewise.
13482         * conform/data/stdlib.h-data: Likewise.
13483         * conform/data/stropts.h-data: Likewise.
13484         * conform/data/sys/mman.h-data: Likewise.
13485         * conform/data/sys/stat.h-data: Likewise.
13486         * conform/data/sys/types.h-data: Likewise.
13487         * conform/data/sys/wait.h-data: Likewise.
13488         * conform/data/time.h-data: Likewise.
13489         * conform/data/unistd.h-data: Likewise.
13490         * conform/data/utime.h-data: Likewise.
13491
13492         * io/sys/stat.h: fchmod was always in POSIX.
13493         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13494         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13495         * rt/aio.h: Define __need_timespec before including <time.h>.
13496         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13497         struct.  Add forward declaration of pthread_attr_t and use it in
13498         sigevent.
13499         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13500         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13501         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13502         always remove CLK_TCK definition.
13503
13504 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13505
13506         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13507
13508 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13509
13510         * conform/run-conformtest.sh: New file.
13511         * conform/Makefile: Run run-conformtest for tests.
13512         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13513         support.
13514
13515         * conform/data/uchar.h-data: New file.
13516         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13517         * conform/data/arpa/inet.h-data: Likewise.
13518         * conform/data/assert.h-data: Likewise.
13519         * conform/data/complex.h-data: Likewise.
13520         * conform/data/cpio.h-data: Likewise.
13521         * conform/data/ctype.h-data: Likewise.
13522         * conform/data/dirent.h-data: Likewise.
13523         * conform/data/dlfcn.h-data: Likewise.
13524         * conform/data/errno.h-data: Likewise.
13525         * conform/data/fcntl.h-data: Likewise.
13526         * conform/data/float.h-data: Likewise.
13527         * conform/data/fmtmsg.h-data: Likewise.
13528         * conform/data/fnmatch.h-data: Likewise.
13529         * conform/data/ftw.h-data: Likewise.
13530         * conform/data/glob.h-data: Likewise.
13531         * conform/data/grp.h-data: Likewise.
13532         * conform/data/iconv.h-data: Likewise.
13533         * conform/data/inttypes.h-data: Likewise.
13534         * conform/data/langinfo.h-data: Likewise.
13535         * conform/data/libgen.h-data: Likewise.
13536         * conform/data/limits.h-data: Likewise.
13537         * conform/data/locale.h-data: Likewise.
13538         * conform/data/math.h-data: Likewise.
13539         * conform/data/monetary.h-data: Likewise.
13540         * conform/data/mqueue.h-data: Likewise.
13541         * conform/data/ndbm.h-data: Likewise.
13542         * conform/data/net/if.h-data: Likewise.
13543         * conform/data/netdb.h-data: Likewise.
13544         * conform/data/netinet/in.h-data: Likewise.
13545         * conform/data/nl_types.h-data: Likewise.
13546         * conform/data/poll.h-data: Likewise.
13547         * conform/data/pthread.h-data: Likewise.
13548         * conform/data/pwd.h-data: Likewise.
13549         * conform/data/regex.h-data: Likewise.
13550         * conform/data/sched.h-data: Likewise.
13551         * conform/data/search.h-data: Likewise.
13552         * conform/data/semaphore.h-data: Likewise.
13553         * conform/data/setjmp.h-data: Likewise.
13554         * conform/data/signal.h-data: Likewise.
13555         * conform/data/spawn.h-data: Likewise.
13556         * conform/data/stdarg.h-data: Likewise.
13557         * conform/data/stdio.h-data: Likewise.
13558         * conform/data/stdlib.h-data: Likewise.
13559         * conform/data/string.h-data: Likewise.
13560         * conform/data/strings.h-data: Likewise.
13561         * conform/data/stropts.h-data: Likewise.
13562         * conform/data/sys/ipc.h-data: Likewise.
13563         * conform/data/sys/mman.h-data: Likewise.
13564         * conform/data/sys/msg.h-data: Likewise.
13565         * conform/data/sys/resource.h-data: Likewise.
13566         * conform/data/sys/select.h-data: Likewise.
13567         * conform/data/sys/sem.h-data: Likewise.
13568         * conform/data/sys/shm.h-data: Likewise.
13569         * conform/data/sys/socket.h-data: Likewise.
13570         * conform/data/sys/stat.h-data: Likewise.
13571         * conform/data/sys/statvfs.h-data: Likewise.
13572         * conform/data/sys/time.h-data: Likewise.
13573         * conform/data/sys/timeb.h-data: Likewise.
13574         * conform/data/sys/times.h-data: Likewise.
13575         * conform/data/sys/types.h-data: Likewise.
13576         * conform/data/sys/uio.h-data: Likewise.
13577         * conform/data/sys/un.h-data: Likewise.
13578         * conform/data/sys/utsname.h-data: Likewise.
13579         * conform/data/sys/wait.h-data: Likewise.
13580         * conform/data/syslog.h-data: Likewise.
13581         * conform/data/tar.h-data: Likewise.
13582         * conform/data/termios.h-data: Likewise.
13583         * conform/data/utime.h-data: Likewise.
13584         * conform/data/utmpx.h-data: Likewise.
13585         * conform/data/varargs.h-data: Likewise.
13586         * conform/data/wchar.h-data: Likewise.
13587         * conform/data/wctype.h-data: Likewise.
13588         * conform/data/wordexp.h-data: Likewise.
13589
13590         * include/stropts.h: New file.
13591         * include/uchar.h: New file.
13592         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13593         * include/assert.h: Likewise.
13594         * include/ctype.h: Likewise.
13595         * include/dirent.h: Likewise.
13596         * include/dlfcn.h: Likewise.
13597         * include/fcntl.h: Likewise.
13598         * include/fnmatch.h: Likewise.
13599         * include/glob.h: Likewise.
13600         * include/grp.h: Likewise.
13601         * include/libio.h: Likewise.
13602         * include/locale.h: Likewise.
13603         * include/math.h: Likewise.
13604         * include/net/if.h: Likewise.
13605         * include/netdb.h: Likewise.
13606         * include/netinet/in.h: Likewise.
13607         * include/pthread.h: Likewise.
13608         * include/pwd.h: Likewise.
13609         * include/regex.h: Likewise.
13610         * include/sched.h: Likewise.
13611         * include/search.h: Likewise.
13612         * include/setjmp.h: Likewise.
13613         * include/signal.h: Likewise.
13614         * include/stdio.h: Likewise.
13615         * include/stdlib.h: Likewise.
13616         * include/string.h: Likewise.
13617         * include/sys/cdefs.h: Likewise.
13618         * include/sys/mman.h: Likewise.
13619         * include/sys/msg.h: Likewise.
13620         * include/sys/resource.h: Likewise.
13621         * include/sys/select.h: Likewise.
13622         * include/sys/socket.h: Likewise.
13623         * include/sys/stat.h: Likewise.
13624         * include/sys/statvfs.h: Likewise.
13625         * include/sys/time.h: Likewise.
13626         * include/sys/times.h: Likewise.
13627         * include/sys/uio.h: Likewise.
13628         * include/sys/utsname.h: Likewise.
13629         * include/sys/wait.h: Likewise.
13630         * include/termios.h: Likewise.
13631         * include/time.h: Likewise.
13632         * include/ulimit.h: Likewise.
13633         * include/unistd.h: Likewise.
13634         * include/utime.h: Likewise.
13635         * include/wchar.h: Likewise.
13636         * include/wctype.h: Likewise.
13637         * include/wordexp.h: Likewise.
13638
13639         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13640
13641         * time/time.h: TIME_UTC must be a macro.
13642         Make timespec_get available for ISO C11 only as well.
13643
13644 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13645
13646         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13647         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13648
13649 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13650
13651         * configure.in: Use -o not -a in test for unsupported multi-arch.
13652
13653 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13654
13655         * manual/texinfo.tex: Update to version 2012-01-19.16.
13656
13657 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13658
13659         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13660
13661 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13662
13663         [BZ #13738]
13664         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13665         * manual/fdl-1.3.texi: New file.
13666         * manual/fdl-1.1.texi: File removed.
13667
13668         [BZ #13738]
13669         * manual/libc.texinfo (FDL_VERSION): New @set.
13670         Use it for mention of FDL in cover text.
13671         (Documentation License): Use it in @include file name.
13672
13673 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13674             Roland McGrath  <roland@hack.frob.com>
13675
13676         [BZ #5461]
13677         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13678         not LONG_LONG_MAX and LONG_LONG_MIN.
13679         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13680         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13681         name.
13682         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13683
13684 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13685
13686         [BZ #2547]
13687         [BZ #11365]
13688         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13689         manipulate bits before adding and subtracting TWO23[sx].
13690         * math/libm-test.inc (nearbyint_test): Add more tests.
13691
13692 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13693
13694         [BZ #2548]
13695         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13696         bits before adding and subtracting TWO23[sx].
13697         * math/libm-test.inc (rint_test): Add more tests.
13698         (rint_test_tonearest): Likewise.
13699         (rint_test_towardzero): Likewise.
13700         (rint_test_downward): Likewise.
13701         (rint_test_upward: Likewise.
13702
13703 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13704
13705         [BZ #10110]
13706         * include/stdc-predef.h: New file.  Extracted from features.h.
13707         * include/features.h: Include stdc-predef.h.
13708         * Makefile (headers): Add stdc-predef.h.
13709         * CONFORMANCE (Compiler limitations): Update.
13710
13711 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13712
13713         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13714
13715 2012-02-21  David S. Miller  <davem@davemloft.net>
13716
13717         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13718         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13719
13720 2012-02-20  David S. Miller  <davem@davemloft.net>
13721
13722         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13723         using a normal save/restore sequence, rather than allocating a
13724         dummy stack frame just to store a frame pointer and restore.
13725         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13726
13727 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13728
13729         * manual/install.texi: Fix stray word in line-wrapped comment.
13730
13731 2012-02-20  David S. Miller  <davem@davemloft.net>
13732
13733         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13734         both binutils and gcc support GOTDATA.
13735
13736         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13737         "rd %pc" in the PIC register setup sequences.
13738
13739         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13740         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13741         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13742         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13743         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13744         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13745         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13746         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13747         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13748         (SYSCALL_ERROR_HANDLER): Likewise.
13749         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13750         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13751         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13752         (SYSCALL_ERROR_HANDLER): Likewise.
13753
13754         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13755         (HAVE_GCC_GOTDATA): New.
13756         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13757         relocation support in both binutils and gcc.
13758         * sysdeps/sparc/elf/configure: Regenerate.
13759
13760         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13761         * sysdeps/sparc/sparc32/elf/configure: Delete.
13762         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13763         * sysdeps/sparc/sparc64/elf/configure: Delete.
13764         * sysdeps/sparc/elf/configure.in: New file.
13765         * sysdeps/sparc/elf/configure: Generate.
13766
13767         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13768         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13769         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13770         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13771         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13772
13773 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13774
13775         * manual/install.texi: Do not mention specific glibc version
13776         numbers.
13777         * manual/libc.texinfo (VERSION, UPDATED): Update.
13778         (@copying): Use @copyright{} and range of years.
13779
13780 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13781
13782         [BZ #13695]
13783         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13784         [crti.S not in sysdirs] (generated): Do not append.
13785         [crti.S not in sysdirs] (omit-deps): Likewise.
13786         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13787         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13788         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13789         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13790         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13791         Likewise.
13792         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13793         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13794         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13795         * csu/defs.awk: Remove file.
13796         * sysdeps/generic/initfini.c: Likewise.
13797         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13798         variable.
13799         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13800         Likewise.
13801
13802 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13803
13804         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13805         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13806         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13807         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13808         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13809         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13810         <bits/epoll.h>.
13811         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13812         (__EPOLL_PACKED): Define to empty if not defined by
13813         <bits/epoll.h>.
13814         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13815         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13816         bits/epoll.h.
13817
13818 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13819
13820         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13821         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13822         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13823         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13824         <bits/timerfd.h>.
13825         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13826         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13827         bits/timerfd.h.
13828
13829 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13830
13831         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13832         in C locale.
13833         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13834         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13835         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13837
13838 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13839
13840         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13841         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13842
13843 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13844
13845         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13846         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13847         defined.
13848         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13849         Likewise.
13850         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13851         entry for 2.16.
13852
13853 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13854
13855         * math/w_acos.c: Use non-signaling floating-point comparisons.
13856         * math/w_acosf.c: Likewise.
13857         * math/w_acosh.c: Likewise.
13858         * math/w_acoshf.c: Likewise.
13859         * math/w_acoshl.c: Likewise.
13860         * math/w_acosl.c: Likewise.
13861         * math/w_asin.c: Likewise.
13862         * math/w_asinf.c: Likewise.
13863         * math/w_asinl.c: Likewise.
13864         * math/w_atanh.c: Likewise.
13865         * math/w_atanhf.c: Likewise.
13866         * math/w_atanhl.c: Likewise.
13867         * math/w_exp2.c: Likewise.
13868         * math/w_exp2f.c: Likewise.
13869         * math/w_exp2l.c: Likewise.
13870         * math/w_j0.c: Likewise.
13871         * math/w_j0f.c: Likewise.
13872         * math/w_j0l.c: Likewise.
13873         * math/w_j1.c: Likewise.
13874         * math/w_j1f.c: Likewise.
13875         * math/w_j1l.c: Likewise.
13876         * math/w_jn.c: Likewise.
13877         * math/w_jnf.c: Likewise.
13878         * math/w_log.c: Likewise.
13879         * math/w_log10.c: Likewise.
13880         * math/w_log10f.c: Likewise.
13881         * math/w_log10l.c: Likewise.
13882         * math/w_log2.c: Likewise.
13883         * math/w_log2f.c: Likewise.
13884         * math/w_log2l.c: Likewise.
13885         * math/w_logf.c: Likewise.
13886         * math/w_logl.c: Likewise.
13887         * math/w_sqrt.c: Likewise.
13888         * math/w_sqrtf.c: Likewise.
13889         * math/w_sqrtl.c: Likewise.
13890         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13891         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13892         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13893         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13894         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13895
13896 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13897
13898         [BZ #9739]
13899         * manual/string.texi (strnlen): Use correct parameter name in
13900         equivalent expression.
13901
13902 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13903
13904         [BZ #11174]
13905         * manual/users.texi (seteuid): Consistently use neweuid for
13906         argument name.
13907
13908 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13909
13910         [BZ #13704]
13911         * manual/nss.texi (Services in the NSS configuration): Correct
13912         list of services in example configuration file.
13913
13914 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
13915
13916         [BZ #11322]
13917         * manual/arith.texi: Remove statements about negative zero
13918         behaving identically to zero.
13919
13920 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13921
13922         [BZ #5993]
13923         * manual/install.texi: Do not document upgrading from libc5.
13924
13925 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13926
13927         [BZ #4596]
13928         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
13929
13930 2012-02-18  David S. Miller  <davem@davemloft.net>
13931
13932         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
13933         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
13934         %o7 across the call.
13935         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
13936         instead.
13937         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
13938         SETUP_PIC_REG_LEAF.
13939         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13940         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13941         * sysdeps/sparc/crtn.S: Likewise.
13942
13943 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13944
13945         * aout/Makefile: Remove.
13946
13947 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13948
13949         [BZ #13058]
13950         * manual/examples/argp-ex1.c (main): Format definition in GNU
13951         style.
13952         * manual/examples/argp-ex2.c (main): Likewise.
13953         * manual/examples/argp-ex3.c (main): Likewise.
13954         * manual/examples/argp-ex4.c (main): Likewise.
13955         * manual/examples/longopt.c (main): Use new-style prototype
13956         definition.
13957         * manual/examples/strncat.c (main): Specify return type and use
13958         (void) for arguments.
13959         * manual/examples/subopt.c (main): Use char **argv argument.
13960
13961 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13962
13963         [BZ #5077]
13964         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13965         rounding modes.
13966
13967 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13968
13969         [BZ #6907]
13970         * manual/string.texi (strchr): Change when strchrnul is
13971         recommended.
13972
13973 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13974
13975         [BZ #174]
13976         * manual/locale.texi (setlocale): Document LOCPATH.
13977
13978 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13979
13980         [BZ #10210]
13981         * manual/process.texi (execle): Move @dots{} before last argument.
13982
13983 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13984
13985         [BZ #12047]
13986         * manual/charset.texi (Generic Charset Conversion): Fix typo
13987         (LC_TYPE -> LC_CTYPE).
13988
13989 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13990
13991         [BZ #5805]
13992         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13993         (scalbnf): Likewise.
13994         (scalbnl): Likewise.
13995         (scalbln): Likewise.
13996         (scalblnf): Likewise.
13997         (scalblnl): Likewise.
13998         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13999         (vwarnx): Likewise.
14000         (verr): Likewise.
14001         (verrx): Likewise.
14002         * manual/filesys.texi (telldir): Use braces around return type.
14003         * manual/llio.texi (mmap): Add space after comma.
14004         (mmap64): Likewise.
14005         * manual/math.texi (jn): Use @var{} on parameter names.
14006         (jnf): Likewise.
14007         (jnl): Likewise.
14008         (yn): Likewise.
14009         (ynf): Likewise.
14010         (ynl): Likewise.
14011         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14012         line.
14013         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14014         "...".
14015         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14016         (sched_get_priority_max): Likewise.
14017         * manual/signal.texi (sigvec): Add space after comma.
14018         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14019         names.
14020         (if_indextoname): Likewise.
14021         (if_freenameindex): Likewise.
14022         (sendto): Use ',' instead of '.' in prototype.
14023         * manual/startup.texi (syscall): Use @dots{} instead of literal
14024         "...".
14025         * manual/stdio.texi (__fpending): Separate initial words of
14026         paragraph from @deftypefun line.
14027         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14028         "...".
14029         (vsyslog): Use @var{} on parameter names.
14030         * manual/terminal.texi (stty): Use @var{} on parameter names.
14031         * manual/users.texi (getutmp): Use @var{} on parameter names.
14032         (getutmpx): Likewise.
14033
14034 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14035
14036         [BZ #6884]
14037         * manual/stdio.texi (fopen): Fix typos in description of
14038         ",ccs=STRING".
14039
14040 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14041
14042         [BZ #4026]
14043         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14044         get clock_id definition.
14045
14046 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14047
14048         [BZ #4822]
14049         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14050         (madvise): Cast every argument to void on its own.
14051
14052 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14053
14054         [BZ #9902]
14055         * manual/startup.texi (Exit Status): Fix typo.
14056
14057 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14058
14059         [BZ #10140]
14060         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14061         * manual/examples/argp-ex2.c: Likewise.
14062         * manual/examples/argp-ex3.c: Likewise.
14063
14064 2012-02-16  Richard Henderson  <rth@redhat.com>
14065
14066         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14067         * sysdeps/s390/s390-32/initfini.c: Remove.
14068         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14069         * sysdeps/s390/s390-64/initfini.c: Remove.
14070
14071 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14072
14073         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14074         compiler output for sysdeps/generic/initfini.c.
14075         * sysdeps/sh/elf/initfini.c: Remove file.
14076
14077 2012-02-16  David S. Miller  <davem@davemloft.net>
14078
14079         [BZ #11494]
14080         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14081
14082         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14083         * sysdeps/sparc/crti.S: New file.
14084         * sysdeps/sparc/crtn.S: New file.
14085         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14086         * sysdeps/sparc/sparc64/Makefile: Likewise.
14087
14088 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14089
14090         [BZ #3335]
14091         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14092
14093 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14094
14095         [BZ #4822]
14096         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14097
14098         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14099         (write, read, close): Likewise.
14100         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14101
14102 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14103
14104         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14105         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14106         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14107         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14108         <bits/signalfd.h>.
14109         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14110         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14111         bits/signalfd.h.
14112
14113 2012-02-14  Marek Polacek  <polacek@redhat.com>
14114
14115         * sysdeps/x86_64/crti.S: New file.
14116         * sysdeps/x86_64/crtn.S: New file.
14117         * sysdeps/x86_64/elf/initfini.c: Remove file.
14118
14119 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14120
14121         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14122         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14123         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14124         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14125         <bits/inotify.h>.
14126         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14127         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14128         bits/inotify.h.
14129
14130 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14131
14132         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14133         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14134         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14135         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14136         <bits/eventfd.h>.
14137         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14138         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14139         bits/eventfd.h.
14140
14141 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14142
14143         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14144         __feraiseexcept instead of feraiseexcept.
14145
14146         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14147         nanosleep invocations.
14148         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14149         strings, and add error checking for a nanosleep invocations.
14150
14151 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14152
14153         Replace FSF snail mail address with URLs, as per GNU coding standards.
14154         Most of the snail mail addresses were wrong anyway, and omitting
14155         them makes the source code easier to maintain.  Almost all of the
14156         changes are to license notices and to locale LC_IDENTIFICATION
14157         addresses, except for this one:
14158         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14159         not its snail mail address.
14160
14161 2012-02-09  Richard Henderson  <rth@twiddle.net>
14162
14163         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14164         of kernel-features.h.
14165
14166         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14167
14168 2012-02-08  Marek Polacek  <polacek@redhat.com>
14169
14170         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14171         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14172         * sysdeps/gnu/_G_config.h: Likewise.
14173         * sysdeps/generic/_G_config.h: Likewise.
14174
14175 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14176
14177         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14178         tests.
14179         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14180
14181         * sysdeps/powerpc/powerpc32/crti.S: New file.
14182         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14183         * sysdeps/powerpc/powerpc64/crti.S: New file.
14184         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14185
14186         * Makeconfig (have-initfini): Don't set.
14187         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14188         * configure.in (nopic_initfini): Don't substitute.
14189         * config.h.in (HAVE_INITFINI): Don't #undef.
14190         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14191         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14192
14193 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14194
14195         Support crti.S and crtn.S provided directly by architectures.
14196         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14197         [crti.S in sysdirs] (omit-deps): Likewise.
14198         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14199         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14200         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14201         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14202         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14203         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14204         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14205         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14206         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14207         compiler output for sysdeps/generic/initfini.c.
14208         * sysdeps/i386/elf/Makefile: Remove file.
14209         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14210
14211 2012-02-07  Marek Polacek  <polacek@redhat.com>
14212
14213         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14214         * sysdeps/gnu/_G_config.h: Likewise.
14215         * sysdeps/mach/hurd/_G_config.h: Likewise.
14216
14217 2012-02-07  Marek Polacek  <polacek@redhat.com>
14218
14219         * math/Makefile (tests): Add tst-CMPLX2.
14220         * math/tst-CMPLX2.c: New file.
14221
14222 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14223
14224         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14225
14226         * math/libm-test.inc (jn_test): Add missing L suffix.
14227
14228 2012-02-06  Marek Polacek  <polacek@redhat.com>
14229
14230         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14231         * sysdeps/i386/fpu/e_powf.S: Likewise.
14232         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14233         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14234         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14235         * sysdeps/i386/fpu/e_pow.S: Likewise.
14236         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14237         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14238         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14239         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14240         * sysdeps/i386/fpu/e_log2.S: Likewise.
14241         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14242         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14243         * sysdeps/i386/fpu/e_powl.S: Likewise.
14244         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14245         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14246         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14247         * sysdeps/i386/fpu/e_logl.S: Likewise.
14248         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14249         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14250         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14251         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14252         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14253         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14254         * sysdeps/i386/fpu/e_log.S: Likewise.
14255         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14256         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14257         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14258         * sysdeps/i386/fpu/e_logf.S: Likewise.
14259         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14260         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14261         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14262         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14263         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14264         * sysdeps/i386/fpu/e_log10.S: Likewise.
14265         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14266         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14267         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14268         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14269         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14270         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14271         * sysdeps/i386/asm-syntax.h: Likewise.
14272         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14273         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14274         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14275         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14276         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14277         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14278         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14279         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14280         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14281         * sysdeps/powerpc/sysdep.h: Likewise.
14282         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14283         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14284
14285 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14286
14287         [BZ #411]
14288         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14289
14290 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14291
14292         * sysdeps/i386/sysdep.h: Include <features.h>.
14293         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14294         version.
14295
14296 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14297
14298         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14299         Define.
14300         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14301         LOAD_PIC_REG_STR.
14302
14303 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14304
14305         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14306         (SETUP_PIC_REG): Use GET_PC_THUNK.
14307         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14308         macro.
14309
14310 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14311
14312         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14313         for non-PIC compilation.
14314         (SETUP_PIC_REG): Add .p2align directive.
14315         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14316         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14317         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14318         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14319         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14320         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14321         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14322         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14323         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14324         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14325         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14326         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14327         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14328         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14329         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14330         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14331         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14332         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14333         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14334         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14335         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14336         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14337         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14338         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14339         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14340         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14341         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14342         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14343         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14344         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14345         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14346         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14347         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14348         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14349         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14350         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14351         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14352         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14353         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14354         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14355         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14356
14357 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14358
14359         * math/tst-CMPLX.c: Include <stdio.h>.
14360
14361 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14362
14363         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14364         float.
14365         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14366         * sysdeps/sparc/bits/mathdef.h: Likewise.
14367
14368 2012-01-31  Marek Polacek  <polacek@redhat.com>
14369
14370         * libio/libio.h: Don't define _PARAMS.
14371         * locale/programs/config.h: Don't define PARAMS.
14372         * stdlib/strtol_l.c: Likewise.
14373         (__strtol_l): Remove PARAMS from the prototype.
14374
14375 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14376
14377         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14378         names.  Just use the correct names.  Remove unnecessary wrapper
14379         functions.
14380         * malloc/arena.c: Likewise.
14381         * malloc/hooks.c: Likewise.
14382
14383         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14384         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14385         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14386
14387 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14388
14389         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14390         into tail calls.
14391         (update_get_addr): New function.
14392         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14393         GET_ADDR_MODULE parameter.
14394
14395 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14396
14397         * crypt/cert.c: Remove __STDC__ conditionals.
14398         * crypt/crypt-entry.c: Likewise.
14399         * crypt/crypt_util.c: Likewise.
14400         * libio/filedoalloc.c: Likewise.
14401         * libio/fileops.c: Likewise.
14402         * libio/genops.c: Likewise.
14403         * libio/iofclose.c: Likewise.
14404         * libio/iofdopen.c: Likewise.
14405         * libio/iofopen.c: Likewise.
14406         * libio/iofopen64.c: Likewise.
14407         * libio/iogetdelim.c: Likewise.
14408         * libio/iopopen.c: Likewise.
14409         * libio/obprintf.c: Likewise.
14410         * libio/oldfileops.c: Likewise.
14411         * libio/oldiofclose.c: Likewise.
14412         * libio/oldiofdopen.c: Likewise.
14413         * libio/oldiofopen.c: Likewise.
14414         * libio/oldiopopen.c: Likewise.
14415         * libio/wfiledoalloc.c: Likewise.
14416         * libio/wgenops.c: Likewise.
14417         * locale/programs/xmalloc.c: Likewise.
14418         * misc/syslog.c: Likewise.
14419         * stdio-common/xbug.c: Likewise.
14420         * string/memchr.c: Likewise.
14421         * string/memcmp.c: Likewise.
14422         * string/memrchr.c: Likewise.
14423         * string/rawmemchr.c: Likewise.
14424         * sysdeps/posix/getcwd.c: Likewise.
14425         * time/strftime_l.c: Likewise.
14426
14427 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14428
14429         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14430         * config.make.in (config-cflags-sse2avx): Define.
14431         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14432         Fix typo.
14433
14434 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14435
14436         * scripts/config.guess: Update from upstream config git repository.
14437         * scripts/config.sub: Likewise.
14438
14439 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14440
14441         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14442         (EM_NUM): Update.
14443         (R_TILEPRO_*, R_TILEGX_*): New macros.
14444
14445         * scripts/firstversions.awk: Fix bug in version range handling.
14446
14447         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14448
14449         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14450
14451         * include/sys/epoll.h: New file.
14452         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14453         libc_hidden_def.
14454
14455 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14456
14457         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14458         Avoid unnecessary __WORDSIZE == 64 test.
14459         (fmaxf): Use VEX format if possible.
14460         (fmax): Likewise.
14461         (fminf): Likewise.
14462         (fmin): Likewise.
14463
14464         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14465         * math/math_private.h: Remove libc_fegetround* and
14466         libc_fesetround*.
14467         * sysdeps/i386/configure.in: Check for -msse2avx.
14468         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14469         also if SSE2AVX is defined.
14470         Remove libc_fegetround* and libc_fesetround*.
14471         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14472         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14473         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14474         of HAS_YMM_USABLE.
14475         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14476         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14477         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14478         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14479         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14480
14481         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14482
14483 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14484
14485         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14486         size is not set.
14487         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14488
14489 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14490
14491         [BZ #13618]
14492         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14493         relocation.
14494         * Makeconfig (libm): Define.
14495         * elf/Makefile: Add rules to build and run tst-relsort1.
14496         * elf/tst-relsort1.c: New file.
14497         * elf/tst-relsort1mod1.c: New file.
14498         * elf/tst-relsort1mod2.c: New file.
14499
14500 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14501
14502         * math/s_ldexp.c: Remove __STDC__ conditionals.
14503         * math/s_ldexpf.c: Likewise.
14504         * math/s_ldexpl.c: Likewise.
14505         * math/s_nextafter.c: Likewise.
14506         * math/s_nexttowardf.c: Likewise.
14507         * math/s_significand.c: Likewise.
14508         * math/s_significandf.c: Likewise.
14509         * math/s_significandl.c: Likewise.
14510         * math/w_jnl.c: Likewise.
14511         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14512         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14513         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14514         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14515         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14516         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14517         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14518         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14519         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14520         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14521         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14522         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14523         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14524         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14525         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14526         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14527         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14528         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14529         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14530         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14531         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14532         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14533         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14534         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14535         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14536         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14537         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14538         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14539         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14540         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14541         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14542         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14543         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14544         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14545         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14546         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14547         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14548         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14549         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14550         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14551         * sysdeps/ieee754/k_standard.c: Likewise.
14552         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14553         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14554         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14555         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14556         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14557         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14558         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14559         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14560         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14561         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14562         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14563         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14564         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14565         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14566         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14567         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14568         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14569         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14570         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14571         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14572         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14573         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14574         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14575         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14576         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14577         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14578         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14579         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14580         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14581         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14582         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14583         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14584         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14585         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14586         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14587         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14588         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14589         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14590         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14591         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14592         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14593         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14594         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14595         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14596         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14597         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14598         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14599         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14600         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14601         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14602         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14603         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14604         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14605         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14606         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14607         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14608         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14609         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14610         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14611         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14612         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14613         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14614         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14615         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14616         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14617         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14618         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14619         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14620         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14621         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14622         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14623         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14624         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14625         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14626         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14627         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14628         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14629         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14630         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14631         * sysdeps/ieee754/s_matherr.c: Likewise.
14632         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14633         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14634         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14635         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14636
14637 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14638
14639         * crypt/md5.h: Remove __STDC__ conditionals.
14640         * libio/libioP.h: Likewise.
14641         * locale/programs/config.h: Likewise.
14642         * sysdeps/generic/sysdep.h: Likewise.
14643         * sysdeps/i386/asm-syntax.h: Likewise.
14644         * sysdeps/s390/asm-syntax.h: Likewise.
14645         * sysdeps/unix/sysdep.h: Likewise.
14646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14648
14649 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14650
14651         * libio/libio.h: Remove __STDC__ conditionals.
14652         * malloc/obstack.h: Likewise.
14653         * math/complex.h: Likewise.
14654         * math/math.h: Likewise.
14655         * sysdeps/generic/_G_config.h: Likewise.
14656         * sysdeps/gnu/_G_config.h: Likewise.
14657         * sysdeps/mach/hurd/_G_config.h: Likewise.
14658         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14659         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14660         * sysdeps/sparc/bits/mathdef.h: Likewise.
14661
14662 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14663
14664         [BZ #13583]
14665         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14666         Clean up HAS_* macros.
14667         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14668         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14669         possible.
14670         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14671         HAS_AVX.
14672         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14673         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14674         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14675         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14676         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14677
14678 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14679
14680         * elf/tst-unique3.cc (gets): Remove declaration.
14681         * elf/tst-unique3lib.cc (gets): Likewise.
14682         * elf/tst-unique3lib2.cc (gets): Likewise.
14683         * elf/tst-unique4.cc (gets): Likewise.
14684
14685 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14686
14687         * include/stdio.h: Add C++ protection.  Add gets declarations and
14688         definitions.
14689         * debug/tst-chk1.c: Don't declare gets here.
14690         * stdio-common/tst-gets.c: Likewise.
14691
14692 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14693
14694         * posix/glob: Remove directory.
14695
14696 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14697
14698         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14699
14700 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14701
14702         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14703         of the non-standard EPFNOSUPPORT.
14704
14705 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14706
14707         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14708         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14709         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14710
14711 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14712
14713         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14714
14715 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14716
14717         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14718         transient errors.
14719         * nscd/grpcache.c (cache_addgr): Likewise.
14720         * nscd/hstcache.c (cache_addhst): Likewise.
14721         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14722         * nscd/pwdcache.c (cache_addpw): Likewise.
14723         * nscd/servicescache.c (cache_addserv): Likewise.
14724
14725 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14726
14727         * malloc/malloc.c: Various cleanups.
14728         * malloc/hooks.c: Likewise.
14729
14730         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14731         * stdlib/bug-fmtmsg1.c: New file.
14732
14733         * stdlib/fmtmsg.c (init): Add missing unlock.
14734         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14735
14736 2012-01-12  Marek Polacek  <polacek@redhat.com>
14737
14738         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14739         and _GNU_SOURCE.
14740
14741 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14742
14743         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14744         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14745         macro to ensure uniqueness of label name.
14746         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14747         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14748
14749 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14750
14751         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14752
14753         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14754         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14755         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14756         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14757
14758 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14759
14760         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14761
14762         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14763         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14764         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14765
14766         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14767
14768         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14769         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14770         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14771         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14772
14773         * math/bits/math-finite.h: Add ldexp support.
14774
14775 2012-01-10  Marek Polacek  <polacek@redhat.com>
14776
14777         * locale/programs/localedef.h (show_archive_content): Add noreturn
14778         attribute.
14779
14780 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14781
14782         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14783
14784 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14785
14786         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14787
14788         * io/Makefile (headers): Add bits/poll2.h.
14789
14790 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14791
14792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14793         typo #include statement.
14794
14795 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14796
14797         * include/sys/cdefs.h: Define __attribute_alloc_size.
14798         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14799         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14800         * elf/pldd.c: Likewise.
14801         * iconv/iconv_charmap.c: Likewise.
14802         * iconv/iconvconfig.c: Likewise.
14803         * iconv/strtab.c: Likewise.
14804         * locale/programs/locale.c: Likewise.
14805         * locale/programs/localedef.h: Likewise.
14806         * locale/programs/simple-hash.c: Likewise.
14807         * nscd/nscd.h: Likewise.
14808         * nss/makedb.c: Likewise.
14809         * sysdeps/generic/ldconfig.h: Likewise.
14810         * locale/programs/localedef.c: Remove xmalloc prototype.
14811         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14812
14813 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14814
14815         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14816         appropriate.
14817
14818 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14819
14820         * math/Makefile (tests): Add tst-CMPLX.
14821         * math/tst-CMPLX.c: New file.
14822
14823         * math/complex.h (CMPLXL): Fix typo.
14824
14825         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14826         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14827         GLIBC_2.16.
14828         * debug/tst-chk1.c: Add poll and ppoll tests.
14829         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14830         * include/sys/poll.h: Add hidden proto for ppoll.
14831         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14832         * sysdeps/mach/hurd/ppoll.c: Likewise.
14833         * io/ppoll.c: Likewise.
14834         * debug/poll_chk.c: New file.
14835         * debug/ppoll_chk.c: New file.
14836         * include/bits/poll2.h: New file.
14837         * io/bits/poll2.h: New file.
14838
14839         [BZ #1350]
14840         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14841
14842         * configure.in: static is always set to yes.  Remove.
14843         * config.make.in: Don't set build-static.
14844         * Makeconfig: Remove use of build-static.
14845         * dlfcn/Makefile: Likewise.
14846         * elf/Makefile: Likewise.
14847         * math/Makefile: Likewise.
14848         * misc/Makefile: Likewise.
14849         * nptl/Makefile: Likewise.
14850         * sysdeps/mach/hurd/Makefile: Likewise.
14851
14852         * configure.in: PWD_P is not used anymore.
14853         * config.make.in: Remove PWD_P entry.
14854
14855         * configure.in: Remove last remnants of RANLIB.
14856         No need to check for signed size_t anymore.
14857         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14858         and IA-64.
14859         Remove __builtin_expect test because we require at least gcc 3.4.
14860         * aclocal.m4: Likewise.
14861
14862         * wcsmbs/mbrtoc16.c: Implement using towc function.
14863         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14864         * wcsmbs/wcsmbsload.c: Likewise.
14865         * iconv/gconv_simple.c: Likewise.
14866         * iconv/gconv_int.h: Likewise.
14867         * iconv/gconv_builtin.h: Likewise.
14868         * iconv/iconv_prog.c: Remove CHAR16 handling.
14869
14870         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14871
14872         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14873
14874         * configure.in: Remove --with-elf and --enable-bounded options.
14875         Dont set base_machine for ia64.  More non-ELF conditions removed.
14876         Remove testing and setting of leading underscore information.
14877         * config.make.in (build-bounded): Set to no.
14878         * config.h.in: Remove NO_UNDERSCORES entry.
14879         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14880         them.
14881         * csu/start.c: Remove !NO_UNDERSCORE code.
14882         * locale/localeinfo.h: Likewise.
14883         * sysdeps/generic/machine-gmon.h: Likewise.
14884         * sysdeps/generic/sysdep.h: Likewise.
14885         * sysdeps/i386/sysdep.h: Likewise.
14886         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14887         * sysdeps/mach/sysdep.h: Likewise.
14888         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14889         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14890         * sysdeps/sh/sysdep.h: Likewise.
14891         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14892         * sysdeps/unix/i386/sysdep.S: Likewise.
14893         * sysdeps/unix/sparc/start.c: Likewise.
14894         * sysdeps/unix/sparc/sysdep.S: Likewise.
14895         * sysdeps/unix/sparc/sysdep.h: Likewise.
14896         * sysdeps/unix/start.c: Likewise.
14897         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14898         * sysdeps/x86_64/sysdep.h: Likewise.
14899
14900 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14901
14902         [BZ #13553]
14903         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14904         for non-gcc.
14905         * argp/argp-fmtstream.h: Use const instead __const.
14906         * argp/argp.h: Likewise.
14907         * assert/assert.h: Likewise.
14908         * bits/fenv.h: Likewise.
14909         * bits/sched.h: Likewise.
14910         * bits/sigset.h: Likewise.
14911         * bits/sigthread.h: Likewise.
14912         * catgets/nl_types.h: Likewise.
14913         * conform/data/pthread.h-data: Likewise.
14914         * crypt/crypt-private.h: Likewise.
14915         * crypt/crypt.h: Likewise.
14916         * crypt/crypt_util.c: Likewise.
14917         * ctype/ctype.h: Likewise.
14918         * debug/execinfo.h: Likewise.
14919         * debug/mbsnrtowcs_chk.c: Likewise.
14920         * debug/mbsrtowcs_chk.c: Likewise.
14921         * debug/wcsnrtombs_chk.c: Likewise.
14922         * debug/wcsrtombs_chk.c: Likewise.
14923         * debug/wcstombs_chk.c: Likewise.
14924         * dirent/dirent.h: Likewise.
14925         * dlfcn/dlfcn.h: Likewise.
14926         * elf/neededtest4.c: Likewise.
14927         * grp/grp.h: Likewise.
14928         * gshadow/gshadow.h: Likewise.
14929         * iconv/gconv.h: Likewise.
14930         * iconv/gconv_int.h: Likewise.
14931         * iconv/gconv_simple.c: Likewise.
14932         * iconv/iconv.h: Likewise.
14933         * iconv/loop.c: Likewise.
14934         * iconv/skeleton.c: Likewise.
14935         * include/aio.h: Likewise.
14936         * include/aliases.h: Likewise.
14937         * include/argz.h: Likewise.
14938         * include/arpa/inet.h: Likewise.
14939         * include/assert.h: Likewise.
14940         * include/dirent.h: Likewise.
14941         * include/dlfcn.h: Likewise.
14942         * include/execinfo.h: Likewise.
14943         * include/fcntl.h: Likewise.
14944         * include/fenv.h: Likewise.
14945         * include/glob.h: Likewise.
14946         * include/grp.h: Likewise.
14947         * include/libintl.h: Likewise.
14948         * include/mntent.h: Likewise.
14949         * include/netdb.h: Likewise.
14950         * include/pwd.h: Likewise.
14951         * include/rpc/netdb.h: Likewise.
14952         * include/sched.h: Likewise.
14953         * include/search.h: Likewise.
14954         * include/shadow.h: Likewise.
14955         * include/signal.h: Likewise.
14956         * include/stdio.h: Likewise.
14957         * include/stdlib.h: Likewise.
14958         * include/string.h: Likewise.
14959         * include/sys/socket.h: Likewise.
14960         * include/sys/stat.h: Likewise.
14961         * include/sys/statfs.h: Likewise.
14962         * include/sys/statvfs.h: Likewise.
14963         * include/sys/syslog.h: Likewise.
14964         * include/sys/time.h: Likewise.
14965         * include/sys/uio.h: Likewise.
14966         * include/time.h: Likewise.
14967         * include/unistd.h: Likewise.
14968         * include/utmp.h: Likewise.
14969         * include/wchar.h: Likewise.
14970         * include/wctype.h: Likewise.
14971         * inet/aliases.h: Likewise.
14972         * inet/arpa/inet.h: Likewise.
14973         * inet/netinet/ether.h: Likewise.
14974         * inet/netinet/in.h: Likewise.
14975         * intl/libintl.h: Likewise.
14976         * io/bits/fcntl2.h: Likewise.
14977         * io/fcntl.h: Likewise.
14978         * io/ftw.h: Likewise.
14979         * io/sys/poll.h: Likewise.
14980         * io/sys/stat.h: Likewise.
14981         * io/sys/statfs.h: Likewise.
14982         * io/sys/statvfs.h: Likewise.
14983         * io/utime.h: Likewise.
14984         * libio/bits/stdio.h: Likewise.
14985         * libio/bits/stdio2.h: Likewise.
14986         * libio/libio.h: Likewise.
14987         * libio/libioP.h: Likewise.
14988         * libio/stdio.h: Likewise.
14989         * locale/lc-ctype.c: Likewise.
14990         * locale/locale.h: Likewise.
14991         * login/utmp.h: Likewise.
14992         * malloc/arena.c: Likewise.
14993         * malloc/malloc.c: Likewise.
14994         * malloc/malloc.h: Likewise.
14995         * malloc/mcheck.c: Likewise.
14996         * malloc/mtrace.c: Likewise.
14997         * math/bits/mathcalls.h: Likewise.
14998         * math/fenv.h: Likewise.
14999         * math/math_private.h: Likewise.
15000         * misc/bits/error.h: Likewise.
15001         * misc/bits/syslog.h: Likewise.
15002         * misc/err.h: Likewise.
15003         * misc/error.h: Likewise.
15004         * misc/fstab.h: Likewise.
15005         * misc/mntent.h: Likewise.
15006         * misc/regexp.h: Likewise.
15007         * misc/search.h: Likewise.
15008         * misc/sgtty.h: Likewise.
15009         * misc/sys/mman.h: Likewise.
15010         * misc/sys/syslog.h: Likewise.
15011         * misc/sys/uio.h: Likewise.
15012         * misc/sys/xattr.h: Likewise.
15013         * misc/ttyent.h: Likewise.
15014         * nis/rpcsvc/ypclnt.h: Likewise.
15015         * nss/nss.h: Likewise.
15016         * posix/bits/unistd.h: Likewise.
15017         * posix/fnmatch.h: Likewise.
15018         * posix/glob.h: Likewise.
15019         * posix/sched.h: Likewise.
15020         * posix/spawn.h: Likewise.
15021         * posix/sys/wait.h: Likewise.
15022         * posix/unistd.h: Likewise.
15023         * posix/wordexp.h: Likewise.
15024         * pwd/pwd.h: Likewise.
15025         * resolv/netdb.h: Likewise.
15026         * resource/sys/resource.h: Likewise.
15027         * rt/aio.h: Likewise.
15028         * rt/bits/mqueue2.h: Likewise.
15029         * rt/mqueue.h: Likewise.
15030         * shadow/shadow.h: Likewise.
15031         * signal/signal.h: Likewise.
15032         * socket/send.c: Likewise.
15033         * socket/sendto.c: Likewise.
15034         * socket/sys/socket.h: Likewise.
15035         * stdio-common/printf.h: Likewise.
15036         * stdlib/bits/stdlib.h: Likewise.
15037         * stdlib/fmtmsg.h: Likewise.
15038         * stdlib/monetary.h: Likewise.
15039         * stdlib/stdlib.h: Likewise.
15040         * stdlib/ucontext.h: Likewise.
15041         * streams/stropts.h: Likewise.
15042         * string/argz.h: Likewise.
15043         * string/bits/string2.h: Likewise.
15044         * string/string.h: Likewise.
15045         * string/strings.h: Likewise.
15046         * sunrpc/rpc/auth.h: Likewise.
15047         * sunrpc/rpc/auth_des.h: Likewise.
15048         * sunrpc/rpc/clnt.h: Likewise.
15049         * sunrpc/rpc/netdb.h: Likewise.
15050         * sunrpc/rpc/pmap_clnt.h: Likewise.
15051         * sunrpc/rpc/xdr.h: Likewise.
15052         * sysdeps/generic/inttypes.h: Likewise.
15053         * sysdeps/generic/net/if.h: Likewise.
15054         * sysdeps/generic/sys/swap.h: Likewise.
15055         * sysdeps/gnu/net/if.h: Likewise.
15056         * sysdeps/gnu/utmpx.h: Likewise.
15057         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15058         * sysdeps/i386/i486/bits/string.h: Likewise.
15059         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15060         * sysdeps/s390/bits/string.h: Likewise.
15061         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15062         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15063         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15064         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15065         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15066         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15067         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15068         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15069         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15070         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15071         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15072         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15073         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15074         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15075         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15076         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15077         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15078         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15079         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15080         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15081         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15082         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15083         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15084         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15085         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15086         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15087         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15088         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15089         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15090         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15091         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15092         * sysvipc/sys/ipc.h: Likewise.
15093         * sysvipc/sys/msg.h: Likewise.
15094         * sysvipc/sys/sem.h: Likewise.
15095         * sysvipc/sys/shm.h: Likewise.
15096         * termios/termios.h: Likewise.
15097         * time/sys/time.h: Likewise.
15098         * time/time.h: Likewise.
15099         * wcsmbs/bits/wchar2.h: Likewise.
15100         * wcsmbs/uchar.h: Likewise.
15101         * wcsmbs/wchar.h: Likewise.
15102         * wctype/wctype.h: Likewise.
15103
15104         [BZ #13551]
15105         * Makeconfig: Remove all but ELF support including AIX support.
15106         * Makerules: Likewise.
15107         * config.h.in: Likewise.
15108         * config.make.in: Likewise.
15109         * configure: Likewise.
15110         * configure.in: Likewise.
15111         * csu/Makefile: Likewise.
15112         * csu/version.c: Likewise.
15113         * debug/Makefile: Likewise.
15114         * dlfcn/Makefile: Likewise.
15115         * elf/Makefile: Likewise.
15116         * extra-lib.mk: Likewise.
15117         * iconv/Makefile: Likewise.
15118         * include/libc-symbols.h: Likewise.
15119         * include/shlib-compat.h: Likewise.
15120         * resolv/Makefile: Likewise.
15121         * resolv/res_libc.c: Likewise.
15122         * rt/Makefile: Likewise.
15123         * sysdeps/i386/asm-syntax.h: Likewise.
15124         * sysdeps/i386/sysdep.h: Likewise.
15125         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15126         * sysdeps/mach/sysdep.h: Likewise.
15127         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15128         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15129         * sysdeps/s390/asm-syntax.h: Likewise.
15130         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15131         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15132         * sysdeps/sh/sysdep.h: Likewise.
15133         * sysdeps/unix/sparc/sysdep.h: Likewise.
15134         * sysdeps/wordsize-32/divdi3.c: Likewise.
15135         * sysdeps/x86_64/sysdep.h: Likewise.
15136
15137         * argp/Versions: Remove _argp_unlock_xxx.
15138
15139         [BZ #13559]
15140         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15141         * abilist/libBrokenLocale.abilist: Likewise.
15142         * abilist/libanl.abilist: Likewise.
15143         * abilist/libc.abilist: Likewise.
15144         * abilist/libcrypt.abilist: Likewise.
15145         * abilist/libdl.abilist: Likewise.
15146         * abilist/libm.abilist: Likewise.
15147         * abilist/libnsl.abilist: Likewise.
15148         * abilist/libpthread.abilist: Likewise.
15149         * abilist/libresolv.abilist: Likewise.
15150         * abilist/librt.abilist: Likewise.
15151         * abilist/libthread_db.abilist: Likewise.
15152         * abilist/libutil.abilist: Likewise.
15153         * abilist/libnss_db.abilist: New file.
15154
15155         * scripts/abilist.awk: Add support for indirect functions.
15156
15157         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15158
15159         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15160
15161         * shlib-versions: Remove entries for ports architectures.
15162
15163         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15164         files in ports.
15165         * elf/stackguard-macros.h: Remove support for IA-64.
15166         * elf/tst-auditmod1.c: Likewise.
15167         * sysdeps/generic/ldsodefs.h: Likewise.
15168
15169         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15170         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15171         configure files.
15172
15173         [BZ #13552]
15174         * configure.in: Remove --enable-omitfp support.
15175         * FAQ.in: Adjust.
15176         * config.make.in: Likewise.
15177         * Makeconfig: Likewise.
15178         * manual/install.texi: Likewise.
15179
15180         In case anyone cares, the IA-64 architecture could move to ports.
15181         * sysdeps/ia64/*: Removed.
15182         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15183         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15184
15185         [BZ #13555]
15186         * configure.in: Remove entries for unsupported architectures.
15187
15188         [BZ #13533]
15189         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15190         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15191         routines.
15192         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15193         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15194         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15195         fall back to using wcrtomb.
15196         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15197         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15198         renaming.
15199         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15200         * wcsmbs/tst-c16c32-1.c: New file.
15201
15202         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15203         local variable.
15204
15205         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15206
15207         * elf/tst-unique3.cc: Add explicit declaration of gets.
15208         * elf/tst-unique3lib.cc: Likewise.
15209         * elf/tst-unique3lib2.cc: Likewise.
15210         * elf/tst-unique4.cc: Likewise.
15211
15212         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15213
15214 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15215
15216         [BZ #13566]
15217         * assert/assert.h (static_assert): Don't define for C++.
15218         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15219         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15220
15221 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15222
15223         * iconv/loop.c (single loop): Fix assertion in storing of
15224         remaining bytes.
15225
15226         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15227
15228 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15229
15230         * posix/getconf.c: Update copyright year.
15231         * nss/getent.c: Likewise.
15232         * nss/makedb.c: Likewise.
15233         * iconv/iconvconfig.c: Likewise.
15234         * iconv/iconv_prog.c: Likewise.
15235         * elf/ldconfig.c: Likewise.
15236         * elf/pldd.c: Likewise.
15237         * elf/sotruss.ksh: Likewise.
15238         * catgets/gencat.c: Likewise.
15239         * csu/version.c: Likewise.
15240         * elf/ldd.bash.in: Likewise.
15241         * elf/sprof.c (print_version): Likewise.
15242         * locale/programs/locale.c: Likewise.
15243         * locale/programs/localedef.c: Likewise.
15244         * login/programs/pt_chown.c: Likewise.
15245         * nscd/nscd.c (print_version): Likewise.
15246         * debug/xtrace.sh: Likewise.
15247         * malloc/memusage.sh: Likewise.
15248         * malloc/mtrace.pl: Likewise.
15249         * debug/catchsegv.sh: Likewise.
15250
15251 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15252
15253         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15254         pure attribute.
15255
15256 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15257
15258         [BZ #13533]
15259         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15260         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15261         transformations.
15262         * iconv/gconv_int.h: Likewise.
15263         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15264         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15265         from libc for GLIBC_2.16.
15266         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15267         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15268         * wcsmbs/uchar.h: Really define mbstate_t.
15269         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15270         * wcsmbs/c16rtomb.c: New file.
15271         * wcsmbs/mbrtoc16.c: New file.
15272         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15273         for C/POSIX locale.
15274         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15275         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15276
15277         * wcsmbs/wchar.h: Add missing __restrict.
15278
15279 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15280
15281         [BZ #13532]
15282         * time/Makefile (routines): Add timespec_get.
15283         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15284         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15285         timespec for ISO C11.
15286         * time/timespec_get.c: New file.
15287         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15288         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15289
15290         [BZ #13531]
15291         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15292         * stdlib/stdlib.h: Declare aligned_alloc.
15293         * Versions.def: Add GLIBC_2.16 for libc.
15294         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15295
15296         [BZ 13527]
15297         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15298         ISO C11.
15299
15300         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15301         code.
15302
15303         [BZ #13528]
15304         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15305
15306         [BZ #13529]
15307         * assert/assert.h (static_assert): Define.
15308
15309         * version.h: Update for 2.16 development version.
15310
15311         [BZ #13526]
15312         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15313         _ISOC11_SOURCE.
15314
15315         * version.h (RELEASE): Bump for 2.15 release.
15316         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15317
15318         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15319         Patch by Marek Polacek <mpolacek@redhat.com>.
15320
15321         * bits/byteswap.h: Protect long long constants with __extension__.
15322         * sysdeps/i386/bits/byteswap.h: Likewise.
15323         * sysdeps/ia64/bits/byteswap.h: Likewise.
15324         * sysdeps/s390/bits/byteswap.h: Likewise.
15325         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15326
15327 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15328
15329         [BZ #13540]
15330         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15331         destination buffer.
15332         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15333
15334 2011-12-23  Marek Polacek  <polacek@redhat.com>
15335
15336         * elf/dl-addr.c (determine_info): Add inline keyword.
15337         * elf/tst-auditmod4b.c (check_avx): Likewise.
15338         * elf/tst-auditmod6b.c (check_avx): Likewise.
15339         * elf/tst-auditmod6c.c (check_avx): Likewise.
15340         * elf/tst-auditmod7b.c (check_avx): Likewise.
15341
15342 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15343
15344         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15345         !__SSE_MATH__.
15346
15347 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15348
15349         [BZ #13540]
15350         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15351         processing for last bytes.
15352
15353 2011-08-06  Bruno Haible  <bruno@clisp.org>
15354
15355         [BZ #13061]
15356         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15357         U+0385, not to U+1FEE.
15358
15359         [BZ #13062]
15360         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15361         entry for U+00A5 U+0301.
15362
15363 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15364
15365         [BZ #13166]
15366         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15367         buffer for the output is too small.
15368
15369         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15370         optimization.
15371
15372         [BZ #13185]
15373         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15374         SSE flags if possible.
15375
15376 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15377
15378         [BZ #13540]
15379         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15380         processing for last bytes.
15381
15382 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15383
15384         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15385         (syscall-list-default-options, syscall-list-default-condition)
15386         (syscall-list-includes): Define.
15387         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15388         list of ABIs and options and #if conditions for each ABI.  Do not
15389         handle common syscalls between ABIs specially.
15390         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15391         Remove.
15392         (syscall-list-variants, syscall-list-32bit-options)
15393         (syscall-list-32bit-condition, syscall-list-64bit-options)
15394         (syscall-list-64bit-condition): Define.
15395         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): 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/sparc/Makefile (64bit-predefine):
15400         Remove.
15401         (syscall-list-variants, syscall-list-32bit-options)
15402         (syscall-list-32bit-condition, syscall-list-64bit-options)
15403         (syscall-list-64bit-condition): Define.
15404         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15405         Remove.
15406         (syscall-list-variants, syscall-list-32bit-options)
15407         (syscall-list-32bit-condition, syscall-list-64bit-options)
15408         (syscall-list-64bit-condition): Define.
15409
15410 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15411
15412         * locale/iso-639.def: Add brx entry.
15413
15414         [BZ #13328]
15415         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15416         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15417
15418         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15419         __feraiseexcept_renamed.
15420
15421 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15422
15423         [BZ #13538]
15424         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15425         EPOLLET with unsigned values.
15426         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15427         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15428
15429         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15430         to large cancellation.
15431         * math/s_cacoshf.c: Likewise.
15432         * math/s_cacoshl.c: Likewise.
15433
15434 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15435
15436         [BZ #13305]
15437         [BZ #12786]
15438         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15439         * math/s_cacoshf.c: Likewise.
15440         * math/s_cacoshl.c: Likewise.
15441
15442 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15443
15444         [BZ #13439]
15445         * iconv/gconv.h: Define __GCONV_SWAP.
15446         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15447         * iconvdata/utf-16.c: Likewise.
15448         * iconvdata/utf-32.c: Likewise.
15449
15450 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15451
15452         [BZ #13524]
15453         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15454         numerator after shifting it by one limb.
15455
15456 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15457
15458         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15459         under [__USE_EXTERN_INLINES].
15460
15461 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15462
15463         [BZ #13446]
15464         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15465
15466 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15467
15468         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15469         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15470         optimized code.
15471         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15472         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15473         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15474         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15475         for strncasecmp/strncasecmp_l compilation.
15476         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15477         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15478
15479 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15480
15481         [BZ #13484]
15482         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15483         of __asm__.
15484
15485 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15486
15487         [BZ #13506]
15488         * time/tzfile.c (__tzfile_read): Check values from file header.
15489
15490 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15491
15492         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15493         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15494         * powerpc/powerpc32/dl-start.S: Likewise.
15495         * powerpc/powerpc32/elf/start.S: Likewise.
15496         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15497         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15498         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15499         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15500         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15501         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15502         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15503         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15504         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15505         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15506         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15507         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15508         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15509         * powerpc/powerpc32/memset.S: Likewise.
15510         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15511         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15512         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15513         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15514         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15515         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15516         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15517         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15518         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15519         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15520         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15521         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15522         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15523
15524 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15525
15526         * math/libm-test.inc: Added more nearbyint tests.
15527         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15528         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15529         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15530         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15531
15532 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15533
15534         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15535         FD_CLOEXEC.
15536
15537 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15538
15539         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15540         Add wcscpy-ssse3 wcscpy-c.
15541         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15542         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15543         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15544         * sysdeps/x86_64/wcschr.S: New file.
15545         * sysdeps/x86_64/wcsrchr.S: New file.
15546         * string/test-strcmp.c: Remove checking of wcscmp function for
15547         wrong alignments.
15548         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15549         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15550         wcsrchr-sse2 wcsrchr-c.
15551         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15552         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15553         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15554         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15555         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15556         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15557         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15558         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15559         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15560         * wcsmbc/wcschr.c (WCSCHR): New macro.
15561
15562 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15563
15564         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15565         * wcsmbs/test-wcsrchr.c: New file.
15566         * string/test-strrchr.c: Add wcsrchr support.
15567         (WIDE): New macro.
15568         * wcsmbs/test-wcscpy.c: New file.
15569         * string/test-strcpy.c: Add wcscpy support.
15570         (WIDE): New macro.
15571
15572 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15573
15574         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15575         the inner loop.
15576
15577 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15578
15579         [BZ #13472]
15580         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15581
15582 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15583
15584         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15585         Minor optimizations.
15586
15587         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15588         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15589         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15590
15591 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15592
15593         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15594         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15595         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15596         for gcc to avoid warnings.
15597         * inet/Makefile (tests): Add tst-checks.
15598         * inet/tst-checks.c: New file.
15599
15600         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15601         warning.
15602
15603         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15604         __wmemcmp_sse2.
15605
15606         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15607         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15608
15609         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15610
15611 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15612
15613         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15614         problem.
15615
15616         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15617
15618 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15619
15620         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15621         conditional on GCC version.
15622         (__arch_compare_and_exchange_val_8_acq)
15623         (__arch_compare_and_exchange_val_16_acq)
15624         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15625         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15626         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15627
15628 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15629
15630         * sysdeps/sh/backtrace.c: New file.
15631
15632 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15633
15634         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15635         parenthesis.
15636
15637 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15638
15639         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15640         falling back to utime.
15641
15642 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15643
15644         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15645         expectations for float.
15646
15647 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15648
15649         * locale/weight.h (findidx): Add parameter len.
15650         * locale/weightwc.h (findidx): Likewise.
15651         * posix/fnmatch_loop.c (FCT): Adjust caller.
15652         * posix/regcomp.c (build_equiv_class): Likewise.
15653         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15654         * posix/regexec.c (check_node_accept_bytes): Likewise.
15655         * string/strcoll_l.c (STRCOLL): Likewise.
15656         * string/strxfrm_l.c (STRXFRM): Likewise.
15657
15658 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15659
15660         * Makefile.in: Remove CVSOPT handling.
15661         * configure.in: Remove use of AC_REVISION.
15662         * iconvdata/Makefile (distribute): No need to filter out CVS.
15663         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15664         handling.
15665
15666 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15667
15668         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15669         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15670         [USE_AS_STRNCASECMP_L]: Likewise.
15671         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15672         NO_TLS_DIRECT_SEG_REFS.
15673         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15674         Fix argument offsets for non-PIC.
15675         [USE_AS_STRNCASECMP_L]: Likewise.
15676         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15677         NO_TLS_DIRECT_SEG_REFS.
15678
15679 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15680
15681         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15682         O_CLOEXEC.
15683         * locale/loadlocale.c (_nl_load_locale): Likewise.
15684
15685 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15686
15687         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15688         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15689         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15690         (SYSCALL_GETTIME): Set errno on error.
15691
15692         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15693         count references to noai6ai_cached.
15694
15695 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15696
15697         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15698
15699         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15700         FD_CLOEXEC for /proc/self/maps.
15701
15702         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15703         FD_CLOEXEC for /proc/meminfo.
15704
15705         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15706         gai.conf.
15707
15708         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15709         FD_CLOEXEC for given file.
15710
15711         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15712
15713         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15714         FD_CLOEXEC for /etc/hosts.
15715         (_gethtent): Likewise.
15716
15717         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15718
15719         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15720         cancellation and set FD_CLOEXEC for /etc/netgroup.
15721
15722         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15723         reading /etc/publickey.
15724
15725         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15726         allow cancellation when reading /etc/group.
15727
15728         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15729         cancellation.
15730         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15731
15732         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15733         when using data file.
15734
15735         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15736
15737         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15738         (write_nis_obj): Use "c" and "e" in fopen.
15739
15740         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15741
15742         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15743
15744         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15745
15746         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15747
15748         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15749         locale.alias.
15750
15751         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15752
15753         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15754
15755         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15756
15757         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15758         file parsing and set FD_CLOEXEC.
15759
15760 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15761
15762         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15763
15764 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15765
15766         * malloc/arena.c (arena_get2): Don't call reused_arena when
15767         _int_new_arena failed.
15768
15769 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15770
15771         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15772         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15773         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15774         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15775         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15776         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15777         to compile strcasecmp and strncasecmp.
15778         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15779         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15780
15781         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15782
15783 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15784
15785         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15786         locale-defines.sym to gen-as-const-headers.
15787         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15788         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15789         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15790         to compile strcasecmp and strncasecmp.
15791         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15792         strcasecmp_l and strncasecmp_l.
15793         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15794         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15795         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15796         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15797         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15798         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15799         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15800         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15801         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15802         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15803         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15804
15805 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15806
15807         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15808         result of SYSDEP_GETTIME_CPU to retval.
15809         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15810         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15811
15812         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15813         variable.
15814
15815         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15816         mantissa words.
15817         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15818
15819         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15820         from unused variable.
15821
15822         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15823         DWARF definitions.
15824         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15825         for assembling.
15826
15827         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15828         over namespaces.
15829
15830         * sunrpc/rpc_prot.c (rejected): Fix case value.
15831
15832         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15833         unsigned long long int to avoid warnings in shift.
15834
15835         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15836         of use of trans.
15837         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15838         variable tmp.
15839
15840         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15841         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15842         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15843
15844         * nis/nis_table.c (nis_list): Use variable of correct type for
15845         result of __follow_path call.
15846
15847 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15848
15849         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15850         of math functions ceil, trunc, floor, round, and sqrt, when
15851         avaliable on the platform.
15852         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15853         name clash.
15854         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15855         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15856         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15857
15858 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15859
15860         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15861         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15862
15863 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15864
15865         * include/unistd.h: Fix __readlink return type.
15866         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15867
15868 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15869
15870         * stdlib/ucontext.h: Undo last change for makecontext.
15871
15872 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15873
15874         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15875
15876         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15877         * setjmp/setjmp.h: Mark functions as non-leaf.
15878         * setjmp/bits/setjmp2.h: Likewise.
15879         * stdlib/ucontext.h: Likewise.
15880
15881 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15882
15883         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15884         (reused_arena): Don't check arena limit.
15885         (arena_get2): Atomically check arena limit.
15886
15887 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15888
15889         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15890         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15891
15892         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15893         instructions.
15894
15895 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15896
15897         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15898         handler when locking.
15899
15900         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15901         Fix size of allocated buffer.
15902
15903 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15904
15905         [BZ #10103]
15906         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15907         declarations for long double functions.
15908         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15909
15910         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15911
15912 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15913
15914         * nscd/nscd.c (main): Don't start AVC thread until credentials are
15915         installed.
15916
15917         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
15918         is disabled.
15919
15920 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15921
15922         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
15923
15924 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15925
15926         * include/alloca.h (stackinfo_alloca_round): Define.
15927         (extend_alloca): Use it.
15928         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
15929         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
15930         here.
15931
15932         * scripts/check-local-headers.sh: Ignore libaudit.h.
15933
15934         * nscd/Makefile (extra-objs): Make recursively expanded.
15935
15936 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
15937
15938         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
15939         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15940
15941         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15942         * posix/tst-rfc3484-2.c: Likewise.
15943         * posix/tst-rfc3484-3.c: Likewise.
15944
15945         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15946         process_vm_writev.
15947         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15948         process_vm_writev.
15949         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15950         process_vm_writev from libc using GLIBC_2.15 version.
15951
15952         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15953
15954 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15955
15956         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15957         stack usage.
15958
15959 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15960
15961         [BZ #13367]
15962         * nss/getent.c (initgroups_keys): Show error message in case no group
15963         names are given.
15964
15965         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15966         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15967         __bump_nl_timestamp.
15968         * nscd/connections (nscd_init): When host database is served open
15969         netlink socket and request notification about configuration changes.
15970         (main_loop_poll): Track netlink file descriptor and bump timestamp
15971         in case data becomes available.
15972         (main_loop_epoll): Likewise.
15973         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15974         (database_pers_head): Add extra_data fileds.
15975         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15976         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15977         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15978         Adjust caller.
15979         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15980         in6ai data, call __free_in6ai.
15981         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15982         Add -DHAVE_NETLINK.
15983         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15984         interface information.  Reuse previous data if netlink timestamp
15985         is not changed.
15986         (__bump_nl_timestamp): New function.
15987         (__free_in6ai): New function.
15988
15989 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15990
15991         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15992         close_not_cancel_no_status here.
15993         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15994
15995 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15996
15997         [BZ #13276]
15998         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15999         return value.
16000
16001         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16002         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16003         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16004
16005 2011-07-03  Andreas Jaeger  <aj@suse.de>
16006
16007         [BZ #10709]
16008         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16009         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16010         * math/libm-test.inc (sin_test): Add test case.
16011
16012 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16013
16014         [BZ #13337]
16015         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16016         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16017
16018         * elf/chroot_canon.c (chroot_canon): Cleanups.
16019
16020         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16021
16022         [BZ #13335]
16023         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16024         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16025
16026         * string/test-strchr.c: Make usable for strchrnul testing.
16027         * string/test-strchrnul.c: New file.
16028         * string/Makefile (strop-tests): Add strchrnul.
16029
16030         * po/it.po: Update from translation team.
16031         * po/es.po: Likewise.
16032
16033 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16034
16035         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16036         the three constants needed as parameters.  Drop the others.
16037         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16038         __m128i_strloadu_tolower.
16039         Create and initialize variable zero and use it in all the places
16040         where _mm_setzero_si128 was used.
16041
16042         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16043         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16044         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16045         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16046         anymore.
16047         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16048         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16049         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16050         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16051         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16052         __mpranred, __mptan.
16053         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16054         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16055         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16056         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16057         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16058         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16059         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16060         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16061         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16062
16063 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16064
16065         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16066         redefine if SHARED.
16067         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16068
16069         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16070         wide char related routines to wcsmbs subdir.
16071
16072 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16073
16074         [BZ #13344]
16075         * misc/sys/cdefs.h (__THROWNL): Define.
16076         * posix/unistd.h: Use __THREADNL instead of __THREAD
16077         for memory synchronization functions.
16078
16079 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16080
16081         [BZ #13349]
16082         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16083         doesn't exist.
16084         * manual/stdio.texi (Obstack Streams): Node removed.
16085
16086 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16087
16088         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16089         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16090         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16091
16092         * math/math_private.h (math_force_eval): Allow non-addressable
16093         arguments.
16094         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16095
16096 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16097
16098         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16099         file is not needed.
16100
16101         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16102         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16103         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16104         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16105         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16106         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16107         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16108         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16109         Add AVX variants.
16110         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16111         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16112         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16113         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16114         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16115         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16116         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16117         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16118         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16119         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16120         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16121         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16122         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16123         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16124         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16125         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16126         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16127         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16128         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16129
16130         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16131         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16132
16133         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16134         place.  Use VEX encoding when compiling for AVX.
16135
16136 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16137
16138         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16139         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16140
16141         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16142
16143 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16144
16145         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16146         useless if() expression.
16147         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16148         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16149         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16150         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16151         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16152         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16153         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16154         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16155         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16156         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16157         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16158         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16159         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16160         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16161         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16162         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16163         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16164         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16165         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16166
16167         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16168
16169 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16170
16171         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16172         condition.
16173         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16174
16175 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16176
16177         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16178         .text section.  Avoid duplicate constants.
16179         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16180         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16181         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16182         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16183         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16184         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16185         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16186         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16187         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16188         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16189         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16190         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16191         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16192         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16193         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16194         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16195         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16196         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16197         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16198         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16199         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16200         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16201         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16202         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16203         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16204         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16205         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16206         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16207         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16208         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16209         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16210         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16211         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16212         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16213         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16214         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16215         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16216         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16217         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16218         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16219         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16220         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16221         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16222         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16223         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16224
16225 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16226
16227         * sysdeps/x86_64/dla.h: Move to ...
16228         * sysdeps/x86_64/fpu/dla.h: ...here.
16229         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16230         situations.  Use __builtin_fma only for gcc 4.6 and up.
16231
16232         * config.make.in: Add have-mfma4 entry.
16233         * configure.in: Substitute libc_cv_cc_fma4.
16234         * math/Makefile (dbl-only-routines): Add sincostab.
16235         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16236         Use __sincostab not sincos.
16237         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16238         name is a macro.
16239         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16240         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16241         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16242         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16243         using __copysign.
16244         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16245         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16246         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16247         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16248         and __inv.
16249         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16250         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16251         __copysign.
16252         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16253         define aliases when function name is a macro.
16254         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16255         sysdeps/ieee754/dbl-64/sincos.tbl.
16256         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16257         fma4-enabled routines.
16258         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16259         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16260         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16261         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16262         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16263         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16264         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16265         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16266         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16267         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16268         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16269         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16270         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16271         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16272         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16273         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16274         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16275         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16276         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16277         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16278         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16279         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16280         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16281         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16282         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16283         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16284         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16285         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16286         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16287         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16288
16289         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16290         rename.
16291         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16292         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16293         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16294         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16295         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16296         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16297         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16298         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16299
16300 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16301
16302         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16303
16304 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16305
16306         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16307
16308         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16309         prediction.
16310         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16311
16312         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16313         Remove unused variable magic_bits.
16314         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16315
16316         * string/strnlen.c: Define and use STRNLEN macro.
16317         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16318         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16319         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16320         * wcsmbs/wcslen.c: Define and use WCSLEN.
16321         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16322         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16323         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16324         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16325         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16326         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16327         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16328
16329 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16330
16331         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16332         strnlen-sse2-no-bsf.
16333         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16334         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16335         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16336         Add strnlen support.
16337         (USE_AS_STRNLEN): New macro.
16338         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16339         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16340         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16341         * sysdeps/x86_64/wcslen.S: New file.
16342
16343 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16344
16345         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16346         XMM-moves are used for copying on small sizes.
16347
16348 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16349
16350         * wcsmbs/Makefile (strop-tests): Add wcschr.
16351         * wcsmbs/test-wcschr.c: New file.
16352         * string/test-strchr.c: Update.
16353         Add wcschr support.
16354         (WIDE): New macro.
16355
16356 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16357
16358         * wcsmbs/Makefile (strop-tests): Add wcslen.
16359         * wcsmbs/test-wcslen.c: New file.
16360         * string/test-strlen.c: Update.
16361         Add wcslen support.
16362         (WIDE): New macro.
16363
16364 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16365
16366         * po/it.po: Update from translation team.
16367
16368 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16369
16370         * sysdeps/x86_64/wcscmp.S: Update.
16371         Fix wrong comparison semantics.
16372         wcscmp shall use signed comparison not unsigned.
16373         Don't use substraction to avoid overflow bug.
16374         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16375         * wcsmbc/wcscmp.c: Likewise.
16376         * string/test-strcmp.c: Likewise.
16377         Add new tests to check cases with negative values.
16378
16379 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16380
16381         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16382         * sysdeps/x86_64/dla.h: ...here.  New file.
16383         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16384         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16385         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16386         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16387         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16388         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16389         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16390         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16391         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16392
16393 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16394
16395         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16396         __ynl_finite aliases.
16397
16398 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16399
16400         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16401
16402         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16403         define DLA_FMA.
16404         [DLA_FMA] (EMULV): Use DLA_FMA.
16405         [DLA_FMA] (MUL12): Use EMULV.
16406         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16407         that are not needed.
16408         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16409         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16410         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16411         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16412         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16413         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16414         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16415
16416 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16417
16418         * math/s_nan.c: Undef __nan.
16419         * math/s_nanf.c: Undef __nanf.
16420         * math/s_nanl.c: Undef __nanl.
16421         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16422         "math_private.h".
16423
16424 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16425
16426         * math/s_catan.c: Add branch predictions.
16427         * math/s_catanf.c: Likewise.
16428         * math/s_catanh.c: Likewise.
16429         * math/s_catanhf.c: Likewise.
16430         * math/s_catanhl.c: Likewise.
16431         * math/s_catanl.c: Likewise.
16432         * math/s_cexp.c: Likewise.
16433         * math/s_cexpf.c: Likewise.
16434         * math/s_cexpl.c: Likewise.
16435         * math/s_clog.c: Likewise.
16436         * math/s_clog10.c: Likewise.
16437         * math/s_clog10f.c: Likewise.
16438         * math/s_clog10l.c: Likewise.
16439         * math/s_clogf.c: Likewise.
16440         * math/s_clogl.c: Likewise.
16441         * math/s_csqrt.c: Likewise.
16442         * math/s_csqrtf.c: Likewise.
16443         * math/s_csqrtl.c: Likewise.
16444         * math/s_ctanf.c: Likewise.
16445         * math/s_ctanh.c: Likewise.
16446         * math/s_ctanhf.c: Likewise.
16447         * math/s_ctanhl.c: Likewise.
16448         * math/s_ctanl.c: Likewise.
16449
16450         * math/math_private.h: Define __nan, __nanf, __nanl.
16451         * math/s_cacosh.c: Include <math_private.h>.
16452         * math/s_cacoshl.c: Likewise.
16453         * math/s_casinh.c: Likewise.
16454         * math/s_casinhf.c: Likewise.
16455         * math/s_casinhl.c: Likewise.
16456         * math/s_ccos.c: Rely entire on ccosh.
16457         * math/s_ccosf.c: Rely entire on ccoshf.
16458         * math/s_ccosl.c: Rely entirely on ccoshl.
16459         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16460         Remove tests for FE_INVALID.
16461         * math/s_ccoshf.c: Likewise.
16462         * math/s_ccoshl.c: Likewise.
16463         * math/s_csin.c: Likewise.
16464         * math/s_csinf.c: Likewise.
16465         * math/s_csinh.c Likewise.
16466         * math/s_csinhf.c: Likewise.
16467         * math/s_csinhl.c: Likewise.
16468         * math/s_csinl.c: Likewise.
16469         * math/s_ctan.c: Likewise.
16470         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16471         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16472         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16473
16474 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16475
16476         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16477         compilation problems.
16478
16479         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16480         __builtin_expect.
16481
16482 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16483
16484         * sysdeps/i386/configure.in: Test for -mfma4 option.
16485         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16486         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16487         COMMON_CPUID_INDEX_80000001.
16488         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16489         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16490         use it if FMA3 is not supported.
16491         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16492
16493         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16494         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16495
16496 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16497
16498         [BZ #12892]
16499         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16500         it would create a cycle with a link time dependency.
16501
16502 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16503
16504         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16505         instruction.
16506         * string/Makefile (strop-tests): Add rawmemchr.
16507         * string/test-rawmemchr.c: New file.
16508
16509         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16510         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16511         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16512         when compiling str{,n}casecmp and when AVX is available.  Hook up
16513         new optimized code in initializers.
16514
16515 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16516
16517         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16518         __feraiseexcept instead of feraiseexcept.
16519
16520 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16521
16522         * math/math_private.h: Define defaults for libc_fetestexcept and
16523         libc_feupdateenv.
16524         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16525         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16526         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16527         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16528         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16529         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16530         libc_fetestexcept and libc_feupdateenv.
16531
16532         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16533         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16534         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16535         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16536         libc_feholdexcept_setround.
16537
16538         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16539         Add s_nearbyint-c and s_nearbyintf-c.
16540         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16541         nearbyintf inlines.
16542         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16543         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16544         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16545         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16546
16547         * math/math_private.h: Define defaults for libc_fegetround,
16548         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16549         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16550         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16551         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16552         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16553         standard functions.
16554         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16555         Remove comments and hacks for old compiler versions.
16556         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16557         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16558         libc_feholdexceptl.
16559
16560 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16561
16562         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16563         (__feraiseexcept_renamed): Add __NTH.
16564         (feraiseexcept): Add __NTH.  Rename local variables to fix
16565         namespace violations.
16566
16567 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16568
16569         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16570
16571         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16572
16573         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16574         recently added interfaces.
16575         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16576
16577         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16578         about macro parameter expansion.
16579
16580         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16581         __NO_MATH_INLINES is defined.  Cleanups.
16582
16583         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16584         and __floorf is target has SSE4.1.
16585         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16586         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16587         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16588         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16589
16590         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16591         name.
16592         (floorf): Likewise.
16593
16594         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16595
16596 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16597
16598         * misc/sys/cdefs.h: Fix last change.
16599
16600         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16601         database lookup.
16602
16603 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16604
16605         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16606
16607         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16608         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16609         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16610         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16611         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16612         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16613         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16614         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16615         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16616         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16617         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16618         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16619         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16620         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16621         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16622         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16623         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16624         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16625         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16626         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16627         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16628         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16629
16630         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16631         ceil, ceilf, floor, floorf.
16632
16633         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16634         Perform IRELATIVE relocations last.
16635
16636         * elf/do-rel.h: Add another parameter nrelative, replacing the
16637         local variable with the same name.  Change name of the function
16638         to end in Rel or Rela (uppercase).
16639         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16640         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16641         elf_dynamic_do_##reloc function.
16642
16643 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16644
16645         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16646         is sufficient, at least on modern CPUs.
16647
16648         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16649
16650         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16651         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16652
16653         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16654         __expl_finite.
16655         * math/bits/math-finite.h: Add entries for exp.
16656         * math/e_expl.c: Add __*_finite alias.
16657         * sysdeps/i386/fpu/e_exp.S: Likewise.
16658         * sysdeps/i386/fpu/e_expf.S: Likewise.
16659         * sysdeps/i386/fpu/e_expl.c: Likewise.
16660         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16661         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16662         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16663         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16664         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16665         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16666         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16667
16668         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16669         is sufficient, at least on modern CPUs.
16670
16671         * ctype/ctype-info.c (__ctype_init): Define.
16672         * include/ctype.h (__ctype_init): Declare.
16673         (__ctype_b_loc): The variable is always initialized.
16674         (__ctype_toupper_loc): Likewise.
16675         (__ctype_tolower_loc): Likewise.
16676         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16677         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16678
16679 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16680
16681         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16682
16683         * configure.in: Also look in $cxxmachine/include for C++ system
16684         headers.
16685
16686 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16687
16688         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16689         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16690         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16691         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16692         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16693         (USE_AS_WMEMCMP): New macro.
16694         Fixing indents.
16695         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16696         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16697         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16698         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16699         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16700         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16701         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16702         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16703         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16704         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16705         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16706         (USE_AS_WMEMCMP): New macro.
16707         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16708         * sysdeps/string/test-memcmp.c: Update.
16709         Fix simple_wmemcmp.
16710         Add new tests.
16711         * wcsmbs/wmemcmp.c: Update.
16712         (WMEMCMP): New macro.
16713         Fix overflow bug.
16714
16715 2011-10-12  Andreas Jaeger  <aj@suse.de>
16716
16717         [BZ #13268]
16718         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16719
16720 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16721
16722         * libio/iofwide.c (do_length): Avoid warning.
16723
16724         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16725
16726 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16727
16728         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16729
16730         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16731         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16732         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16733         * sysdeps/i386/i686/fpu/e_log.S: New file.
16734         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16735         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16736
16737         * ctype/ctype.h: Add support for inlined isXXX functions when
16738         compiling C++ code.
16739
16740 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16741
16742         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16743
16744         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16745
16746 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16747
16748         [BZ #13291]
16749         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16750
16751 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16752
16753         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16754         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16755         feraiseexcept.
16756
16757         * sysdeps/x86_64/memrchr.S: Check for zero size.
16758
16759         * string/stratcliff.c: Add memrchr tests.
16760
16761 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16762
16763         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16764         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16765         rawmemchr-sse2 rawmemchr-sse2-bsf.
16766         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16767         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16768         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16769         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16770         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16771         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16772         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16773         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16774         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16775         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16776         * string/memrchr.c (MEMRCHR): New macro.
16777
16778 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16779
16780         Add integration with gcc's -ffinite-math-only and optimize wrapper
16781         functions in libm.
16782         * Versions.def: Define GLIBC_2.15 version for libm.
16783         * math/Makefile (headers): Add bits/math-finite.h.
16784         * math/bits/math-finite.h: New file.
16785         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16786         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16787         * math/e_acoshl.c: Add __*_finite alias.
16788         * math/e_acosl.c: Likewise.
16789         * math/e_asinl.c: Likewise.
16790         * math/e_atan2l.c: Likewise.
16791         * math/e_atanhl.c: Likewise.
16792         * math/e_coshl.c: Likewise.
16793         * math/e_exp10.c: Likewise.
16794         * math/e_exp10f.c: Likewise.
16795         * math/e_exp10l.c: Likewise.
16796         * math/e_exp2l.c: Likewise.
16797         * math/e_fmodl.c: Likewise.
16798         * math/e_gammal_r.c: Likewise.
16799         * math/e_hypotl.c: Likewise.
16800         * math/e_j0l.c: Likewise.
16801         * math/e_j1l.c: Likewise.
16802         * math/e_jnl.c: Likewise.
16803         * math/e_lgammal_r.c: Likewise.
16804         * math/e_log10l.c: Likewise.
16805         * math/e_log2l.c: Likewise.
16806         * math/e_logl.c: Likewise.
16807         * math/e_powl.c: Likewise.
16808         * math/e_sinhl.c: Likewise.
16809         * math/e_sqrtl.c: Likewise.
16810         * math/e_scalb.c: Completely rewritten and optimized.
16811         * math/e_scalbf.c: Likewise.
16812         * math/e_scalbl.c: Likewise.
16813         * math/w_acos.c: Likewise.
16814         * math/w_acosf.c: Likewise.
16815         * math/w_acosl.c: Likewise.
16816         * math/w_acosh.c: Likewise.
16817         * math/w_acoshf.c: Likewise.
16818         * math/w_acoshl.c: Likewise.
16819         * math/w_asin.c: Likewise.
16820         * math/w_asinf.c: Likewise.
16821         * math/w_asinl.c: Likewise.
16822         * math/w_atan2.c: Likewise.
16823         * math/w_atan2f.c: Likewise.
16824         * math/w_atan2l.c: Likewise.
16825         * math/w_atanh.c: Likewise.
16826         * math/w_atanhf.c: Likewise.
16827         * math/w_atanhl.c: Likewise.
16828         * math/w_exp10.c: Likewise.
16829         * math/w_exp10f.c: Likewise.
16830         * math/w_exp10l.c: Likewise.
16831         * math/w_fmod.c: Likewise.
16832         * math/w_fmodf.c: Likewise.
16833         * math/w_fmodl.c: Likewise.
16834         * math/w_j0.c: Likewise.
16835         * math/w_j0f.c: Likewise.
16836         * math/w_j0l.c: Likewise.
16837         * math/w_j1.c: Likewise.
16838         * math/w_j1f.c: Likewise.
16839         * math/w_j1l.c: Likewise.
16840         * math/w_jn.c: Likewise.
16841         * math/w_jnf.c: Likewise.
16842         * math/w_log.c: Likewise.
16843         * math/w_logf.c: Likewise.
16844         * math/w_logl.c: Likewise.
16845         * math/w_log10.c: Likewise.
16846         * math/w_log10f.c: Likewise.
16847         * math/w_log10l.c: Likewise.
16848         * math/w_log2.c: Likewise.
16849         * math/w_log2f.c: Likewise.
16850         * math/w_log2l.c: Likewise.
16851         * math/w_pow.c: Likewise.
16852         * math/w_powf.c: Likewise.
16853         * math/w_powl.c: Likewise.
16854         * math/w_remainder.c: Likewise.
16855         * math/w_remainderf.c: Likewise.
16856         * math/w_remainderl.c: Likewise.
16857         * math/w_scalb.c: Likewise.
16858         * math/w_scalbf.c: Likewise.
16859         * math/w_scalbl.c: Likewise.
16860         * math/w_sqrt.c: Likewise.
16861         * math/w_sqrtf.c: Likewise.
16862         * math/w_sqrtl.c: Likewise.
16863         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16864         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16865         used.
16866         * math/math_private.h: Declare __kernel_standard_f.
16867         * math/w_cosh.c: Remove cruft and optimize a bit.
16868         * math/w_coshf.c: Likewise.
16869         * math/w_coshl.c: Likewise.
16870         * math/w_exp2.c: Likewise.
16871         * math/w_exp2f.c: Likewise.
16872         * math/w_exp2l.c: Likewise.
16873         * math/w_hypot.c: Likewise.
16874         * math/w_hypotf.c: Likewise.
16875         * math/w_hypotl.c: Likewise.
16876         * math/w_lgamma.c: Likewise.
16877         * math/w_lgamma_r.c: Likewise.
16878         * math/w_lgammaf.c: Likewise.
16879         * math/w_lgammaf_r.c: Likewise.
16880         * math/w_lgammal.c: Likewise.
16881         * math/w_lgammal_r.c: Likewise.
16882         * math/w_sinh.c: Likewise.
16883         * math/w_sinhf.c: Likewise.
16884         * math/w_sinhl.c: Likewise.
16885         * math/w_tgamma.c: Likewise.
16886         * math/w_tgammaf.c: Likewise.
16887         * math/w_tgammal.c: Likewise.
16888         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16889         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16890         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16891         Minor optimizations.  Pretty printing.  Remove cruft.
16892         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16893         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16894         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16895         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16896         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16897         * sysdeps/i386/fpu/e_asin.S: Likewise.
16898         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16899         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16900         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16901         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16902         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16903         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16904         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16905         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16906         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16907         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16908         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16909         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16910         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16911         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16912         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16913         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16914         * sysdeps/i386/fpu/e_hypot.S: Likewise.
16915         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
16916         * sysdeps/i386/fpu/e_log.S: Likewise.
16917         * sysdeps/i386/fpu/e_log10.S: Likewise.
16918         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16919         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16920         * sysdeps/i386/fpu/e_log2.S: Likewise.
16921         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16922         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16923         * sysdeps/i386/fpu/e_logf.S: Likewise.
16924         * sysdeps/i386/fpu/e_logl.S: Likewise.
16925         * sysdeps/i386/fpu/e_pow.S: Likewise.
16926         * sysdeps/i386/fpu/e_powf.S: Likewise.
16927         * sysdeps/i386/fpu/e_powl.S: Likewise.
16928         * sysdeps/i386/fpu/e_remainder.S: Likewise.
16929         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
16930         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
16931         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16932         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16933         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16934         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
16935         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
16936         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
16937         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16938         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16939         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16940         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16941         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16942         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16943         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16944         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16945         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16946         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16947         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16948         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16949         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16950         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16951         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16952         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16953         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16954         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16955         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16956         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16957         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16958         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16959         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16960         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16961         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16962         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16963         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16964         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16965         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16966         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16967         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16968         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16969         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16970         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16971         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16972         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16973         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16974         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16975         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16976         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16977         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16978         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16979         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16980         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16981         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16982         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16983         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16984         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16985         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16986         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16987         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16988         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16989         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16990         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16991         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16992         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16993         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16994         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16995         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16996         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16997         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16998         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16999         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17000         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17001         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17002         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17003         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17004         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17005         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17006         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17007         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17008         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17009         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17010         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17011         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17012         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17013         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17014         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17015         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17016         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17017         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17018         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17019         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17020         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17021         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17022         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17023         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17024         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17025         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17026         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17027         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17028         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17029         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17030         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17031         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17032         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17033         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17034         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17035         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17036         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17037         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17038         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17039         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17040         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17041         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17042         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17043         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17044         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17045         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17046         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17047         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17048         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17049         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17050         (__isnanf): Likewise.
17051         (__isinf_ns): Likewise.
17052         (__isinf_nsf): Likewise.
17053         (__finite): Likewise.
17054         (__finitef): Likewise.
17055         (__ieee754_sqrt): Define as macro.
17056         (__ieee754_sqrtf): Define as macro.
17057         (__ieee754_sqrtl): Define as macro.
17058         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17059         inlined copy.
17060         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17061         __FINITE_MATH_ONLY__ consistent.
17062         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17063
17064 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17065
17066         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17067         of rawmemchr.
17068
17069         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17070
17071 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17072
17073         * po/ja.po: Update from translation team.
17074
17075 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17076
17077         * locale/programs/locarchive.c (prepare_address_space): New function.
17078         (create_archive, enlarge_archive, open_archive): Use it.
17079
17080         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17081         inside [SHARED], where it is used.
17082
17083         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17084
17085         * nss/getent.c (netgroup_keys): Remove unused variable.
17086         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17087
17088 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17089
17090         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17091         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17092         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17093         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17094         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17095         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17096         * math/Makefile (libm-calls): Add s_isinf_ns.
17097         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17098         * math/multc3.c: Likewise.
17099         * math/s_casin.c: Likewise.
17100         * math/s_casinf.c: Likewise.
17101         * math/s_casinl.c: Likewise.
17102         * math/s_ccos.c: Likewise.
17103         * math/s_ccosf.c: Likewise.
17104         * math/s_ccosl.c: Likewise.
17105         * math/s_ctan.c: Likewise.
17106         * math/s_ctanf.c: Likewise.
17107         * math/s_ctanh.c: Likewise.
17108         * math/s_ctanhf.c: Likewise.
17109         * math/s_ctanhl.c: Likewise.
17110         * math/s_ctanl.c: Likewise.
17111         * math/w_fmod.c: Likewise.
17112         * math/w_fmodf.c: Likewise.
17113         * math/w_fmodl.c: Likewise.
17114         * math/w_remainder.c: Likewise.
17115         * math/w_remainderf.c: Likewise.
17116         * math/w_remainderl.c: Likewise.
17117         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17118         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17119         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17120         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17121         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17122         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17123         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17124         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17125
17126         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17127         of the number.
17128         * stdio-common/printf_fphex.c: Likewise.
17129         * stdio-common/printf_size.c: Likewise.
17130
17131         * math/e_exp10.c: Include math_private.h using <...> not "...".
17132         * math/e_exp10f.c: Likewise.
17133         * math/e_exp10l.c: Likewise.
17134         * math/e_exp2l.c: Likewise.
17135         * math/e_j0l.c: Likewise.
17136         * math/e_j1l.c: Likewise.
17137         * math/e_jnl.c: Likewise.
17138         * math/e_lgammal_r.c: Likewise.
17139         * math/e_rem_pio2l.c: Likewise.
17140         * math/e_scalb.c: Likewise.
17141         * math/e_scalbf.c: Likewise.
17142         * math/e_scalbl.c: Likewise.
17143         * math/k_cosl.c: Likewise.
17144         * math/k_sinl.c: Likewise.
17145         * math/k_tanl.c: Likewise.
17146         * math/s_cacoshf.c: Likewise.
17147         * math/s_catan.c: Likewise.
17148         * math/s_catanf.c: Likewise.
17149         * math/s_catanh.c: Likewise.
17150         * math/s_catanhf.c: Likewise.
17151         * math/s_catanhl.c: Likewise.
17152         * math/s_catanl.c: Likewise.
17153         * math/s_ccosh.c: Likewise.
17154         * math/s_ccoshf.c: Likewise.
17155         * math/s_ccoshl.c: Likewise.
17156         * math/s_cexp.c: Likewise.
17157         * math/s_cexpf.c: Likewise.
17158         * math/s_cexpl.c: Likewise.
17159         * math/s_clog.c: Likewise.
17160         * math/s_clog10.c: Likewise.
17161         * math/s_clog10f.c: Likewise.
17162         * math/s_clog10l.c: Likewise.
17163         * math/s_clogf.c: Likewise.
17164         * math/s_clogl.c: Likewise.
17165         * math/s_csin.c: Likewise.
17166         * math/s_csinf.c: Likewise.
17167         * math/s_csinh.c: Likewise.
17168         * math/s_csinhf.c: Likewise.
17169         * math/s_csinhl.c: Likewise.
17170         * math/s_csinl.c: Likewise.
17171         * math/s_csqrt.c: Likewise.
17172         * math/s_csqrtf.c: Likewise.
17173         * math/s_csqrtl.c: Likewise.
17174         * math/s_ctan.c: Likewise.
17175         * math/s_ctanf.c: Likewise.
17176         * math/s_ctanh.c: Likewise.
17177         * math/s_ctanhf.c: Likewise.
17178         * math/s_ctanhl.c: Likewise.
17179         * math/s_ctanl.c: Likewise.
17180         * math/s_ldexp.c: Likewise.
17181         * math/s_ldexpf.c: Likewise.
17182         * math/s_ldexpl.c: Likewise.
17183         * math/s_significand.c: Likewise.
17184         * math/s_significandf.c: Likewise.
17185         * math/s_significandl.c: Likewise.
17186         * math/w_acos.c: Likewise.
17187         * math/w_acosf.c: Likewise.
17188         * math/w_acosh.c: Likewise.
17189         * math/w_acoshf.c: Likewise.
17190         * math/w_acoshl.c: Likewise.
17191         * math/w_acosl.c: Likewise.
17192         * math/w_asin.c: Likewise.
17193         * math/w_asinf.c: Likewise.
17194         * math/w_asinl.c: Likewise.
17195         * math/w_atan2.c: Likewise.
17196         * math/w_atan2f.c: Likewise.
17197         * math/w_atan2l.c: Likewise.
17198         * math/w_atanh.c: Likewise.
17199         * math/w_atanhf.c: Likewise.
17200         * math/w_atanhl.c: Likewise.
17201         * math/w_cosh.c: Likewise.
17202         * math/w_coshf.c: Likewise.
17203         * math/w_coshl.c: Likewise.
17204         * math/w_dremf.c: Likewise.
17205         * math/w_exp10.c: Likewise.
17206         * math/w_exp10f.c: Likewise.
17207         * math/w_exp10l.c: Likewise.
17208         * math/w_exp2.c: Likewise.
17209         * math/w_exp2f.c: Likewise.
17210         * math/w_fmod.c: Likewise.
17211         * math/w_fmodf.c: Likewise.
17212         * math/w_fmodl.c: Likewise.
17213         * math/w_hypot.c: Likewise.
17214         * math/w_hypotf.c: Likewise.
17215         * math/w_hypotl.c: Likewise.
17216         * math/w_j0.c: Likewise.
17217         * math/w_j0f.c: Likewise.
17218         * math/w_j0l.c: Likewise.
17219         * math/w_j1.c: Likewise.
17220         * math/w_j1f.c: Likewise.
17221         * math/w_j1l.c: Likewise.
17222         * math/w_jn.c: Likewise.
17223         * math/w_jnf.c: Likewise.
17224         * math/w_jnl.c: Likewise.
17225         * math/w_lgamma.c: Likewise.
17226         * math/w_lgamma_r.c: Likewise.
17227         * math/w_lgammaf.c: Likewise.
17228         * math/w_lgammaf_r.c: Likewise.
17229         * math/w_lgammal.c: Likewise.
17230         * math/w_lgammal_r.c: Likewise.
17231         * math/w_log.c: Likewise.
17232         * math/w_log10.c: Likewise.
17233         * math/w_log10f.c: Likewise.
17234         * math/w_log10l.c: Likewise.
17235         * math/w_log2.c: Likewise.
17236         * math/w_log2f.c: Likewise.
17237         * math/w_log2l.c: Likewise.
17238         * math/w_logf.c: Likewise.
17239         * math/w_logl.c: Likewise.
17240         * math/w_pow.c: Likewise.
17241         * math/w_powf.c: Likewise.
17242         * math/w_powl.c: Likewise.
17243         * math/w_remainder.c: Likewise.
17244         * math/w_remainderf.c: Likewise.
17245         * math/w_remainderl.c: Likewise.
17246         * math/w_scalb.c: Likewise.
17247         * math/w_scalbf.c: Likewise.
17248         * math/w_scalbl.c: Likewise.
17249         * math/w_sinh.c: Likewise.
17250         * math/w_sinhf.c: Likewise.
17251         * math/w_sinhl.c: Likewise.
17252         * math/w_sqrt.c: Likewise.
17253         * math/w_sqrtf.c: Likewise.
17254         * math/w_sqrtl.c: Likewise.
17255         * math/w_tgamma.c: Likewise.
17256         * math/w_tgammaf.c: Likewise.
17257         * math/w_tgammal.c: Likewise.
17258
17259         * po/ja.po: Update from translation team.
17260
17261 2011-09-29  Andreas Jaeger  <aj@suse.de>
17262
17263         [BZ #13179]
17264         * sunrpc/netname.c (netname2host): Fix logic.
17265
17266         [BZ #6779]
17267         [BZ #6783]
17268         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17269         correctly.
17270         * math/w_remainder.c (__remainder): Likewise.
17271         * math/w_remainderf.c (__remainderf): Likewise.
17272         * math/libm-test.inc (remainder_test): Add test cases.
17273
17274 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17275
17276         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17277         sdiv_qrnnd.
17278
17279 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17280
17281         * string/test-memcmp.c: Avoid unncessary #defines.
17282         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17283
17284 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17285
17286         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17287         Use new sse2 version for core i3 - i7 as it's faster
17288         than sse42 version.
17289         (bit_Prefer_PMINUB_for_stringop): New.
17290         * sysdeps/x86_64/rawmemchr.S: Update.
17291         Replace with faster SSE2 version.
17292         * sysdeps/x86_64/memrchr.S: New file.
17293         * sysdeps/x86_64/memchr.S: Update.
17294         Replace with faster SSE2 version.
17295
17296 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17297
17298         * elf/dl-load.c (lose): Add cast to avoid warning.
17299
17300 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17301
17302         * po/ca.po: Update from translation team.
17303
17304         * inet/getnetgrent_r.c: Hook up nscd.
17305         * nscd/Makefile (routines): Add nscd_netgroup.
17306         (nscd-modules): Add netgroupcache.
17307         (CFLAGS-netgroupcache.c): Define.
17308         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17309         (cache_search): Add const to second parameter.
17310         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17311         INNETGR.
17312         (dbs): Add netgrdb entry.
17313         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17314         (verify_persistent_db): Handle netgrdb.
17315         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17316         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17317         GETFDNETGR.
17318         (netgroup_response_header): Define.
17319         (innetgroup_response_header): Define.
17320         (datahead): Add netgroup_response_header and innetgroup_response_header
17321         elements.
17322         * nscd/nscd.conf: Add entries for netgroup cache.
17323         * nscd/nscd.h (dbtype): Add netgrdb.
17324         (_PATH_NSCD_NETGROUP_DB): Define.
17325         (netgroup_iov_disabled): Declare.
17326         (xmalloc, xcalloc, xrealloc): Move declarations here.
17327         (cache_search): Adjust prototype.
17328         Add netgroup-related prototypes.
17329         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17330         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17331         (__nscd_innetgr): Declare.
17332         * nscd/selinux.c (perms): Use access_vector_t as element type and
17333         add netgroup-related initializers.
17334         * nscd/netgroupcache.c: New file.
17335         * nscd/nscd_netgroup.c: New file.
17336         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17337         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17338         For four parameters use innetgr.
17339         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17340         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17341         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17342         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17343
17344         * nscd/connections.c (register_traced_file): Don't register file
17345         for disabled databases.
17346
17347 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17348
17349         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17350
17351         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17352         from tree and freeing node.
17353
17354 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17355
17356         * nss/nsswitch.c (__nss_database_lookup): Handle
17357         nss_parse_service_list out of memory case.
17358
17359 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17360
17361         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17362         out of memory case.
17363
17364 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17365
17366         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17367         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17368         pass it down.
17369         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17370         elf_machine_rela, elf_machine_lazy_rel.
17371         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17372         (ELF_DYNAMIC_DO_REL): Likewise.
17373         (ELF_DYNAMIC_DO_RELA): Likewise.
17374         (ELF_DYNAMIC_RELOCATE): Likewise.
17375         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17376         to ELF_DYNAMIC_DO_REL.
17377         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17378         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17379         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17380         elf_machine_rela.
17381         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17382         skip_ifunc, don't call ifunc function if non-zero.
17383         (elf_machine_rela): Likewise.
17384         (elf_machine_lazy_rel): Likewise.
17385         (elf_machine_lazy_rela): Likewise.
17386         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17387         (elf_machine_lazy_rel): Likewise.
17388         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17389         Likewise.
17390         (elf_machine_lazy_rel): Likewise.
17391         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17392         Likewise.
17393         (elf_machine_lazy_rel): Likewise.
17394         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17395         (elf_machine_lazy_rel): Likewise.
17396         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17397         (elf_machine_lazy_rel): Likewise.
17398         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17399         (elf_machine_lazy_rel): Likewise.
17400         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17401         (elf_machine_lazy_rel): Likewise.
17402         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17403         (elf_machine_lazy_rel): Likewise.
17404         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17405         (elf_machine_lazy_rel): Likewise.
17406
17407 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17408
17409         * nss/nss_files/files-init.c (_nss_files_init): Use static
17410         initialization for all the *_traced_file variables.
17411
17412 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17413
17414         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17415
17416 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17417
17418         [BZ #13226]
17419         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17420
17421 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17422
17423         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17424         Reread the line before reparsing it.
17425
17426 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17427
17428         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17429
17430 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17431             Maxim Kuvyrkov  <maxim@codesourcery.com>
17432             Joseph Myers  <joseph@codesourcery.com>
17433
17434         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17435         if needed for __stack_chk_guard.
17436
17437 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17438
17439         * sysdeps/posix/spawni.c (script_execute): Always define it.
17440         It will be optimized away if unused.
17441         (maybe_script_execute): New function.
17442         (__spawni): Call it.
17443
17444         * Makerules: Don't include tls.make.
17445         (config-tls): Always set to thread.
17446         * tls.make.c: File removed.
17447
17448 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17449
17450         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17451         * config.make.in (CPPFLAGS-config): New substituted variable.
17452
17453 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17454
17455         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17456
17457         [BZ #13192]
17458         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17459         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17460
17461 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17462
17463         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17464         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17465         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17466         (CALL_FAIL): Likewise.
17467         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17468         (CALL_FAIL): Macro removed.
17469         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17470
17471 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17472
17473         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17474         for __FINITE_MATH_ONLY__ == 1.
17475
17476 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17477
17478         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17479         __ieee754_sqrt instead of sqrt.
17480         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17481         __ieee754_sqrtf instead of sqrtf.
17482         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17483         __floorf instead of floorf.
17484         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17485         __floorf, __truncf instead of floorf, truncf.
17486
17487 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17488
17489         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17490
17491         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17492         __extern_always_inline.
17493         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17494         32-bit.
17495
17496 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17497
17498         * elf/rtld.c (dl_main): Also relocate in dependency order when
17499         doing symbol dependency testing.
17500
17501 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17502
17503         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17504         Always define `refsym'.
17505
17506 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17507
17508         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17509         (__FD_ELT): Renamed from __FDELT.
17510         * misc/bits/select2.h (__FD_ELT): Likewise.
17511         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17512         __FD_MASK instead of __FDELT, __FDMASK.
17513         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17514         Likewise.
17515         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17516         Likewise.
17517
17518         * elf/Makefile (gen-ldd): Fix pattern.
17519
17520         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17521         (init_tls): Likewise.
17522
17523 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17524
17525         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17526
17527 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17528
17529         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17530         `struct cmsghdr *' instead of `void *'.
17531         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17532         Likewise.
17533
17534 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17535
17536         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17537         if non-absolute.
17538         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17539         ldd_rewrite_script.
17540
17541 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17542
17543         * configure.in: Remove --with-tls option.
17544         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17545         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17546         out in case it is missing.
17547         * sysdeps/ia64/elf/configure.in: Likewise.
17548         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17549         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17550         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17551         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17552         * sysdeps/sh/elf/configure.in: Likewise.
17553         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17554         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17555         * sysdeps/x86_64/elf/configure.in: Likewise.
17556         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17557         * sysdeps/mach/hurd/tls.h: Likewise.
17558
17559         [BZ #13067]
17560         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17561
17562         [BZ #13090]
17563         * configure.in: Fix use of AC_INIT.
17564
17565         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17566
17567 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17568
17569         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17570         __set_errno.
17571         * malloc/hooks.c: Likewise.
17572
17573         [BZ #11929]
17574         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17575         variables statically.
17576         (narenas): Initialize.
17577         (list_lock): Initialize.
17578         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17579         initializtion of main_arena and list_lock.  Small cleanups.
17580         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17581         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17582         Add initializers to main_arena and mp_.
17583         (malloc_state): Remove pagesize member.  Change all users to use
17584         GLRO(dl_pagesize).
17585
17586         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17587         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17588         is always initialized.
17589
17590         * malloc/malloc.c: Removed unused configurations and dead code.
17591         * malloc/arena.c: Likewise.
17592         * malloc/hooks.c: Likewise.
17593         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17594
17595         * include/tls.h: Removed.  USE___THREAD must always be defined.
17596         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17597         * elf/dl-libc.c: Likewise.
17598         * elf/dl-tsd.c: Likewise.
17599         * include/errno.h: Likewise.
17600         * include/netdb.h: Likewise.
17601         * include/resolv.h: Likewise.
17602         * inet/herrno-loc.c: Likewise.
17603         * inet/herrno.c: Likewise.
17604         * malloc/arena.c: Likewise.
17605         * malloc/hooks.c: Likewise.
17606         * malloc/malloc.c: Likewise.
17607         * resolv/res-state.c: Likewise.
17608         * resolv/res_libc.c: Likewise.
17609         * sysdeps/i386/dl-machine.h: Likewise.
17610         * sysdeps/ia64/dl-machine.h: Likewise.
17611         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17612         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17613         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17614         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17615         * sysdeps/sh/dl-machine.h: Likewise.
17616         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17617         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17618         * sysdeps/unix/i386/sysdep.S: Likewise.
17619         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17620         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17621         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17622         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17623         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17624         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17625         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17626         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17627         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17628         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17629         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17630         * sysdeps/x86_64/dl-machine.h: Likewise.
17631         * tls.make.c: Likewise.
17632
17633         * configure.in: Remove --with-__thread option.  Make tests for
17634         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17635         tls_model attribute fail if no support is available.  Remove
17636         USE_IN_LIBIO.
17637         * Makeconfig: Adjust for dropped configure option.  All features are
17638         now mandatory.
17639         * Makerules: Likewise.
17640         * Versions.def: Likewise.
17641         * argp/argp-fmtstream.c: Likewise.
17642         * argp/argp-fmtstream.h: Likewise.
17643         * argp/argp-help.c: Likewise.
17644         * assert/assert.c: Likewise.
17645         * config.h.in: Likewise.
17646         * config.make.in: Likewise.
17647         * configure: Likewise.
17648         * configure.in: Likewise.
17649         * csu/Versions: Likewise.
17650         * csu/init.c: Likewise.
17651         * elf/tst-audit2.c: Likewise.
17652         * elf/tst-tls10.c: Likewise.
17653         * elf/tst-tls10.h: Likewise.
17654         * elf/tst-tls11.c: Likewise.
17655         * elf/tst-tls12.c: Likewise.
17656         * elf/tst-tls14.c: Likewise.
17657         * elf/tst-tlsmod11.c: Likewise.
17658         * elf/tst-tlsmod12.c: Likewise.
17659         * elf/tst-tlsmod13.c: Likewise.
17660         * elf/tst-tlsmod13a.c: Likewise.
17661         * elf/tst-tlsmod14a.c: Likewise.
17662         * elf/tst-tlsmod15b.c: Likewise.
17663         * elf/tst-tlsmod16a.c: Likewise.
17664         * elf/tst-tlsmod16b.c: Likewise.
17665         * elf/tst-tlsmod7.c: Likewise.
17666         * elf/tst-tlsmod8.c: Likewise.
17667         * elf/tst-tlsmod9.c: Likewise.
17668         * gmon/gmon.c: Likewise.
17669         * grp/fgetgrent_r.c: Likewise.
17670         * grp/putgrent.c: Likewise.
17671         * hurd/fopenport.c: Likewise.
17672         * include/libc-symbols.h: Likewise.
17673         * include/tls.h: Likewise.
17674         * intl/gettextP.h: Likewise.
17675         * intl/loadinfo.h: Likewise.
17676         * locale/global-locale.c: Likewise.
17677         * locale/localeinfo.h: Likewise.
17678         * mach/devstream.c: Likewise.
17679         * malloc/arena.c: Likewise.
17680         * malloc/set-freeres.c: Likewise.
17681         * misc/err.c: Likewise.
17682         * misc/getttyent.c: Likewise.
17683         * misc/mntent_r.c: Likewise.
17684         * posix/getopt.c: Likewise.
17685         * posix/wordexp.c: Likewise.
17686         * pwd/fgetpwent_r.c: Likewise.
17687         * resolv/Versions: Likewise.
17688         * resolv/res_hconf.c: Likewise.
17689         * shadow/fgetspent_r.c: Likewise.
17690         * shadow/putspent.c: Likewise.
17691         * stdio-common/printf_fphex.c: Likewise.
17692         * stdio-common/tmpfile.c: Likewise.
17693         * stdlib/abort.c: Likewise.
17694         * stdlib/fmtmsg.c: Likewise.
17695         * sunrpc/auth_unix.c: Likewise.
17696         * sunrpc/clnt_perr.c: Likewise.
17697         * sunrpc/clnt_tcp.c: Likewise.
17698         * sunrpc/clnt_udp.c: Likewise.
17699         * sunrpc/clnt_unix.c: Likewise.
17700         * sunrpc/openchild.c: Likewise.
17701         * sunrpc/svc_simple.c: Likewise.
17702         * sunrpc/svc_tcp.c: Likewise.
17703         * sunrpc/svc_udp.c: Likewise.
17704         * sunrpc/svc_unix.c: Likewise.
17705         * sunrpc/xdr.c: Likewise.
17706         * sunrpc/xdr_array.c: Likewise.
17707         * sunrpc/xdr_rec.c: Likewise.
17708         * sunrpc/xdr_ref.c: Likewise.
17709         * sunrpc/xdr_stdio.c: Likewise.
17710
17711 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17712
17713         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17714
17715 2011-07-03  Andreas Jaeger  <aj@suse.de>
17716
17717         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17718         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17719         regenerate with gen-libm-tests.pl.
17720
17721 2010-05-12  Petr Baudis  <pasky@suse.cz>
17722
17723         [BZ #11589]
17724         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17725         around j0() zero points by switching to j1().
17726         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17727         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17728         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17729         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17730
17731 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17732
17733         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17734         instead of 0.
17735         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17736         instead of 0.                              .
17737         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17738         Patch in part by Pavel Roskin <proski@gnu.org>.
17739
17740         [BZ #13138]
17741         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17742         realloc.
17743         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17744         Free memory block if necessary.
17745
17746         [BZ #12847]
17747         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17748         be NULL.  Don't lock in this case.
17749
17750 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17751
17752         * elf/elf.h (ELFOSABI_GNU): New macro.
17753         (ELFOSABI_LINUX): Define to that.
17754
17755 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17756
17757         * string/strncat.c (strncat): Undef the symbol in case it has been
17758         defined in bits/string.h.
17759
17760 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17761
17762         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17763
17764         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17765         link map.
17766
17767 2011-08-17  Andreas Jaeger  <aj@suse.de>
17768
17769         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17770
17771 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17772             Ian Lance Taylor  <iant@google.com>
17773
17774         * math/libm-test.inc (lround_test): New testcase.
17775         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17776
17777 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17778
17779         * Makefile: Remove support for automatic cvs check-ins.
17780         * Makerules: Likewise.
17781         * config.make.in: Likewise.
17782         * configure.in: Likewise.
17783         * intl/Makefile: Likewise.
17784         * locale/Makefile: Likewise.
17785         * po/Makefile: Likewise.
17786         * posix/Makefile: Likewise.
17787         * sysdeps/gnu/Makefile: Likewise.
17788         * sysdeps/mach/hurd/Makefile: Likewise.
17789         * sysdeps/sparc/sparc32/Makefile: Likewise.
17790
17791         [BZ #13118]
17792         * posix/Makefile (bug-regex32-ENV): Define.
17793         Patch by John Stanley <jpsinthemix@verizon.net>.
17794
17795         * misc/Makefile (headers): Add bits/select2.h.
17796         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17797         * misc/bits/select2.h: New file.
17798         * include/bits/select2.h: New file.
17799         * debug/Makefile (routines): Add fdelt_chk.
17800         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17801         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17802         FD_ISSET.
17803         * debug/fdelt_chk.c: New file.
17804
17805         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17806         * wcsmbs/test-wmemcmp.c: Likewise.
17807         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17808         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17809
17810 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17811
17812         * string/Makefile (strop-tests): Add memcmp.
17813         * string/test-wmemcmp.c: New file.
17814         * string/test-memcmp.c: Add wmemcmp support.
17815
17816 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17817
17818         [BZ #13153]
17819         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17820         2011-07-19 change.
17821
17822         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17823         garbage value in a __mach_port_mod_refs call in the cases of the
17824         task-self and thread-self ports.
17825
17826 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17827
17828         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17829
17830 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17831
17832         * elf/dl-load.c (lose): Check for non-null L.
17833
17834 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17835
17836         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17837
17838         * elf/dl-libc.c (dlerror_run): Pass back error code from
17839         dl_catch_error.
17840
17841         [BZ #13123]
17842         * elf/dl-load.c (lose): Free l_origin if it is valid.
17843
17844         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17845         names.
17846         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17847         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17848         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17849         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17850         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17851         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17852
17853 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17854
17855         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17856         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17857         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17858         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17859         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17860         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17861         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17862         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17863         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17864         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17865
17866 2011-08-15  Alan Modra  <amodra@gmail.com>
17867
17868         [BZ #13092]
17869         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17870         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17871         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17872         ppc_mcount to static-only-routines.
17873         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17874         __mcount_internal.
17875         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17876         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17877
17878 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17879
17880         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17881         for finite and infinity parameters.
17882
17883 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17884
17885         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17886         and add nop instructions for throughput optimization.
17887         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17888
17889 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17890
17891         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17892         aligned copy for power7 with vector-scalar instructions.
17893         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17894
17895 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17896
17897         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17898         AVX check.
17899
17900 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17901
17902         [BZ #13144]
17903         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17904         last change.
17905
17906 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17907
17908         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17909         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17910         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17911         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17912         clock_gettime.
17913
17914 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17915
17916         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
17917         Forgot to demangle the pointer.
17918
17919         * sysdeps/i386/sysdep.h: Define atom_text_section.
17920         * sysdeps/x86_64/sysdep.h: Likewise.
17921         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
17922         section with atom_text_section.
17923         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17924         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17925         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
17926         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17927         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
17928
17929         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
17930         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
17931         already be defined.  Change to take two parameters and don't assign
17932         result to variable.  Adjust all users.
17933         Define INTERNAL_GETTIME if not already defined.
17934         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
17935         call.
17936         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
17937         HAVE_CLOCK_GETTIME_VSYSCALL.
17938         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
17939
17940         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17941         gettimeofday vsyscall, just use time.
17942
17943 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17944
17945         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17946         <errno.h>.
17947
17948 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17949
17950         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17951         syscall on x86-64.
17952         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17953         syscall.
17954         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17955         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17956         syscall if possible.
17957
17958 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17959
17960         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17961         e_ident.  Don't pass to find_mapsXX.
17962         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17963
17964 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17965
17966         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17967         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17968         * sysdeps/x86_64/multiarch/strchr.S: Update.
17969         Check bit_slow_BSF bit.
17970         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17971         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17972         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17973
17974 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17975
17976         [BZ #13134]
17977         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17978         before glibc 2.15.
17979         (tryshell): Define.
17980         (__spawni): Change last parameter to be flag.  Test
17981         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17982         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17983         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17984         * posix/spawni.c: Likewise.
17985         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17986         * posix/spawnp.c: Likewise.  Change normal version to use
17987         SPAWN_XFLAGS_USE_PATH.
17988         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17989         SPAWN_XFLAGS_TRY_SHELL.
17990
17991         [BZ #13150]
17992         * posix/glob.h: Remove gcc 1.x support.
17993
17994         [BZ #13068]
17995         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17996
17997 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17998
17999         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18000         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18001         strrchr-sse2-bsf
18002         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18003         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18004         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18005         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18006         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18007         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18008
18009 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18010
18011         * sysdeps/x86_64/wcscmp.S: New file.
18012
18013         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18014         wcscmp-c wcscmp-sse2
18015         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18016         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18017         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18018         * wcsmbs/wcscmp.c: Allow renaming.
18019
18020 2011-09-05  David S. Miller  <davem@davemloft.net>
18021
18022         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18023         stack slot, rather than the struct return pointer slot.
18024         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18025         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18026         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18027         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18028
18029 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18030
18031         * po/ja.po: Update from translation team.
18032
18033         [BZ #13144]
18034         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18035         kernel in 64-bit binaries.
18036
18037 2011-09-01  David S. Miller  <davem@davemloft.net>
18038
18039         * elf/elf.h (HWCAP_SPARC_*): Move to..
18040         * sysdeps/sparc/sysdep.h: this new file and add new values.
18041         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18042         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18043         _DL_HWCAP_COUNT to 24.
18044         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18045         entries.
18046         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18047         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18048         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18049         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18050         instead of magic constants.
18051         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18052
18053 2011-08-31  David S. Miller  <davem@davemloft.net>
18054
18055         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18056         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18057         Reimplement to do errno handling inline.
18058         (SYSCALL_ERROR_HANDLER): New macro.
18059         (__SYSCALL_STRING): Do not do errno handling in asm.
18060         (__CLONE_SYSCALL_STRING): Delete.
18061         (__INTERNAL_SYSCALL_STRING): Delete.
18062         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18063         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18064         (PSEUDO): Reimplement to do errno handling inline.
18065         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18066         (SYSCALL_ERROR_HANDLER): New macro.
18067         (__SYSCALL_STRING): Do not do errno handling in asm.
18068         (__CLONE_SYSCALL_STRING): Delete.
18069         (__INTERNAL_SYSCALL_STRING): Delete.
18070         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18071         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18072         i386.
18073         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18074         (inline_syscall*): Add 'err' argument.
18075         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18076         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18077         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18078         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18079
18080         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18081         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18082
18083 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18084
18085         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18086
18087 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18088
18089         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18090         directive.
18091
18092 2011-08-24  David S. Miller  <davem@davemloft.net>
18093
18094         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18095
18096 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18097
18098         * elf/Makefile: Add rules to build and run unload8 test.
18099         * elf/unload8.c: New file.
18100         * elf/unload8mod1.c: New file.
18101         * elf/unload8mod1x.c: New file.
18102         * elf/unload8mod2.c: New file.
18103         * elf/unload8mod3.c: New file.
18104
18105         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18106         it wasn't used.
18107
18108 2011-08-23  David S. Miller  <davem@davemloft.net>
18109
18110         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18111         subtract stack bias.
18112         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18113         %sp not %fp in calculations.
18114         (_JMPBUF_UNWINDS_ADJ): Likewise.
18115
18116         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18117         (aio_suspend): Call it to force an exception region around the
18118         AIO_MISC_WAIT() invocation.
18119
18120 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18121
18122         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18123         backslash.
18124
18125 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18126
18127         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18128         protection macro.
18129         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18130         and <dl-machine.h>.
18131         (Elf64_FuncDesc): Remove.
18132
18133 2011-08-22  David S. Miller  <davem@davemloft.net>
18134
18135         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18136         sigaltstack check, add missing cfi directives.
18137         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18138         missing cfi directives, and sigaltstack handling.
18139
18140 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18141
18142         [BZ #11724]
18143         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18144         object is seen twice.
18145         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18146
18147         * elf/Makefile (distribute): Add tst-initorder2.c.
18148         (tests): Add tst-initorder2.
18149         (modules-names): Add tst-initorder2a tst-initorder2b
18150         tst-initorder2c tst-initorder2d.  Add rules to build them.
18151         ($(objpfx)tst-initorder2.out): New rule.
18152         * elf/tst-initorder2.c: New file.
18153         * elf/tst-initorder2.exp: New file.
18154
18155 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18156
18157         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18158
18159         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18160         dependencies back to end of function.
18161
18162         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18163         $(elfobjdir)/ld.so.
18164
18165 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18166
18167         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18168         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18169         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18170         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18171         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18172         of __vdso_gettimeofday.
18173         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18174         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18175         attribute_hidden.
18176         (_libc_vdso_platform_setup): Remove initialization of
18177         __vdso_gettimeofday and __vdso_time.
18178
18179 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18180
18181         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18182         and fgetc_unlocked.
18183         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18184         getc_unlocked.
18185
18186         * elf/dl-open.c (add_to_global): Report additions to the global scope
18187         for LD_DEBUG=scopes.
18188         (dl_open_worker): Also print scope of newly loaded dependencies.
18189         (_dl_show_scope): Indicate if there is no scope.
18190
18191         [BZ #13114]
18192         * stdio-common/Makefile (tests): Add bug24.
18193         * stdio-common/bug24.c: New file.
18194
18195 2011-08-19  Andreas Jaeger  <aj@suse.de>
18196
18197         [BZ #13114]
18198         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18199         non-existant file when using close-on-exec mode.
18200
18201 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18202
18203         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18204         the very first instruction.
18205
18206         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18207         the CFI state in the end.
18208         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18209         inclusion of dl-trampoline.h.
18210         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18211
18212 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18213
18214         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18215         expectations for long double.
18216
18217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18218         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18219
18220 2011-08-14  David S. Miller  <davem@davemloft.net>
18221
18222         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18223         artificual limit depends upon the system page size.
18224
18225 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18226
18227         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18228         * resolv/Makefile: Define CFLAGS-libresolv.
18229
18230 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18231
18232         * nss/makedb.c (compute_tables): Make variables used in nested
18233         function static.
18234
18235 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18236
18237         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18238         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18239         if buffer was too small.
18240
18241         * elf/pldd.c (main): Attach to all threads in the process.
18242         Rewrite /proc handling to use *at functions.
18243
18244 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18245
18246         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18247         specifies first scope to show.
18248         (dl_open_worker): Update callers.  Move printing scope of new
18249         object to before the relocation.
18250         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18251         * sysdeps/generic/ldsodefs.h: Update declaration.
18252
18253         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18254         string for the scope number.
18255
18256 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18257
18258         * nscd/servicescache.c (cache_addserv): Make sure written is always
18259         initialized.
18260
18261 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18262
18263         * sysdeps/i386/i486/bits/atomic.h
18264         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18265         statement expression, so as to suppress "set but not used" warning.
18266         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18267
18268         * string/strncat.c (STRNCAT): Use prototype definition.
18269
18270         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18271         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18272         -Iprograms here.
18273         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18274         (localedef-modules): Add localedef.
18275         (locale-modules): Add locale.
18276
18277         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18278         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18279         to avoid a warning.
18280
18281 2011-08-14  David S. Miller  <davem@davemloft.net>
18282
18283         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18284         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18285
18286 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18287
18288         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18289         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18290         * elf/rtld.c (dl_main): Set l_name of vDSO.
18291         Call _dl_show_scope when DL_DEBUG_SCOPES.
18292         (process_dl_debug): Recognize scopes flag and also set it for all.
18293         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18294         Declare _dl_show_scope.
18295
18296         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18297         (do_dlopen): Pass caller_dlopen to dl_open.
18298         (__libc_dlopen_mode): Initialize caller_dlopen.
18299
18300         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18301         of libc.  Make tolower call locale-independent.  Optimize a bit by
18302         using isdigit instead of isalnum.
18303         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18304
18305 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18306
18307         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18308         was a dependency or dynamically loaded.
18309
18310 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18311
18312         * intl/l10nflist.c: Allow architecture-specific pop function.
18313         * sysdeps/x86_64/l10nflist.c: New file.
18314
18315         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18316         classification.
18317
18318 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18319
18320         * include/dirent.h: Add libc_hidden_proto for scandirat and
18321         scandirat64.  Don't declare __scandirat64.
18322         * dirent/scandirat.c: Add libc_hidden_def.
18323         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18324         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18325
18326 2011-08-10  David S. Miller  <davem@davemloft.net>
18327
18328         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18329         enum.
18330         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18331         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18332         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18333
18334 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18335
18336         * Versions.def [libc]: Add GLIBC_2.15.
18337         * dirent/Makefile (routines): Add scandirat and scandirat64.
18338         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18339         GLIBC_2.15.
18340         * dirent/dirent.h: Declare scandirat and scandirat64.
18341         * dirent/scandirat.c: New file.
18342         * dirent/scandirat64.c: New file.
18343         * sysdeps/wordsize-64/scandirat.c: New file.
18344         * sysdeps/wordsize-64/scandirat64.c: New file.
18345         * dirent/opendir.c: Define opendirat.
18346         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18347         using scandirat.
18348         * dirent/scandir64.c: Adjust for scandir.c change.
18349         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18350         __scandirat64, and __scandir_cancel_handler.
18351         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18352         additional parameter and use openat instead of open (outside of ld.so).
18353         Add new __opendir as wrapper around __opendirat.
18354         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18355         here without requiring old scandirat implementation.
18356
18357 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18358
18359         * dirent/scandir.c (cancel_handler): Renamed to
18360         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18361         defined.  Adjust users.
18362         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18363         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18364
18365 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18366
18367         * string/test-string.h (IMPL): Use __STRING to expand name and then
18368         stringify it.
18369
18370         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18371         of cleanups.
18372
18373 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18374
18375         * string/Makefile: Update.
18376         (strop-tests): Append strncat.
18377         * string/test-wcscmp.c: New file.
18378         New comprehensive test for wcscmp.
18379         * string/test-strcmp.c: Update.
18380         (WIDE): New define.
18381
18382 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18383
18384         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18385         line.
18386
18387 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18388
18389         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18390         encoding to ACE if AI_IDN.
18391
18392 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18393
18394         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18395         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18396
18397 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18398
18399         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18400         Fix overflow bug in strncat.
18401         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18402
18403         * string/test-strncat.c: Update.
18404         Add new tests for checking overflow bugs.
18405
18406 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18407
18408         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18409         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18410         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18411         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18412         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18413         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18414         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18415         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18416         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18417
18418         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18419         (USE_AS_STRCAT): Define.
18420         Add strcat and strncat support.
18421         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18422
18423 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18424
18425         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18426         __n bigger than INT_MAX+1.
18427         (__strncmp_g): Likewise.
18428
18429 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18430
18431         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18432         * libio/stido.h: Likewise.
18433
18434         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18435         (AF_NFC): Define.
18436         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18437         (AF_NFC): Define.
18438
18439         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18440         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18441         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18442         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18443         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18444
18445         [BZ #13021]
18446         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18447         installed.
18448
18449         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18450         typo.
18451         (_dl_x86_64_save_sse): Likewise.
18452
18453 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18454
18455         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18456         OSXSAVE.
18457         (_dl_x86_64_save_sse): Likewise.
18458
18459         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18460
18461         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18462
18463 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18464
18465         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18466         change.
18467         (_dl_x86_64_save_sse): Use correct AVX check.
18468
18469 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18470
18471         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18472         bug in strncpy/strncat.
18473         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18474
18475 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18476
18477         * string/tester.c (test_strcat): Add tests for different alignments
18478         of source and destination.
18479         (test_strncat): Likewise.
18480
18481 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18482
18483         [BZ #12852]
18484         * posix/glob.c (glob): Check passed in values before using them in
18485         expressions to avoid some overflows.
18486         (glob_in_dir): Likewise.
18487
18488         [BZ #13007]
18489         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18490         check for AVX enablement so that we don't crash with old kernels and
18491         new hardware.
18492         * elf/tst-audit4.c: Add same checks here.
18493         * elf/tst-audit6.c: Likewise.
18494
18495         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18496
18497 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18498
18499         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18500
18501 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18502
18503         * po/cs.po: Update from translation team.
18504         * po/bg.po: Likewise.
18505
18506 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18507
18508         * misc/sys/cdefs.h: Add support for const attribute.
18509         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18510         to gnu_dev_{major,minor,makedev} functions.
18511
18512 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18513
18514         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18515
18516 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18517
18518         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18519         strlen results.
18520
18521 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18522
18523         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18524         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18525         register in order to avoid conflicts with the soft frame pointer
18526         being held in r11 when necessary.
18527         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18528         (INTERNAL_VSYSCALL_NCS): Likewise.
18529
18530 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18531
18532         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18533         * elf/dl-fini.c (_dl_fini): Adjust caller.
18534         * elf/dl-close.c (_dl_close_worker): Likewise.
18535         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18536
18537 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18538
18539         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18540         "aux_cache->nlibs < 0".
18541
18542         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18543         in the reload-count case.
18544
18545 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18546
18547         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18548         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18549         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18550         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18551         * sysdeps/x86_64/multiarch/strcat.S: New file.
18552         * sysdeps/x86_64/multiarch/strncat.S: New file.
18553         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18554         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18555         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18556         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18557         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18558         (USE_AS_STRCAT): Define.
18559         Add strcat and strncat support.
18560         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18561         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18562         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18563         * string/strncat.c: Update.
18564         (USE_AS_STRNCAT): Define.
18565         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18566         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18567         and i7.
18568         * sysdeps/x86_64/multiarch/init-arch.h
18569         (bit_Prefer_PMINUB_for_stringop): New.
18570         (index_Prefer_PMINUB_for_stringop): Likewise.
18571         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18572         bit_Prefer_PMINUB_for_stringop.
18573
18574 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18575
18576         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18577         buffer64.
18578         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18579         of casting of buffer.
18580         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18581         buffer32 and buffer64.
18582         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18583         writes instead of casting of buffer.
18584         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18585         buffer32.
18586         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18587         casting of buffer.
18588
18589 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18590
18591         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18592
18593 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18594
18595         * nscd/nscd.c (termination_handler): Don't do anything for a database
18596         if it has not yet been initialized.
18597
18598 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18599
18600         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18601
18602 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18603
18604         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18605
18606 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18607
18608         * po/nl.po: Update from translation team.
18609         * po/sv.po: Likewise.
18610
18611 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18612
18613         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18614         now disallowed by GCC.
18615
18616         * configure.in (use-default-link): Default to yes if a test -shared
18617         link meets our qualifications.
18618         * configure: Regenerated.
18619
18620         * config.make.in (output-format): New variable.
18621         * configure.in: Check for ld --print-output-format support.
18622         * configure: Regenerated.
18623         * Makerules ($(common-objpfx)format.lds)
18624         [$(output-format) != unknown]: Just use $(output-format),
18625         instead of the linker-script munging.
18626
18627 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18628
18629         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18630         of $(common-objpfx)shlib.lds.
18631         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18632
18633         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18634         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18635
18636         * configure.in (-z relro check): Adjust test code to add a large
18637         writable data section after it.
18638         * configure: Regenerated.
18639
18640 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18641
18642         * configure.in (-z relro check): Fix test code to make the variable
18643         truly const.
18644         * configure: Regenerated.
18645
18646 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18647
18648         * nscd/nscd.h (struct traced_file): Define.
18649         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18650         elements.  Add traced_files.
18651         (inotify_fd): Declare.
18652         (register_traced_file): Declare.
18653         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18654         (inotify_fd): Export.
18655         (resolv_conf_descr): Remove.
18656         (nscd_init): Move inotify descriptor creation to main.
18657         Don't register files for notification here.
18658         (register_traced_file): New function.
18659         (invalidate_cache): Don't use reset_res to determine whether to call
18660         res_init, go through the list of registered files.
18661         (main_loop_poll): The inotify descriptors are now stored in the
18662         structures for the traced files.
18663         (main_loop_epoll): Likewise
18664         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18665         to __nss_disable_nscd.
18666         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18667         for a database anymore.  Check the records for all the registered
18668         files instead.
18669         * nss/Makefile (libnss_files-routines): Add files-init.
18670         (libnss_db-routines): Add db-init.
18671         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18672         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18673         * nss/nss_db/db-init.c: New file.
18674         * nss/nss_files/files-init.c: New file.
18675         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18676         __nss_lookup_function.
18677         (__nss_lookup_function): Call nss_load_library.
18678         (nss_load_all_libraries): New function.
18679         (__nss_disable_nscd): Take parameter with callback function for files
18680         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18681         used for the cached services.
18682         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18683         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18684         options for features to all the files in nscd.
18685
18686         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18687
18688 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18689
18690         * csu/elf-init.c (__libc_csu_init): Comment typo.
18691
18692 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18693
18694         * po/pl.po: Update from translation team.
18695         * po/ja.po: Likewise.
18696         * po/ru.po: Likewise.
18697         * po/ko.po: Likewise.
18698         * po/fr.po: Likewise.
18699
18700 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18701
18702         * configure.in (.ctors/.dtors header and trailer check):
18703         Use an empirical test on a built program.
18704         * configure: Regenerated.
18705
18706         * configure.in (-z relro check): Use an empirical test on a built DSO.
18707         Detect, but do not require, on ia64.
18708         * configure: Regenerated.
18709
18710         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18711         Update tests that use readelf to use $READELF instead.
18712         * configure: Regenerated.
18713
18714 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18715
18716         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18717         if the result is not used.
18718
18719 2011-07-05  Andreas Jaeger  <aj@suse.de>
18720
18721         [BZ#9696]
18722         * stdlib/tst-strtod.c: Add testcase.
18723
18724 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18725
18726         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18727         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18728         The latter has a higher limit.  Take additional parameter to pass to
18729         the new function.
18730         (__pathconf): Pass file to __statfs_link_max.
18731         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18732         __statfs_link_max.
18733         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18734         __statfs_link_max.
18735
18736         [BZ #12868]
18737         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18738         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18739         Handle Lustre.
18740         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18741         (__statfs_filesize_max): Likewise.
18742         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18743
18744 2011-07-05  Andreas Jaeger  <aj@suse.de>
18745
18746         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18747
18748 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18749
18750         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18751         `status' variable.
18752         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18753         Likewise.
18754
18755 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18756
18757         * Makefile (strop-tests): Add strncat.
18758         * string/test-strncat.c: New file.
18759
18760 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18761
18762         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18763
18764 2011-06-21  Andreas Jaeger  <aj@suse.de>
18765
18766         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18767         Copy rule from iconvdata/Makefile.
18768
18769 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18770
18771         [BZ #12922]
18772         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18773         but no long options are defined, just return 'W'.
18774
18775 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18776
18777         [BZ #9696]
18778         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18779
18780 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18781
18782         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18783         netgroups to read.
18784         (innetgr): Likewise.
18785
18786 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18787
18788         * config.make.in (install_root): Default to $(DESTDIR).
18789
18790 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18791
18792         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18793
18794 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18795
18796         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18797
18798         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18799         containing directory rather than embedding absolute directory names.
18800
18801         * scripts/check-local-headers.sh: Rewritten using awk.
18802         Match by word, not by line.  Print error messages for matches.
18803         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18804
18805         * Makerules [shlib-lds-flags empty]:
18806         ($(common-objpfx)libc_pic.opts): New target.
18807         ($(common-objpfx)libc_pic.os.clean): New target.
18808         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18809
18810         * config.make.in (OBJCOPY): New variable.
18811         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18812         * configure: Regenerated.
18813
18814         * config.make.in (use-default-link): New variable.
18815         * configure.in (use_default_link): Grok --with-default-link to set it.
18816         * configure: Regenerated.
18817         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18818         (shlib-lds, shlib-lds-flags): Define to empty.
18819
18820         * Makerules (shlib-lds): New variable.
18821         (shlib-lds-flags): New variable.
18822         (build-shlib, build-moduile, build-module-asneeded): Use it.
18823         ($(common-objpfx)libc.so): Use $(shlib-lds).
18824         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18825         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18826
18827         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18828         DT_FLAGS/DT_FLAGS_1 with zero flags.
18829
18830         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18831         linker script munging.
18832
18833 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18834
18835         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18836         as 128-bit value.
18837         * crypt/sha512.c (sha512_process_block): Perform total addition using
18838         128-bit if possible.
18839         (__sha512_finish_ctx): Likewise.
18840         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18841         as 64-bit value.
18842         * crypt/sha256.c (SWAP64): Define.
18843         (sha256_process_block): Perform total addition using 64-bit if
18844         possible.
18845         (__sha256_finish_ctx): Likewise.
18846
18847 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18848
18849         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18850         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18851         * nscd/hstcache.c (cache_addhst): Likewise.
18852         * nscd/grpcache.c (cache_addgr): Likewise.
18853         * nscd/aicache.c (addhstaiX): Likewise
18854         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18855
18856 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18857
18858         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18859         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18860         * nscd/hstcache.c (cache_addhst): Likewise.
18861         * nscd/grpcache.c (cache_addgr): Likewise.
18862         * nscd/aicache.c (addhstaiX): Likewise
18863
18864 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18865
18866         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18867         domain only when needed.
18868
18869 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18870
18871         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18872         is always restored.
18873
18874 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18875
18876         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18877         are re-adding the entry.
18878         * nscd/servicescache.c (cache_addserv): Likewise.
18879
18880 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18881
18882         * sysdeps/generic/dl-irel.h: fix protection against multiple
18883         inclusions.
18884         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18885
18886 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18887
18888         [BZ #12935]
18889         * malloc/memusage.sh: Fix quoting in message.
18890         * debug/xtrace.sh: Likewise.
18891
18892         * configure.in: Remove support for --experimental-malloc option, make
18893         it the default.
18894         * config.make.in: Likewise.
18895         * malloc/Makefile: Likewise.
18896
18897 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18898
18899         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18900         two-byte characters.
18901
18902 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18903
18904         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18905         AC_CACHE_CHECK invocation.
18906         * configure: Regenerated.
18907
18908         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18909
18910 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18911
18912         [BZ #12350]
18913         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18914         bit from old_res_options.
18915
18916         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
18917
18918         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
18919         value type for setfct.
18920
18921 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18922
18923         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18924         __gettimeofday instead of gettimeofday.
18925
18926 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
18927
18928         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
18929
18930 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18931
18932         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
18933
18934         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
18935         info.
18936
18937 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18938
18939         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18940         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18941         strcpy-sse2-unaligned strncpy-sse2-unaligned
18942         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18943         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18944         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18945         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18946         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18947         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18948         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18949         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18950         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18951         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18952         (STRCPY): Support SSE2 and SSSE3 versions.
18953
18954 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18955
18956         [BZ #12874]
18957         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18958         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18959         kernels which artificially limit size of requests.
18960
18961 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18962
18963         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18964         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18965         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18966         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18967         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18968         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18969         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18970         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18971         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18972         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18973         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18974         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18975         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18976         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18977         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18978         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18979         Enable unaligned load optimization for Intel Core i3, i5 and i7
18980         processors.
18981         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18982         Define.
18983         (index_Fast_Unaligned_Load): Define.
18984         (HAS_FAST_UNALIGNED_LOAD): Define.
18985
18986 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18987
18988         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18989
18990 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18991
18992         [BZ #12907]
18993         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18994         until it is clear that the information is realy needed.
18995         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18996
18997 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18998
18999         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19000
19001 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19002
19003         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19004         /sys/devices/system/cpu/online if it is usable.
19005
19006         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19007         reading the information from the /proc filesystem to once a second.
19008
19009 2011-06-21  Andreas Jaeger  <aj@suse.de>
19010
19011         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19012         NULL after inclusion of kernel headers.
19013
19014 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19015
19016         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19017         calls to internal_setent.
19018
19019         [BZ #12885]
19020         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19021         addresses using gethostbyname4_r ignore IPv4 addresses.
19022
19023         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19024         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19025
19026         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19027
19028 2011-06-20  David S. Miller  <davem@davemloft.net>
19029
19030         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19031         inclusions.
19032         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19033
19034         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19035         (elf_irel): Use it.
19036         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19037         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19038         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19039         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19040         * sysdeps/x86_64/dl-irel.h: Likewise.
19041
19042         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19043         * elf/dl-sym.c: Likewise.
19044
19045 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19046
19047         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19048         need to dereference resplen2.
19049
19050 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19051
19052         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19053
19054 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19055
19056         * Makeconfig: Define vardbdir and inst_vardbdir.
19057         * nss/Makefile: Add rules to install db-Makefile.
19058
19059         * nss/nss_db/db-XXX.c: Cleanup.
19060
19061         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19062         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19063         GLIBC_PRIVATE.
19064         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19065         * nss/makedb.c: Implement -g option to specify that value strings
19066         are generated and should not be added to table iterated over for
19067         get*ent calls.
19068         * nss/nss_db/db-initgroups.c: New file.
19069
19070         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19071         interface.
19072
19073         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19074         (internal_getgrouplist): Adjust to name change.
19075         Update use_initgroups_entry if this is not the first call.
19076         * nss/databases.def: Add initgroups entry.
19077
19078         * nss/makedb.c (compute_tables): Check result of multiple hash table
19079         sizes to minimize maximum chain length.
19080
19081 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19082
19083         * Versions.def: Add entry for libnss_db.
19084         * shlib-versions: Likewise.
19085         * nss/Makefile: Add rules to build libnss_db.
19086         * nss/Versions: Add libnss_db information.  Organize libnss_files
19087         entries better.
19088         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19089         makedb progra.  Some minor improvements to generate smaller files.
19090         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19091         here from...
19092         * nss/makedb.c: ...here.
19093         Improve database format to be smaller and require less memory at
19094         runtime.
19095         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19096         db anymore.
19097         * nss/nss_db/db-netgrp.c: Likewise.
19098         * nss/nss_db/db-open.c: Likewise.
19099         * nss/nss_files/flies-XXX.x: Adjust comments.
19100         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19101         * nss/nss_files/files-grp.c: Likewise.
19102         * nss/nss_files/files-hosts.c: Likewise.
19103         * nss/nss_files/files-network.c: Likewise.
19104         * nss/nss_files/files-proto.c: Likewise.
19105         * nss/nss_files/files-pwd.c: Likewise.
19106         * nss/nss_files/files-rpc.c: Likewise.
19107         * nss/nss_files/files-service.c: Likewise.
19108         * nss/nss_files/files-sgrp.c: Likewise.
19109         * nss/nss_files/files-spwd.c: Likewise.
19110         * nss/nss_db/db-alias.c: Removed.
19111         * nss/nss_db/dummy-db.h: Removed.
19112
19113 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19114
19115         * nss/makedb.c: Rewritten to not use database library.
19116         * nss/Makefile: Update to build new makedb program.
19117
19118 2011-06-14  Andreas Jaeger  <aj@suse.de>
19119
19120         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19121         memset declaration.
19122
19123 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19124
19125         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19126         tmpbuf.
19127
19128 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19129
19130         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19131         * elf/Makefile ($(objpfx)ld.so): Likewise.
19132
19133         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19134         Don't list ld.so twice in dependencies.
19135
19136         * posix/bug-regex31.c: Include <stdlib.h>.
19137
19138         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19139
19140         * nis/nss_compat/compat-spwd.c
19141         (getspent_next_nss_netgr): Remove unused variable.
19142         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19143
19144         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19145         nonmembers" output to use the right array.
19146
19147         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19148
19149         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19150
19151         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19152         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19153         * catgets/gencat.c (read_input_file): Likewise.
19154         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19155
19156         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19157         variable definition inside #if's controlling its use.
19158
19159         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19160
19161         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19162
19163         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19164
19165         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19166         unreachable code.
19167
19168         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19169
19170         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19171         * configure: Regenerated.
19172
19173         * Makerules: Revert last change.
19174         * elf/Makefile: Likewise.
19175
19176 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19177
19178         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19179         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19180         (reloc-link): Likewise.
19181
19182 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19183
19184         * elf/Makefile: Add rules to build pldd.
19185         * elf/pldd.c: New file.
19186         * elf/pldd-xx.c: New file.
19187
19188 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19189
19190         * version.h: Update for 2.15 development version.
19191
19192 2011-06-07  David S. Miller  <davem@davemloft.net>
19193
19194         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19195         ifuncs.
19196         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19197         elf_machine_lazy_rel): Likewise.
19198         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19199         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19200         elf_machine_lazy_rel): Likewise.
19201         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19202         dl_hwcap via passed in argument.
19203         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19204         Likewise.
19205
19206 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19207
19208         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19209
19210 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19211
19212         [BZ #12849]
19213         * manual/fdl-1.1.texi: New file, verbatim from:
19214         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19215         * manual/lgpl-2.1.texi: New file, verbatim from:
19216         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19217         * manual/Makefile (licenses): New variable, list those new file names.
19218         (texis): Use it.
19219         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19220
19221         * manual/fdl.texi: File removed.
19222         * manual/lesser.texi: File removed.
19223         * manual/libc.texinfo (Copying, Documentation License):
19224         Use new @include file names, put @appendix directive before @include.
19225
19226 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19227
19228         [BZ #12841]
19229         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19230         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19231         (mq_open): Add __NTH.
19232
19233 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19234
19235         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19236         Assume Intel Core i3/i5/i7 processor if AVX is available.
19237
19238 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19239
19240         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19241         typo.
19242
19243 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19244
19245         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19246         memory.  Use alloca_account.  Fix memory leak when retrying.
19247
19248 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19249
19250         * version.h (RELEASE): Bump for 2.14 release.
19251         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19252
19253         * config.make.in (RANLIB): Remove entry.
19254
19255 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19256
19257         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19258         (libc.pot): Work around missing support for .ksh extension in xgettext.
19259
19260         [BZ #12684]
19261         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19262         if both request failed.
19263         (send_dg): In case of server errors clear resplen or *resplen2.
19264
19265         [BZ #12454]
19266         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19267         when there are multiple maps.
19268         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19269         (_dl_fini): Remove test here.
19270
19271         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19272
19273 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19274
19275         [BZ #12350]
19276         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19277         bit from old_res_options.
19278         (gaih_inet): Likewise.
19279
19280         [BZ #11099]
19281         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19282         as signed.
19283
19284         * resolv/res_init.c (res_setoptions): Make the code more compact.
19285
19286         [BZ #11558]
19287         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19288         set RES_USEVC.
19289
19290         [BZ #11634]
19291         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19292
19293         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19294
19295         [BZ #11781]
19296         * malloc/malloc.h: Declare malloc hook variables as volatile.
19297
19298         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19299         in last patch.
19300
19301         [BZ #11799]
19302         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19303         raise in the comment.
19304         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19305         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19306         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19307
19308 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19309
19310         [BZ #12811]
19311         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19312         grow the buffers more if it already has to be sufficient.
19313         (build_wcs_upper_buffer): Likewise.
19314         * posix/regexec.c (check_matching): Likewise.
19315         (clean_state_log_if_needed): Likewise.
19316         (extend_buffers): Don't enlarge buffers beyond size of the input
19317         buffer.
19318         Patches mostly by Emil Wojak <emil@wojak.eu>.
19319         * posix/bug-regex32.c: New file.
19320         * posix/Makefile (tests): Add bug-regex32.
19321
19322         * locale/findlocale.c (_nl_find_locale): Return right away if
19323         _nl_explode_name failed.
19324         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19325
19326         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19327
19328         * debug/xtrace.sh: Unify messages.
19329         * malloc/memusage.sh: Likewise.
19330
19331         [BZ #12813]
19332         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19333         time symbol from vDSO.  Substitute with vsyscall if not available.
19334         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19335         __vdso_time.
19336
19337         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19338         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19339         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19340         Add sendmmsg and internal_sendmmsg.
19341         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19342         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19343         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19344
19345         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19346         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19347         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19348
19349 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19350
19351         [BZ #12813]
19352         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19353         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19354         available.
19355         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19356         __vdso_getcpu.
19357
19358         [BZ #12814]
19359         * iconvdata/Makefile (tests): Add bug-iconv9.
19360         * iconvdata/bug-iconv9.c: New file.
19361
19362 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19363
19364         [BZ #12814]
19365         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19366
19367 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19368
19369         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19370         (struct user_regs_struct): Change intcs field back to cs.
19371
19372 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19373
19374         * po/ja.po: Update from translation team.
19375
19376 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19377
19378         [BZ #12795]
19379         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19380         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19381
19382 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19383
19384         * stdlib/longlong.h: Update from GCC.
19385
19386 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19387
19388         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19389         parameter name.
19390         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19391         Add parameter name.
19392         (__sysconf): Pass it down.
19393
19394 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19395
19396         [BZ #12671]
19397         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19398         some situations.
19399         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19400         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19401         add in in __libc_use_alloca calls.  Adjust callers.
19402         (glob): Use malloc in some situations.
19403
19404         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19405         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19406         pltexit.
19407
19408 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19409
19410         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19411         and CLOCK_BOOTTIME_ALARM.
19412
19413         [BZ #12782]
19414         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19415         is returned.
19416
19417         * string/_strerror.c (__strerror_r): Print negative errors as signed
19418         numbers.
19419
19420         [BZ #12777]
19421         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19422         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19423         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19424
19425         * configure.in: Fix typo in redirection and correct removal of test
19426         files in two cases.
19427
19428         [BZ #12788]
19429         * locale/setlocale.c (new_composite_name): Fix test to check for
19430         identical name of all categories.
19431
19432         [BZ #12792]
19433         * libio/filedoalloc.c (local_isatty): New function.
19434         (_IO_file_doallocate): Use local_isatty.
19435         * stdio-common/perror.c (perror): In case a new stream is used
19436         forward the stream error.
19437         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19438         error flag.
19439
19440 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19441
19442         [BZ #11869]
19443         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19444         alloca.
19445         * include/alloca.h (extend_alloca_account): Define.
19446
19447         [BZ #11857]
19448         * posix/regex.h: Fix comments with documentation of user-accessible
19449         fields after compilation and describe correct free'ing of pattern
19450         after re_compile_pattern.
19451         Patch by Reuben Thomas <rrt@sc3d.org>.
19452
19453 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19454
19455         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19456         and -mno-altivec to prevent the compiler from using Altivec and/or
19457         VSX instructions when the corresponding registers are not available.
19458
19459 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19460
19461         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19462
19463 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19464
19465         * libio/freopen.c (freopen): Use __dup2, not dup2.
19466         * libio/freopen64.c (freopen64): Likewise.
19467
19468 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19469
19470         [BZ #12775]
19471         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19472         * math/Makefile (tests): Add test-powl.
19473         (CFLAGS-test-powl.c): Define.
19474         * math/test-powl.c: New file.
19475
19476 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19477
19478         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19479
19480 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19481
19482         [BZ #11837]
19483         * iconvdata/gb18030.c: Update to GB18020-2005.
19484
19485 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19486
19487         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19488         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19489         Patch by Aharon Robbins <arnold@skeeve.com>.
19490
19491         [BZ #11892]
19492         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19493         on the stack.
19494
19495         [BZ #11895]
19496         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19497         through underflows.
19498
19499         [BZ #12766]
19500         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19501         point to strings before performing equality test for error_one_per_line
19502         mode.
19503
19504         [BZ #11697]
19505         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19506
19507         [BZ #11820]
19508         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19509         (struct user_fpregs_struct): Avoid __uint*_t types.
19510
19511         [BZ #6420]
19512         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19513         symbol info.  Use it instead of calling _dl_addr locally.
19514         (lock_and_info): New function.
19515         (tr_freehook): Call lock_and_info and pass symbol info as additional
19516         parameter to tr_where.
19517         (tr_mallochook): Likewise.
19518         (tr_reallochook): Likewise.
19519         (tr_memalignhook): Likewise.
19520
19521         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19522         used and couldn't be at all thread-safe.
19523
19524 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19525
19526         * libio/freopen.c (freopen): Don't close old file descriptor
19527         before the new one is opened.  Instead dup the new file descriptor
19528         to the old one after the new stream is created.
19529         * libio/freopen64.c (freopen64): Likewise.
19530         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19531         * libio/fileops.c (_IO_new_file_close_it): Handle new
19532         _IO_FLAGS2_NOCLOSE flag.
19533         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19534         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19535         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19536         _IO_FLAGS2_NOCLOSE flag.
19537         * include/unistd.h: Add hidden_proto for dup3.
19538         Define __have_dup3.
19539         * io/dup3.c: Define hidden symbol.
19540         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19541
19542         [BZ #7101]
19543         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19544         when an incomplete long option is used.
19545         * posix/tst-getopt_long1.c: New file.
19546         * posix/Makefile (tests): Add tst-getopt_long1.
19547
19548         [BZ #10138]
19549         * scripts/config.guess: Update from autoconf-2.68.
19550         * scripts/config.sub: Likewise.
19551
19552         [BZ #10157]
19553         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19554         tests into ...
19555         (has_cpuclock): ...this.  New function.
19556         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19557         macro here based on has_cpuclock code.
19558
19559         [BZ #10149]
19560         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19561         First byte (not low byte) is now always NUL.
19562         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19563
19564         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19565         Use non-cancelable interfaces.
19566
19567         [BZ #9809]
19568         * locale/iso-639.def: Add entry for Sorani.
19569
19570         [BZ #11901]
19571         * include/stdlib.h: Move include protection to the right place.
19572         Define abort_msg_s.  Declare __abort_msg with it.
19573         * stdlib/abort.c (__abort_msg): Adjust type.
19574         * assert/assert.c (__assert_fail_base): New function.  Majority
19575         of code from __assert_fail.  Allocate memory for __abort_msg with
19576         mmap.
19577         (__assert_fail): Now call __assert_fail_base.
19578         * assert/assert-perr.c: Remove bulk of implementation.  Use
19579         __assert_fail_base.
19580         * include/assert.hL Declare __assert_fail_base.
19581         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19582         mmap.
19583         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19584
19585 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19586
19587         [BZ #11952]
19588         [BZ #12453]
19589         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19590         until all modules are registered in the DTV.
19591         * elf/Makefile: Add rules to build and run tst-tls19.
19592         * elf/tst-tls19.c: New file.
19593         * elf/tst-tls19mod1.c: New file.
19594         * elf/tst-tls19mod2.c: New file.
19595         * elf/tst-tls19mod3.c: New file.
19596         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19597
19598         [BZ #12083]
19599         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19600         correctly.
19601
19602         [BZ #12601]
19603         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19604         two-byte sequence errors.
19605         * iconvdata/Makefile (tests): Add bug-iconv8.
19606         * iconvdata/bug-iconv8.c: New file.
19607
19608         [BZ #12626]
19609         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19610         buf2 definition.
19611
19612         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19613
19614         [BZ #12432]
19615         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19616         (dummy_getcfa): New function.
19617         (init): Get _Unwind_GetCFA address, use dummy if not found.
19618         (backtrace_helper): In recursion check, also check whether CFA changes.
19619         (__backtrace): Completely initialize arg.
19620
19621         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19622         storing incomplete byte sequence in state object.  Avoid testing for
19623         guaranteed too small input if we know there is enough data available.
19624
19625 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19626
19627         * Makeconfig (+link-pie): Indent.
19628         * Rules (binaries-pie): Define if $(have-fpie) and
19629         $(build-shared).
19630         (binaries-shared): Also filter out $(binaries-pie).
19631         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19632         * nscd/Makefile (others-pie): Add nscd.
19633         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19634         ($(objpfx)nscd): Remove command override.
19635         * login/Makefile (others-pie): Add pt_chown.
19636         ($(objpfx)pt_chown): Remove command override.
19637         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19638         remove command overrides.
19639
19640 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19641
19642         * libio/tst_putwc.c: Fix error messages.
19643
19644         [BZ #12724]
19645         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19646         currently writing and seek to current position when not.
19647         * libio/Makefile (tests): Add bug-fclose1.
19648         * libio/bug-fclose1.c: New file.
19649
19650 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19651
19652         [BZ #12511]
19653         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19654         don't set DF_1_NODELETE here.
19655         (do_lookup_x): When entering new entry test for copy relocation
19656         and if necessary set DF_1_NODELETE flag.
19657         * elf/tst-unique4.cc: New file.
19658         * elf/tst-unique4.h: New file.
19659         * elf/tst-unique4lib.cc: New file.
19660         * elf/Makefile: Add rules to build and run tst-unique4.
19661         Patch by Piotr Bury <pbury@goahead.com>.
19662
19663 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19664
19665         [BZ #12052]
19666         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19667
19668         [BZ #12625]
19669         * misc/mntent_r.c (addmntent): Flush the stream after the output
19670
19671         [BZ #12393]
19672         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19673         (is_trusted_path_normalize): Skip initial colon.  Append slash
19674         to empty buffer.  Duplicate is_trusted_path code but allow
19675         constructed patch to be prefix.
19676         (is_dst): Allow $ORIGIN followed by /.
19677         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19678         Correct testing of result of is_trusted_path_normalize
19679         (decompose_rpath): Fix warning.
19680
19681 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19682
19683         [BZ #11257]
19684         * grp/initgroups.c (internal_getgrouplist): When we found the service
19685         list through the initgroups entry in nsswitch.conf do not always
19686         continue on a successful lookup.  Don't always use the
19687         __nss_group_database value if it is set.
19688         * nss/nsswitch.conf (initgroups): Change action for successful db
19689         lookup to continue for compatibility.
19690
19691 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19692
19693         [BZ #11532]
19694         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19695         and CP774 modules.
19696         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19697         and CP774 modules.
19698         * iconvdata/tst-tables.sh: Likewise.
19699         * iconvdata/cp770.c: New file.
19700         * iconvdata/cp771.c: New file.
19701         * iconvdata/cp772.c: New file.
19702         * iconvdata/cp773.c: New file.
19703         * iconvdata/cp774.c: New file.
19704         * iconvdata/testdata/CP770: New file.
19705         * iconvdata/testdata/CP770..UTF8: New file.
19706         * iconvdata/testdata/CP771: New file.
19707         * iconvdata/testdata/CP771..UTF8: New file.
19708         * iconvdata/testdata/CP772: New file.
19709         * iconvdata/testdata/CP772..UTF8: New file.
19710         * iconvdata/testdata/CP773: New file.
19711         * iconvdata/testdata/CP773..UTF8: New file.
19712         * iconvdata/testdata/CP774: New file.
19713         * iconvdata/testdata/CP774..UTF8: New file.
19714
19715         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19716         END CHARMAP line.
19717         * iconvdata/gen-8bit-gap.sh: Likewise.
19718         * iconvdata/gen-8bit.sh: Likewise.
19719
19720         * locale/iso-639.def: Add ary entry.
19721
19722         [BZ #11258]
19723         * locale/C-translit.h.in: Add U20A1 transliteration.
19724
19725         [BZ #12178]
19726         * locale/iso-639.def: Add wae entry.
19727         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19728
19729         [BZ #12545]
19730         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19731         for n.
19732
19733         [BZ #12711]
19734         * locale/C-translit.h.in: Add entry for U20B9.
19735         Patch by pravin.d.s@gmail.com.
19736
19737 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19738
19739         [BZ #12713]
19740         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19741         ENAMETOOLONG use generic getcwd.
19742         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19743         in rtld.  Use *stat64.
19744         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19745         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19746         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19747         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19748         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19749         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19750         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19751         __fstatat64 macros.
19752         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19753         * dirent/rewinddir.c: Add libc_hidden_def.
19754         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19755         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19756
19757         * include/dirent.h (__alloc_dir): Add flags parameter.
19758         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19759         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19760         __alloc_dir.
19761         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19762         from fdopendir if O_CLOEXEC is already set.
19763
19764 2011-03-15  Alan Modra  <amodra@gmail.com>
19765
19766         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19767         l_tls_firstbyte_offset non-zero.  Save padding offset in
19768         l_tls_firstbyte_offset for later use.
19769         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19770         freeing static tls block.
19771
19772 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19773
19774         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19775         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19776         being defined by the kernel headers.
19777
19778 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19779
19780         [BZ #12734]
19781         * resolv/resolv.h: Define RES_NOTLDQUERY.
19782         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19783         no-tld-query and set RES_NOTLDQUERY.
19784         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19785         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19786         modern BIND to search name as TLD unless forbidden.
19787
19788 2011-05-07  Petr Baudis  <pasky@suse.cz>
19789             Ulrich Drepper  <drepper@gmail.com>
19790
19791         [BZ #12393]
19792         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19793         (is_trusted_path): ...to here.
19794         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19795         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19796         using is_trusted_path_normalize() in setuid scripts.
19797
19798 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19799
19800         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19801         __BEGIN/__END_DECLS.
19802
19803 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19804
19805         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19806         NSS_STATUS_NOTFOUND if no record was found.
19807
19808 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19809
19810         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19811         (headers-not-in-tirpc): Remove rpc/netdb.h
19812         * resolv/netdb.h: Revert last change.
19813
19814 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19815
19816         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19817         circular dependency between libgcc.a and libc.a.
19818
19819 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19820
19821         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19822         * nis/Makefile: Don't install rpcsvc/*.
19823         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19824         instead of <rpc/types.h>.
19825         (MAXHOSTNAMELEN): Define.
19826
19827 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19828
19829         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19830
19831 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19832
19833         [BZ #12714]
19834         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19835         gethostbyname4_r when IPv6 results are possible.
19836
19837 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19838
19839         [BZ #12723]
19840         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19841         _PC_PIPE_BUF handling.
19842
19843 2011-04-30  Bruno Haible  <bruno@clisp.org>
19844
19845         [BZ #12717]
19846         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19847         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19848         to 'int'.
19849         * inet/getnameinfo.c (getnameinfo): Likewise.
19850
19851 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19852
19853         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19854         to groups setting in database lookup.
19855         * nss/nsswitch.conf: Add initgroups entry.
19856
19857 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19858
19859         [BZ #12685]
19860         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19861         mode string.
19862         Patch by Eric Blake <eblake@redhat.com>.
19863
19864 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19865
19866         * sunrpc/Makefile (need-export-routines): Add svc_run.
19867         (routines): Remove svc_run.
19868         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19869         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19870         * sunrpc/svc_run.c (svc_run): Likewise.
19871         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19872
19873 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19874
19875         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19876         problem in reallocation in last patch.
19877
19878 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19879
19880         * sunrpc/Makefile: Move inclusion of Rules.
19881
19882 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19883
19884         * nss/nss_files/files-initgroups.c: New file.
19885         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19886         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19887         _nss_files_initgroups_dyn.
19888
19889 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19890
19891         * elf/elf.h (R_ARM_IRELATIVE): Define.
19892
19893 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19894
19895         * po/ru.po: Update from translation team.
19896
19897 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19898
19899         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19900         dependencies.
19901
19902 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19903
19904         [BZ #12653]
19905         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19906         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19907         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19908         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19909         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19910
19911 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19912
19913         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19914         differing bytes.
19915         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
19916         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
19917         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19918
19919 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19920
19921         [BZ #12420]
19922         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
19923         storing it.
19924         * stdlib/bug-getcontext.c: New file.
19925         * stdlib/Makefile: Add rules to build and run bug-getcontext.
19926
19927 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19928
19929         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
19930         instructions into .machine "z9-109".
19931         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19932         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19933
19934 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19935
19936         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
19937         between environment variables and auxiliary vector.
19938
19939 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
19940
19941         * Makefile: Add rules to build linkobj/libc.so.
19942         * include/libc-symbols.h: Define libc_hidden_nolink.
19943         * include/rpc/auth.h: Mark functions which are to be hidden.
19944         * include/rpc/auth_des.h: Likewise.
19945         * include/rpc/auth_unix.h: Likewise.
19946         * include/rpc/clnt.h: Likewise.
19947         * include/rpc/des_crypt.h: Likewise.
19948         * include/rpc/key_prot.h: Likewise.
19949         * include/rpc/pmap_clnt.h: Likewise.
19950         * include/rpc/pmap_prot.h: Likewise.
19951         * include/rpc/pmap_rmt.h: Likewise.
19952         * include/rpc/rpc_msg.h: Likewise.
19953         * include/rpc/svc.h: Likewise.
19954         * include/rpc/svc_auth.h: Likewise.
19955         * include/rpc/xdr.h: Likewise.
19956         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19957         * nss/Makefile: Likewise.
19958         * sunrpc/Makefile: Don't install headers.  Build library with normal
19959         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19960         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19961         for the compat linking library.  Remove use of INTDEF/INTUSE.
19962         * sunrpc/auth_none.c: Likewise.
19963         * sunrpc/auth_unix.c: Likewise.
19964         * sunrpc/authdes_prot.c: Likewise.
19965         * sunrpc/authuxprot.c: Likewise.
19966         * sunrpc/clnt_gen.c: Likewise.
19967         * sunrpc/clnt_perr.c: Likewise.
19968         * sunrpc/clnt_raw.c: Likewise.
19969         * sunrpc/clnt_simp.c: Likewise.
19970         * sunrpc/clnt_tcp.c: Likewise.
19971         * sunrpc/clnt_udp.c: Likewise.
19972         * sunrpc/clnt_unix.c: Likewise.
19973         * sunrpc/des_crypt.c: Likewise.
19974         * sunrpc/des_soft.c: Likewise.
19975         * sunrpc/get_myaddr.c: Likewise.
19976         * sunrpc/key_call.c: Likewise.
19977         * sunrpc/key_prot.c: Likewise.
19978         * sunrpc/netname.c: Likewise.
19979         * sunrpc/pm_getmaps.c: Likewise.
19980         * sunrpc/pm_getport.c: Likewise.
19981         * sunrpc/pmap_clnt.c: Likewise.
19982         * sunrpc/pmap_prot.c: Likewise.
19983         * sunrpc/pmap_prot2.c: Likewise.
19984         * sunrpc/pmap_rmt.c: Likewise.
19985         * sunrpc/publickey.c: Likewise.
19986         * sunrpc/rpc_cmsg.c: Likewise.
19987         * sunrpc/rpc_common.c: Likewise.
19988         * sunrpc/rpc_dtable.c: Likewise.
19989         * sunrpc/rpc_prot.c: Likewise.
19990         * sunrpc/rpc_thread.c: Likewise.
19991         * sunrpc/rtime.c: Likewise.
19992         * sunrpc/svc.c: Likewise.
19993         * sunrpc/svc_auth.c: Likewise.
19994         * sunrpc/svc_authux.c: Likewise.
19995         * sunrpc/svc_raw.c: Likewise.
19996         * sunrpc/svc_run.c: Likewise.
19997         * sunrpc/svc_simple.c: Likewise.
19998         * sunrpc/svc_tcp.c: Likewise.
19999         * sunrpc/svc_udp.c: Likewise.
20000         * sunrpc/svc_unix.c: Likewise.
20001         * sunrpc/svcauth_des.c: Likewise.
20002         * sunrpc/xcrypt.c: Likewise.
20003         * sunrpc/xdr.c: Likewise.
20004         * sunrpc/xdr_array.c: Likewise.
20005         * sunrpc/xdr_float.c: Likewise.
20006         * sunrpc/xdr_intXX_t.c: Likewise.
20007         * sunrpc/xdr_mem.c: Likewise.
20008         * sunrpc/xdr_rec.c: Likewise.
20009         * sunrpc/xdr_ref.c: Likewise.
20010         * sunrpc/xdr_sizeof.c: Likewise.
20011         * sunrpc/xdr_stdio.c: Likewise.
20012
20013 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20014
20015         [BZ #12650]
20016         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20017         * sysdeps/ia64/dl-tls.h: Likewise.
20018         * sysdeps/powerpc/dl-tls.h: Likewise.
20019         * sysdeps/s390/dl-tls.h: Likewise.
20020         * sysdeps/sh/dl-tls.h: Likewise.
20021         * sysdeps/sparc/dl-tls.h: Likewise.
20022         * sysdeps/x86_64/dl-tls.h: Likewise.
20023         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20024
20025 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20026
20027         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20028         rpath element also skip the following colon.
20029         (expand_dynamic_string_token): Add is_path parameter and pass
20030         down to DL_DST_REQUIRED and _dl_dst_substitute.
20031         (decompose_rpath): Call expand_dynamic_string_token with
20032         non-zero is_path.  Ignore empty rpaths.
20033         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20034         with zero is_path.
20035
20036 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20037
20038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20039         Make cancelable.
20040
20041 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20042
20043         [BZ #12655]
20044         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20045         Patch by Filipe David Manana <fdmanana@apache.org>.
20046
20047 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20048
20049         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20050         Maintain aligned stack.
20051         (CHECK_RSP): Remove unused macro.
20052
20053 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20054
20055         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20056         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20057
20058 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20059
20060         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20061
20062         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20063
20064 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20065
20066         [BZ #12518]
20067         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20068         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20069         * sysdeps/x86_64/memmove.c: New file.
20070         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20071         (memcpy): Renamed to ...
20072         (__new_memcpy): This.
20073         (memcpy): Provide GLIBC_2_14 memcpy.
20074         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20075         (memcpy): Provide GLIBC_2_2_5 memcpy.
20076
20077 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20078
20079         [BZ #12631]
20080         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20081
20082 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20083
20084         * misc/syncfs.c: New file.
20085         * misc/Makefile (routines): Add syncfs.
20086         * posix/unistd.h: Declare syncfs.
20087         * sysdeps/unix/syscalls.list: Add syncfs.
20088
20089 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20090
20091         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20092         open_by_handle_at.
20093         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20094         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20095         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20096         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20097         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20098         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20099         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20100
20101 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20102
20103         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20104         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20105         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20106         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20107         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20108         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20109         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20110
20111         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20112         sync_file_range.c with -fexceptions.
20113         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20114         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20115         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20116         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20117         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20118         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20119         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20120         sync_file_range as cancellation point
20121         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20122         now a wrapper around __call_sync_file_range with cancellation handling.
20123         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20124         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20125         function name to __call_sync_file_range.
20126         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20127         Add call_sync_file_range.
20128
20129 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20130
20131         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20132         bits/timex.h.
20133
20134 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20135
20136         * iconv/iconv.h: Fix typo in comment.
20137         * io/fcntl.h: Likewise.
20138         * libio/stdio.h: Likewise.
20139         * posix/spawn.h: Likewise.
20140         * posix/unistd.h: Likewise.
20141         * stdlib/stdlib.h: Likewise.
20142         * time/time.h: Likewise.
20143         * wcsmbs/wchar.h: Likewise.
20144
20145         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20146         open_by_handle): Add.
20147         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20148         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20149         Augment a few comments.
20150         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20151         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20152         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20153         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20154         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20155         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20156         open_by_handle.
20157
20158         * io/fcntl.h (AT_EMPTY_PATH): Define.
20159
20160 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20161
20162         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20163         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20164         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20165         to...
20166         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20167         * Versions.def: Add GLIBC_2.14.
20168         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20169         Export.
20170
20171 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20172
20173         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20174         round counter.
20175         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20176
20177 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20178
20179         [BZ #12597]
20180         * string/test-strncmp.c (do_page_test): New function.
20181         (check2): Likewise.
20182         (test_main): Call check2.
20183         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20184
20185 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20186
20187         [BZ #12587]
20188         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20189         Handle cache information in CPU leaf 4.
20190         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20191
20192 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20193
20194         [BZ #12583]
20195         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20196         character representation.
20197         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20198
20199 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20200
20201         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20202         END(__isnan) to END(__isnanf) to match function entry point/label
20203         EALIGN(__isnanf,...).
20204
20205 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20206
20207         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20208
20209 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20210
20211         [BZ #12510]
20212         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20213         copy from the symbol referenced in the relocation to initialize the
20214         used variable.
20215         Patch by Piotr Bury <pbury@goahead.com>.
20216         * elf/Makefile: Add rules to build and tst-unique3.
20217         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20218         * elf/tst-unique3.cc: New file.
20219         * elf/tst-unique3.h: New file.
20220         * elf/tst-unique3lib.cc: New file.
20221         * elf/tst-unique3lib2.cc: New file.
20222
20223         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20224
20225 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20226
20227         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20228         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20229         to _start.
20230
20231 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20232
20233         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20234         to-be-loaded object along a path to loader is ld.so.
20235
20236 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20237             Ulrich Drepper  <drepper@gmail.com>
20238
20239         * sysdeps/x86_64/memset.S: After aligning destination, code
20240         branches to different locations depending on the value of
20241         misalignment, when multiarch is enabled. Fix this.
20242
20243 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20244
20245         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20246         Set _x86_64_preferred_memory_instruction for AMD processsors.
20247         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20248         Set bit_Prefer_SSE_for_memop for AMD processors.
20249
20250 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20251
20252         * libio/fmemopen.c (fmemopen): Optimize a bit.
20253
20254 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20255
20256         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20257
20258 2011-03-03  Roland McGrath  <roland@redhat.com>
20259
20260         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20261
20262 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20263
20264         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20265         __bzero_ultra1 instead of __memset_ultra1.
20266
20267 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20268             Ulrich Drepper  <drepper@gmail.com>
20269
20270         [BZ #12509]
20271         * include/link.h (struct link_map): Add l_orig_initfini.
20272         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20273         returning unsuccessfully.
20274         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20275         close of a file loaded at startup, restore the original l_initfini
20276         list.
20277         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20278         list, store the pointer.
20279         * elf/Makefile ($(objpfx)noload-mem): New rule.
20280         (noload-ENV): Define.
20281         (tests): Add $(objpfx)noload-mem.
20282         * elf/noload.c: Include <memcheck.h>.
20283         (main): Call mtrace.  Close all opened handles.
20284
20285 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20286
20287         [BZ #12454]
20288         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20289         dependencies are missing.
20290
20291 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20292
20293         Fix __if_freereq crash: Unlike the generic version which uses free,
20294         Hurd needs munmap.
20295         * sysdeps/mach/hurd/ifreq.h: New file.
20296
20297 2011-01-27  Petr Baudis  <pasky@suse.cz>
20298             Ulrich Drepper  <drepper@gmail.com>
20299
20300         [BZ 12445]#
20301         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20302         to extend_alloca().
20303         * stdio-common/bug23.c: New file.
20304         * stdio-common/Makefile (tests): Add bug23.
20305
20306 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20307             Ulrich Drepper  <drepper@gmail.com>
20308
20309         [BZ #12489]
20310         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20311         before performing relro protection.  At old place add assertion
20312         to make sure nothing changed.
20313
20314 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20315             Glauber de Oliveira Costa  <glommer@gmail.com>
20316
20317         * elf/elf.h: Add new ARM TLS relocs.
20318
20319 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20320
20321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20322         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20323         cast from r3.
20324         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20325         'tests' variable.
20326         * sysdeps/wordsize-64/tst-writev.c: New file.
20327
20328 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20329
20330         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20331         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20332         insns in _dl_start to prevent a TOC reference before relocs are
20333         resolved.
20334
20335 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20336
20337         [BZ #12469]
20338         * Makeconfig: Remove RANLIB definition.
20339         * Makerules: Don't use RANLIB.
20340         * aclocal.m4: Remove ranlib test.
20341         * configure.in: No need to check for ranlib.
20342         * elf/rtld-Rules: Don't use RANLIB.
20343
20344 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20345
20346         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20347         protection macro.
20348         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20349         inclusion protection macro.
20350
20351         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20352         SIGRTMIN and SIGRTMAX and print information in that case only when
20353         SIGRTMIN is defined.
20354
20355 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20356
20357         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20358         arginfo fn returning -1.
20359
20360         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20361         and thousands string is zero terminated.
20362
20363 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20364
20365         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20366         sysdeps/unix/sysv/linux/bits/socket.h.
20367
20368 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20369
20370         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20371         (__CPU_COUNT): Remove old macros.
20372         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20373         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20374         (__CPU_ALLOC, __CPU_FREE): Add macros.
20375         (__sched_cpualloc, __sched_cpufree): Add declarations.
20376
20377 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20378
20379         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20380         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20381         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20382         (readdhstai): Return value of addhstaiX call.
20383         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20384         (addgrbyX): Return value returned by cache_addgr.
20385         (readdgrbyname): Return value returned by addgrbyX.
20386         (readdgrbygid): Likewise.
20387         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20388         (addpwbyX): Return value returned by cache_addpw.
20389         (readdpwbyname): Return value returned by addhstbyX.
20390         (readdpwbyuid): Likewise.
20391         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20392         (addservbyX): Return value returned by cache_addserv.
20393         (readdservbyname): Return value returned by addservbyX:
20394         (readdservbyport): Likewise.
20395         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20396         (addhstbyX): Return value returned by cache_addhst.
20397         (readdhstbyname): Return value returned by addhstbyX.
20398         (readdhstbyaddr): Likewise.
20399         (readdhstbynamev6): Likewise.
20400         (readdhstbyaddrv6): Likewise.
20401         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20402         (readdinitgroups): Return value returned by addinitgroupsX.
20403         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20404         (prune_cache): Keep track of timeout value of re-added entries.
20405         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20406         * nscd/nscd.h: Adjust prototypes of readd* functions.
20407
20408 2011-02-04  Roland McGrath  <roland@redhat.com>
20409
20410         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20411         (nis_stats): Likewise.
20412         * nis/nis_modify.c (nis_modify): Likewise.
20413         * nis/nis_remove.c (nis_remove): Likewise.
20414         * nis/nis_add.c (nis_add): Likewise.
20415
20416         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20417
20418         * posix/fnmatch_loop.c: Add some consts.
20419
20420         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20421
20422 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20423
20424         [BZ #12460]
20425         * config.make.in (config-cflags-novzeroupper): Define.
20426         * configure.in: Substitute libc_cv_cc_novzeroupper.
20427         * elf/Makefile (AVX-CFLAGS): Define.
20428         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20429         (CFLAGS-tst-auditmod4a.c): Likewise.
20430         (CFLAGS-tst-auditmod4b.c): Likewise.
20431         (CFLAGS-tst-auditmod6b.c): Likewise.
20432         (CFLAGS-tst-auditmod6c.c): Likewise.
20433         (CFLAGS-tst-auditmod7b.c): Likewise.
20434         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20435
20436 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20437
20438         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20439         function to the callback.
20440         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20441
20442 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20443
20444         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20445         of errno.
20446
20447 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20448
20449         [BZ #11724]
20450         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20451         of constructors.
20452         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20453         of destructors.
20454         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20455
20456         [BZ #11724]
20457         * elf/Makefile: Add rules to build and run new test.
20458         * elf/tst-initorder.c: New file.
20459         * elf/tst-initorder.exp: New file.
20460         * elf/tst-initordera1.c: New file.
20461         * elf/tst-initordera2.c: New file.
20462         * elf/tst-initordera3.c: New file.
20463         * elf/tst-initordera4.c: New file.
20464         * elf/tst-initorderb1.c: New file.
20465         * elf/tst-initorderb2.c: New file.
20466         * elf/tst-order-a1.c: New file.
20467         * elf/tst-order-a2.c: New file.
20468         * elf/tst-order-a3.c: New file.
20469         * elf/tst-order-a4.c: New file.
20470         * elf/tst-order-b1.c: New file.
20471         * elf/tst-order-b2.c: New file.
20472         * elf/tst-order-main.c: New file.
20473         New test case by George Gensure <werkt0@gmail.com>.
20474
20475 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20476
20477         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20478         decoding ACE if AI_CANONIDN.
20479
20480 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20481
20482         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20483
20484 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20485
20486         * version.h (RELEASE): Bump for 2.13 release.
20487         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20488
20489         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20490
20491         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20492         MADV_NOHUGEPAGE.
20493         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20494         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20495         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20496         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20497         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20498         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20499
20500         * posix/getconf.c: Update copyright year.
20501         * catgets/gencat.c: Likewise.
20502         * csu/version.c: Likewise.
20503         * debug/catchsegv.sh: Likewise.
20504         * debug/xtrace.sh: Likewise.
20505         * elf/ldconfig.c: Likewise.
20506         * elf/ldd.bash.in: Likewise.
20507         * elf/sprof.c (print_version): Likewise.
20508         * iconv/iconv_prog.c: Likewise.
20509         * iconv/iconvconfig.c: Likewise.
20510         * locale/programs/locale.c: Likewise.
20511         * locale/programs/localedef.c: Likewise.
20512         * malloc/memusage.sh: Likewise.
20513         * malloc/mtrace.pl: Likewise.
20514         * nscd/nscd.c (print_version): Likewise.
20515         * nss/getent.c: Likewise.
20516
20517         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20518         PF_CAIF, and PF_ALG.
20519         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20520
20521 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20522
20523         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20524         (modules-names): Use them.
20525         (ifunc-test-modules, ifunc-pie-tests): Define.
20526         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20527         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20528         (test-extras): Likewise.
20529         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20530         $(compile-command.c).
20531         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20532         (all-built-dso): Define.
20533         (check-textrel.out, check-execstack.out): Depend on it.
20534
20535         * configure.in: Don't override --enable-multi-arch.
20536
20537 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20538
20539         [BZ #6812]
20540         * nscd/hstcache.c (tryagain): Define.
20541         (cache_addhst): Return tryagain not notfound for temporary errors.
20542         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20543         failed.
20544
20545 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20546
20547         [BZ #10563]
20548         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20549         to make the syscall.
20550         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20551
20552         [BZ #12378]
20553         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20554         and fall back to matching as normal character if the string ends before
20555         the matching ']' is found.  This is what POSIX requires.
20556         * posix/testfnm.c: Adjust test result.
20557         * posix/globtest.sh: Adjust test result.  Add new test.
20558         * posix/tst-fnmatch.input: Likewise.
20559         * posix/tst-fnmatch2.c: Add new test.
20560
20561 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20562
20563         * elf/Makefile (check-execstack): Revert last change.  Depend on
20564         check-execstack.h.
20565         (check-execstack.h): New target.
20566         (generated): Add check-execstack.h.
20567         * elf/check-execstack.c: Include "check-execstack.h".
20568         (main): Revert last change.
20569         (handle_file): Return zero if GNU_STACK is absent and
20570         DEFAULT_STACK_PERMS doesn't include PF_X.
20571
20572 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20573
20574         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20575         in child fails because the descriptor is already closed.
20576         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20577         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20578         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20579
20580         [BZ #12397]
20581         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20582         syscall.
20583
20584         [BZ #10484]
20585         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20586         temporary buffer used to handle multi lookups locally.
20587         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20588
20589 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20590
20591         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20592         loader is ld.so.
20593
20594 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20595
20596         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20597         alignment for SSE2.
20598
20599 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20600
20601         [BZ #12394]
20602         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20603         characters.  When rounding increased number of integer digits recompute
20604         number of groups.
20605         * stdio-common/tst-grouping.c: New file.
20606         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20607
20608 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20609
20610         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20611         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20612
20613         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20614         void.
20615         * bits/select.h: Likewise.
20616
20617 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20618
20619         * po/ja.po: Update from translation team.
20620
20621 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20622
20623         [BZ #11155]
20624         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20625         implementation just like for lxstat, fxstatat, et al.
20626
20627 2010-12-27  Jim Meyering  <meyering@redhat.com>
20628
20629         [BZ #12348]
20630         * posix/regexec.c (build_trtable): Return failure indication upon
20631         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20632
20633 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20634
20635         [BZ #12201]
20636         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20637         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20638         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20639         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20640
20641         [BZ #12207]
20642         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20643
20644         [BZ #12204]
20645         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20646         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20647
20648 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20649
20650         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20651         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20652         script has SORT_BY_INIT_PRIORITY.
20653         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20654         NO_CTORS_DTORS_SECTIONS is defined.
20655         * elf/soinit.c: Likewise.
20656         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20657         NO_CTORS_DTORS_SECTIONS is defined.
20658         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20659         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20660         * sysdeps/sh/init-first.c: Likewise.
20661         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20662
20663 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20664
20665         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20666         always use the slow path.
20667
20668 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20669
20670         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20671         similar rule which adds the sysdep directories to the header search in
20672         order to pick up the correct platform stackinfo.h.
20673         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20674         perform test if it is, otherwise return successfully without testing.
20675         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20676         DEFAULT_STACK_PERMS define in stackinfo.h.
20677         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20678         defined in stackinfo.h.
20679         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20680         DEFAULT_STACK_PERMS defined in stackinfo.h.
20681         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20682         * sysdeps/ia64/stackinfo.h: Likewise.
20683         * sysdeps/s390/stackinfo.h: Likewise.
20684         * sysdeps/sh/stackinfo.h: Likewise.
20685         * sysdeps/sparc/stackinfo.h: Likewise.
20686         * sysdeps/x86_64/stackinfo.h: Likewise.
20687         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20688         PF_X for powerpc64.  Retain PF_X for powerpc32.
20689
20690 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20691
20692         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20693         accurately.
20694         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20695         GETDENTS_64BIT_ALIGNED.
20696
20697 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20698
20699         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20700
20701 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20702
20703         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20704         _GNU_SOURCE.
20705
20706         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20707         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20708         Remove __restrict.
20709         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20710         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20711
20712 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20713
20714         [BZ #11655]
20715         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20716         are initialized.
20717
20718 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20719
20720         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20721
20722 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20723
20724         * po/it.po: Update from translation team.
20725
20726 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20727
20728         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20729         unused codes.
20730
20731 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20732
20733         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20734
20735 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20736
20737         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20738         specially.
20739         (gaih_getanswer_slice): Likewise.
20740
20741 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20742
20743         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20744
20745 2010-05-31  Petr Baudis  <pasky@suse.cz>
20746
20747         [BZ #11149]
20748         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20749         silently even in the chroot mode.
20750
20751 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20752
20753         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20754         last patch a bit.  Pretty printing
20755
20756 2010-05-31  Petr Baudis <pasky@suse.cz>
20757
20758         [BZ #10085]
20759         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20760         initialization of skip_initgroups_dyn.
20761
20762 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20763
20764         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20765         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20766
20767 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20768
20769         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20770
20771 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20772
20773         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20774         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20775         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20776         ($(objpfx)tst-fnmatch-mem): New rule.
20777         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20778         * posix/tst-fnmatch.c (main): Call mtrace.
20779
20780 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20781
20782         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20783         Support Intel processor model 6 and model 0x2c.
20784
20785 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20786
20787         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20788           signed comparison.
20789
20790 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20791
20792         [BZ #12205]
20793         * string/test-strncasecmp.c (check_result): New function.
20794         (do_one_test): Use it.
20795         (check1): New function.
20796         (test_main): Use it.
20797         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20798         Support strcasecmp and strncasecmp.
20799
20800 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20801
20802         [BZ #12194]
20803         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20804         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20805
20806 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20807
20808         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20809         IFUNC support.
20810         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20811         memset-x86-64.
20812         * sysdeps/x86_64/multiarch/bzero.S: New file.
20813         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20814         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20815         * sysdeps/x86_64/multiarch/memset.S: New file.
20816         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20817         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20818         Set bit_Prefer_SSE_for_memop for Intel processors.
20819         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20820         Define.
20821         (index_Prefer_SSE_for_memop): Define.
20822         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20823
20824 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20825
20826         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20827         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20828
20829 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20830
20831         [BZ #12191]
20832         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20833         (__x86_64_raw_data_cache_size_half): Likewise.
20834         (__x86_64_raw_shared_cache_size): Likewise.
20835         (__x86_64_raw_shared_cache_size_half): Likewise.
20836
20837         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20838         (__x86_64_raw_data_cache_size_half): Likewise.
20839         (__x86_64_raw_shared_cache_size): Likewise.
20840         (__x86_64_raw_shared_cache_size_half): Likewise.
20841         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20842         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20843         and __x86_64_raw_shared_cache_size_half.  Round
20844         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20845         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20846         to multiple of 256 bytes.
20847
20848 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20849
20850         [BZ #12167]
20851         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20852         of inacessible symlinks.  Verify result of symlink before returning it.
20853         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20854         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20855
20856 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20857
20858         * math/math.h (isinf): Fix typo in comment.
20859
20860 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20861
20862         * po/da.po: Update from translation team.
20863
20864 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20865
20866         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20867         is added to the list.
20868
20869 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20870             Ulrich Drepper  <drepper@gmail.com>
20871
20872         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20873         the global list here.  Move code to...
20874         (_dl_add_to_namespace_list): ...here.  New function.
20875         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20876         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20877         * elf/dl-load.c (lose): Don't remove the element from the list.
20878         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20879         (_dl_map_object): Likewise.
20880
20881 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20882
20883         [BZ #12159]
20884         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20885         into all bytes of SSE register.
20886         Patch by Richard Li <richardpku@gmail.com>.
20887
20888 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20889
20890         [BZ #12140]
20891         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20892         perturbing.
20893
20894 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20895
20896         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20897         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20898         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20899         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20901         submachine.
20902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20903
20904 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20905
20906         * include/dlfcn.h (__RTLD_SECURE): Define.
20907         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20908         mode & __RTLD_SECURE instead.
20909         (open_path): Rename preloaded parameter to secure.
20910         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20911         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20912         * elf/dl-deps.c (openaux): Likewise.
20913         * elf/rtld.c (struct map_args): Remove is_preloaded.
20914         (map_doit): Don't use it.
20915         (dl_main): Likewise.
20916         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
20917         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
20918
20919 2010-09-09  Andreas Schwab  <schwab@redhat.com>
20920
20921         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
20922         (sysd-rules-targets): Remove duplicates.
20923         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
20924         rtld-%.$o dependency.
20925
20926 2010-10-18  Andreas Schwab  <schwab@redhat.com>
20927
20928         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
20929         _dl_map_object do it.
20930
20931 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
20932
20933         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
20934         fast fma builtins, define the macros in the C99 standard.
20935         (FP_FAST_FMAF): Likewise.
20936         (FP_FAST_FMAL): Likewise.
20937         * sysdeps/x86_64/bits/mathdef.h: Likewise.
20938
20939         * bits/mathdef.h: Update copyright year.
20940         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20941
20942 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20943
20944         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20945         builtins, define the macros in the C99 standard.
20946         (FP_FAST_FMAF): Likewise.
20947         (FP_FAST_FMAL): Likewise.
20948         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20949         multiply/add.
20950         (FP_FAST_FMAF): Likewise.
20951
20952 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20953
20954         [BZ #3268]
20955         * math/libm-test.inc (fma_test): Some new testcases.
20956         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20957         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20958         y and infinite z.  Do multiplication by C already in long double.
20959         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20960         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20961         y and infinite z.  Do bitwise or of inexact bit into u.d.
20962         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20963         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20964         * sysdeps/i386/fpu/s_fma.S: Removed.
20965         * sysdeps/i386/fpu/s_fmal.S: Removed.
20966
20967 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20968
20969         [BZ #3268]
20970         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20971         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20972         computation is not scheduled after fetestexcept.  Fix value
20973         of minimum denormal long double.
20974
20975 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20976
20977         [BZ #3268]
20978         * math/libm-test.inc (fma_test): Add some more tests.
20979         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20980         correctly.
20981
20982 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20983
20984         * scripts/data/localplt-s390-linux-gnu.data: New file.
20985         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20986
20987 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20988
20989         [BZ #3268]
20990         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20991         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20992         instead of dbl-64.
20993         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20994         inlines.
20995         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20996         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20997         if one of x and y is very large and the other is subnormal.
20998         * sysdeps/s390/fpu/s_fmaf.c: New file.
20999         * sysdeps/s390/fpu/s_fma.c: New file.
21000         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21001         * sysdeps/powerpc/fpu/s_fma.S: New file.
21002         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21003         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21004         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21005
21006 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21007
21008         [BZ #3268]
21009         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21010         fma tests.
21011         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21012         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21013         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21014         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21015         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21016         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21017         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21018
21019 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21020
21021         [BZ #12078]
21022         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21023         * posix/bug-regex31.input: Add test case.
21024
21025 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21026
21027         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21028         * posix/bug-regex31.input: New file.
21029
21030         [BZ #12078]
21031         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21032         (parse_sub_exp): Fix last change, use postorder.
21033
21034         * posix/bug-regex31.c: New file.
21035         * posix/Makefile: Add rules to build and run bug-regex31.
21036
21037         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21038
21039         [BZ #12078]
21040         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21041
21042         [BZ #12108]
21043         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21044         to have entries in sys_siglist.
21045
21046         [BZ #12093]
21047         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21048         be NULL.
21049
21050 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21051
21052         [BZ #3268]
21053         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21054         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21055         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21056         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21057         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21058         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21059         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21060         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21061         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21062         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21063         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21064         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21065         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21066         * math/ftestexcept.c (fetestexcept): Likewise.
21067         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21068         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21069         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21070         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21071         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21072         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21073         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21074
21075 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21076
21077         [BZ #12107]
21078         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21079         newline.
21080
21081 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21082
21083         * string/bug-strstr1.c: New file.
21084         * string/Makefile: Add rules to build and run bug-strstr1.
21085
21086 2010-10-05  Eric Blake  <eblake@redhat.com>
21087
21088         [BZ #12092]
21089         * string/str-two-way.h (two_way_long_needle): Always clear memory
21090         when skipping input due to the shift table.
21091
21092 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21093
21094         [BZ #12005]
21095         * malloc/mcheck.c: Handle large requests.
21096
21097         [BZ #12077]
21098         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21099         for strncmp and strncasecmp.
21100         * string/stratcliff.c: Add tests for strcmp and strncmp.
21101         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21102
21103 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21104
21105         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21106         __set_fpscr.
21107
21108 2010-09-30  Andreas Jaeger  <aj@suse.de>
21109
21110         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21111         (CGROUP_SUPER_MAGIC): Define.
21112         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21113         Handle btrfs and cgroup file systems.
21114         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21115         Likewise.
21116
21117 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21118
21119         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21120         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21121
21122 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21123
21124         [BZ #12067]
21125         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21126         trying to locate the ELF header.
21127
21128 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21129
21130         [BZ #11611]
21131         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21132         Mask out sign-bit copies when constructing f_fsid.
21133
21134 2010-09-24  Petr Baudis <pasky@suse.cz>
21135
21136         * debug/stack_chk_fail_local.c: Add missing licence exception.
21137         * debug/warning-nop.c: Likewise.
21138
21139 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21140
21141         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21142         implementing getdents64 using getdents syscall, set d_type if
21143         __ASSUME_GETDENTS32_D_TYPE.
21144
21145 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21146
21147         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21148         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21149
21150 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21151
21152         [BZ #12037]
21153         * posix/unistd.h: Undo change of feature selection for ftruncate from
21154         2010-01-11.
21155
21156 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21157
21158         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21159         detection.
21160
21161 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21162
21163         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21164         fanotify_mark.
21165         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21166
21167 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21168
21169         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21170         variables after CHECK_SP call.
21171         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21172
21173 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21174             Ulrich Drepper  <drepper@redhat.com>
21175
21176         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21177         re-relocationg ld.so.
21178         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21179         _dl_init_paths call.
21180         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21181         here anymore.
21182
21183 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21184
21185         * resolv/res_init.c (__res_vinit): Count the default server we added.
21186
21187 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21188             Ulrich Drepper  <drepper@redhat.com>
21189
21190         [BZ #11968]
21191         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21192         (____longjmp_chk): Use %ebx for saving value across system call.
21193         Add unwind info.
21194
21195 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21196
21197         * manual/Makefile: Don't mix pattern rules with normal rules.
21198
21199 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21200
21201         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21202         operation.
21203         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21204         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21205         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21206         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21207         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21208         Likewise.
21209
21210 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21211
21212         [BZ #11979]
21213         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21214         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21215
21216 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21217
21218         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21219         * sysdeps/x86_64/addmul_1.S: Likewise.
21220         * sysdeps/x86_64/lshift.S: Likewise.
21221         * sysdeps/x86_64/mul_1.S: Likewise.
21222         * sysdeps/x86_64/rshift.S: Likewise.
21223         * sysdeps/x86_64/sub_n.S: Likewise.
21224         * sysdeps/x86_64/submul_1.S: Likewise.
21225
21226 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21227
21228         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21229         Define __sched_param instead of SCHED_* and sched_param when
21230         <bits/sched.h> is included with __need_schedparam defined.
21231         * bits/sched.h [__need_schedparam]
21232         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21233         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21234         (__defined_schedparam): Define to 1.
21235         (__sched_param): New structure, identical to sched_param.
21236         (__need_schedparam): Undefine.
21237
21238 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21239
21240         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21241         (epoll_create1): Declare.
21242
21243         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21244
21245 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21246
21247         [BZ #7066]
21248         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21249         shifting retval into place.
21250
21251 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21252
21253         * nis/rpcsvc/nis.h: Update copyright notice.
21254         * nis/rpcsvc/nis.x: Likewise.
21255         * nis/rpcsvc/nis_callback.h: Likewise.
21256         * nis/rpcsvc/nis_callback.x: Likewise.
21257         * nis/rpcsvc/nis_object.x: Likewise.
21258         * nis/rpcsvc/nis_tags.h: Likewise.
21259         * nis/rpcsvc/yp.h: Likewise.
21260         * nis/rpcsvc/yp.x: Likewise.
21261         * nis/rpcsvc/ypupd.h: Likewise.
21262         * nis/yp_xdr.c: Likewise.
21263         * nis/ypupdate_xdr.c: Likewise.
21264
21265         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21266         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21267         (pmap_getport): Use __libc_rpc_getport.
21268         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21269         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21270         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21271
21272 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21273
21274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21275         fanotify_mark.
21276
21277 2010-08-27  Roland McGrath  <roland@redhat.com>
21278
21279         * sysdeps/i386/i686/multiarch/Makefile
21280         (CFLAGS-varshift.c): New variable.
21281
21282 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21283
21284         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21285         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21286
21287         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21288
21289         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21290
21291 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21292
21293         * sysdeps/x86_64/strlen.S: Unroll the loop.
21294         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21295         strlen-sse2 strlen-sse2-bsf.
21296         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21297         __strlen_no_bsf if bit_Slow_BSF is set.
21298         (__strlen_sse42): Removed.
21299         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21300         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21301
21302 2010-08-25  Roland McGrath  <roland@redhat.com>
21303
21304         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21305         * sysdeps/x86_64/multiarch/varshift.c: New file.
21306         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21307         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21308         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21309         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21310
21311 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21312
21313         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21314         strlen-sse2 strlen-sse2-bsf.
21315         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21316         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21317         (__strlen_sse2): Removed.
21318         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21319         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21320         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21321         bit_Slow_BSF for Atom.
21322         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21323         (index_Slow_BSF): Define.
21324         (HAS_SLOW_BSF): Define.
21325
21326 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21327
21328         [BZ #10851]
21329         * resolv/res_init.c (__res_vinit): When no server address at all
21330         is given default to loopback.
21331
21332 2010-08-24  Roland McGrath  <roland@redhat.com>
21333
21334         * configure.in: Remove config-name.h generation.
21335         * configure: Regenerated.
21336         * config-name.in: File removed.
21337         * scripts/config-uname.sh: New file.
21338         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21339         ($(objdir)config-name.h): New target.
21340
21341         * sunrpc/rpc_parse.h: Avoid nested comment.
21342
21343 2010-08-24  Richard Henderson  <rth@redhat.com>
21344             Ulrich Drepper  <drepper@redhat.com>
21345             H.J. Lu  <hongjiu.lu@intel.com>
21346
21347         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21348         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21349         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21350         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21351         _mm_alignr_epi8 with _mm_loadu_si128.
21352         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21353         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21354         (__m128i_shift_right): Removed.
21355         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21356         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21357         * sysdeps/x86_64/multiarch/varshift.h: New file.
21358         * sysdeps/x86_64/multiarch/varshift.S: New file.
21359
21360 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21361
21362         * configure.in: Move assembler checks to before sysdep dir checking.
21363
21364 2010-08-20  Petr Baudis  <pasky@suse.cz>
21365
21366         * LICENSES: Sync the sunrpc license.
21367
21368 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21369
21370         * sunrpc/auth_des.c: Update copyright notice once again.
21371         * sunrpc/auth_none.c: Likewise.
21372         * sunrpc/auth_unix.c: Likewise.
21373         * sunrpc/authdes_prot.c: Likewise.
21374         * sunrpc/authuxprot.c: Likewise.
21375         * sunrpc/bindrsvprt.c: Likewise.
21376         * sunrpc/clnt_gen.c: Likewise.
21377         * sunrpc/clnt_perr.c: Likewise.
21378         * sunrpc/clnt_raw.c: Likewise.
21379         * sunrpc/clnt_simp.c: Likewise.
21380         * sunrpc/clnt_tcp.c: Likewise.
21381         * sunrpc/clnt_udp.c: Likewise.
21382         * sunrpc/clnt_unix.c: Likewise.
21383         * sunrpc/des_crypt.c: Likewise.
21384         * sunrpc/des_soft.c: Likewise.
21385         * sunrpc/get_myaddr.c: Likewise.
21386         * sunrpc/getrpcport.c: Likewise.
21387         * sunrpc/key_call.c: Likewise.
21388         * sunrpc/key_prot.c: Likewise.
21389         * sunrpc/openchild.c: Likewise.
21390         * sunrpc/pm_getmaps.c: Likewise.
21391         * sunrpc/pm_getport.c: Likewise.
21392         * sunrpc/pmap_clnt.c: Likewise.
21393         * sunrpc/pmap_prot.c: Likewise.
21394         * sunrpc/pmap_prot2.c: Likewise.
21395         * sunrpc/pmap_rmt.c: Likewise.
21396         * sunrpc/rpc/auth.h: Likewise.
21397         * sunrpc/rpc/auth_unix.h: Likewise.
21398         * sunrpc/rpc/clnt.h: Likewise.
21399         * sunrpc/rpc/des_crypt.h: Likewise.
21400         * sunrpc/rpc/key_prot.h: Likewise.
21401         * sunrpc/rpc/netdb.h: Likewise.
21402         * sunrpc/rpc/pmap_clnt.h: Likewise.
21403         * sunrpc/rpc/pmap_prot.h: Likewise.
21404         * sunrpc/rpc/pmap_rmt.h: Likewise.
21405         * sunrpc/rpc/rpc.h: Likewise.
21406         * sunrpc/rpc/rpc_des.h: Likewise.
21407         * sunrpc/rpc/rpc_msg.h: Likewise.
21408         * sunrpc/rpc/svc.h: Likewise.
21409         * sunrpc/rpc/svc_auth.h: Likewise.
21410         * sunrpc/rpc/types.h: Likewise.
21411         * sunrpc/rpc/xdr.h: Likewise.
21412         * sunrpc/rpc_clntout.c: Likewise.
21413         * sunrpc/rpc_cmsg.c: Likewise.
21414         * sunrpc/rpc_common.c: Likewise.
21415         * sunrpc/rpc_cout.c: Likewise.
21416         * sunrpc/rpc_dtable.c: Likewise.
21417         * sunrpc/rpc_hout.c: Likewise.
21418         * sunrpc/rpc_main.c: Likewise.
21419         * sunrpc/rpc_parse.c: Likewise.
21420         * sunrpc/rpc_parse.h: Likewise.
21421         * sunrpc/rpc_prot.c: Likewise.
21422         * sunrpc/rpc_sample.c: Likewise.
21423         * sunrpc/rpc_scan.c: Likewise.
21424         * sunrpc/rpc_scan.h: Likewise.
21425         * sunrpc/rpc_svcout.c: Likewise.
21426         * sunrpc/rpc_tblout.c: Likewise.
21427         * sunrpc/rpc_util.c: Likewise.
21428         * sunrpc/rpc_util.h: Likewise.
21429         * sunrpc/rpcinfo.c: Likewise.
21430         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21431         * sunrpc/rpcsvc/key_prot.x: Likewise.
21432         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21433         * sunrpc/rpcsvc/mount.x: Likewise.
21434         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21435         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21436         * sunrpc/rpcsvc/rex.x: Likewise.
21437         * sunrpc/rpcsvc/rstat.x: Likewise.
21438         * sunrpc/rpcsvc/rusers.x: Likewise.
21439         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21440         * sunrpc/rpcsvc/spray.x: Likewise.
21441         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21442         * sunrpc/rtime.c: Likewise.
21443         * sunrpc/svc.c: Likewise.
21444         * sunrpc/svc_auth.c: Likewise.
21445         * sunrpc/svc_authux.c: Likewise.
21446         * sunrpc/svc_raw.c: Likewise.
21447         * sunrpc/svc_run.c: Likewise.
21448         * sunrpc/svc_simple.c: Likewise.
21449         * sunrpc/svc_tcp.c: Likewise.
21450         * sunrpc/svc_udp.c: Likewise.
21451         * sunrpc/svc_unix.c: Likewise.
21452         * sunrpc/svcauth_des.c: Likewise.
21453         * sunrpc/xcrypt.c: Likewise.
21454         * sunrpc/xdr.c: Likewise.
21455         * sunrpc/xdr_array.c: Likewise.
21456         * sunrpc/xdr_float.c: Likewise.
21457         * sunrpc/xdr_mem.c: Likewise.
21458         * sunrpc/xdr_rec.c: Likewise.
21459         * sunrpc/xdr_ref.c: Likewise.
21460         * sunrpc/xdr_sizeof.c: Likewise.
21461         * sunrpc/xdr_stdio.c: Likewise.
21462
21463         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21464         handling.
21465
21466 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21467
21468         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21469
21470 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21471
21472         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21473         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21474         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21475         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21476         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21477         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21478         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21479         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21480         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21481         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21482         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21483         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21484         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21485         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21486
21487 2010-07-26  Anton Blanchard  <anton@samba.org>
21488
21489         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21490         * malloc/arena.c (heap_trim): Likewise.
21491
21492 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21493
21494         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21495         here.  Not...
21496         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21497         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21498
21499 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21500
21501         * sysdeps/i386/elf/Makefile: New file.
21502
21503 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21504
21505         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21506         from fanotify_init.
21507         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21508         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21509
21510 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21511
21512         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21513         of strncasecmp_l.
21514         * sysdeps/multiarch/strcmp.S: Likewise.
21515
21516 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21517
21518         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21519         strncase_l-nonascii.
21520         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21521         Add strncase_l-ssse3.
21522         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21523         * sysdeps/x86_64/strcmp.S: Likewise.
21524         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21525         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21526         * sysdeps/x86_64/strncase.S: New file.
21527         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21528         * sysdeps/x86_64/strncase_l.S: New file.
21529         * string/Makefile (strop-tests): Add strncasecmp.
21530         * string/test-strncasecmp.c: New file.
21531
21532         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21533         warning.
21534
21535         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21536         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21537
21538 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21539
21540         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21541
21542 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21543
21544         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21545         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21546         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21547
21548 2010-05-01  Alan Modra  <amodra@gmail.com>
21549
21550         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21551         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21552         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21553         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21554         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21555         tidying.  Don't tail-call __sigjmp_save for static lib.
21556         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21557         save location.
21558         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21559         (CALL_MCOUNT): Add eh info, and nop after bl.
21560         (TAIL_CALL_SYSCALL_ERROR): New macro.
21561         (PSEUDO_RET): Use it.
21562         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21563         Correct save location of integer regs and cr.
21564         (_dl_profile_resolve): Correct cr save location.  Delete nops
21565         after bl when SHARED.  Reduce cfi size a little by better
21566         placement of cfi directives.
21567         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21568         make a stack frame.  Instead use parm save area as a temp.
21569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21570         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21572         Don't make a stack frame for parent, use parm save area.
21573         Increase child stack frame to 112 bytes.  Don't save unused reg,
21574         and adjust reg usage.  Set up cfi on error recovery and
21575         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21577         (__makecontext): Add dummy nop after jump to exit.
21578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21579         Use correct parm save area and cr save, reduce stack frame.
21580         Correct cfi for possible PSEUDO_RET frame setup.
21581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21582         Branch to local label emitted by PSEUDO_RET rather than
21583         __syscall_error.
21584
21585 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21586
21587         [BZ #11904]
21588         * locale/programs/locale.c (print_assignment): New function.
21589         (show_locale_vars): Use it.
21590
21591 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21592
21593         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21594         field.
21595         (struct statfs64): Likewise.
21596         (_STATFS_F_FLAGS): Define.
21597         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21598         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21599         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21600         (ST_VALID): Define locally.
21601         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21602         __statvfs_getflags, use the provided value.
21603         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21604         __ASSUME_STATFS_F_FLAGS.
21605
21606         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21607
21608         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21609         Add sys/fanotify.h.
21610         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21611         fanotify_mask for GLIBC_2.13.
21612         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21613         fanotify_init and fanotify_mark.
21614         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21615         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21616
21617         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21618         Add prlimit.
21619         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21620         prlimit64 for GLIBC_2.13.
21621         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21622         prlimit64.
21623         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21624         syscall.
21625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21626         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21627         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21628         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21629         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21630         add prlimit alias.
21631         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21632
21633         [BZ #11903]
21634         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21635         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21636
21637         * nss/Makefile: Add rules to build and run tst-nss-test1.
21638         * shlib-versions: Add entry for libnss_test1.
21639         * nss/nss_test1.c: New file.
21640         * nss/tst-nss-test1.c: New file.
21641
21642         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21643         (__nss_configure_lookup): Set appropriate entry in
21644         __nss_configure_lookup to true.
21645         * nss/nsswitch.h: Define enum with indeces of databases in
21646         databases and __nss_database_custom arrays.  Declare
21647         __nss_database_custom.
21648         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21649         to avoid using nscd when custom rules are installed.
21650         * nss/getXXbyYY_r.c: Likewise.
21651         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21652
21653         * nss/nss_files/files-parse.c: Whitespace fixes.
21654
21655 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21656
21657         [BZ #11883]
21658         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21659         * posix/fnmatch_loop.c: Likewise.
21660
21661 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21662
21663         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21664         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21665         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21666         * Versions.def [GLIBC_2.13]: Add.
21667
21668 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21669
21670         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21671         Also fail if tpwd after pwuid call is NULL.
21672
21673 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21674
21675         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21676         when converting to ms.
21677
21678 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21679
21680         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21681         EOPNOTSUPP errors with ENOTTY.
21682         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21683         EOPNOTSUPP errors with ENOTTY.
21684
21685 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21686
21687         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21688         Add strcasecmp_l-ssse3.
21689         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21690         strcasecmp.
21691         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21692         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21693         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21694
21695 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21696
21697         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21698
21699         * string/Makefile (strop-tests): Add strcasecmp.
21700         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21701         strcasecmp_l-nonascii.
21702         (gen-as-const-headers): Add locale-defines.sym.
21703         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21704         * sysdeps/x86_64/strcasecmp.S: New file.
21705         * sysdeps/x86_64/strcasecmp_l.S: New file.
21706         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21707         * sysdeps/x86_64/locale-defines.sym: New file.
21708         * string/test-strcasecmp.c: New file.
21709
21710         * string/test-strcasestr.c: Test both ends of the range of characters.
21711         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21712
21713 2010-07-29  Roland McGrath  <roland@redhat.com>
21714
21715         [BZ #11856]
21716         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21717
21718 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21719
21720         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21721         for ld.so.
21722
21723 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21724
21725         * manual/memory.texi (Malloc Tunable Parameters): Document
21726         M_PERTURB.
21727
21728 2010-07-26  Roland McGrath  <roland@redhat.com>
21729
21730         [BZ #11840]
21731         * configure.in (-fgnu89-inline check): Set and substitute
21732         gnu89_inline, not libc_cv_gnu89_inline.
21733         * configure: Regenerated.
21734         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21735
21736 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21737
21738         * string/test-strnlen.c: New file.
21739         * string/Makefile (strop-tests): Add strnlen.
21740         * string/tester.c (test_strnlen): Add a few more test cases.
21741         * string/tst-strlen.c: Better error reporting.
21742
21743         * sysdeps/x86_64/strnlen.S: New file.
21744
21745 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21746
21747         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21748         lower-latency instructions.
21749
21750 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21751
21752         * string/test-strcasestr.c: New file.
21753         * string/test-strstr.c: New file.
21754         * string/Makefile (strop-tests): Add strstr and strcasestr.
21755         * string/str-two-way.h: Don't undefine MAX.
21756         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21757
21758 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21759
21760         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21761         strcasestr-nonascii.
21762         (CFLAGS-strcasestr-nonascii.c): Define.
21763         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21764         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21765         Remove unused attribute.
21766
21767 2010-07-20  Roland McGrath  <roland@redhat.com>
21768
21769         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21770         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21771         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21772         like LD_HWCAP_MASK can disable hwcaps.
21773
21774 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21775
21776         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21777
21778 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21779
21780         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21781         call in strcasestr.
21782         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21783         __strcasestr_sse42_nonascii.
21784         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21785         strcasestr-nonascii.c.
21786         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21787
21788 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21789
21790         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21791         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21792         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21793         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21794
21795 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21796
21797         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21798         fcntl.
21799
21800 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21801
21802         [BZ #11577]
21803         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21804         dl_signal_cerror.
21805
21806 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21807
21808         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21809         _PC_PIPE_BUF using F_GETPIPE_SZ.
21810
21811 2010-07-05  Roland McGrath  <roland@redhat.com>
21812
21813         * manual/arith.texi (Rounding Functions): Fix rint description
21814         implicit in round description.
21815
21816 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21817
21818         * elf/Makefile: Fix linking for a few tests to make recent linker
21819         happy.
21820
21821 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21822
21823         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21824         $(common-objpfx)libc_nonshared.a.
21825
21826 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21827
21828         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21829         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21830         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21831         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21832         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21833         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21834         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21835         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21850         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21851         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21852         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21853         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21854         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21855         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21856         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21857         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21858         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21859         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21860         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21861         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21876
21877 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21878
21879         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21880         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21881         * string/memmove.c (memmove): Renamed to ...
21882         (MEMMOVE): ...this.  Default to memmove.
21883         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21884         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21885         (END_CHK): Define.
21886         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21887         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21888         mempcpy-ssse3-back memmove-ssse3-back.
21889         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21890         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21891         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21892         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21893         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21894         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21895         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21896         * sysdeps/x86_64/multiarch/memmove.c: New file.
21897         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21898         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21899         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21900         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21901         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21902         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21903         Define.
21904         (index_Fast_Copy_Backward): Define.
21905         (HAS_ARCH_FEATURE): Define.
21906         (HAS_FAST_REP_STRING): Define.
21907         (HAS_FAST_COPY_BACKWARD): Define.
21908
21909 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21910
21911         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21912         Restore proper fallback handling.
21913
21914 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
21915
21916         [BZ #11701]
21917         * posix/group_member.c (__group_member): Correct checking loop.
21918
21919         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
21920         OOM in getpwuid_r correctly.  Return error number when the caller
21921         should return, otherwise -1.
21922         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
21923         call returning > 0 value.
21924         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
21925
21926 2010-06-07  Andreas Schwab  <schwab@redhat.com>
21927
21928         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
21929         libc_nonshared.a from targets in modules-names.
21930
21931 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
21932
21933         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
21934         requires it.
21935
21936 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
21937
21938         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
21939         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
21940         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21941         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21942
21943 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21944
21945         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21946
21947 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21948
21949         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21950         and F_GETPIPE_SZ.
21951         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21952         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21953         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21954         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21955         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21956         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21957
21958 2010-06-14  Roland McGrath  <roland@redhat.com>
21959
21960         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21961
21962 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21963
21964         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21965         __REDIRECT followed by __THROW.
21966         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21967         * posix/getopt.h (getopt): Likewise.
21968
21969 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21970
21971         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21972         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21973         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21974         in AT_FLAGS.
21975         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21976         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21977
21978 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21979
21980         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21981
21982 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21983
21984         [BZ #11640]
21985         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21986         Properly check family and model.
21987
21988 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21989
21990         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21991
21992 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21993
21994         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21995
21996 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21997
21998         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21999         symbol reference.
22000
22001 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22002
22003         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22004         symbol reference.
22005
22006 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22007
22008         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22009         and internal_recvmmsg.
22010         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22011         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22012         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22013         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22014
22015         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22016         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22017         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22018
22019 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22020
22021         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22022
22023 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22024
22025         POWER7 optimizations.
22026         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22027         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22028
22029 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22030
22031         * version.h: Update for 2.13 development version.
22032
22033 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22034
22035         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22036         exceptions.  Return 0.
22037
22038 2010-05-07  Roland McGrath  <roland@redhat.com>
22039
22040         * elf/ldconfig.c (main): Add a const.
22041
22042 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22043
22044         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22045         (args_options): Add no-idn option.
22046         (ahosts_keys_int): Add idn_flags to ai_flags.
22047         (parse_option): Handle 'i' option to clear idn_flags.
22048
22049         * malloc/malloc.c (_int_free): Possible race in the most recently
22050         added check.  Only act on the data if no current modification
22051         happened.
22052
22053 See ChangeLog.17 for earlier changes.