PowerPC: Use <bits/fcntl-linux.h>
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-09  Andreas Jaeger  <aj@suse.de>
2
3         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
4         definitions and declarations that are provided by
5         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
6
7 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8
9         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
10         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
11         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
12         definition.
13
14 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15
16         * elf/elf.h: Update comment before AArch64 relocations.
17
18 2012-11-07  David S. Miller  <davem@davemloft.net>
19
20         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
21         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
22         (__start_context): Declare.
23         (__makecontext_ret): Delete.
24         (__makecontext): Hook up __start_context instead of
25         __makecontext_ret.
26         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
27         (sysdep_routines): Add __start_context when in stdlib.
28
29 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
30
31         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
32         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
33         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
34         hardcoded "nm".
35         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
36         (READELF): New variable.  Use it instead of hardcoded "readelf".
37
38 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
39
40         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
41         * sysdeps/x86/Makefile: Here.
42         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
43         * sysdeps/x86/tst-xmmymm.sh: This.
44
45 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
46
47         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
48         expectations.
49         [UNIX98] (pthread_barrier_t): Do not expect.
50         [UNIX98] (pthread_barrierattr_t): Likewise.
51         [UNIX98] (pthread_spinlock_t): Likewise.
52         [UNIX98] (pthread_barrier_destroy): Likewise.
53         [UNIX98] (pthread_barrier_init): Likewise.
54         [UNIX98] (pthread_barrier_wait): Likewise.
55         [UNIX98] (pthread_barrierattr_destroy): Likewise.
56         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
57         [UNIX98] (pthread_barrierattr_init): Likewise.
58         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
59         [UNIX98] (pthread_getcpuclockid): Likewise.
60         [UNIX98] (pthread_mutex_timedlock): Likewise.
61         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
62         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
63         [UNIX98] (pthread_sigmask): Likewise.
64         [UNIX98] (pthread_spin_destroy): Likewise.
65         [UNIX98] (pthread_spin_init): Likewise.
66         [UNIX98] (pthread_spin_lock): Likewise.
67         [UNIX98] (pthread_spin_trylock): Likewise.
68         [UNIX98] (pthread_spin_unlock): Likewise.
69         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
70         Do not expect.
71         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
72         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
73         [XPG3 || XPG4] (pthread_cond_t): Likewise.
74         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
75         [XPG3 || XPG4] (pthread_key_t): Likewise.
76         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
77         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
78         [XPG3 || XPG4] (pthread_once_t): Likewise.
79         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
80         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
81         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
82         [XPG3 || XPG4] (pthread_t): Likewise.
83
84         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
85         not expect.
86         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
87
88         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
89         Change function return type to int.
90
91         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
92         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
93         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
94         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
95         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
96         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
97         [!POSIX] (posix_madvise): Likewise.
98         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
99         && !UNIX98].
100         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
101         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
102         (mode_t): Likewise.
103         (posix_mem_offset): Likewise.
104         (posix_typed_mem_get_info): Likewise.
105         (posix_typed_mem_open): Likewise.
106
107         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
108         Change condition to [XOPEN2K8].
109
110         * conform/conformtest.pl: Preprocess allow-header data with -x c
111         instead of from stdin.
112         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
113         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
114         [C99-based standards] (cerfc): Likewise.
115         [C99-based standards] (cexp2): Likewise.
116         [C99-based standards] (cexpm1): Likewise.
117         [C99-based standards] (clog10): Likewise.
118         [C99-based standards] (clog1p): Likewise.
119         [C99-based standards] (clog2): Likewise.
120         [C99-based standards] (clgamma): Likewise.
121         [C99-based standards] (ctgamma): Likewise.
122         [C99-based standards] (cerff): Likewise.
123         [C99-based standards] (cerfcf): Likewise.
124         [C99-based standards] (cexp2f): Likewise.
125         [C99-based standards] (cexpm1f): Likewise.
126         [C99-based standards] (clog10f): Likewise.
127         [C99-based standards] (clog1pf): Likewise.
128         [C99-based standards] (clog2f): Likewise.
129         [C99-based standards] (clgammaf): Likewise.
130         [C99-based standards] (ctgammaf): Likewise.
131         [C99-based standards] (cerfl): Likewise.
132         [C99-based standards] (cerfcl): Likewise.
133         [C99-based standards] (cexp2l): Likewise.
134         [C99-based standards] (cexpm1l): Likewise.
135         [C99-based standards] (clog10l): Likewise.
136         [C99-based standards] (clog1pl): Likewise.
137         [C99-based standards] (clog2l): Likewise.
138         [C99-based standards] (clgammal): Likewise.
139         [C99-based standards] (ctgammal): Likewise.
140         * conform/data/inttypes.h-data [C99-based standards]: Include
141         stdint.h-data.  Remove all expectations for stdint.h contents.
142         [C99-based standards] (PRI*): Do not allow.
143         [C99-based standards] (SCN*): Likewise.
144         [C99-based standards] (*_t): Likewise.
145         [C99-based-standards] (PRId8): Expect macro.
146         [C99-based-standards] (PRIi8): Likewise.
147         [C99-based-standards] (PRIo8): Likewise.
148         [C99-based-standards] (PRIu8): Likewise.
149         [C99-based-standards] (PRIx8): Likewise.
150         [C99-based-standards] (PRIX8): Likewise.
151         [C99-based-standards] (SCNd8): Likewise.
152         [C99-based-standards] (SCNi8): Likewise.
153         [C99-based-standards] (SCNo8): Likewise.
154         [C99-based-standards] (SCNu8): Likewise.
155         [C99-based-standards] (SCNx8): Likewise.
156         [C99-based-standards] (PRIdLEAST8): Likewise.
157         [C99-based-standards] (PRIiLEAST8): Likewise.
158         [C99-based-standards] (PRIoLEAST8): Likewise.
159         [C99-based-standards] (PRIuLEAST8): Likewise.
160         [C99-based-standards] (PRIxLEAST8): Likewise.
161         [C99-based-standards] (PRIXLEAST8): Likewise.
162         [C99-based-standards] (SCNdLEAST8): Likewise.
163         [C99-based-standards] (SCNiLEAST8): Likewise.
164         [C99-based-standards] (SCNoLEAST8): Likewise.
165         [C99-based-standards] (SCNuLEAST8): Likewise.
166         [C99-based-standards] (SCNxLEAST8): Likewise.
167         [C99-based-standards] (PRIdFAST8): Likewise.
168         [C99-based-standards] (PRIiFAST8): Likewise.
169         [C99-based-standards] (PRIoFAST8): Likewise.
170         [C99-based-standards] (PRIuFAST8): Likewise.
171         [C99-based-standards] (PRIxFAST8): Likewise.
172         [C99-based-standards] (PRIXFAST8): Likewise.
173         [C99-based-standards] (SCNdFAST8): Likewise.
174         [C99-based-standards] (SCNiFAST8): Likewise.
175         [C99-based-standards] (SCNoFAST8): Likewise.
176         [C99-based-standards] (SCNuFAST8): Likewise.
177         [C99-based-standards] (SCNxFAST8): Likewise.
178         [C99-based-standards] (PRId16): Likewise.
179         [C99-based-standards] (PRIi16): Likewise.
180         [C99-based-standards] (PRIo16): Likewise.
181         [C99-based-standards] (PRIu16): Likewise.
182         [C99-based-standards] (PRIx16): Likewise.
183         [C99-based-standards] (PRIX16): Likewise.
184         [C99-based-standards] (SCNd16): Likewise.
185         [C99-based-standards] (SCNi16): Likewise.
186         [C99-based-standards] (SCNo16): Likewise.
187         [C99-based-standards] (SCNu16): Likewise.
188         [C99-based-standards] (SCNx16): Likewise.
189         [C99-based-standards] (PRIdLEAST16): Likewise.
190         [C99-based-standards] (PRIiLEAST16): Likewise.
191         [C99-based-standards] (PRIoLEAST16): Likewise.
192         [C99-based-standards] (PRIuLEAST16): Likewise.
193         [C99-based-standards] (PRIxLEAST16): Likewise.
194         [C99-based-standards] (PRIXLEAST16): Likewise.
195         [C99-based-standards] (SCNdLEAST16): Likewise.
196         [C99-based-standards] (SCNiLEAST16): Likewise.
197         [C99-based-standards] (SCNoLEAST16): Likewise.
198         [C99-based-standards] (SCNuLEAST16): Likewise.
199         [C99-based-standards] (SCNxLEAST16): Likewise.
200         [C99-based-standards] (PRIdFAST16): Likewise.
201         [C99-based-standards] (PRIiFAST16): Likewise.
202         [C99-based-standards] (PRIoFAST16): Likewise.
203         [C99-based-standards] (PRIuFAST16): Likewise.
204         [C99-based-standards] (PRIxFAST16): Likewise.
205         [C99-based-standards] (PRIXFAST16): Likewise.
206         [C99-based-standards] (SCNdFAST16): Likewise.
207         [C99-based-standards] (SCNiFAST16): Likewise.
208         [C99-based-standards] (SCNoFAST16): Likewise.
209         [C99-based-standards] (SCNuFAST16): Likewise.
210         [C99-based-standards] (SCNxFAST16): Likewise.
211         [C99-based-standards] (PRId32): Likewise.
212         [C99-based-standards] (PRIi32): Likewise.
213         [C99-based-standards] (PRIo32): Likewise.
214         [C99-based-standards] (PRIu32): Likewise.
215         [C99-based-standards] (PRIx32): Likewise.
216         [C99-based-standards] (PRIX32): Likewise.
217         [C99-based-standards] (SCNd32): Likewise.
218         [C99-based-standards] (SCNi32): Likewise.
219         [C99-based-standards] (SCNo32): Likewise.
220         [C99-based-standards] (SCNu32): Likewise.
221         [C99-based-standards] (SCNx32): Likewise.
222         [C99-based-standards] (PRIdLEAST32): Likewise.
223         [C99-based-standards] (PRIiLEAST32): Likewise.
224         [C99-based-standards] (PRIoLEAST32): Likewise.
225         [C99-based-standards] (PRIuLEAST32): Likewise.
226         [C99-based-standards] (PRIxLEAST32): Likewise.
227         [C99-based-standards] (PRIXLEAST32): Likewise.
228         [C99-based-standards] (SCNdLEAST32): Likewise.
229         [C99-based-standards] (SCNiLEAST32): Likewise.
230         [C99-based-standards] (SCNoLEAST32): Likewise.
231         [C99-based-standards] (SCNuLEAST32): Likewise.
232         [C99-based-standards] (SCNxLEAST32): Likewise.
233         [C99-based-standards] (PRIdFAST32): Likewise.
234         [C99-based-standards] (PRIiFAST32): Likewise.
235         [C99-based-standards] (PRIoFAST32): Likewise.
236         [C99-based-standards] (PRIuFAST32): Likewise.
237         [C99-based-standards] (PRIxFAST32): Likewise.
238         [C99-based-standards] (PRIXFAST32): Likewise.
239         [C99-based-standards] (SCNdFAST32): Likewise.
240         [C99-based-standards] (SCNiFAST32): Likewise.
241         [C99-based-standards] (SCNoFAST32): Likewise.
242         [C99-based-standards] (SCNuFAST32): Likewise.
243         [C99-based-standards] (SCNxFAST32): Likewise.
244         [C99-based-standards] (PRId64): Likewise.
245         [C99-based-standards] (PRIi64): Likewise.
246         [C99-based-standards] (PRIo64): Likewise.
247         [C99-based-standards] (PRIu64): Likewise.
248         [C99-based-standards] (PRIx64): Likewise.
249         [C99-based-standards] (PRIX64): Likewise.
250         [C99-based-standards] (SCNd64): Likewise.
251         [C99-based-standards] (SCNi64): Likewise.
252         [C99-based-standards] (SCNo64): Likewise.
253         [C99-based-standards] (SCNu64): Likewise.
254         [C99-based-standards] (SCNx64): Likewise.
255         [C99-based-standards] (PRIdLEAST64): Likewise.
256         [C99-based-standards] (PRIiLEAST64): Likewise.
257         [C99-based-standards] (PRIoLEAST64): Likewise.
258         [C99-based-standards] (PRIuLEAST64): Likewise.
259         [C99-based-standards] (PRIxLEAST64): Likewise.
260         [C99-based-standards] (PRIXLEAST64): Likewise.
261         [C99-based-standards] (SCNdLEAST64): Likewise.
262         [C99-based-standards] (SCNiLEAST64): Likewise.
263         [C99-based-standards] (SCNoLEAST64): Likewise.
264         [C99-based-standards] (SCNuLEAST64): Likewise.
265         [C99-based-standards] (SCNxLEAST64): Likewise.
266         [C99-based-standards] (PRIdFAST64): Likewise.
267         [C99-based-standards] (PRIiFAST64): Likewise.
268         [C99-based-standards] (PRIoFAST64): Likewise.
269         [C99-based-standards] (PRIuFAST64): Likewise.
270         [C99-based-standards] (PRIxFAST64): Likewise.
271         [C99-based-standards] (PRIXFAST64): Likewise.
272         [C99-based-standards] (SCNdFAST64): Likewise.
273         [C99-based-standards] (SCNiFAST64): Likewise.
274         [C99-based-standards] (SCNoFAST64): Likewise.
275         [C99-based-standards] (SCNuFAST64): Likewise.
276         [C99-based-standards] (SCNxFAST64): Likewise.
277         [C99-based-standards] (PRIdMAX): Likewise.
278         [C99-based-standards] (PRIiMAX): Likewise.
279         [C99-based-standards] (PRIoMAX): Likewise.
280         [C99-based-standards] (PRIuMAX): Likewise.
281         [C99-based-standards] (PRIxMAX): Likewise.
282         [C99-based-standards] (PRIXMAX): Likewise.
283         [C99-based-standards] (SCNdMAX): Likewise.
284         [C99-based-standards] (SCNiMAX): Likewise.
285         [C99-based-standards] (SCNoMAX): Likewise.
286         [C99-based-standards] (SCNuMAX): Likewise.
287         [C99-based-standards] (SCNxMAX): Likewise.
288         [C99-based-standards] (PRIdPTR): Likewise.
289         [C99-based-standards] (PRIiPTR): Likewise.
290         [C99-based-standards] (PRIoPTR): Likewise.
291         [C99-based-standards] (PRIuPTR): Likewise.
292         [C99-based-standards] (PRIxPTR): Likewise.
293         [C99-based-standards] (PRIXPTR): Likewise.
294         [C99-based-standards] (SCNdPTR): Likewise.
295         [C99-based-standards] (SCNiPTR): Likewise.
296         [C99-based-standards] (SCNoPTR): Likewise.
297         [C99-based-standards] (SCNuPTR): Likewise.
298         [C99-based-standards] (SCNxPTR): Likewise.
299         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
300         allow.
301         * conform/data/stdint.h-data: Update comments to clarify
302         requirements.
303         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
304         type.
305         [C99-based standards] (INT8_MAX): Likewise.
306         [C99-based standards] (INT16_MIN): Likewise.
307         [C99-based standards] (INT16_MAX): Likewise.
308         [C99-based standards] (INT32_MIN): Likewise.
309         [C99-based standards] (INT32_MAX): Likewise.
310         [C99-based standards] (INT64_MIN): Likewise.
311         [C99-based standards] (INT64_MAX): Likewise.
312         [C99-based standards] (UINT8_MAX): Likewise.
313         [C99-based standards] (UINT16_MAX): Likewise.
314         [C99-based standards] (UINT32_MAX): Likewise.
315         [C99-based standards] (UINT64_MAX): Likewise.
316         [C99-based standards] (INT_LEAST8_MIN): Likewise.
317         [C99-based standards] (INT_LEAST8_MAX): Likewise.
318         [C99-based standards] (INT_LEAST16_MIN): Likewise.
319         [C99-based standards] (INT_LEAST16_MAX): Likewise.
320         [C99-based standards] (INT_LEAST32_MIN): Likewise.
321         [C99-based standards] (INT_LEAST32_MAX): Likewise.
322         [C99-based standards] (INT_LEAST64_MIN): Likewise.
323         [C99-based standards] (INT_LEAST64_MAX): Likewise.
324         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
325         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
326         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
327         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
328         [C99-based standards] (INT_FAST8_MIN): Likewise.
329         [C99-based standards] (INT_FAST8_MAX): Likewise.
330         [C99-based standards] (INT_FAST16_MIN): Likewise.
331         [C99-based standards] (INT_FAST16_MAX): Likewise.
332         [C99-based standards] (INT_FAST32_MIN): Likewise.
333         [C99-based standards] (INT_FAST32_MAX): Likewise.
334         [C99-based standards] (INT_FAST64_MIN): Likewise.
335         [C99-based standards] (INT_FAST64_MAX): Likewise.
336         [C99-based standards] (UINT_FAST8_MAX): Likewise.
337         [C99-based standards] (UINT_FAST16_MAX): Likewise.
338         [C99-based standards] (UINT_FAST32_MAX): Likewise.
339         [C99-based standards] (UINT_FAST64_MAX): Likewise.
340         [C99-based standards] (INTPTR_MIN): Likewise.
341         [C99-based standards] (INTPTR_MAX): Likewise.
342         [C99-based standards] (UINTPTR_MAX): Likewise.
343         [C99-based standards] (INTMAX_MIN): Likewise.
344         [C99-based standards] (INTMAX_MAX): Likewise.
345         [C99-based standards] (UINTMAX_MAX): Likewise.
346         [C99-based standards] (PTRDIFF_MIN): Likewise.
347         [C99-based standards] (PTRDIFF_MAX): Likewise.
348         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
349         [C99-based standards] (SIZE_MAX): Likewise.
350         [C99-based standards] (WCHAR_MAX): Likewise.
351         [C99-based standards] (WINT_MAX): Likewise.
352         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
353         constraint on value.
354         [C99-based standards] (WCHAR_MIN): Likewise.
355         [C99-based standards] (WINT_MIN): Likewise.
356         [C99-based standards] (*_t): Allow.
357         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
358         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
359         Include math.h-data and complex.h-data.  Remove all expectations
360         of math.h and complex.h contents.
361         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
362         at end of line.
363         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
364         (struct tm): Expect tag.
365         [C99-based-standards] (wcstof): Expect function.
366         [C99-based-standards] (wcstold): Likewise.
367         [C99-based-standards] (wcstoll): Likewise.
368         [C99-based-standards] (wcstoull): Likewise.
369         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
370         macro-int-constant.  Specify type.
371         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
372         constraint on value.
373         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
374         Specify type.
375         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
376         Specify value.
377         [ISO C standards]: Do not allow headers.
378         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
379         wcs[abcdefghijklmnopqrstuvwxyz]*.
380         [ISO C standards] (*_t): Do not allow.
381         * conform/data/wctype.h-data [C99-based standards] (iswblank):
382         Expect function.
383         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
384         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
385         Specify type.
386         [ISO C standards]: Do not allow headers.
387         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
388         is[abcdefghijklmnopqrstuvwxyz]*.
389         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
390         to[abcdefghijklmnopqrstuvwxyz]*.
391         [ISO C standards] (*_t): Do not allow.
392         * conform/data/stdalign.h-data: New file.
393         * conform/data/stdbool.h-data: Likewise.
394         * conform/data/stdnoreturn.h-data: Likewise.
395
396 2012-11-07  Andreas Jaeger  <aj@suse.de>
397
398         [BZ #14809]
399         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
400         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
401         guards are changed.  Only define if not yet defined, #undef back
402         after including linux/sysctl.h if defined here.
403
404 2012-11-07  Roland McGrath  <roland@hack.frob.com>
405
406         [BZ #14815]
407         * manual/filesys.texi (Directory Entries): Typo fix.
408         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
409
410 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
411
412         * elf/elf.h (EM_AARCH64): New macro.
413         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
414         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
415         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
416         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
417         (R_AARCH64_TLSDESC): Likewise.
418         (NT_ARM_TLS): Likewise.
419         (NT_ARM_HW_BREAK): Likewise.
420         (NT_ARM_HW_WATCH): Likewise.
421
422 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
423
424         [BZ #14811]
425         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
426         (__ieee754_powl): Saturate nonzero exponents with absolute value
427         below 0x1p-79 to +/- 0x1p-79.
428         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
429         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
430         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
431         nonzero exponents with absolute value below 0x1p-32 to +/-
432         0x1p-32.
433         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
434         (__ieee754_powl): Saturate nonzero exponents with absolute value
435         below 0x1p-79 to +/- 0x1p-79.
436         * math/libm-test.inc (pow_test): Add more tests.
437
438 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
439
440         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
441         _dl_s390_cap_flags with kernel. Increase string length.
442         (_dl_s390_platforms): Add z196 and zEC12.
443
444 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
445
446         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
447         Change XOPEN21K to XOPEN2K.
448
449 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
450
451         * string/memmove.c: Use memcpy when possible.
452
453 2012-11-06  Andreas Jaeger  <aj@suse.de>
454
455         * po/eo.po: Update from translation team.
456
457 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
458
459         [BZ #14793]
460         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
461         exponent and small x and y exponents, scale x or y up.  Increase
462         by 2 the exponent used in scaling up.
463         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
464         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
465         * math/libm-test.inc (fma_test): Add more tests.
466         (fma_test_towardzero): Likewise.
467         (fma_test_downward): Likewise.
468         (fma_test_upward): Likewise.
469
470 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
471
472         [BZ #14805]
473         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
474         fenv_t *.
475
476         [BZ #14801]
477         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
478         namespace for names of struct fields.
479         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
480         fenv_t fields.
481         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
482         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
483
484 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
485
486         [BZ #3665]
487         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
488
489 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
490
491         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
492         PTR_DEMANGLE.
493
494         [BZ #5246]
495         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
496         PTR_DEMANGLE.
497
498 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
499
500         [BZ #14797]
501         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
502         definitely overflow as x * y not x * y + z.
503         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
504         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
505         * math/libm-test.inc (fma_test): Add more tests.
506         (fma_test_towardzero): Likewise.
507         (fma_test_downward): Likewise.
508         (fma_test_upward): Likewise.
509
510 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
511
512         [BZ #157]
513
514         * include/stub-tag.h: Remove file.
515         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
516         '#include' of it.
517         * manual/maint.texi (Porting): Don't reference it.
518         * Makerules ($(objpfx)stubs): Likewise.
519         * dirent/closedir.c: Don't include <stub-tag.h>.
520         * dirent/dirfd.c: Likewise.
521         * dirent/fdopendir.c: Likewise.
522         * dirent/getdents.c: Likewise.
523         * dirent/getdents64.c: Likewise.
524         * dirent/opendir.c: Likewise.
525         * dirent/readdir.c: Likewise.
526         * dirent/readdir64.c: Likewise.
527         * dirent/readdir64_r.c: Likewise.
528         * dirent/readdir_r.c: Likewise.
529         * dirent/rewinddir.c: Likewise.
530         * dirent/seekdir.c: Likewise.
531         * dirent/telldir.c: Likewise.
532         * gmon/profil.c: Likewise.
533         * grp/setgroups.c: Likewise.
534         * inet/if_index.c: Likewise.
535         * io/access.c: Likewise.
536         * io/chdir.c: Likewise.
537         * io/chmod.c: Likewise.
538         * io/chown.c: Likewise.
539         * io/close.c: Likewise.
540         * io/dup.c: Likewise.
541         * io/dup2.c: Likewise.
542         * io/dup3.c: Likewise.
543         * io/euidaccess.c: Likewise.
544         * io/faccessat.c: Likewise.
545         * io/fchdir.c: Likewise.
546         * io/fchmod.c: Likewise.
547         * io/fchmodat.c: Likewise.
548         * io/fchown.c: Likewise.
549         * io/fchownat.c: Likewise.
550         * io/fcntl.c: Likewise.
551         * io/flock.c: Likewise.
552         * io/fstatfs.c: Likewise.
553         * io/fstatfs64.c: Likewise.
554         * io/fstatvfs.c: Likewise.
555         * io/fstatvfs64.c: Likewise.
556         * io/futimens.c: Likewise.
557         * io/fxstat.c: Likewise.
558         * io/fxstat64.c: Likewise.
559         * io/fxstatat.c: Likewise.
560         * io/fxstatat64.c: Likewise.
561         * io/getcwd.c: Likewise.
562         * io/isatty.c: Likewise.
563         * io/lchmod.c: Likewise.
564         * io/lchown.c: Likewise.
565         * io/link.c: Likewise.
566         * io/linkat.c: Likewise.
567         * io/lseek.c: Likewise.
568         * io/lseek64.c: Likewise.
569         * io/lxstat64.c: Likewise.
570         * io/mkdir.c: Likewise.
571         * io/mkdirat.c: Likewise.
572         * io/mkfifo.c: Likewise.
573         * io/mkfifoat.c: Likewise.
574         * io/open.c: Likewise.
575         * io/open64.c: Likewise.
576         * io/openat.c: Likewise.
577         * io/openat64.c: Likewise.
578         * io/pipe.c: Likewise.
579         * io/pipe2.c: Likewise.
580         * io/poll.c: Likewise.
581         * io/posix_fadvise.c: Likewise.
582         * io/posix_fadvise64.c: Likewise.
583         * io/posix_fallocate.c: Likewise.
584         * io/posix_fallocate64.c: Likewise.
585         * io/read.c: Likewise.
586         * io/readlink.c: Likewise.
587         * io/readlinkat.c: Likewise.
588         * io/rmdir.c: Likewise.
589         * io/sendfile.c: Likewise.
590         * io/sendfile64.c: Likewise.
591         * io/statfs.c: Likewise.
592         * io/statfs64.c: Likewise.
593         * io/statvfs.c: Likewise.
594         * io/statvfs64.c: Likewise.
595         * io/symlink.c: Likewise.
596         * io/symlinkat.c: Likewise.
597         * io/ttyname.c: Likewise.
598         * io/ttyname_r.c: Likewise.
599         * io/umask.c: Likewise.
600         * io/unlink.c: Likewise.
601         * io/unlinkat.c: Likewise.
602         * io/utime.c: Likewise.
603         * io/utimensat.c: Likewise.
604         * io/write.c: Likewise.
605         * io/xmknod.c: Likewise.
606         * io/xmknodat.c: Likewise.
607         * io/xstat.c: Likewise.
608         * io/xstat64.c: Likewise.
609         * login/getpt.c: Likewise.
610         * login/grantpt.c: Likewise.
611         * login/unlockpt.c: Likewise.
612         * math/e_acoshl.c: Likewise.
613         * math/e_acosl.c: Likewise.
614         * math/e_asinl.c: Likewise.
615         * math/e_atan2l.c: Likewise.
616         * math/e_atanhl.c: Likewise.
617         * math/e_coshl.c: Likewise.
618         * math/e_expl.c: Likewise.
619         * math/e_fmodl.c: Likewise.
620         * math/e_gammal_r.c: Likewise.
621         * math/e_hypotl.c: Likewise.
622         * math/e_j0l.c: Likewise.
623         * math/e_j1l.c: Likewise.
624         * math/e_jnl.c: Likewise.
625         * math/e_lgammal_r.c: Likewise.
626         * math/e_log10l.c: Likewise.
627         * math/e_log2l.c: Likewise.
628         * math/e_logl.c: Likewise.
629         * math/e_powl.c: Likewise.
630         * math/e_rem_pio2l.c: Likewise.
631         * math/e_sinhl.c: Likewise.
632         * math/e_sqrtl.c: Likewise.
633         * math/fclrexcpt.c: Likewise.
634         * math/fedisblxcpt.c: Likewise.
635         * math/feenablxcpt.c: Likewise.
636         * math/fegetenv.c: Likewise.
637         * math/fegetexcept.c: Likewise.
638         * math/fegetround.c: Likewise.
639         * math/feholdexcpt.c: Likewise.
640         * math/fesetenv.c: Likewise.
641         * math/fesetround.c: Likewise.
642         * math/feupdateenv.c: Likewise.
643         * math/fgetexcptflg.c: Likewise.
644         * math/fraiseexcpt.c: Likewise.
645         * math/fsetexcptflg.c: Likewise.
646         * math/ftestexcept.c: Likewise.
647         * math/k_cosl.c: Likewise.
648         * math/k_rem_pio2l.c: Likewise.
649         * math/k_sinl.c: Likewise.
650         * math/k_tanl.c: Likewise.
651         * math/s_asinhl.c: Likewise.
652         * math/s_atanl.c: Likewise.
653         * math/s_cbrtl.c: Likewise.
654         * math/s_erfl.c: Likewise.
655         * math/s_expm1l.c: Likewise.
656         * math/s_log1pl.c: Likewise.
657         * math/s_tanhl.c: Likewise.
658         * misc/acct.c: Likewise.
659         * misc/brk.c: Likewise.
660         * misc/chflags.c: Likewise.
661         * misc/chroot.c: Likewise.
662         * misc/fchflags.c: Likewise.
663         * misc/fgetxattr.c: Likewise.
664         * misc/flistxattr.c: Likewise.
665         * misc/fremovexattr.c: Likewise.
666         * misc/fsetxattr.c: Likewise.
667         * misc/fsync.c: Likewise.
668         * misc/ftruncate.c: Likewise.
669         * misc/futimes.c: Likewise.
670         * misc/futimesat.c: Likewise.
671         * misc/getdomain.c: Likewise.
672         * misc/getdtsz.c: Likewise.
673         * misc/gethostid.c: Likewise.
674         * misc/gethostname.c: Likewise.
675         * misc/getloadavg.c: Likewise.
676         * misc/getpagesize.c: Likewise.
677         * misc/getsysstats.c: Likewise.
678         * misc/getxattr.c: Likewise.
679         * misc/gtty.c: Likewise.
680         * misc/ioctl.c: Likewise.
681         * misc/lgetxattr.c: Likewise.
682         * misc/listxattr.c: Likewise.
683         * misc/llistxattr.c: Likewise.
684         * misc/lremovexattr.c: Likewise.
685         * misc/lsetxattr.c: Likewise.
686         * misc/lutimes.c: Likewise.
687         * misc/madvise.c: Likewise.
688         * misc/mincore.c: Likewise.
689         * misc/mlock.c: Likewise.
690         * misc/mlockall.c: Likewise.
691         * misc/mmap.c: Likewise.
692         * misc/mprotect.c: Likewise.
693         * misc/msync.c: Likewise.
694         * misc/munlock.c: Likewise.
695         * misc/munlockall.c: Likewise.
696         * misc/munmap.c: Likewise.
697         * misc/preadv.c: Likewise.
698         * misc/preadv64.c: Likewise.
699         * misc/ptrace.c: Likewise.
700         * misc/pwritev.c: Likewise.
701         * misc/pwritev64.c: Likewise.
702         * misc/readv.c: Likewise.
703         * misc/reboot.c: Likewise.
704         * misc/remap_file_pages.c: Likewise.
705         * misc/removexattr.c: Likewise.
706         * misc/revoke.c: Likewise.
707         * misc/select.c: Likewise.
708         * misc/setdomain.c: Likewise.
709         * misc/setegid.c: Likewise.
710         * misc/seteuid.c: Likewise.
711         * misc/sethostid.c: Likewise.
712         * misc/sethostname.c: Likewise.
713         * misc/setregid.c: Likewise.
714         * misc/setreuid.c: Likewise.
715         * misc/setxattr.c: Likewise.
716         * misc/sstk.c: Likewise.
717         * misc/stty.c: Likewise.
718         * misc/swapoff.c: Likewise.
719         * misc/swapon.c: Likewise.
720         * misc/sync.c: Likewise.
721         * misc/syncfs.c: Likewise.
722         * misc/syscall.c: Likewise.
723         * misc/truncate.c: Likewise.
724         * misc/ualarm.c: Likewise.
725         * misc/usleep.c: Likewise.
726         * misc/ustat.c: Likewise.
727         * misc/utimes.c: Likewise.
728         * misc/vhangup.c: Likewise.
729         * misc/writev.c: Likewise.
730         * posix/_exit.c: Likewise.
731         * posix/alarm.c: Likewise.
732         * posix/execve.c: Likewise.
733         * posix/fexecve.c: Likewise.
734         * posix/fork.c: Likewise.
735         * posix/fpathconf.c: Likewise.
736         * posix/getaddrinfo.c: Likewise.
737         * posix/getegid.c: Likewise.
738         * posix/geteuid.c: Likewise.
739         * posix/getgid.c: Likewise.
740         * posix/getgroups.c: Likewise.
741         * posix/getlogin.c: Likewise.
742         * posix/getlogin_r.c: Likewise.
743         * posix/getpgid.c: Likewise.
744         * posix/getpid.c: Likewise.
745         * posix/getppid.c: Likewise.
746         * posix/getresgid.c: Likewise.
747         * posix/getresuid.c: Likewise.
748         * posix/getsid.c: Likewise.
749         * posix/getuid.c: Likewise.
750         * posix/glob64.c: Likewise.
751         * posix/nanosleep.c: Likewise.
752         * posix/pathconf.c: Likewise.
753         * posix/pause.c: Likewise.
754         * posix/posix_madvise.c: Likewise.
755         * posix/pread.c: Likewise.
756         * posix/pread64.c: Likewise.
757         * posix/pwrite.c: Likewise.
758         * posix/pwrite64.c: Likewise.
759         * posix/sched_getaffinity.c: Likewise.
760         * posix/sched_getp.c: Likewise.
761         * posix/sched_gets.c: Likewise.
762         * posix/sched_primax.c: Likewise.
763         * posix/sched_primin.c: Likewise.
764         * posix/sched_rr_gi.c: Likewise.
765         * posix/sched_setaffinity.c: Likewise.
766         * posix/sched_setp.c: Likewise.
767         * posix/sched_sets.c: Likewise.
768         * posix/sched_yield.c: Likewise.
769         * posix/setgid.c: Likewise.
770         * posix/setlogin.c: Likewise.
771         * posix/setpgid.c: Likewise.
772         * posix/setresgid.c: Likewise.
773         * posix/setresuid.c: Likewise.
774         * posix/setsid.c: Likewise.
775         * posix/setuid.c: Likewise.
776         * posix/sleep.c: Likewise.
777         * posix/spawni.c: Likewise.
778         * posix/sysconf.c: Likewise.
779         * posix/times.c: Likewise.
780         * posix/wait.c: Likewise.
781         * posix/wait3.c: Likewise.
782         * posix/wait4.c: Likewise.
783         * posix/waitpid.c: Likewise.
784         * resolv/gai_sigqueue.c: Likewise.
785         * resource/getpriority.c: Likewise.
786         * resource/getrlimit.c: Likewise.
787         * resource/getrusage.c: Likewise.
788         * resource/nice.c: Likewise.
789         * resource/setpriority.c: Likewise.
790         * resource/setrlimit.c: Likewise.
791         * resource/ulimit.c: Likewise.
792         * rt/aio_cancel.c: Likewise.
793         * rt/aio_fsync.c: Likewise.
794         * rt/aio_read.c: Likewise.
795         * rt/aio_sigqueue.c: Likewise.
796         * rt/aio_suspend.c: Likewise.
797         * rt/aio_write.c: Likewise.
798         * rt/clock_getres.c: Likewise.
799         * rt/clock_gettime.c: Likewise.
800         * rt/clock_nanosleep.c: Likewise.
801         * rt/clock_settime.c: Likewise.
802         * rt/lio_listio.c: Likewise.
803         * rt/mq_close.c: Likewise.
804         * rt/mq_getattr.c: Likewise.
805         * rt/mq_notify.c: Likewise.
806         * rt/mq_open.c: Likewise.
807         * rt/mq_receive.c: Likewise.
808         * rt/mq_send.c: Likewise.
809         * rt/mq_setattr.c: Likewise.
810         * rt/mq_timedreceive.c: Likewise.
811         * rt/mq_timedsend.c: Likewise.
812         * rt/mq_unlink.c: Likewise.
813         * rt/shm_open.c: Likewise.
814         * rt/shm_unlink.c: Likewise.
815         * rt/timer_create.c: Likewise.
816         * rt/timer_delete.c: Likewise.
817         * rt/timer_getoverr.c: Likewise.
818         * rt/timer_gettime.c: Likewise.
819         * rt/timer_settime.c: Likewise.
820         * setjmp/__longjmp.c: Likewise.
821         * setjmp/setjmp.c: Likewise.
822         * signal/kill.c: Likewise.
823         * signal/killpg.c: Likewise.
824         * signal/raise.c: Likewise.
825         * signal/sigaction.c: Likewise.
826         * signal/sigaltstack.c: Likewise.
827         * signal/sigblock.c: Likewise.
828         * signal/sigignore.c: Likewise.
829         * signal/sigintr.c: Likewise.
830         * signal/signal.c: Likewise.
831         * signal/sigpause.c: Likewise.
832         * signal/sigpending.c: Likewise.
833         * signal/sigqueue.c: Likewise.
834         * signal/sigreturn.c: Likewise.
835         * signal/sigset.c: Likewise.
836         * signal/sigsetmask.c: Likewise.
837         * signal/sigstack.c: Likewise.
838         * signal/sigsuspend.c: Likewise.
839         * signal/sigtimedwait.c: Likewise.
840         * signal/sigvec.c: Likewise.
841         * signal/sigwait.c: Likewise.
842         * signal/sigwaitinfo.c: Likewise.
843         * signal/sysv_signal.c: Likewise.
844         * socket/accept.c: Likewise.
845         * socket/accept4.c: Likewise.
846         * socket/bind.c: Likewise.
847         * socket/connect.c: Likewise.
848         * socket/getpeername.c: Likewise.
849         * socket/getsockname.c: Likewise.
850         * socket/getsockopt.c: Likewise.
851         * socket/isfdtype.c: Likewise.
852         * socket/listen.c: Likewise.
853         * socket/recv.c: Likewise.
854         * socket/recvfrom.c: Likewise.
855         * socket/recvmsg.c: Likewise.
856         * socket/send.c: Likewise.
857         * socket/sendmsg.c: Likewise.
858         * socket/sendto.c: Likewise.
859         * socket/setsockopt.c: Likewise.
860         * socket/shutdown.c: Likewise.
861         * socket/sockatmark.c: Likewise.
862         * socket/socket.c: Likewise.
863         * socket/socketpair.c: Likewise.
864         * stdio-common/ctermid.c: Likewise.
865         * stdio-common/cuserid.c: Likewise.
866         * stdio-common/remove.c: Likewise.
867         * stdio-common/rename.c: Likewise.
868         * stdio-common/renameat.c: Likewise.
869         * stdio-common/tempname.c: Likewise.
870         * stdlib/getcontext.c: Likewise.
871         * stdlib/makecontext.c: Likewise.
872         * stdlib/setcontext.c: Likewise.
873         * stdlib/swapcontext.c: Likewise.
874         * stdlib/system.c: Likewise.
875         * streams/fattach.c: Likewise.
876         * streams/fdetach.c: Likewise.
877         * streams/getmsg.c: Likewise.
878         * streams/getpmsg.c: Likewise.
879         * streams/putmsg.c: Likewise.
880         * streams/putpmsg.c: Likewise.
881         * sysdeps/unix/bsd/getpt.c: Likewise.
882         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
883         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
884         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
886         Likewise.
887         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
888         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
889         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
890         * sysvipc/msgctl.c: Likewise.
891         * sysvipc/msgget.c: Likewise.
892         * sysvipc/msgrcv.c: Likewise.
893         * sysvipc/msgsnd.c: Likewise.
894         * sysvipc/semctl.c: Likewise.
895         * sysvipc/semget.c: Likewise.
896         * sysvipc/semop.c: Likewise.
897         * sysvipc/semtimedop.c: Likewise.
898         * sysvipc/shmat.c: Likewise.
899         * sysvipc/shmctl.c: Likewise.
900         * sysvipc/shmdt.c: Likewise.
901         * sysvipc/shmget.c: Likewise.
902         * termios/tcdrain.c: Likewise.
903         * termios/tcflow.c: Likewise.
904         * termios/tcflush.c: Likewise.
905         * termios/tcgetattr.c: Likewise.
906         * termios/tcgetpgrp.c: Likewise.
907         * termios/tcsendbrk.c: Likewise.
908         * termios/tcsetattr.c: Likewise.
909         * termios/tcsetpgrp.c: Likewise.
910         * time/adjtime.c: Likewise.
911         * time/clock.c: Likewise.
912         * time/getitimer.c: Likewise.
913         * time/gettimeofday.c: Likewise.
914         * time/setitimer.c: Likewise.
915         * time/settimeofday.c: Likewise.
916         * time/stime.c: Likewise.
917         * time/time.c: Likewise.
918
919 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
920
921         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
922         /usr/old/bin.
923
924         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
925         instead of spaces.
926         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
927
928 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
929
930         [BZ #14796]
931         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
932         FE_TONEAREST before applying Dekker multiplication and Knuth
933         addition.  Clear inexact exceptions and check for exact zero
934         results afterwards.
935         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
936         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
937         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
938         * math/libm-test.inc (fma_test): Add more tests.
939         (fma_test_towardzero): Likewise.
940         (fma_test_downward): Likewise.
941         (fma_test_upward): Likewise.
942         * sysdeps/generic/math_private.h (default_libc_fesetround): New
943         function.
944         (libc_fesetround): New macro.
945         (libc_fesetroundf): Likewise.
946         (libc_fesetroundl): Likewise.
947         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
948         function.
949         (libc_fesetround_387): Likewise.
950         (libc_fesetroundf): New macro.
951         (libc_fesetround): Likewise.
952         (libc_fesetroundl): Likewise.
953         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
954         function.
955         (libc_fesetroundf): New macro.
956         (libc_fesetround): Likewise.
957         (libc_fesetroundl): Likewise.
958         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
959         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
960         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
961         libm_hidden_ver.
962         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
963         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
964         libm_hidden_def.
965         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
966         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
967         libm_hidden_ver.
968         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
969         libm_hidden_def.
970
971         [BZ #3439]
972         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
973         integer constant usable in #if and use that to give value to enum
974         constant.
975         (FE_DIVBYZERO): Likewise.
976         (FE_UNDERFLOW): Likewise.
977         (FE_OVERFLOW): Likewise.
978         (FE_INVALID): Likewise.
979         (FE_INVALID_SNAN): Likewise.
980         (FE_INVALID_ISI): Likewise.
981         (FE_INVALID_IDI): Likewise.
982         (FE_INVALID_ZDZ): Likewise.
983         (FE_INVALID_IMZ): Likewise.
984         (FE_INVALID_COMPARE): Likewise.
985         (FE_INVALID_SOFTWARE): Likewise.
986         (FE_INVALID_SQRT): Likewise.
987         (FE_INVALID_INTEGER_CONVERSION): Likewise.
988         (FE_TONEAREST): Likewise.
989         (FE_TOWARDZERO): Likewise.
990         (FE_UPWARD): Likewise.
991         (FE_DOWNWARD): Likewise.
992         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
993         (FE_DIVBYZERO): Likewise.
994         (FE_OVERFLOW): Likewise.
995         (FE_UNDERFLOW): Likewise.
996         (FE_INEXACT): Likewise.
997         (FE_TONEAREST): Likewise.
998         (FE_DOWNWARD): Likewise.
999         (FE_UPWARD): Likewise.
1000         (FE_TOWARDZERO): Likewise.
1001         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1002         (FE_UNDERFLOW): Likewise.
1003         (FE_OVERFLOW): Likewise.
1004         (FE_DIVBYZERO): Likewise.
1005         (FE_INVALID): Likewise.
1006         (FE_TONEAREST): Likewise.
1007         (FE_TOWARDZERO): Likewise.
1008         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1009         (FE_OVERFLOW): Likewise.
1010         (FE_UNDERFLOW): Likewise.
1011         (FE_DIVBYZERO): Likewise.
1012         (FE_INEXACT): Likewise.
1013         (FE_TONEAREST): Likewise.
1014         (FE_TOWARDZERO): Likewise.
1015         (FE_UPWARD): Likewise.
1016         (FE_DOWNWARD): Likewise.
1017         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1018         (FE_DIVBYZERO): Likewise.
1019         (FE_OVERFLOW): Likewise.
1020         (FE_UNDERFLOW): Likewise.
1021         (FE_INEXACT): Likewise.
1022         (FE_TONEAREST): Likewise.
1023         (FE_DOWNWARD): Likewise.
1024         (FE_UPWARD): Likewise.
1025         (FE_TOWARDZERO): Likewise.
1026
1027 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1028
1029         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1030
1031 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1032
1033         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1034         commands.  Quote $PWD.
1035         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1036         -x" by "export".
1037         (remove_newlines): Remove.
1038
1039 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1040
1041         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1042         * stdlib/stdlib.h (atof): Moved to ...
1043         * include/bits/stdlib-float.h: Here.  New file.
1044         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1045         * stdlib/bits/stdlib-float.h: New file.
1046         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1047         -mno-sse -mno-mmx.
1048         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1049         <xmmintrin.h>.
1050
1051 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1052
1053         * conform/conformtest.pl (@headers): Add fenv.h.
1054         * conform/data/fenv.h-data: New file.
1055         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1056         include of <math/fenv.h>.
1057
1058         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1059         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1060         && !UNIX98].  Enables tests for XOPEN2K8.
1061         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1062         POSIX2008]: Likewise.
1063
1064         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1065         (struct rusage): Do not expect type or its members.
1066
1067         [BZ #3439]
1068         * math/math.h (FP_NAN): Define macro to integer constant usable in
1069         #if and use that to give value to enum constant.
1070         (FP_INFINITE): Likewise.
1071         (FP_ZERO): Likewise.
1072         (FP_SUBNORMAL): Likewise.
1073         (FP_NORMAL): Likewise.
1074
1075 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1076
1077         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1078         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1079         arguments.
1080
1081 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1082
1083         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1084         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1085         autoconf-time if not.
1086         * configure.in: Remove AC_PREREQ.
1087
1088 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1089
1090         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1091         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1092         of the internal implementation.
1093
1094 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1095
1096         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1097         except include of <misc/sys/syslog.h>.
1098
1099 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1100
1101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1102         function returns with a NULL context exit with zero.
1103
1104 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1105
1106         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1107
1108 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1109
1110         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1111         (run_program_cmd): This.
1112         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1113         (tst_langinfo): New variable.  Use it.
1114
1115 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1116
1117         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1118         floating point opcodes.
1119
1120 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1121
1122         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1123         variable.
1124
1125         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1126
1127         * sysdeps/mach/hurd/powerpc: Remove directory.
1128         * sysdeps/mach/powerpc: Likewise.
1129
1130 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1131
1132         * scripts/check-local-headers.sh: Ignore c++ headers.
1133
1134 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1135
1136         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1137         __libc_cleanup_region_start argument.
1138
1139 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1140
1141         [BZ #14784]
1142         [BZ #14785]
1143         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1144         x * y using scaling, not as x * y + z.
1145         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1146         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1147         * math/libm-test.inc (fma_test): Add more tests.
1148         (fma_test_towardzero): Likewise.
1149         (fma_test_downward): Likewise.
1150         (fma_test_upward): Likewise.
1151
1152 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1153
1154         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1155
1156 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1157
1158         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1159         New variable.
1160
1161 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1162
1163         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1164
1165 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1166
1167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1168         Fix sort order.
1169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1170         Likewise.
1171
1172 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1173
1174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1175         Fix the order of the list for glibc 2.17.
1176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1177         Likewise.
1178
1179 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1180
1181         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1182
1183 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1184
1185         [BZ #14610]
1186         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1187         for low part of x being zero before using __atanl (y).
1188         * math/libm-test.inc (atan2_test): Add another test.
1189
1190         * manual/install.texi (Configuring and compiling): Document
1191         general use of test-wrapper and test-wrapper-env.
1192         * INSTALL: Regenerated.
1193
1194         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1195         (__fma): Do not extract and scale down low bits on after-rounding
1196         systems when result rounded to normal precision would have normal
1197         exponent.
1198         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1199         (__fmal): Do not extract and scale down low bits on after-rounding
1200         systems when result rounded to normal precision would have normal
1201         exponent.
1202         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1203         (__fmal): Do not extract and scale down low bits on after-rounding
1204         systems when result rounded to normal precision would have normal
1205         exponent.
1206         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1207         macro.
1208         (fma_test): Add more tests.
1209         (fma_test_towardzero): Likewise.
1210         (fma_test_downward): Likewise.
1211         (fma_test_upward): Likewise.
1212
1213 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1214
1215         * sysdeps/i386/tininess.h: Renamed to ...
1216         * sysdeps/x86/tininess.h: This.
1217         * sysdeps/x86_64/tininess.h: Removed.
1218
1219 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1220
1221         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1222         input.  Use $(build-program-cmd).
1223         ($(objpfx)tst-array1-static.out): Likewise.
1224         ($(objpfx)tst-array2.out): Likewise.
1225         ($(objpfx)tst-array3.out): Likewise.
1226         ($(objpfx)tst-array4.out): Likewise.
1227         ($(objpfx)tst-array5.out): Likewise.
1228         ($(objpfx)tst-array5-static.out): Likewise.
1229
1230 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1231
1232         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1233         if defined.
1234
1235         * nss/nsswitch.h (nss_interface_function): Provide new
1236         macro for use with NSS functions.
1237         * grp/initgroups.c: Use new macro.
1238         * nss/getXXbyYY.c: Likewise.
1239         * nss/getXXbyYY_r.c: Likewise.
1240         * nss/getXXent.c: Likewise.
1241         * nss/getXXent_r.c: Likewise.
1242         * sysdeps/posix/getaddrinfo.c: Likewise.
1243
1244 2012-10-30  Andreas Jaeger  <aj@suse.de>
1245
1246         * po/ru.po: Update Russion translation from translation project.
1247
1248 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1249
1250         [BZ #14152]
1251         [BZ #14783]
1252         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1253         result and shift together with sticky bit instead of replicating
1254         round-to-nearest rounding.
1255         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1256         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1257         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1258         missing underflow exceptions.
1259         (fma_test_towardzero): Add more tests.
1260         (fma_test_downward): Likewise.
1261         (fma_test_upward): Likewise.
1262
1263         [BZ #14047]
1264         * sysdeps/generic/tininess.h: New file.
1265         * sysdeps/i386/tininess.h: Likewise.
1266         * sysdeps/sh/tininess.h: Likewise.
1267         * sysdeps/x86_64/tininess.h: Likewise.
1268         * stdlib/tst-strtod-underflow.c: Likewise.
1269         * stdlib/tst-tininess.c: Likewise.
1270         * stdlib/strtod_l.c: Include <tininess.h>.
1271         (round_and_return): Do not set errno for exact underflow cases.
1272         Force an underflow exception when setting errno for underflow.
1273         Determine underflow based on rounding to normal precision if
1274         TININESS_AFTER_ROUNDING.
1275         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1276         ERANGE for exact underflow cases.
1277         * stdlib/Makefile (tests): Add tst-tininess and
1278         tst-strtod-underflow.
1279         ($(objpfx)tst-tininess): Use $(link-libm).
1280         ($(objpfx)tst-strtod-underflow): Likewise.
1281
1282 2012-10-30  Andreas Jaeger  <aj@suse.de>
1283
1284         [BZ#14767]
1285         * elf/Makefile (tests): Remove conditional for have-initfini-array
1286         since this is now always required and the variable does not exist
1287         anymore.
1288         (tests-static): Likewise.
1289         (modules-names): Likewise.
1290
1291         * po/eo.po: Add Esperanto translation from translation project.
1292
1293         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1294         merged with constructor/destructor.
1295         (init_array): Likewise.
1296         * elf/tst-array2dep.c (fini_array): Likewise.
1297         (init_array): Likewise.
1298
1299 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1300
1301         * manual/message.texi: Delete @cartouche tags.
1302
1303 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1304
1305         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1306         EOPNOTSUPP.
1307         * sysdeps/mach/hurd/fsync.c: Likewise.
1308
1309         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1310         [_POSIX_REALTIME_SIGNALS]: Change condition to
1311         [_POSIX_REALTIME_SIGNALS > 0].
1312
1313 2012-10-27  Andreas Jaeger  <aj@suse.de>
1314
1315         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1316         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1317         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1318         [__WORDSIZE != 64]: Likewise.
1319
1320 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1321
1322         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1323         *  iconvdata/tst-tables.sh: Likewise.
1324
1325 2012-10-25  David S. Miller  <davem@davemloft.net>
1326
1327         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1328         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1329         of strtoull.
1330
1331         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1332         ifunc-impl-list.c
1333         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1334         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1335         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1336         file.
1337
1338 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1339
1340         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1341         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1342         __getdirentries.
1343
1344 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1345             Jim Blandy  <jimb@codesourcery.com>
1346
1347         * scripts/cross-test-ssh.sh: New file.
1348         * manual/install.texi (Configuring and compiling): Document use of
1349         cross-test-ssh.sh.
1350         * INSTALL: Regenerated.
1351
1352 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1353
1354         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1355         EOPNOTSUPP.
1356
1357 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1358
1359         * Makeconfig (run-program-prefix): Fix comment.
1360
1361 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1362             Jim Blandy  <jimb@codesourcery.com>
1363
1364         * Makeconfig (test-wrapper): New variable,
1365         (test-wrapper-env): Likewise.
1366         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1367         (run-built-tests): Define to yes.
1368         (run-program-prefix): Use $(test-wrapper).
1369         (built-program-cmd): Likewise.
1370         * Rules (make-test-out): Use $(test-wrapper-env) and
1371         $(host-built-program-cmd).
1372         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1373         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1374         tst-pathopt.sh.
1375         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1376         $(test-wrapper-env) to tst-rtld-load-self.sh.
1377         ($(objpfx)order2.out): Use $(test-wrapper).
1378         ($(objpfx)tst-initorder.out): Likewise.
1379         ($(objpfx)tst-initorder2.out): Likewise.
1380         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1381         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1382         (test_wrapper_env): New variable.  Use it to run ld.so.
1383         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1384         Use it to run ld.so.
1385         (test_wrapper_env): Likewise.
1386         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1387         $(test-wrapper) to run-iconv-test.sh.
1388         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1389         (ICONV): Use $test_wrapper.
1390         * posix/Makefile ($(objpfx)globtest.out): Pass
1391         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1392         globtest.sh, not $(run-program-prefix).
1393         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1394         (test_wrapper): Likewise.
1395         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1396         set together with run_via_rtld_prefix.
1397         (run_program_prefix): Define in terms of test_wrapper and
1398         run_via_rtld_prefix.
1399
1400 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1401
1402         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1403         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1404         Targets removed.
1405
1406         [BZ #14743]
1407         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1408         Declare __clock_getres, __clock_gettime, __clock_settime,
1409         __clock_nanosleep, and __clock_getcpuclockid.
1410         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1411         Remove librt_hidden_def (clock_gettime).
1412         * sysdeps/unix/clock_gettime.c: Likewise.
1413         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1414         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1415         * rt/clock_getres.c: Define __clock_getres as an alias.
1416         * sysdeps/posix/clock_getres.c: Likewise.
1417         * rt/clock_settime.c: Define __clock_settime as an alias.
1418         * sysdeps/unix/clock_settime.c: Likewise.
1419         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1420         * sysdeps/unix/clock_nanosleep.c: Likewise.
1421         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1422         * rt/clock-compat.c: New file.
1423         * rt/Makefile (librt-routines): Add clock-compat and move
1424         $(clock-routines) to ...
1425         (routines): ... here, new variable.
1426         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1427         Don't add get_clockfreq here.
1428         * rt/Versions (libc: GLIBC_2.17): New version set.
1429         Add clock_* symbols here.
1430         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1431         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1432         (GLIBC_2.17): Add clock_* symbols.
1433         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1434         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1435         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1437         Likewise.
1438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1439         Likewise.
1440         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1441         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1442         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1443         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1444         * NEWS: Mention the move.
1445
1446         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1447         Use __open, __read, __close rather than their public counterparts.
1448         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1449         (__get_clockfreq_via_cpuinfo): Likewise.
1450         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1451         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1452
1453         * config.h.in (HAVE_IFUNC): New #undef.
1454         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1455         was successful.
1456         * configure: Regenerated.
1457
1458 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1459
1460         * configure.in: Move READELF check to start of file.
1461         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1462         libc_cv_asm_gnu_indirect_function in the process.
1463         * configure: Regenerated.
1464
1465 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1466
1467         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1468         send the output to /dev/null.
1469         (libc_cv_cc_with_libunwind): Likewise.
1470         (libc_cv_as_noexecstack): Likewise.
1471         * configure: Regenerate.
1472
1473 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1474
1475         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1476
1477         * posix/globtest.sh (TMPDIR): Do not set.
1478         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1479         (testout): Likewise.
1480
1481 2012-10-24  Andreas Jaeger  <aj@suse.de>
1482
1483         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1484         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1485         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1486         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1487         posix_fadvise64, posix_fallocate64.
1488
1489         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1490         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1491         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1492         Likewise.
1493         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1494         Likewise.
1495         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1496
1497         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1498         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1499         <bits/fcntl-linux.h>.
1500         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1501
1502         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1503         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1504         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1505         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1506         [__WORDSIZE != 64]: Likewise.
1507
1508 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1509
1510         * Makeconfig (run-built-tests): New variable.
1511         * Rules [$(cross-compiling) = yes]: Change condition to
1512         [$(run-built-tests) = no].
1513         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1514         to [$(run-built-tests) = yes].
1515         * elf/Makefile [$(cross-compiling) = no]: Likewise
1516         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1517         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1518         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1519         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1520         * io/Makefile [$(cross-compiling) = no]: Likewise.
1521         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1522         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1523         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1524         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1525         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1526         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1527         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1528         * string/Makefile [$(cross-compiling) = no]: Likewise.
1529
1530         * posix/Makefile ($(objpfx)globtest.out): Pass
1531         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1532         $(rtld-installed-name).
1533         * posix/globtest.sh (elf_objpfx): Remove variable.
1534         (rtld_installed_name): Likewise.
1535         (library_path): Likewise.
1536         (run_program_prefix): New variable.  Use for running globtest
1537         binary.
1538
1539 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1540             Joseph Myers  <joseph@codesourcery.com>
1541
1542         * Makeconfig (host-built-program-cmd): New variable.
1543         * elf/Makefile (tst-stackguard1-ARGS): Use
1544         $(host-built-program-cmd).
1545         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1546         (tst-spawn-ARGS): Likewise.
1547         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1548
1549 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1550             Jim Blandy  <jimb@codesourcery.com>
1551
1552         * Makeconfig (run-via-rtld-prefix): New variable.
1553         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1554         (built-program-cmd): Likewise.
1555
1556 2012-10-22  Andreas Jaeger  <aj@suse.de>
1557
1558         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1559         __O_RSYNC if it exists, otherwise to O_SYNC.
1560
1561 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1562             Joseph Myers  <joseph@codesourcery.com>
1563
1564         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1565         /dev/null.
1566         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1567         from /dev/null
1568         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1569         /dev/null.
1570
1571 2012-10-22  Andreas Jaeger  <aj@suse.de>
1572
1573         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1574         Define always.
1575         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1576
1577         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1578         bits/fcntl-linux.h.
1579
1580         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1581         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1582
1583         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1584         to __O_LARGEFILE.
1585         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1586         to __O_LARGEFILE.
1587
1588 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1589             Joseph Myers  <joseph@codesourcery.com>
1590
1591         * config.make.in (NM): New variable.
1592
1593 2012-10-21  Andreas Jaeger  <aj@suse.de>
1594
1595         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1596         definitions and declarations that are provided by
1597         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1598
1599 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1600
1601         [BZ #14683]
1602         * elf/Makefile (tests-static): Add tst-leaks1-static.
1603         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1604         ($(objpfx)tst-leaks1-static): New rule.
1605         ($(objpfx)tst-leaks1-static-mem): Likewise.
1606         (tst-leaks1-static-ENV): New macro.
1607         * elf/dl-open.c (dl_open_worker): Check the main application
1608         only if SHARED is defined.
1609         * elf/tst-leaks1-static.c: New file.
1610
1611 2012-10-20  Andreas Jaeger  <aj@suse.de>
1612
1613         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1614         generic values for Linux.
1615         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1616         and declarations that are provided by <bits/fcntl-linux.h> and
1617         include <bits/fcntl-linux.h>.
1618         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1619         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1620
1621 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1622
1623         * io/fcntl.h: Move include of <bits/types.h> to the top and
1624         include it unconditionally.
1625
1626 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1627
1628         * wcsmbs/Makefile (tests-ifunc): New variable.
1629         (tests): Add $(tests-ifunc).
1630         * wcsmbs/test-wcschr-ifunc.c: New file.
1631         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1632         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1633         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1634         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1635         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1636
1637         * string/Makefile (tests-ifunc): New variable.
1638         (tests): Add $(tests-ifunc).
1639         * string/test-memccpy.c (TEST_NAME): New macro.
1640         * string/test-memchr.c (TEST_NAME): Likewise.
1641         * string/test-memcmp.c (TEST_NAME): Likewise.
1642         * string/test-memcpy.c (TEST_NAME): Likewise.
1643         * string/test-memmem.c (TEST_NAME): Likewise.
1644         * string/test-memmove.c (TEST_NAME): Likewise.
1645         * string/test-memset.c (TEST_NAME): Likewise.
1646         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1647         * string/test-stpcpy.c (TEST_NAME): Likewise.
1648         * string/test-stpncpy.c (TEST_NAME): Likewise.
1649         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1650         * string/test-strcasestr.c (TEST_NAME): Likewise.
1651         * string/test-strcat.c (TEST_NAME): Likewise.
1652         * string/test-strchr.c (TEST_NAME): Likewise.
1653         * string/test-strcmp.c(TEST_NAME): Likewise.
1654         * string/test-strcpy.c (TEST_NAME): Likewise.
1655         * string/test-strcspn.c (TEST_NAME): Likewise.
1656         * string/test-strlen.c (TEST_NAME): Likewise.
1657         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1658         * string/test-strncmp.c (TEST_NAME): Likewise.
1659         * string/test-strncpy.c (TEST_NAME): Likewise.
1660         * string/test-strnlen.c (TEST_NAME): Likewise.
1661         * string/test-strpbrk.c (TEST_NAME): Likewise.
1662         * string/test-strrchr.c (TEST_NAME): Likewise.
1663         * string/test-strspn.c (TEST_NAME): Likewise.
1664         * string/test-strstr.c (TEST_NAME): Likewise.
1665         * string/test-bcopy-ifunc.c: New file.
1666         * string/test-bzero-ifunc.c: Likewise.
1667         * string/test-memccpy-ifunc.c: Likewise.
1668         * string/test-memchr-ifunc.c: Likewise.
1669         * string/test-memcmp-ifunc.c: Likewise.
1670         * string/test-memcpy-ifunc.c: Likewise.
1671         * string/test-memmem-ifunc.c: Likewise.
1672         * string/test-memmove-ifunc.c: Likewise.
1673         * string/test-mempcpy-ifunc.c: Likewise.
1674         * string/test-memset-ifunc.c: Likewise.
1675         * string/test-rawmemchr-ifunc.c: Likewise.
1676         * string/test-stpcpy-ifunc.c: Likewise.
1677         * string/test-stpncpy-ifunc.c: Likewise.
1678         * string/test-strcasecmp-ifunc.c: Likewise.
1679         * string/test-strcasestr-ifunc.c: Likewise.
1680         * string/test-strcat-ifunc.c: Likewise.
1681         * string/test-strchr-ifunc.c: Likewise.
1682         * string/test-strchrnul-ifunc.c: Likewise.
1683         * string/test-strcmp-ifunc.c: Likewise.
1684         * string/test-strcpy-ifunc.c: Likewise.
1685         * string/test-strcspn-ifunc.c: Likewise.
1686         * string/test-strlen-ifunc.c: Likewise.
1687         * string/test-strncasecmp-ifunc.c: Likewise.
1688         * string/test-strncat-ifunc.c: Likewise.
1689         * string/test-strncmp-ifunc.c: Likewise.
1690         * string/test-strncpy-ifunc.c: Likewise.
1691         * string/test-strnlen-ifunc.c: Likewise.
1692         * string/test-strpbrk-ifunc.c: Likewise.
1693         * string/test-strrchr-ifunc.c: Likewise.
1694         * string/test-strspn-ifunc.c: Likewise.
1695         * string/test-strstr-ifunc.c: Likewise.
1696
1697         * debug/Makefile (tests-ifunc): New variable.
1698         (tests): Add $(tests-ifunc).
1699         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1700         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1701         * debug/test-stpcpy_chk-ifunc.c: New file.
1702         * debug/test-strcpy_chk-ifunc.c: Likewise.
1703
1704 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1705
1706         [BZ #13601]
1707         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1708         header is not read in.
1709
1710 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1711
1712         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1713         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1714         directly.  Pass built executable to script as
1715         $(built-program-cmd).
1716         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1717         $testprogram without using LD_LIBRARY_PATH and $ldso.
1718
1719         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1720         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1721         $(rtld-installed-name).
1722         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1723         (rtld_installed_name): Likewise.
1724         (library_path): Likewise.
1725         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1726         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1727         $(run-program-prefix) to tst-tables.sh.
1728         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1729         it to run tst-table-from and tst-table-to.
1730         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1731         Pass it to tst-table.sh.
1732         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1733         $(run-program-prefix) to tst-gettext.sh.
1734         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1735         tst-translit.sh.
1736         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1737         tst-gettext2.sh.
1738         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1739         to run tst-gettext.
1740         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1741         to run tst-gettext2.
1742         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1743         to run tst-translit.
1744         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1745         $(run-program-prefix) to tst-mtrace.sh.
1746         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1747         to run tst-mtrace.
1748         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1749         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1750         $(rtld-installed-name).
1751         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1752         (rtld_installed_name): Likewise.
1753         (run_program_prefix): New variable.  Use it to run wordexp-test.
1754
1755         * Makeconfig (ARCH): Remove all definitions.
1756         (machine): Likewise.
1757         [ARCH]: Remove conditional code.
1758         [!objdir]: Give error.
1759         [!objdir] (objpfx): Remove.
1760         [!objdir] (common-objpfx): Likewise.
1761         [!objdir] (common-objdir): Likewise.
1762         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1763         AC_CONFIG_FILES call.
1764         * configure: Regenerated.
1765
1766         [BZ #13888]
1767         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1768         or TMPDIR.
1769         (testout): Likewise.
1770
1771         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1772         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1773         $(rtld-installed-name).
1774         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1775         (rtld_installed_name): Likwise.
1776         (runit): Remove function.
1777         (run_getconf): New variable,  Use it for running getconf binary.
1778
1779 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1780
1781         [BZ #14716]
1782         * string/test-memmem.c (check_result): New function.
1783         (do_one_test): Use it.
1784         (check1): New function.
1785         (test_main): Use it.
1786
1787 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1788
1789         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1790
1791 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1792
1793         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1794         (_G_LSEEK64): Likewise.
1795         (_G_MMAP64): Likewise.
1796         (_G_FSTAT64): Likewise.
1797         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1798         (_G_LSEEK64): Likewise.
1799         (_G_MMAP64): Likewise.
1800         (_G_FSTAT64): Likewise.
1801         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1802         unconditional.  Call __mmap64 directly.
1803         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1804         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1805         __lseek64 directly.
1806         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1807         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1808         __mmap64 directly.
1809         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1810         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1811         __lseek64 directly.
1812         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1813         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1814         __lseek64 directly.
1815         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1816         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1817         __lseek64 directly.
1818         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1819         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1820         __fxstat64 directly.
1821         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1822         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1823         unconditional.
1824         (freopen64) [!_G_OPEN64]: Remove conditional code.
1825         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1826         unconditional.
1827         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1828         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1829         unconditional.
1830         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1831         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1832         unconditional.
1833         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1834         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1835         unconditional.
1836         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1837         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1838         unconditional.
1839         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1840         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1841         unconditional.
1842         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1843         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1844         unconditional.
1845         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1846
1847 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1848
1849         [BZ #12140]
1850         * manual/memory.texi (Malloc Tunable Parameters): Add note
1851         about free list pointers overwriting some perturb bytes.
1852         Wording suggested by Roland McGrath.
1853
1854 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1855
1856         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1857         (lgamma_test): Likewise.
1858         (tgamma_test): Likewise.
1859
1860 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1861
1862         [BZ #14700]
1863         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1864         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1865
1866 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1867
1868         * NEWS: Mention BZ #14716.
1869         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1870         when removing AVAILABLE1_USES_J macro.
1871
1872 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1873
1874         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1875         (__bswap_64): __uint64_t for unsigned 64-bit int.
1876
1877 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1878
1879         * include/string.h (memmem): Declare libc hidden alias.
1880         * string/memmem.c (memmem): Define libc hidden alias.
1881         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1882         __read, __close instead of open, read, close.
1883
1884 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1885
1886         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1887         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1888         global and hidden.
1889         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1890         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1891         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1892         Likewise.
1893         (__rawmemchr_sse2): Likewise.
1894         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1895         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1896         (__strchr_sse2): Likewise.
1897         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1898         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1899         (__strcasecmp_sse2): Likewise.
1900         (__strncasecmp_sse2): Likewise.
1901         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1902         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1903         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1904         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1905         (__strrchr_sse2): Likewise.
1906         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1907         ifunc-impl-list.c.
1908         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1909         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1910         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1911         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1912         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1913         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1914         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1915         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1916         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1917         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1918         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1919         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1920         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1921         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1922         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1923         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1924         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1925         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1926         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1927         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1928         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1929         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1930         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1931         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1932         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1933         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1934         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1935         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1936         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1937         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1938
1939         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1940         global and hidden.
1941         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1942         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1943         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1944         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1945         Likewise.
1946         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1947         Likewise.
1948         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1949         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1950         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1951         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1952         ifunc-impl-list.c.
1953         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1954         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1955         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1956         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1957         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1958         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1959         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1960         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1961         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1962         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1963         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1964         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1965         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1966         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1967         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1968         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1969         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1970         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1971         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1972         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1973         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1974         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1975         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1976         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1977         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1978         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1979         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1980         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1981         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1982         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1983         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1984         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1985         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1986         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1987         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1988         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1989         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1990         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1991         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1992         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1993         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1994
1995         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1996         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1997         * include/ifunc-impl-list.h: New file.
1998         * misc/ifunc-impl-list.c: Likewise.
1999         * misc/Makefile (routines): Add ifunc-impl-list.
2000         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2001         * string/test-string.h: Include <ifunc-impl-list.h>.
2002         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2003         impl_array): New variables.
2004         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2005         are defined.
2006         (test_init): Call __libc_ifunc_impl_list to initialize
2007         func_list if TEST_IFUNC and TEST_NAME are defined.
2008
2009         * string/Makefile (strop-tests): Add bcopy and bzero.
2010         * string/test-bcopy.c: New file.
2011         * string/test-bzero.c: Likewise.
2012         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2013         defined.
2014         * string/test-memset.c: Support bzero test if TEST_BZERO is
2015         defined.
2016         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2017         __libc_memmove.
2018         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2019         __libc_memset.
2020         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2021         of memset.
2022
2023 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2024
2025         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2026         * configure: Regenerated.
2027
2028         * Makeconfig (+link-static-before-libc): Don't include
2029         $(link-static-libc).
2030
2031         * libio/libio.h (_IO_pos_t): Remove.
2032
2033 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2034
2035         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2036         McGrath.
2037
2038 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2039
2040         * crypt/crypt-entry.c: Include fips-private.h.
2041         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2042         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2043         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2044         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2045
2046 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2047
2048         * crypt/crypt-private.h: Include stdbool.h.
2049         (_ufc_setup_salt_r): Return bool.
2050         * crypt/crypt-entry.c: Include errno.h.
2051         (__crypt_r): Return NULL with EINVAL for bad salt.
2052         * crypt/crypt_util.c (bad_for_salt): New.
2053         (_ufc_setup_salt_r): Check that salt is long enough and within
2054         the specified alphabet.
2055         * crypt/badsalttest.c: New file.
2056         * crypt/Makefile (tests): Add it.
2057         ($(objpfx)badsalttest): New.
2058
2059 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2060
2061         * NEWS: Add entry for BZ #14602.
2062
2063 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2064
2065         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2066         type-generic.
2067         * math/libm-test.inc: Update comment listing what functions and
2068         macros are tested.
2069         (isgreater_test): New function.
2070         (isgreaterequal_test): Likewise.
2071         (isless_test): Likewise.
2072         (islessequal_test): Likewise.
2073         (islessgreater_test): Likewise.
2074         (isunordered_test): Likewise.
2075         (main): Call the new functions.
2076
2077 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2078
2079         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2080         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2081         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2082         * sysdeps/i386/configure: Regenerated.
2083         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2084         * sysdeps/mach/configure: Regenerated.
2085         * sysdeps/mach/hurd/configure: Regenerated.
2086         * sysdeps/powerpc/configure: Regenerated.
2087         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2088         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2089         * sysdeps/s390/s390-32/configure: Regenerated.
2090         * sysdeps/s390/s390-64/configure: Regenerated.
2091         * sysdeps/sh/configure: Regenerated.
2092         * sysdeps/sparc/configure: Regenerated.
2093         * sysdeps/unix/sysv/linux/configure: Regenerated.
2094         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2095         * sysdeps/x86_64/configure: Regenerated.
2096
2097         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2098         defined.  Don't check if MAP is NULL.
2099
2100 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2101
2102         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2103         (_G_stat64): Likewise.
2104         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2105         (_G_stat64): Likewise.
2106         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2107         instead of struct _G_stat64.
2108         * libio/fileops.c (mmap_remap_check): Likewise.
2109         (decide_maybe_mmap): Likewise.
2110         (_IO_new_file_seekoff): Likewise.
2111         (_IO_file_stat): Likewise.
2112         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2113         _G_off64_t.
2114         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2115         instead of struct _G_stat64.
2116         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2117
2118 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2119
2120         [BZ #14602]
2121         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2122         Replace with ...
2123         (CHECK_EOL): New macro.
2124         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2125         CHECK_EOL.
2126         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2127         Replace with CHECK_EOL.
2128         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2129         Replace with CHECK_EOL.
2130
2131 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2132
2133         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2134         type-generic.
2135         * math/libm-test.inc: Update comment listing what functions and
2136         macros are tested.
2137         (finite_test): New function.
2138         (isinf_test): Likewise.
2139         (isnan_test): Likewise.
2140         (fpclassify_test): Test subnormal input.
2141         (isfinite_test): Likewise.
2142         (isnormal_test): Likewise.
2143         (main): Call the new functions.
2144
2145 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2146
2147         [BZ #14660]
2148         * Makerules (%.dynsym): Force C locale when running
2149         $(OBJDUMP) --dynamic-syms.
2150
2151 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2152
2153         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2154         <stdint.h>.
2155
2156 2012-10-06  David S. Miller  <davem@davemloft.net>
2157
2158         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2159         upper 32-bits of the length value in %o2 since we use branch-on-register
2160         tests which consider the entire 64-bit register.
2161
2162 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2163
2164         * string/test-strstr.c (check2): Add a test for page boundary.
2165
2166 2012-10-05  David S. Miller  <davem@davemloft.net>
2167
2168         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2169         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2170         file.
2171         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2172         sysdep_routines.
2173         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2174         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2175         and bzero when HWCAP_SPARC_CRYPTO is present.
2176
2177 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2178
2179         [BZ #14602]
2180         * string/test-strstr.c (check2): New function.
2181         (test_main): Call check2.
2182
2183         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2184         and bug-strchr1.
2185         * string/bug-strcasestr1.c (do_test): Moved to ...
2186         * string/test-strcasestr.c (check1): Here.  New function.
2187         (do_one_test): Break out result checking code into ...
2188         (check_result): This.  New function.
2189         (do_one_test): Call check_result.
2190         (test_main): Call check1.
2191         * string/bug-strchr1.c (do_test): Moved to ...
2192         * string/test-strchr.c (check1): Here.  New function.
2193         (do_one_test): Break out result checking code into ...
2194         (check_result): This.  New function.
2195         (do_one_test): Call check_result.
2196         (test_main): Call check1.
2197         * string/bug-strstr1.c (main): Moved to ...
2198         * string/test-strchr.c (check1): Here.  New function.
2199         (do_one_test): Break out result checking code into ...
2200         (check_result): This.  New function.
2201         (do_one_test): Call check_result.
2202         (test_main): Call check1.
2203         * string/bug-strcasestr1.c: Removed.
2204         * string/bug-strchr1.c: Likewise.
2205         * string/bug-strstr1.c: Likewise.
2206
2207         * elf/Makefile (dl-routines): Add hwcaps.
2208         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2209         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2210         (_dl_important_hwcaps): Moved to ...
2211         * elf/dl-hwcaps.c: Here.  New file.
2212         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2213
2214         [BZ #14557]
2215         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2216         if IS_IN_rtld isn't defined.
2217
2218         * elf/dl-support.c (_dl_sysinfo_map): New.
2219         Include "get-dynamic-info.h" and "setup-vdso.h".
2220         (_dl_non_dynamic_init): Call setup_vdso.
2221         * elf/dynamic-link.h: Don't include <assert.h>.
2222         (elf_get_dynamic_info): Moved to ...
2223         * elf/get-dynamic-info.h: Here.  New file.
2224         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2225         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2226         * elf/setup-vdso.h: Here.  New file.
2227         * elf/rtld.c: Include "setup-vdso.h".
2228         (dl_main): Call setup_vdso.
2229
2230 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2231
2232         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2233         creal in comment listing functions tested.  List finite, isinf,
2234         isnan, isless, islessequal, isgreater, isgreaterequal,
2235         islessgreater, isunordered, lgamma_r and pow10 as functions and
2236         macros not tested.  Mention which functions not tested are aliases
2237         for other functions.  Fix typo.  Note that signs of NaNs are not
2238         tested.
2239
2240         * scripts/config.guess: Update from config.git.
2241         * scripts/config.sub: Likewise.
2242
2243 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2244
2245         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2246         * misc/madvise.c (madvise): Renamed to __madvise.
2247         Make madvise a weak alias.
2248         * include/sys/mman.h: Declare __madvise.
2249         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2250         * sysdeps/unix/syscalls.list
2251         (madvise): Make __madvise the strong name, and madvise a weak alias.
2252         * sysdeps/unix/sysv/linux/syscalls.list
2253         (madvise, mmap): Remove redundant entries.
2254         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2255         * malloc/malloc.c (mtrim): Likewise.
2256         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2257
2258 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2259
2260         * sysdeps/mach/hurd/dl-cache.c: File removed.
2261         * config.h.in (USE_LDCONFIG): New #undef.
2262         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2263         * configure: Regenerated.
2264         * elf/Makefile (dl-routines): Add dl-cache only under
2265         [$(use-ldconfig) = yes].
2266         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2267         cache on [USE_LDCONFIG].
2268         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2269         [USE_LDCONFIG].
2270         * elf/rtld.c (dl_main): Likewise.
2271
2272 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2273
2274         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2275         _SC_LEVEL4_CACHE_LINESIZE.
2276
2277 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2278
2279         * sysdeps/unix/bsd/confstr.h: File removed.
2280
2281 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2282
2283         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2284         sys/sdt-config.h.
2285
2286 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2287
2288         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2289         Make 'mapoff' field ElfW(Off) rather than off_t.
2290
2291 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2292
2293         * nscd/Makefile: Remove nscd-cflags and all its users.
2294         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2295         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2296
2297         [BZ #10631]
2298         * malloc.c (malloc_printerr): Clarify error message.
2299
2300 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2301
2302         [BZ #14648]
2303         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2304         Set bit_FMA_Usable if FMA is supported.
2305         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2306         macro.
2307         (bit_FMA4_Usable): Updated.
2308         (index_FMA_Usable): New macro.
2309         (CPUID_FMA): Likewise
2310         (HAS_FMA): Defined with bit_FMA_Usable.
2311
2312 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2313
2314         * bits/types.h (__swblk_t): Type removed.
2315         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2316         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2317         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2318         (__SWBLK_T_TYPE): Likewise.
2319         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2320         (__SWBLK_T_TYPE): Likewise.
2321         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2322         (__SWBLK_T_TYPE): Likewise.
2323         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2324         (__SWBLK_T_TYPE): Likewise.
2325
2326 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2327             Honza Horak <hhorak@redhat.com>
2328
2329         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2330         (xdr_mapname): Use YPMAXMAP as maxsize.
2331         (xdr_peername): Use YPMAXPEER as maxsize.
2332         (xdr_keydat): Use YPAXRECORD as maxsize.
2333         (xdr_valdat): Use YPMAXRECORD as maxsize.
2334
2335 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2336
2337         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2338
2339         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2340         * csu/init-first.c: ... here.
2341         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2342         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2343         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2344         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2345         * sysdeps/i386/init-first.c: File removed.
2346         * sysdeps/sh/init-first.c: File removed.
2347
2348 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2349
2350         [BZ #14645]
2351         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2352         if x * y might underflow to zero and z is zero.
2353         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2354         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2355         * math/libm-test.inc (min_subnorm_value): New variable.
2356         (fma_test): Add more tests.
2357         (fma_test_towardzero): Likewise.
2358         (fma_test_downward): Likewise
2359         (fma_test_upward): Likewise.
2360         (initialize): Set min_subnorm_value.
2361
2362 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2363
2364         [BZ #14638]
2365         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2366         0 + 0.
2367         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2368         mode for addition resulting in exact zero.
2369         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2370         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2371         exact 0 + 0.
2372         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2373         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2374         * math/libm-test.inc (fma_test): Add more tests.
2375         (fma_test_towardzero): New function.
2376         (fma_test_downward): Likewise.
2377         (fma_test_upward): Likewise.
2378         (main): Call the new functions.
2379
2380 2012-09-28  David S. Miller  <davem@davemloft.net>
2381
2382         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2383
2384 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2385
2386         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2387         instead of SIGALRM.
2388
2389         * sysdeps/gnu/_G_config.h: Moved to ...
2390         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2391         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2392         * sysdeps/generic/_G_config.h: ... here.
2393
2394         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2395
2396         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2397
2398         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2399         Conditionalize target on [libnss_test1.so-version].
2400
2401         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2402
2403         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2404         (elfobjdir): Move out of conditionals.
2405
2406         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2407         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2408         (__nss_lookup_function): Conditionalize label remove_from_tree on
2409         [!DO_STATIC_NSS || SHARED], matching its only use.
2410
2411 2012-09-28  David S. Miller  <davem@davemloft.net>
2412
2413         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2414         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2415         file.
2416         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2417         sysdep_routines.
2418         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2419         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2420         when HWCAP_SPARC_CRYPTO is present.
2421
2422 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2423
2424         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2425
2426 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2427
2428         [BZ #6530]
2429         * stdio-common/vfprintf.c (process_string_arg): Revert
2430         2000-07-22 change.
2431
2432 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2433
2434         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2435         for testcase.
2436         * stdio-common/tst-sprintf.c: Include <locale.h>
2437         (main): Test sprintf's handling of incomplete multibyte
2438         characters.
2439
2440 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2441
2442         * elf/dl-runtime.c (VERSYMIDX): Removed.
2443         * elf/dl-version.c (VERSYMIDX): Likewise.
2444         * elf/do-rel.h (VERSYMIDX): Likewise.
2445         (VALIDX): Likewise.
2446         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2447         * elf/rtld.c (VALIDX): Likewise.
2448         (ADDRIDX): Likewise.
2449         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2450         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2451         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2452         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2453         (VALIDX): Likewise.
2454         (ADDRIDX): Likewise.
2455
2456 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2457
2458         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2459
2460 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2461
2462         [BZ #11438]
2463         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2464         to global scope.
2465         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2466         addresses are in the same scope as 192.0.2/24.
2467         * posix/gai.conf: Document new scope table defaults.
2468
2469 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2470
2471         [BZ #5298]
2472         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2473         for ftell.  Compute offsets from write pointers instead.
2474         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2475
2476 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2477
2478         [BZ #14543]
2479         * libio/Makefile (tests): New test case tst-fseek.
2480         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2481         combination works in wide mode.
2482         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2483         state when the external buffer state changes.
2484
2485 2012-09-27  David S. Miller  <davem@davemloft.net>
2486
2487         [BZ #14376]
2488         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2489         pass reloc->r_addend in as the 'high' argument to
2490         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2491
2492         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2493
2494 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2495
2496         * rt/tst-aio2.c: Include <pthread.h>.
2497         * rt/tst-aio3.c: Likewise.
2498
2499 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2500
2501         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2502
2503 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2504
2505         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2506         contents on [SHARED].
2507
2508 2012-09-26  Marek Polacek  <polacek@redhat.com>
2509
2510         [BZ #14530]
2511         [BZ #13741]
2512         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2513         for C++ and GCC <4.3 as well as for non GCC compilers.
2514
2515 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2516
2517         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2518
2519 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2520
2521         * Makefile.in (all, install): Declare with .PHONY.
2522         Reported by Michael Hope <michael.hope@linaro.org>.
2523
2524 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2525
2526         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2527         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2528         system header.
2529         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2530         Likewise.
2531         (sydep_routines): Add the new and the internal functions.
2532         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2533         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2535         (GLIBC_2.17): Add the new function.
2536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2537         (GLIBC_2.17): Likewise.
2538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2539         (GLIBC_2.17): Likewise.
2540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2541         (GLIBC_2.17): Likewise.
2542         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2543
2544 2012-09-25  Alan Modra  <amodra@gmail.com>
2545
2546         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2547         Add release barrier before setting once_control to say
2548         initialisation is done.  Add hints on lwarx.  Use macro in
2549         place of isync.
2550         (clear_once_control): Add release barrier.
2551
2552 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2553
2554         [BZ #13629]
2555         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2556         specially.
2557         * math/s_clog10.c (__clog10): Likewise.
2558         * math/s_clog10f.c (__clog10f): Likewise.
2559         * math/s_clog10l.c (__clog10l): Likewise.
2560         * math/s_clogf.c (__clogf): Likewise.
2561         * math/s_clogl.c (__clogl): Likewise.
2562         * math/Makefile (libm-calls): Add x2y2m1.
2563         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2564         (__x2y2m1): Likewise.
2565         (__x2y2m1l): Likewise.
2566         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2567         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2568         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2569         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2570         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2571         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2572         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2573         * sysdeps/i386/fpu/libm-test-ulps: Update.
2574         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2575
2576         [BZ #14621]
2577         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2578         int as type of variable DEPTH.
2579         (glob): Use size_t instead of int as type of variables NEWCOUNT
2580         and OLD_PATHC.
2581
2582 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2583
2584         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2585         Add s_sincosf-sse2.
2586         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2587         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2588         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2589         macros for using routine as __sincosf_ia32.
2590         Use macro for function declaration and weak_alias.
2591         * sysdeps/i386/fpu/libm-test-ulps: Update.
2592
2593         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2594         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2595
2596         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2597         subnormal argument.
2598         * math/s_cexpf.c (__cexpf): Likewise.
2599         * math/s_csinf.c (__csinf): Likewise.
2600         * math/s_csinhf.c (__csinhf): Likewise.
2601         * math/s_ctanf.c (__ctanf): Likewise.
2602         * math/s_ctanhf.c (__ctanhf): Likewise.
2603         * math/s_ccosh.c (__ccoshf): Likewise.
2604         * math/s_cexp.c (__cexpl): Likewise.
2605         * math/s_csin.c (__csin): Likewise.
2606         * math/s_csinh.c (__csinh): Likewise.
2607         * math/s_ctan.c (__ctan): Likewise.
2608         * math/s_ctanh.c (ctanh): Likewise.
2609         * math/s_ccoshl.c (__ccoshl): Likewise.
2610         * math/s_cexpl.c (__cexpl): Likewise.
2611         * math/s_csinl.c (__csinl): Likewise.
2612         * math/s_csinhl.c (__csinhl): Likewise.
2613         * math/s_ctanl.c (__ctanl): Likewise.
2614         * math/s_ctanhl.c (__ctanhl): Likewise.
2615
2616 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2617
2618         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2619         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2620         (_IO_off_t): Define to __off_t, not _G_off_t.
2621         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2622         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2623         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2624         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2625         type of __dummy and __dummy2 fields.
2626         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2627         (_G_ssize_t): Likewise.
2628         (_G_off_t): Likewise.
2629         (_G_pid_t): Likewise.
2630         (_G_uid_t): Likewise.
2631         (_G_wchar_t): Likewise.
2632         (_G_wint_t): Likewise.
2633         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2634         (_G_ssize_t): Likewise.
2635         (_G_off_t): Likewise.
2636         (_G_pid_t): Likewise.
2637         (_G_uid_t): Likewise.
2638         (_G_wchar_t): Likewise.
2639         (_G_wint_t): Likewise.
2640         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2641         (_G_ssize_t): Likewise.
2642         (_G_off_t): Likewise.
2643         (_G_pid_t): Likewise.
2644         (_G_uid_t): Likewise.
2645         (_G_wchar_t): Likewise.
2646         (_G_wint_t): Likewise.
2647
2648 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2649
2650         * malloc/arena.c: Include malloc-sysdep.h.
2651         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2652         is sufficient to shrink the heap or an unmap is needed.
2653         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2654         new function check_may_shrink_heap.
2655         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2656         new function check_may_shrink_heap.
2657
2658 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2659
2660         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2661         comments.
2662
2663 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2664
2665         * catgets/test-gencat.sh: Add "set -e".
2666         * elf/tst-pathopt.sh: Likewise.
2667         * grp/tst_fgetgrent.sh: Likewise.
2668         * iconvdata/run-iconv-test.sh: Likewise.
2669         * intl/tst-gettext.sh: Likewise.
2670         * intl/tst-gettext2.sh: Likewise.
2671         * intl/tst-gettext4.sh: Likewise.
2672         * intl/tst-gettext6.sh: Likewise.
2673         * intl/tst-translit.sh: Likewise.
2674         * io/ftwtest-sh: Likewise.
2675         * libio/test-freopen.sh: Likewise.
2676         * malloc/tst-mtrace.sh: Likewise.
2677         * posix/globtest.sh: Likewise.
2678         * posix/tst-getconf.sh: Likewise.
2679         * posix/wordexp-tst.sh: Likewise.
2680         * stdio-common/tst-printf.sh: Likewise.
2681         * stdio-common/tst-unbputc.sh: Likewise.
2682         * stdlib/tst-fmtmsg.sh: Likewise.
2683         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2684         * catgets/Makefile: Do not specify -e option when running
2685         testsuite shell scripts.
2686         * elf/Makefile: Likewise.
2687         * grp/Makefile: Likewise.
2688         * iconvdata/Makefile: Likewise.
2689         * intl/Makefile: Likewise.
2690         * io/Makefile: Likewise.
2691         * libio/Makefile: Likewise.
2692         * malloc/Makefile: Likewise.
2693         * posix/Makefile: Likewise.
2694         * stdio-common/Makefile: Likewise.
2695         * stdlib/Makefile: Likewise.
2696         * sysdeps/x86_64/Makefile: Likewise.
2697
2698         * io/ftwtest-sh: Add copyright header.
2699         * posix/globtest.sh: Likewise.
2700         * posix/tst-getconf.sh: Likewise.
2701         * posix/wordexp-tst.sh: Likewise.
2702         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2703
2704 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2705
2706         [BZ #13679]
2707         * Makeconfig (+link): Defined as $(+link-static) if
2708         $(build-shared) isn't yes.
2709         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2710         isn't yes.
2711         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2712
2713         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2714
2715         [BZ #14562]
2716         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2717         new chunk size with MALLOC_ALIGN_MASK.
2718
2719 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2720
2721         [BZ #5044]
2722         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2723         <rounding-mode.h>.
2724         (__printf_fphex): Determine rounding using get_rounding_mode and
2725         round_away.
2726         * stdio-common/tst-printf-round.c (struct hex_test): New
2727         structure.
2728         (hex_tests): New variable.
2729         (test_hex_in_one_mode): New function.
2730         (do_test): Also run tests for hex float output.
2731
2732 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2733
2734         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2735         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2736         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2737         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2738         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2739         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2740         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2741         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2742
2743 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2744
2745         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2746         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2747         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2748         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2749
2750 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2751
2752         [BZ #14579]
2753         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2754         mode only.
2755         * elf/tst-rtld-load-self.sh: New test.
2756         * elf/Makefile: Run it.
2757
2758 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2759
2760         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2761         (tst-writev-ENV): Remove.
2762         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2763
2764 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2765
2766         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2767
2768 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2769
2770         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2771         unconditional.
2772         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2773         Likewise.
2774         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2775         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2776         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2777         Likewise.
2778
2779 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2780
2781         [BZ #14587]
2782         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2783         * config.make.in (have-cpp-asm-debuginfo): Removed.
2784         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2785         * configure: Regenerated.
2786
2787 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2788
2789         [BZ #5044]
2790         * stdio-common/printf_fp.c: Include <stdbool.h> and
2791         <rounding-mode.h>.
2792         (___printf_fp): Determine rounding using get_rounding_mode and
2793         round_away.
2794         * stdio-common/tst-printf-round.c: New file.
2795         * stdio-common/Makefile (tests): Add tst-printf-round.
2796         (link-libm): New variable.
2797         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2798
2799 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2800
2801         [BZ #14576]
2802         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2803         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2804         Likewise.
2805         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2806         Likewise.
2807
2808 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2809
2810         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2811         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2812         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2813         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2814
2815 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2816
2817         [BZ #14518]
2818         * include/rounding-mode.h: New file.
2819         * sysdeps/generic/get-rounding-mode.h: Likewise.
2820         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2821         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2822         (MAX_VALUE): New macro.
2823         (MIN_VALUE): Likewise.
2824         (overflow_value): New function.
2825         (underflow_value): Likewise.
2826         (round_and_return): Use overflow_value and underflow_value to
2827         determine return values in overflow and underflow cases.  Use
2828         round_away to determine rounding depending on rounding mode.
2829         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2830         determine return values in overflow and underflow cases.
2831         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2832         (struct test_results): New structure.
2833         (struct test): Use struct test_results to store expected results
2834         for all rounding modes.
2835         (TEST): Include expected results for all rounding modes.
2836         (test_in_one_mode): New function.
2837         (do_test): Use test_in_one_mode to compute and check results.
2838         Check results for all rounding modes.
2839         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2840         $(link-libm).
2841
2842 2012-12-09  Allan McRae  <allan@archlinux.org>
2843
2844         * sysdeps/i386/fpu/libm-test-ulps: Update
2845
2846 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2847
2848         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2849         (_G_int32_t): Likewise.
2850         (_G_uint16_t): Likewise.
2851         (_G_uint32_t): Likewise.
2852         (_G_HAVE_BOOL): Likewise.
2853         (_G_HAVE_ATEXIT): Likewise.
2854         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2855         (_G_HAVE_IO_FILE_OPEN): Likewise.
2856         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2857         (_G_int32_t): Likewise.
2858         (_G_uint16_t): Likewise.
2859         (_G_uint32_t): Likewise.
2860         (_G_HAVE_BOOL): Likewise.
2861         (_G_HAVE_ATEXIT): Likewise.
2862         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2863         (_G_HAVE_IO_FILE_OPEN): Likewise.
2864         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2865         (_G_int32_t): Likewise.
2866         (_G_uint16_t): Likewise.
2867         (_G_uint32_t): Likewise.
2868         (_G_HAVE_BOOL): Likewise.
2869         (_G_HAVE_ATEXIT): Likewise.
2870         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2871         (_G_HAVE_IO_FILE_OPEN): Likewise.
2872
2873 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2874
2875         * csu/libc-tls.c: Update copyright years.
2876
2877 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2878
2879         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2880         [!_G_USING_THUNKS]: Remove conditional code.
2881         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2882         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2883
2884         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2885         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2886         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2887         (_G_VTABLE_LABEL_PREFIX): Likewise.
2888         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2889         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2890         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2891         (_G_VTABLE_LABEL_PREFIX): Likewise.
2892         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2893         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2894         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2895         (_G_VTABLE_LABEL_PREFIX): Likewise.
2896         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2897
2898 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2899
2900         * libio/Makefile: Include ../Makeconfig before tests.
2901         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2902         only if $(build-shared) is yes.
2903
2904         * iconv/gconv_db.c: Update copyright years.
2905
2906 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2907
2908         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2909         unwind info if defined PIC. Fix special cases description.
2910         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2911
2912         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2913         DP_HI_MASK entry.
2914         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2915
2916 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2917
2918         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2919
2920         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2921         is NULL.
2922
2923         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2924         (LDLIBS-tst-chk4): This.
2925         (LDFLAGS-tst-chk5): Renamed to ...
2926         (LDLIBS-tst-chk5): This.
2927         (LDFLAGS-tst-chk6): Renamed to ...
2928         (LDLIBS-tst-chk6): This.
2929         (LDFLAGS-tst-lfschk4): Renamed to ...
2930         (LDLIBS-tst-lfschk4): This.
2931         (LDFLAGS-tst-lfschk5): Renamed to ...
2932         (LDLIBS-tst-lfschk5): This.
2933         (LDFLAGS-tst-lfschk6): Renamed to ...
2934         (LDLIBS-tst-lfschk6): This.
2935
2936         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2937         on $(common-objpfx)soversions.mk.
2938
2939 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2940
2941         [BZ #10014]
2942         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2943         example host name.
2944
2945 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2946
2947         * malloc/arena.c (arena_get_retry): New function that gets
2948         another arena for the caller to try its request on.
2949         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2950         current arena cannot fulfill the request.
2951         (__libc_memalign): Likewise.
2952         (__libc_memalign): Likewise.
2953         (__libc_pvalloc): Likewise.
2954         (__libc_calloc): Likewise.
2955
2956 2012-09-05  John Tobey  <john.tobey@gmail.com>
2957
2958         [BZ #13542]
2959         * manual/arith.texi (Operations on Complex): Fix description
2960         of carg branch cut.
2961
2962 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2963
2964         [BZ #10014]
2965         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2966         host name.
2967
2968         [BZ #10038]
2969         * manual/memory.texi (Memory): Make order of menu items match
2970         order of sections.
2971
2972 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2973
2974         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2975         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2976         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2977
2978 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2979
2980         * csu/libc-tls.c (static_dtv): Renamed to ...
2981         (_dl_static_dtv): This.  Make it global.
2982         (_dl_initial_dtv): Removed.
2983         (__libc_setup_tls): Updated.
2984         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2985         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2986         DL_INITIAL_DTV.
2987
2988 2012-09-06  Petr Machata  <pmachata@redhat.com>
2989
2990         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2991         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2992         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2993         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2994
2995 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2996
2997         [BZ #14545]
2998         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2999         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3000         freeing dtv[-1].
3001
3002 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3003
3004         [BZ #14544]
3005         * Makeconfig (link-static-before-libc): Replace $(+prector)
3006         with $(+prectorT).
3007         (link-static-after-libc): Replace $(+postctor) with
3008         $(+postctorT).
3009         (link-bounded): Replace $(+prector)/$(+postctor) with
3010         $(+prectorT)/$(+postctorT).
3011         (+prectorT): New macro.
3012         (+postctorT): Likewise.
3013
3014 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3015
3016         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3017         (round_str): Handle values above the maximum for IBM long double
3018         as inexact.
3019         * stdlib/tst-strtod-round.c (tests): Regenerated.
3020
3021 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3022
3023         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3024         assembler flag.
3025         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3026         zarch_nohighgprs around the zarch optimized routines.
3027         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3028         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3029         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3030         for zarch.
3031
3032 2012-09-05  David S. Miller  <davem@davemloft.net>
3033
3034         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3035
3036         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3037         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3038         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3039         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3040         entries.
3041
3042 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3043
3044         * malloc/arena.c: Fold copyright years.
3045         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3046
3047 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3048
3049         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3050
3051 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3052
3053         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3054
3055 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3056
3057         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3058         change internal state upon failure.
3059
3060 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3061
3062         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3063         * malloc/memusage.c (mmap): Likewise.
3064         (mmap64, mremap): Likewise.  Adjust name in comment.
3065
3066 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3067
3068         * libio/fileops.c: Fix typos in comments.
3069         * libio/oldfileops.c: Likewise.
3070         * libio/wfileops.c: Likewise.
3071
3072 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3073
3074         [BZ #1349]
3075         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3076         (tst-malloc-usable-ENV): Set environment for test case.
3077         * malloc/hooks.c (malloc_check_get_size): New function to get
3078         requested size.
3079         * malloc/malloc.c (musable): Use malloc_check_get_size.
3080         * malloc/tst-malloc-usable.c: New test case.
3081
3082 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3083
3084         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3085
3086 2012-09-05  Allan McRae  <allan@archlinux.org>
3087
3088         [BZ #13966]
3089         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3090         determine header location.
3091         * configure: Regenerated.
3092
3093 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3094
3095         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3096         float format.
3097         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3098         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3099         format.
3100         (test): Regenerate.
3101
3102 2012-09-04  David S. Miller  <davem@davemloft.net>
3103
3104         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3105         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3106         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3107
3108 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3109
3110         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3111         failures.
3112
3113         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3114
3115 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3116
3117         [BZ #9914]
3118         * libio/iogetdelim.c: Include <limits.h>.
3119         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3120         + len + 1 would overflow.
3121
3122 2012-09-03  Andreas Jaeger  <aj@suse.de>
3123
3124         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3125         * sysdeps/i386/fpu/libm-test-ulps: Update.
3126
3127 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3128
3129         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3130         Add s_sinf-sse2, s_conf-sse2.
3131
3132         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3133         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3134         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3135         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3136
3137         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3138         for using routine as __sinf_ia32.
3139         Use macro for function declaration and weak_alias.
3140         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3141         for using routine as __cosf_ia32.
3142         Use macro for function declaration and weak_alias.
3143
3144         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3145         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3146
3147         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3148         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3149         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3150
3151         * math/libm-test.inc (cos_test): Add more test cases.
3152         (sin_test): Likewise.
3153         (sincos_test): Likewise.
3154
3155 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3156
3157         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3158         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3159         hidden.
3160         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3161
3162 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3163
3164         [BZ #14538]
3165         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3166         first element of the GOT.
3167         (elf_machine_load_address): Return the difference between
3168         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3169
3170 2012-09-01  Allan McRae  <allan@archlinux.org>
3171
3172         [BZ #13412]
3173         * configure.in (AWK): Require gawk version 3.0 or later.
3174         * configure: Regenerated.
3175
3176 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3177
3178         * sysdeps/unix/sysv/linux/kernel-features.h
3179         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3180         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3181         [__NR_clock_getres]: Make code unconditional.
3182         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3183         (clock_getcpuclockid): Remove code left unreachable by removal of
3184         conditionals.
3185         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3186         code unconditional.
3187         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3188         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3189         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3190         Make code unconditional.
3191         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3192         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3193         * sysdeps/unix/sysv/linux/clock_settime.c
3194         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3195         conditional code.
3196         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3197         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3198
3199 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3200
3201         [BZ #14476]
3202         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3203         scripts/test-installation.pl.
3204
3205         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3206         and $ld_so_version if it is set.
3207
3208 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3209
3210         [BZ #14516]
3211         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3212         failure if reading from procfs failed.
3213         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3214
3215 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3216
3217         * sysdeps/unix/sysv/linux/kernel-features.h
3218         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3219         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3220         Remove conditional code.
3221         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3222         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3223         Remove conditional code.
3224         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3225         * sysdeps/unix/sysv/linux/i386/fxstat.c
3226         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3227         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3228         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3229         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3230         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3231         * sysdeps/unix/sysv/linux/i386/lxstat.c
3232         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3233         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3234         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3235         Remove conditional code.
3236         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3237         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3238         Remove conditional code.
3239         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3240         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3241         <kernel-features.h>.
3242         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3243         Remove.
3244         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3245         Remove conditional code.
3246         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3247         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3248         Remove conditional.
3249
3250 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3251
3252         [BZ #5400]
3253         * NEWS: Add fixed bug number.
3254
3255 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3256
3257         [BZ #14519]
3258         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3259         underflowing exponent in case of negative sign.
3260         * stdlib/tst-strtod-round-data: Add more tests.
3261         * stdlib/tst-strtod-round.c (tests): Regenerated.
3262
3263         [BZ #3479]
3264         * stdlib/strtod_l.c (NDIG): Remove.
3265         (HEXNDIG): Likewise.
3266         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3267         smallest representable value.
3268         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3269         lie within an exact representation of 1/2 ulp of the result.
3270         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3271         unconditionally.
3272         (TENS_P9_IDX): Define unconditionally.
3273         (TENS_P9_SIZE): Likewise.
3274         (TENS_P10_IDX): Likewise.
3275         (TENS_P10_SIZE): Likewise.
3276         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3277         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3278         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3279         entries for 10^2^13 and 10^2^14.
3280         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3281         (TENS_P13_IDX): Define.
3282         (TENS_P13_SIZE): Likewise.
3283         (TENS_P14_IDX): Likewise.
3284         (TENS_P14_SIZE): Likewise.
3285         (_fpioconst_pow10): Change array size to
3286         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3287         unconditional.
3288         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3289         1024]: Add entries for 10^2^13 and 10^2^14.
3290         [LAST_POW10 > _LAST_POW10]: Remove #error.
3291         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3292         (_fpioconst_pow10): Change array size to
3293         FPIOCONST_POW10_ARRAY_SIZE.
3294         * stdlib/gen-fpioconst.c: New file.
3295         * stdlib/gen-tst-strtod-round.c: Likewise.
3296         * stdlib/tst-strtod-round-data: Likewise.
3297         * stdlib/tst-strtod-round.c: Likewise.
3298         * stdlib/Makefile (tests): Add tst-strtod-round.
3299
3300         [BZ #14459]
3301         * stdlib/strtod_l.c: Include <stdint.h>.
3302         (NDEBUG): Do not define.
3303         (round_and_return): Change EXPONENT parameter to type intmax_t.
3304         Rearrange calculations to avoid internal overflow possibilities.
3305         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3306         Rearrange calculations to avoid internal overflow possibilities.
3307         Assert that number fits inside MPNSIZE limbs.
3308         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3309         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3310         calculations and add assertions to avoid internal overflow
3311         possibilities.  Add casts to avoid signed/unsigned operations.
3312         * stdlib/tst-strtod-overflow.c: New file.
3313         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3314
3315 2012-08-25  Marek Polacek  <polacek@redhat.com>
3316
3317         * time/time.h: Fix some typos in comments.
3318
3319 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3320
3321         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3322         * posix/tst-rfc3484-2.c: Likewise.
3323         * posix/tst-rfc3484-3.c: Likewise.
3324
3325 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3326
3327         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3328         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3329
3330 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3331
3332         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3333         #include of fxstatat64.c.
3334
3335 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3336
3337         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3338         * shadow/getspent_r.c: Likewise.
3339         * shadow/getspnam.c: Likewise.
3340         * shadow/getspnam_r.c: Likewise.
3341         * gshadow/getsgent.c: Likewise.
3342         * gshadow/getsgent_r.c: Likewise.
3343         * gshadow/getsgnam.c: Likewise.
3344         * gshadow/getsgnam_r.c: Likewise.
3345         * inet/getnetbyad.c: Likewise.
3346         * inet/getnetbyad_r.c: Likewise.
3347         * inet/getnetbynm.c: Likewise.
3348         * inet/getnetbynm_r.c: Likewise.
3349         * inet/getnetent.c: Likewise.
3350         * inet/getnetent_r.c: Likewise.
3351         * inet/getproto.c: Likewise.
3352         * inet/getproto_r.c: Likewise.
3353         * inet/getprtent.c: Likewise.
3354         * inet/getprtent_r.c: Likewise.
3355         * inet/getprtname.c: Likewise.
3356         * inet/getprtname_r.c: Likewise.
3357         * inet/getrpcbyname.c: Likewise.
3358         * inet/getrpcbyname_r.c: Likewise.
3359         * inet/getrpcbynumber.c: Likewise.
3360         * inet/getrpcbynumber_r.c: Likewise.
3361         * inet/getrpcent.c: Likewise.
3362         * inet/getrpcent_r.c: Likewise.
3363         * inet/getaliasent.c: Likewise.
3364         * inet/getaliasent_r.c: Likewise.
3365         * inet/getaliasname.c: Likewise.
3366         * inet/getaliasname_r.c: Likewise.
3367         * nscd/getgrgid_r.c: Likewise.
3368         * nscd/getgrnam_r.c: Likewise.
3369         * nscd/gethstbyad_r.c: Likewise.
3370         * nscd/gethstbynm3_r.c: Likewise.
3371         * nscd/getpwnam_r.c: Likewise.
3372         * nscd/getpwuid_r.c: Likewise.
3373         * nscd/getsrvbynm_r.c: Likewise.
3374         * nscd/getsrvbypt_r.c: Likewise.
3375         * nscd/gai.c: Likewise.
3376
3377         * configure.in (build_nscd): New substituted variable, set
3378         by --disable-build-nscd and defaults to $use_nscd.
3379         * configure: Regenerated.
3380         * config.make.in (build-nscd): New substituted variable.
3381         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3382         Change conditional to require [$(build-nscd) = yes] as well.
3383         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3384
3385         [BZ# 13696]
3386         * configure.in (use_nscd): New substituted variable, set by
3387         --disable-nscd.  If enabled, define USE_NSCD.
3388         * configure: Regenerated.
3389         * config.h.in: Add USE_NSCD.
3390         * config.make.in (use-nscd): New substituted variable.
3391         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3392         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3393         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3394         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3395         (CFLAGS-getgrnam_r.c): Likewise.
3396         (CFLAGS-initgroups.c): Likewise.
3397         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3398         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3399         Variables removed.
3400         * inet/getnetgrent_r.c
3401         (nscd_setnetgrent): New function, broken out of ...
3402         (setnetgrent): ... here.  Call it.
3403         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3404         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3405         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3406         * nscd/Makefile (routines, aux): Move definitions after include of
3407         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3408         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3409         Conditionalize on [USE_NSCD].
3410         (is_nscd, nscd_init_cb): Likewise.
3411         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3412         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3413         * nss/nss_db/db-init.c: Likewise.
3414         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3415         [USE_NSCD].
3416         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3417         (make_request): Use it.
3418         (cache_valid_p): New function.
3419         (__check_pf): Use it.
3420         * NEWS: Add item for --disable-nscd.
3421
3422 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3423
3424         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3425         to support sed >= 4.2.1-20-ga9bf076.
3426         * configure: Regenerated.
3427
3428 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3429
3430         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3431         Conditionalize whole body on [IREL].
3432
3433 2012-08-22  Jeff Law <law@redhat.com>
3434
3435         [BZ #14505]
3436         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3437         if the family is PF_UNSPEC.
3438
3439 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3440
3441         * Makerules (lib-version): Rename from V.
3442         (install-lib-nosubdir): Change V to lib-version.
3443
3444 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3445
3446         [BZ #14252]
3447         * powerpc32/power6/wcschr.c: New file.
3448         * powerpc32/power6/wcscpy.c: New file.
3449         * powerpc32/power6/wcsrchr.c: New file.
3450         * powerpc64/power6/wcschr.c: New file.
3451         * powerpc64/power6/wcscpy.c: New file.
3452         * powerpc64/power6/wcsrchr.c: New file.
3453
3454 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3455
3456         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3457         (two_way_short_needle): Use it.
3458         * string/strstr.c (AVAILABLE1_USES_J): Define.
3459         * string/strcasestr.c: Likewise.
3460
3461         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3462         array references.
3463         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3464
3465         [BZ #11607]
3466         * NEWS: Add an entry.
3467         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3468         define their defaults.
3469         (two_way_short_needle): Detect end-of-string on-the-fly.
3470         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3471         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3472         * string/bug-strcasestr1.c: New test.
3473         * string/Makefile: Run it.
3474
3475 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3476
3477         [BZ #11607]
3478         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3479         the first character.
3480
3481 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3482
3483         * csu/elf-init.c (__libc_csu_irel): Function removed.
3484         * csu/libc-start.c (apply_irel): New function.
3485         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3486
3487 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3488
3489         * sysdeps/unix/sysv/linux/kernel-features.h
3490         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3491         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3492         <kernel-features.h>.
3493         [__NR_fadvise64_64]: Make code unconditional.
3494         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3495         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3496         !__NR_fadvise64_64)]: Likewise.
3497         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3498         !__NR_fadvise64_64))]: Likewise.
3499         [__NR_fadvise64]: Make code unconditional.
3500         [!__NR_fadvise64]: Remove conditional code.
3501         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3502         <kernel-features.h>.
3503         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3504         unconditional.
3505         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3506         conditional code.
3507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3508         not include <kernel-features.h>.
3509         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3510         unconditional.
3511         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3512         conditional code.
3513         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3514         include <kernel-features.h>.
3515         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3516         unconditional.
3517         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3518         conditional code.
3519
3520 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3521
3522         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3523         slight instruction rearrangements per scrollpipe analysis.
3524         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3525
3526 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3527
3528         * manual/syslog.texi (syslog; vsyslog, closelog):
3529         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3530         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3531
3532         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3533         DSOCAPS to match condition on defining it.
3534
3535 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3536
3537         * sysdeps/unix/sysv/linux/kernel-features.h
3538         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3540         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3541         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3543         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3544         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3546         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3547         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3548
3549         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3550         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3551
3552         * sysdeps/unix/sysv/linux/kernel-features.h
3553         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3554         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3555         unconditional.
3556         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3557         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3558         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3559         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3560         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3561         Make code unconditional.
3562         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3563         (__mmap64) [!__NR_mmap2]: Likewise.
3564         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3565         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3566         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3567         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3568         [__NR_mmap2]: Make code unconditional.
3569         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3570         (__mmap64) [!__NR_mmap2]: Likewise.
3571
3572 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3573
3574         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3575
3576 2012-08-18  Andreas Jaeger  <aj@suse.de>
3577
3578         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3579
3580 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3581
3582         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3583         * include/unistd.h (__have_sock_cloexec): Likewise.
3584         (__have_pipe2): Likewise.
3585         (__have_dup3): Likewise.
3586
3587 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3588
3589         [BZ #9685]
3590         * include/unistd.h (__have_pipe2): Change define into an extern int.
3591         (__have_dup3): Likewise.
3592         * socket/have_sock_cloexec.c: Include fcntl.h.
3593         (__have_pipe2): New variable.
3594         (__have_dup3): Likewise.
3595
3596 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3597
3598         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3599
3600 2012-08-17  Marek Polacek  <polacek@redhat.com>
3601
3602         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3603         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3604
3605 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3606
3607         * configure.in: Add AC_SUBST for sysheaders.
3608         * configure: Regenerated.
3609         * config.make.in (sysheaders): New substituted variable.
3610
3611         * sysdeps/unix/mkfifo.c: Moved ...
3612         * sysdeps/posix/mkfifo.c: ... here.
3613         * sysdeps/unix/mkfifoat.c: Moved ...
3614         * sysdeps/posix/mkfifoat.c: ... here.
3615
3616         * sysdeps/unix/utime.c: Moved ...
3617         * sysdeps/posix/utime.c: ... here.
3618
3619         * sysdeps/unix/time.c: Moved ...
3620         * sysdeps/posix/time.c: ... here.
3621         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3622         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3623
3624         * sysdeps/unix/nice.c: Moved ...
3625         * sysdeps/posix/nice.c: ... here.
3626
3627         * sysdeps/unix/alarm.c: Moved ...
3628         * sysdeps/posix/alarm.c: ... here.
3629
3630         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3631
3632 2012-08-17  Jeff Law <law@redhat.com>
3633
3634         * intl/Makefile (codeset_mo): New variable.
3635         ($(codeset_mo)): New target.
3636         (tst-codeset.out): Depend on that.  Remove explicit rule.
3637         (tst-gettext3.out, tst-gettext5.out): Likewise.
3638         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3639         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3640         * intl/tst-codeset.sh: Remove.
3641         * intl/tst-gettext3.sh: Likewise.
3642         * intl/tst-gettext5.sh: Likewise.
3643
3644 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3645
3646         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3647         * sysdeps/unix/syscalls.list: ... here.
3648
3649         * sysdeps/posix/getaddrinfo.c
3650         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3651         (gaiconf_init, gaiconf_reload): Use them.
3652         [!_STATBUF_ST_NSEC]
3653         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3654         Define using time_t rather than struct timespec.
3655
3656         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3657         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3658         Macros removed.
3659         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3660         [!NO_THREADS].
3661         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3662         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3663         Likewise.
3664
3665         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3666         __libc_cleanup_push argument.
3667
3668         * bits/param.h: New file.
3669         * misc/sys/param.h: New file.
3670         * include/sys/param.h: New file.
3671         * misc/Makefile (headers): Add bits/param.h.
3672         * sysdeps/generic/sys/param.h: File removed.
3673         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3674         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3675         * sysdeps/mach/hurd/bits/param.h: New file.
3676         * sysdeps/mach/hurd/sys/param.h: File removed.
3677
3678         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3679         last change.
3680
3681         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3682         [_IO_MTSAFE_IO].
3683         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3684         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3685         New macros.
3686
3687         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3688         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3689         rather than -D_IO_MTSAFE_IO conditionally.
3690         * stdio-common/Makefile (CPPFLAGS): Likewise.
3691         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3692         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3693         Use $(libio-mtsafe).
3694         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3695         of -D_IO_MTSAFE_IO.
3696         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3697         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3698         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3699         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3700         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3701         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3702         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3703         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3704         (CFLAGS-fread_u_chk.c): Likewise.
3705         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3706         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3707         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3708         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3709         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3710         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3711         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3712         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3713         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3714
3715         * libio/Makefile: Test [$(libc-reentrant) = yes]
3716         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3717
3718         * Makeconfig
3719         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3720         * sysdeps/pthread/configure: File removed.
3721         * sysdeps/pthread/Makeconfig: New file.
3722         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3723         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3724
3725 2012-08-16  Gary Benson  <gbenson@redhat.com>
3726
3727         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3728         unmapping the first object in a namespace.
3729
3730 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3731
3732         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3733         (__internal_setnetgrent): ... this.  Add internal_function to
3734         definition.  Add libc_hidden_def.
3735         (setnetgrent): Update caller.
3736         (internal_endnetgrent): Renamed to ...
3737         (__internal_endnetgrent): ... this.  Add internal_function to
3738         definition.  Add libc_hidden_def.
3739         (endnetgrent): Update caller.
3740         (internal_getnetgrent_r): Renamed to ...
3741         (__internal_getnetgrent_r): ... this.  Add internal_function to
3742         definition.  Add libc_hidden_def.
3743         (__getnetgrent_r): Update caller.
3744         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3745
3746 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3747
3748         * stdlib/longlong.h: Update from GCC.
3749
3750 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3751
3752         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3753         on _QL, which is set by umul_ppmm but never used.
3754         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3755         variables, which are set by GMP macros but never used.
3756         * stdio-common/_itowa.c (_itowa): Likewise.
3757         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3758         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3759
3760 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3761
3762         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3763         struct La_sh_regs is not constant.
3764         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3765         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3766         and struct La_sparc64_regs are not constant.
3767
3768 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3769
3770         * sysdeps/unix/sysv/linux/kernel-features.h
3771         (__ASSUME_POSIX_TIMERS): Remove.
3772         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3773         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3774         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3775         Make code unconditional.
3776         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3777         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3778         Make code unconditional.
3779         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3780         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3781         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3782         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3783         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3784         Make code unconditional.
3785         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3786         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3787         (__libc_missing_posix_timers): Remove.
3788
3789 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3790
3791         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3792         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3793
3794         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3795
3796         * elf/dl-sym.c: Include <stdlib.h>.
3797
3798         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3799         constants, which avoids warnings in 32-bit builds.
3800
3801         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3802         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3803
3804         * misc/lseek.c: File moved to ...
3805         * io/lseek.c: ... here.
3806
3807         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3808
3809         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3810         shifting LEN more than 31 bits at once.
3811
3812 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3813
3814         [BZ #14195]
3815         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3816         segmentation fault for a case of two empty input strings.
3817         * string/test-strncasecmp.c (check1): Renamed to...
3818         (bz12205): ...this.
3819         (bz14195): Add new testcase for two empty input strings and N > 0.
3820         (test_main): Call new testcase, adapt for renamed function.
3821
3822 2012-08-15  Andreas Jaeger  <aj@suse.de>
3823
3824         [BZ #14090]
3825         * crypt/md5test2.c: New test, based on test supplied by Serge
3826         Belyshev <belyshev@depni.sinp.msu.ru>.
3827         * crypt/Makefile (xtests): Add md5test-giant..
3828         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3829
3830 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3831
3832         [BZ #14090]
3833         * crypt/md5.c (md5_process_block): Don't assume the buffer
3834         length is less than 2**32.
3835         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3836         length is less than 2**64.
3837
3838 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3839
3840         * string/str-two-way.h: Include <sys/param.h>.
3841         (MAX): Macro removed.
3842
3843         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3844         Move #define and #undef of memmove to just before and after
3845         including <string.h>.
3846
3847         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3848         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3849         and after including <string.h>.  Move declarations of
3850         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3851         to before #include "string/memmove.c".
3852
3853         * include/dirent.h: Declare __getdirentries.
3854
3855         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3856         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3857
3858 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3859
3860         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3861         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3862         * sysdeps/i386/configure: Regenerated.
3863         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3864         STABS_CURRENT_FILE, and STABS_FUN.
3865         (END): Remove call to STABS_FUN_END.
3866         (STABS_CURRENT_FILE1): Delete.
3867         (STABS_CURRENT_FILE): Likewise.
3868         (STABS_FUN): Likewise.
3869         (STABS_FUN_END): Likewise.
3870         (STABS_FUN2): Likewise.
3871         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3872         * sysdeps/x86_64/configure: Regenerated.
3873
3874 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3875
3876         * elf/dl-open.c: Include <atomic.h>.
3877         * elf/dl-lookup.c: Likewise.
3878
3879 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3880
3881         * sysdeps/unix/sysv/linux/kernel-features.h
3882         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3883         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3884         unconditionally.
3885         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3886         unconditionally.
3887         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3888         condition on __ASSUME_CLONE_THREAD_FLAGS.
3889
3890 2012-08-14  Andreas Jaeger  <aj@suse.de>
3891
3892         * sysdeps/i386/fpu/libm-test-ulps: Update.
3893
3894 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3895
3896         * include/atomic.h (atomic_exchange_and_add): Split into ...
3897         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3898         New atomic macros.
3899
3900 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3901
3902         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3903
3904 2012-08-13  Jeff Law <law@redhat.com>
3905
3906         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3907         null byte in the output string.
3908
3909 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3910
3911         * sysdeps/unix/sysv/linux/kernel-features.h
3912         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3913         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3914         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3915         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3916         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3917         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3918         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3919
3920 2012-08-09  Jeff Law <law@redhat.com>
3921
3922         [BZ #13939]
3923         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3924         When avoid_arena is set, don't retry in the that arena.  Pick the
3925         next one, whatever it might be.
3926         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3927         (arena_lock): Pass in new parameter to arena_get2.
3928         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3929         arena_get2.
3930         (__libc_malloc): Unify retrying after main arena failure with
3931         __libc_memalign version.
3932         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3933
3934 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3935
3936         [BZ #14166]
3937         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3938         to __redirect_strstr.
3939         (__strstr_sse42): Use typeof __redirect_strstr.
3940         (__strstr_ia32): Likewise.
3941         (__libc_strstr): New prototype.
3942         (strstr): Renamed to ...
3943         (__libc_strstr): This.
3944         (strstr): New strong alias of __libc_strstr.
3945         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3946         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3947         __redirect_time.
3948         Include <time.h>.
3949         (__libc_time): New prototype.
3950         (time_ifunc): Replace time with __libc_time.
3951         (time): New strong alias and hidden definition of __libc_time.
3952         (__GI_time): Remove strong alias.
3953         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3954         Include <stddef.h>.
3955         (memmove): Redefined to __redirect_memmove.
3956         (__memmove_sse2): Use typeof __redirect_memmove.
3957         (__memmove_ssse3): Likewise.
3958         (__memmove_ssse3_back): Likewise.
3959         (__libc_memmove): New prototype.
3960         (memmove): Renamed to ...
3961         (__libc_memmove): This.
3962         (memmove): New strong alias of __libc_memmove.
3963
3964 2012-08-08  Mark Salter  <msalter@redhat.com>
3965
3966         * elf/elf.h
3967         (R_MN10300_TLS_GD): Define.
3968         (R_MN10300_TLS_LD): Likewise.
3969         (R_MN10300_TLS_LDO): Likewise.
3970         (R_MN10300_TLS_GOTIE): Likewise.
3971         (R_MN10300_TLS_IE): Likewise.
3972         (R_MN10300_TLS_LE): Likewise.
3973         (R_MN10300_TLS_DTPMOD): Likewise.
3974         (R_MN10300_TLS_DTPOFF): Likewise.
3975         (R_MN10300_TLS_TPOFF): Likewise.
3976         (R_MN10300_SYM_DIFF): Likewise.
3977         (R_MN10300_ALIGN): Likewise.
3978         (R_MN10300_NUM): Update.
3979
3980 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3981
3982         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3983         Remove.
3984
3985 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3986
3987         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3988
3989         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3990         sysdeps/unix -> sysdeps/posix move.
3991         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3992
3993 2012-08-07      Allan McRae     <allan@archlinux.org>
3994
3995         [BZ #14303]
3996         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3997         (SUNOS_CPP): Likewise.
3998         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3999         not found.
4000         (open_input): Call CPP using execvp.
4001
4002 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4003
4004         * sysdeps/unix/sysv/linux/kernel-features.h
4005         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4006         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4007         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4008         (__ASSUME_WAITID_SYSCALL): Likewise.
4009         * sysdeps/unix/sysv/linux/dl-execstack.c
4010         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4011         code unconditional.
4012         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4013         conditional code.
4014         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4015         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4016         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4017         code.
4018         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4019         unconditional.
4020         [__ASSUME_WAITID_SYSCALL]: Likewise.
4021         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4022
4023 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4024
4025         * sysdeps/unix/closedir.c: Renamed to ...
4026         * sysdeps/posix/closedir.c: ... here.
4027         * sysdeps/unix/dirfd.c: Renamed to ...
4028         * sysdeps/posix/dirfd.c: ... here.
4029         * sysdeps/unix/dirstream.h: Renamed to ...
4030         * sysdeps/posix/dirstream.h: ... here.
4031         * sysdeps/unix/fdopendir.c: Renamed to ...
4032         * sysdeps/posix/fdopendir.c: ... here.
4033         * sysdeps/unix/opendir.c: Renamed to ...
4034         * sysdeps/posix/opendir.c: ... here.
4035         * sysdeps/unix/readdir.c: Renamed to ...
4036         * sysdeps/posix/readdir.c: ... here.
4037         * sysdeps/unix/readdir_r.c: Renamed to ...
4038         * sysdeps/posix/readdir_r.c: ... here.
4039         * sysdeps/unix/rewinddir.c: Renamed to ...
4040         * sysdeps/posix/rewinddir.c: ... here.
4041         * sysdeps/unix/seekdir.c: Renamed to ...
4042         * sysdeps/posix/seekdir.c: ... here.
4043         * sysdeps/unix/telldir.c: Renamed to ...
4044         * sysdeps/posix/telldir.c: ... here.
4045         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4046         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4047         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4048         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4049
4050         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4051         * bits/fcntl.h: ... here.
4052
4053         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4054         not 0.
4055         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4056         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4057         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4058         (struct flock): Move l_start, l_len to the beginning.
4059         Use __pid_t for l_pid.
4060         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4061         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4062         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4063         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4064         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4065         [__USE_LARGEFILE64] (struct flock64): New type.
4066         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4067
4068         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4069         * bits/dirent.h: ... here.
4070
4071         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4072         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4073
4074 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4075
4076         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4077         Change from 2.6.0 to 2.6.16.
4078         * sysdeps/unix/sysv/linux/configure: Regenerated.
4079         * sysdeps/unix/sysv/linux/kernel-features.h
4080         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4081         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4082         version.
4083         (__ASSUME_UTIMES): Likewise.
4084         (__ASSUME_CLONE_STOPPED): Remove.
4085         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4086         architectures, not kernel version.
4087         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4088         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4089         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4090         (__ASSUME_WAITID_SYSCALL): Likewise.
4091         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4092         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4093         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4094         refer to older versions.
4095
4096 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4097
4098         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4099         Define alphasort64 as an alias.
4100         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4101         Define versionsort64 as an alias.
4102         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4103         Define scandir64 as an alias.
4104         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4105         Define scandirat64 as an alias.
4106         * dirent/alphasort64.c (alphasort64):
4107         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4108         * dirent/versionsort64.c: Likewise.
4109         * dirent/scandir64.c: Likewise.
4110         * dirent/scandirat64.c: Likewise.
4111         * sysdeps/wordsize-64/alphasort.c: File removed.
4112         * sysdeps/wordsize-64/alphasort64.c: File removed.
4113         * sysdeps/wordsize-64/scandir.c: File removed.
4114         * sysdeps/wordsize-64/scandir64.c: File removed.
4115         * sysdeps/wordsize-64/scandirat.c: File removed.
4116         * sysdeps/wordsize-64/scandirat64.c: File removed.
4117         * sysdeps/wordsize-64/versionsort.c: File removed.
4118         * sysdeps/wordsize-64/versionsort64.c: File removed.
4119         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4120         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4121         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4122         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4123         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4124         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4125         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4126         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4127
4128         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4129         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4130         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4131         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4132         [defined __arch64__ || defined __sparcv9]
4133         (__INO_T_MATCHES_INO64_T): New macro.
4134         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4135         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4136         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4137         * sysdeps/unix/sysv/linux/bits/dirent.h
4138         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4139         (_DIRENT_MATCHES_DIRENT64): New macro.
4140
4141         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4142         Define lockf64 as an alias.
4143         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4144         Define fseeko64 as an alias.
4145         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4146         Define ftello64 as an alias.
4147         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4148         Define _IO_fgetpos64 and fgetpos64 as aliases.
4149         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4150         Define _IO_fsetpos64 and fsetpos64 as aliases.
4151         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4152         Conditionalize body on this.
4153         * libio/fseeko64.c: Likewise.
4154         * libio/ftello64.c: Likewise.
4155         * libio/iofgetpos64.c: Likewise.
4156         * libio/iofsetpos64.c: Likewise.
4157         * sysdeps/wordsize-64/lockf.c: File removed.
4158         * sysdeps/wordsize-64/lockf64.c: File removed.
4159         * sysdeps/wordsize-64/fseeko.c: File removed.
4160         * sysdeps/wordsize-64/fseeko64.c: File removed.
4161         * sysdeps/wordsize-64/ftello.c: File removed.
4162         * sysdeps/wordsize-64/ftello64.c: File removed.
4163         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4164         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4165         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4166         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4167         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4168         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4169         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4170         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4171         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4172         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4173         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4174         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4175         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4176         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4177
4178         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4179         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4180         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4181         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4182         [defined __arch64__ || defined __sparcv9]
4183         (__OFF_T_MATCHES_OFF64_T): New macro.
4184         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4185         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4186         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4187         (__OFF_T_MATCHES_OFF64_T): New macro.
4188
4189 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4190
4191         * stdlib/secure-getenv.c (__secure_getenv): Replace
4192         GLIBC_2_16 with GLIBC_2_17.
4193
4194 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4195
4196         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4197         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4198
4199 2012-08-03  David S. Miller  <davem@davemloft.net>
4200
4201         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4202
4203 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4204
4205         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4206         Remove.
4207         (__ASSUME_CORRECT_SI_PID): Likewise.
4208         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4209         (__ASSUME_TMPFS_NAME): Likewise.
4210         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4211         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4212         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4213         (HAVE_AUX_SECURE): Make definition unconditional.
4214         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4215         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4216
4217 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4218
4219         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4220         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4221         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4222         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4223         __eloop_threshold instead of SYMLOOP_MAX.
4224
4225         * sysdeps/generic/eloop-threshold.h: New file.
4226         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4227         of MAXSYMLINKS.
4228         * elf/chroot_canon.c (chroot_canon): Likewise.
4229
4230 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4231
4232         [BZ #13717]
4233         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4234         Change to 2.6.0 everywhere.
4235         * sysdeps/unix/sysv/linux/configure: Regenerated.
4236         * sysdeps/unix/sysv/linux/kernel-features.h
4237         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4238         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4239         kernel versions.
4240         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4241         (__ASSUME_FUTEX_REQUEUE): Remove.
4242         (__ASSUME_STATFS64): Define unconditionally.
4243         (__ASSUME_AT_SECURE): Likewise.
4244         (__ASSUME_CORRECT_SI_PID): Likewise.
4245         (__ASSUME_TGKILL): Define without depending on kernel version for
4246         i386.
4247         (__ASSUME_UTIMES): Likewise.
4248         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4249         kernel version.
4250         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4251         (__ASSUME_TMPFS_NAME): Likewise.
4252         * README: Update reference to Linux kernel versions.
4253
4254 2012-08-02  Marek Polacek  <polacek@redhat.com>
4255
4256         [BZ# 14150]
4257         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4258         libc_cv_asm_type_prefix with %.
4259         * configure: Regenerated.
4260         * include/libc-symbols.h: Remove comment about
4261         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4262         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4263         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4264         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4265         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4266         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4267         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4268         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4269         * elf/tst-unique2mod1.c: Likewise.
4270         * elf/tst-unique1mod2.c: Likewise.
4271         * elf/tst-unique1mod1.c: Likewise.
4272         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4273         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4274         Replace ASM_TYPE_DIRECTIVE with .type.
4275         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4276         * sysdeps/i386/sysdep.h: Likewise.
4277         * sysdeps/x86_64/sysdep.h: Likewise.
4278         * sysdeps/sh/sysdep.h: Likewise.
4279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4280         Do not define ASM_TYPE_DIRECTIVE.
4281         * sysdeps/powerpc/sysdep.h: Likewise.
4282         * sysdeps/powerpc/powerpc32/sysdep.h:
4283         Replace ASM_TYPE_DIRECTIVE with .type.
4284         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4285         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4286         * sysdeps/i386/fpu/e_powf.S: Likewise.
4287         * sysdeps/i386/fpu/e_expl.S: Likewise.
4288         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4289         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4290         * sysdeps/i386/fpu/e_pow.S: Likewise.
4291         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4292         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4293         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4294         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4295         * sysdeps/i386/fpu/e_log2.S: Likewise.
4296         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4297         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4298         * sysdeps/i386/fpu/e_powl.S: Likewise.
4299         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4300         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4301         * sysdeps/i386/fpu/e_logl.S: Likewise.
4302         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4303         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4304         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4305         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4306         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4307         * sysdeps/i386/fpu/e_log.S: Likewise.
4308         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4309         * sysdeps/i386/fpu/e_logf.S: Likewise.
4310         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4311         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4312         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4313         * sysdeps/i386/fpu/e_log10.S: Likewise.
4314         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4315         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4316         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4317         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4318         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4319         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4320         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4321         * sysdeps/i386/i686/strtok.S: Likewise.
4322         * sysdeps/i386/i386-mcount.S: Likewise.
4323         * sysdeps/i386/strtok.S: Likewise.
4324         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4325         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4326         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4327         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4328         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4329         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4330         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4331         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4332         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4333         * sysdeps/x86_64/_mcount.S: Likewise.
4334         * sysdeps/x86_64/strtok.S: Likewise.
4335         * sysdeps/sh/_mcount.S: Likewise.
4336
4337 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4338
4339         * libio/iofopen.c: Include <fcntl.h>.
4340         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4341         (_IO_fopen64, fopen64): Define as aliases.
4342         * libio/iofopen64.c: Include <fcntl.h>.
4343         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4344         Conditionalize body on this.
4345         * sysdeps/wordsize-64/iofopen.c: File removed.
4346         * sysdeps/wordsize-64/iofopen64.c: File removed.
4347
4348 2012-08-01  Marek Polacek  <polacek@redhat.com>
4349
4350         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4351         Use dlfcn directly instead of a variable.
4352         (binfmt-subdir): Do not define.
4353         (dlfcn): Likewise.
4354
4355 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4356
4357         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4358         Remove all definitions.
4359         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4360         <kernel-features.h>.
4361         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4362         (miss_F_GETOWN_EX): Remove all definitions.
4363         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4364         macro definition.
4365         [!__ASSUME_FCNTL64]: Remove conditional code.
4366         [__ASSUME_FCNTL64]: Make code unconditional.
4367         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4368         <kernel-features.h>.
4369         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4370         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4371         (lockf64) [__NR_fcntl64]: Make code unconditional.
4372         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4373
4374         * sysdeps/unix/sysv/linux/kernel-features.h
4375         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4376         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4377         Make code unconditional.
4378         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4379         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4381         [__NR_vfork]: Make code unconditional.
4382         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4383         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4385         [__NR_vfork]: Make code unconditional.
4386         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4387         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4388
4389 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4390
4391         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4392         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4393
4394         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4395         Define mkstemp64 as an alias.
4396         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4397         Define mkstemps64 as an alias.
4398         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4399         Define mkostemp64 as an alias.
4400         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4401         Define mkostemps64 as an alias.
4402         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4403         Conditionalize body on this.
4404         * misc/mkostemp64.c: Likewise.
4405         * misc/mkostemps64.c: Likewise.
4406         * misc/mkstemps64.c: Likewise.
4407         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4408         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4409         * sysdeps/wordsize-64/mkostemp.c: File removed.
4410         * sysdeps/wordsize-64/mkstemp.c: File removed.
4411         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4412         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4413         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4414         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4415
4416         [BZ #14138]
4417         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4418         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4419         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4420         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4421
4422         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4423         compat_symbol macros from <shlib-compat.h> rather than the underlying
4424         default_symbol_version and symbol_version macros, so that DEFAULT
4425         lines in shlib-versions are respected.
4426         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4427
4428 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4429
4430         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4431         Declare with warn_unused_result.
4432         (setgid, setregid, setegid, setresgid): Likewise.
4433         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4434         Likewise.
4435         * WUR-REPORT: Remove set*id functions.
4436
4437 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4438
4439         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4440
4441 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4442
4443         * include/sys/socket.h (__libc_accept, __libc_accept4):
4444         Add attribute_hidden.
4445         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4446
4447         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4448         use of PTR_MANGLE.
4449         * inet/getnetgrent_r.c (setup): Likewise.
4450
4451         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4452
4453 2012-07-31  David S. Miller  <davem@davemloft.net>
4454
4455         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4456
4457 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4458
4459         [BZ #13629]
4460         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4461         value between 1.0 and 2.0 and smaller part has absolute value less
4462         than 1.0.
4463         * math/s_clog10.c (__clog10): Likewise.
4464         * math/s_clog10f.c (__clog10f): Likewise.
4465         * math/s_clog10l.c (__clog10l): Likewise.
4466         * math/s_clogf.c (__clogf): Likewise.
4467         * math/s_clogl.c (__clogl): Likewise.
4468         * math/libm-test.inc (clog_test): Add more tests.
4469         (clog10_test): Likewise.
4470         * sysdeps/i386/fpu/libm-test-ulps: Update.
4471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4472
4473 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4474
4475         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4476         Exit with zero in case no suitable GID is found, and write a
4477         message to standard error.
4478
4479 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4480
4481         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4482         rather than to 1.
4483         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4484         (MAXPATHLEN): Removed.
4485         (NOGROUP, NODEV): New macros.
4486         (setbit, clrbit, isset, isclr): New macros.
4487         (howmany, roundup, powerof2): New macros.
4488         (DEV_BSIZE): New macro.
4489
4490         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4491         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4492
4493         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4494         definition on [!__NO_LONG_DOUBLE_MATH].
4495
4496         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4497         PTR_MANGLE and PTR_DEMANGLE.
4498
4499         * socket/accept4.c (accept4): Rename to __libc_accept4.
4500         Define accept4 as a weak alias.
4501
4502         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4503         on [_DIRENT_HAVE_D_TYPE].
4504         * io/ftw.c (ftw_dir): Likewise.
4505
4506         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4507
4508         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4509
4510         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4511         Use the BSD numbers rather than the arbitrary ones we had.
4512         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4513         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4514         (SIGXCPU, SIGXFSZ): New macros.
4515         (_NSIG): Now 32.
4516
4517         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4518         initializer on [_LIBC_REENTRANT].
4519
4520         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4521         definitions inside [_POSIX_MAPPED_FILES].
4522
4523         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4524
4525         * dirent/opendir.c: Include <fcntl.h>.
4526
4527         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4528         (__libc_getspecific): Likewise.
4529         (__libc_key_create): Likewise.
4530
4531         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4532         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4533         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4534         (tmpfile64): Define as alias.
4535         * sysdeps/wordsize-64/tmpfile.c: File removed.
4536         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4537         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4538         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4539
4540         * stdio-common/vfscanf.c: Include <stdbool.h>.
4541         * nss/makedb.c: Likewise.
4542         * stdio-common/_i18n_number.h: Likewise.
4543         * argp/argp-help.c: Likewise.
4544         * posix/wordexp.c: Likewise.
4545         * sysdeps/posix/spawni.c: Likewise.
4546         * nss/nss_files/files-initgroups.c: Likewise.
4547         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4548         * nss/nss_files/files-initgroups.c: Likewise.
4549         * nss/nss_db/db-netgrp.c: Likewise.
4550         * nss/nss_db/db-initgroups.c: Likewise.
4551         * io/fchmodat.c: Include <sys/stat.h>.
4552
4553         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4554         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4555
4556         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4557         [HAVE_MMAP].
4558
4559         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4560         Add multiple inclusion protection.
4561
4562 2012-07-27  David S. Miller  <davem@davemloft.net>
4563
4564         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4565
4566 2012-07-27  Gary Benson  <gbenson@redhat.com>
4567
4568         [BZ #14298]
4569         * elf/rtld.c: Include <stap-probe.h>.
4570         (dl_main): Added static probes "init_start" and "init_complete".
4571         * elf/dl-load.c: Include <stap-probe.h>.
4572         (lose): Take new parameter "nsid".
4573         Added static probe "map_failed".
4574         (_dl_map_object_from_fd): Pass namespace id to lose.
4575         Added static probe "map_start".
4576         (open_verify): Pass namespace id to lose.
4577         * elf/dl-open.c: Include <stap-probe.h>.
4578         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4579         and "reloc_complete".
4580         * elf/dl-close.c: Include <stap-probe.h>.
4581         (_dl_close_worker): Added static probes "unmap_start" and
4582         "unmap_complete".
4583         * elf/rtld-debugger-interface.txt: New file documenting the above.
4584
4585 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4586
4587         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4588         rather than a string variable.
4589         * sunrpc/rpc_main.c (h_output): Likewise.
4590         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4591
4592 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4593
4594         * inet/check_native.c: New file.
4595
4596 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4597
4598         [BZ #13629]
4599         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4600         if larger part has absolute value 1.0.
4601         * math/s_clog10.c (__clog10): Likewise.
4602         * math/s_clog10f.c (__clog10f): Likewise.
4603         * math/s_clog10l.c (__clog10l): Likewise.
4604         * math/s_clogf.c (__clogf): Likewise.
4605         * math/s_clogl.c (__clogl): Likewise.
4606         * math/libm-test.inc (clog_test): Add more tests.
4607         (clog10_test): Likewise.
4608         * sysdeps/i386/fpu/libm-test-ulps: Update.
4609         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4610
4611         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4612         (pltexit): Likewise.
4613         (La_regs): Likewise.
4614         (La_retval): Likewise.
4615         (int_retval): Likewise.
4616         Update #error for removed macros to refer only to definitions in
4617         tst-audit.h.
4618         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4619         macro.
4620         (pltexit): Likewise.
4621         (La_regs): Likewise.
4622         (La_retval): Likewise.
4623         (int_retval): Likewise.
4624         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4625         macro.
4626         (pltexit): Likewise.
4627         (La_regs): Likewise.
4628         (La_retval): Likewise.
4629         (int_retval): Likewise.
4630         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4631         macro.
4632         (pltexit): Likewise.
4633         (La_regs): Likewise.
4634         (La_retval): Likewise.
4635         (int_retval): Likewise.
4636         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4637         macro.
4638         (pltexit): Likewise.
4639         (La_regs): Likewise.
4640         (La_retval): Likewise.
4641         (int_retval): Likewise.
4642         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4643         macro.
4644         (pltexit): Likewise.
4645         (La_regs): Likewise.
4646         (La_retval): Likewise.
4647         (int_retval): Likewise.
4648         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4649         macro.
4650         (pltexit): Likewise.
4651         (La_regs): Likewise.
4652         (La_retval): Likewise.
4653         (int_retval): Likewise.
4654         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4655         macro definitions in tst-audit.h.
4656         * sysdeps/i386/tst-audit.h: New file.
4657         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4658         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4659         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4660         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4661         * sysdeps/sh/tst-audit.h: Likewise.
4662         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4663         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4664         * sysdeps/x86_64/tst-audit.h: Likewise.
4665
4666 2012-07-26  Andreas Jaeger  <aj@suse.de>
4667
4668         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4669         ptrace.
4670
4671         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4672         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4673         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4674         PTRACE_O_MASK.
4675         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4676         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4677         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4678
4679         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4680         value.
4681
4682         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4683         _sigsys.
4684         (si_call_addr, si_syscall, si_arch): Define new macro.
4685         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4686         _sigsys.
4687         (si_call_addr, si_syscall, si_arch): Define new marcro.
4688         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4689         _sigsys.
4690         (si_call_addr, si_syscall, si_arch): Define new macro.
4691         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4692         _sigsys.
4693         (si_call_addr, si_syscall, si_arch): Define new macro.
4694
4695 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4696
4697         [BZ #13717]
4698         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4699         Change to 2.4.21 where previously 2.4.1.
4700         * sysdeps/unix/sysv/linux/configure: Regenerated.
4701         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4702         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4703         Linux kernel version.
4704         (__ASSUME_STD_AUXV): Remove.
4705         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4706         kernel version.
4707         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4708         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4709         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4710         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4711         (__ASSUME_NETLINK_SUPPORT): Likewise.
4712         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4713         (__no_netlink_support): Remove conditional definition.
4714         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4715         Remove.
4716         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4717         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4718         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4719         (if_nameindex_ioctl): Remove.
4720         (if_nameindex_netlink): Do not handle __no_netlink_support.
4721         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4722         code.
4723         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4724         Remove conditional code.
4725         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4726         code.
4727         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4728         unconditional.
4729         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4730         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4731         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4732         Remove.
4733         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4734         [!__ASSUME_STD_AUXV]: Remove conditional code.
4735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4736         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4737         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4739         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4740         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4741         code.
4742         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4744         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4745         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4746         conditional code.
4747         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4749         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4750         code.
4751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4752         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4753         conditional code.
4754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4755         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4756         code unconditional.
4757         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4758         conditional code.
4759         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4760         unconditional.
4761         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4762         conditional code.
4763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4764         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4765         unconditional.
4766         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4767         conditional code.
4768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4769         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4770         code unconditional.
4771         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4772         conditional code.
4773         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4774         unconditional.
4775         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4776         conditional code.
4777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4778         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4779         code unconditional.
4780         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4781         conditional code.
4782         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4783         unconditional.
4784         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4785         conditional code.
4786
4787 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4788
4789         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4790         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4791         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4792         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4793         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4794         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4795         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4796         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4797         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4798         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4799         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4800         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4801         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4802         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4803         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4804         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4805         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4806         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4807         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4808         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4809         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4810         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4811         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4812
4813 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4814
4815         * Versions.def: Add GLIBC_2.17.
4816         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4817         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4818         Introduce __libc_secure_getenv.
4819         * stdlib/Versions (2.17): Add secure_getenv
4820         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4821         * stdlib/secure-getenv.c: Rename __secure_getenv to
4822         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4823         symbol __secure_getenv for GLIBC_2.0.
4824         * stdlib/tst-secure-getenv.c: New.
4825         * stdlib/Makefile (tests): Add testcase.
4826         * manual/startup.texi (Environment Access): Document
4827         secure_getenv.
4828         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4829         __libc_secure_getenv.
4830         * inet/ruserpass.c (ruserpass): Likewise.
4831         * malloc/mtrace.c (mtrace): Likewise.
4832         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4833         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4834         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4835         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4836         HAVE_SECURE_GETENV.
4837         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4838         __secure_getenv to __libc_secure_getenv.
4839         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4841         Likewise.
4842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4843         Likewise.
4844         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4845         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4846         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4847         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4848         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4849         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4850         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4851
4852 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4853
4854         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4855         (struct La_i86_retval): Likewise.
4856         (struct La_x86_64_regs): Likewise.
4857         (struct La_x86_64_retval): Likewise.
4858         (struct La_x32_regs): Likewise.
4859         (struct La_x32_retval): Likewise.
4860         (struct La_ppc32_regs): Likewise.
4861         (struct La_ppc32_retval): Likewise.
4862         (struct La_ppc64_regs): Likewise.
4863         (struct La_ppc64_retval): Likewise.
4864         (struct La_sh_regs): Likewise.
4865         (struct La_sh_retval): Likewise.
4866         (struct La_s390_32_regs): Likewise.
4867         (struct La_s390_32_retval): Likewise.
4868         (struct La_s390_64_regs): Likewise.
4869         (struct La_s390_64_retval): Likewise.
4870         (struct La_sparc32_regs): Likewise.
4871         (struct La_sparc32_retval): Likewise.
4872         (struct La_sparc64_regs): Likewise.
4873         (struct La_sparc64_retval): Likewise.
4874         (struct audit_ifaces): Remove architecture-specific pltenter and
4875         pltexit members.
4876         * sysdeps/i386/ldsodefs.h: New file.
4877         * sysdeps/powerpc/ldsodefs.h: Likewise.
4878         * sysdeps/s390/ldsodefs.h: Likewise.
4879         * sysdeps/sh/ldsodefs.h: Likewise.
4880         * sysdeps/sparc/ldsodefs.h: Likewise.
4881         * sysdeps/x86_64/ldsodefs.h: Likewise.
4882
4883 2012-07-25  Marek Polacek  <polacek@redhat.com>
4884
4885         [BZ #6808]
4886         * math/libm-test.inc (yn_test): Add another test.
4887         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4888         to ERANGE when the result is +-Inf.
4889         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4890         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4891         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4892         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4893
4894 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4895
4896         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4897         equal to 0.
4898         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4899         clock_t.
4900         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4901
4902 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4903
4904         * configure.in <sysdeps resolving>: Correct printing
4905         Implies_before.
4906         * configure: Regenerate.
4907
4908 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4909
4910         * math/w_ilogb.c: Include <limits.h>.
4911         * math/w_ilogbl.c: Likewise.
4912
4913 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4914
4915         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4916         va_copy.  Document allowing for unavailable va_copy only as
4917         pre-C99 compatibility.
4918         * manual/string.texi (Copying and Concatenation): Use va_copy
4919         instead of __va_copy in concat example.
4920
4921 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4922
4923         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4924         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4925         it if not null.
4926
4927         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4928         with O_NOLINK passed to __file_name_lookup.
4929
4930         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4931         with O_NOLINK passed to __file_name_lookup.
4932
4933         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4934         negative N or less than NGIDS.
4935
4936         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4937         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4938         enough.  Use memcpy instead of strncpy.
4939
4940 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4941
4942         * elf/Makefile (check-data): Remove.
4943         (localplt.data): New vpath directive.
4944         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4945         instead of $(check-data).
4946         * scripts/data/localplt-generic.data: Move to ...
4947         * sysdeps/generic/localplt.data: ... here.
4948         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4949         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4950         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4952         ... here.
4953         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4955         ... here.
4956         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4957         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4958         ... here.
4959         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4960         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4961         ... here.
4962         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4963         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4964         ... here.
4965         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4966         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4967         ... here.
4968
4969 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4970
4971         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4972         PPC32 and PPC64 files.
4973         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4974         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4975
4976 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4977
4978         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4979         __makecontext_ret to ...
4980         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4981         ... here and call exit if uc_link is NULL.  New file.
4982         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4983         __makecontext_ret.S.
4984         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4985         __makecontext_ret to ...
4986         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4987         ... here and call exit if uc_link is NULL.  New file.
4988         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4989         __makecontext_ret.S.
4990
4991 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4992
4993         * elf/elf.h (R_390_IRELATIVE): New definition.
4994         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4995         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4996         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4997         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4998         (elf_machine_lazy_rel): Likewise.
4999         * sysdeps/s390/dl-irel.h: New file.
5000         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5001         * sysdeps/s390/s390-64/memset.S: New asm code.
5002         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5003         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5004         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5005         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5006         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5007         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5008         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5009         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5010         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5011         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5012         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5013         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5014         * sysdeps/s390/s390-32/memset.S: New asm code.
5015         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5016
5017 2012-07-17  Marek Polacek  <polacek@redhat.com>
5018
5019         [BZ #14349]
5020         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5021         * sysdeps/s390/s390-64/configure.in: Likewise.
5022         * sysdeps/sparc/configure.in: Likewise.
5023         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5024         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5025         * sysdeps/i386/configure.in: Likewise.
5026         * sysdeps/x86_64/configure.in: Likewise.
5027         * sysdeps/sh/configure.in: Likewise.
5028         * sysdeps/s390/s390-32/configure: Regenerated.
5029         * sysdeps/s390/s390-64/configure: Likewise.
5030         * sysdeps/x86_64/configure: Likewise.
5031         * sysdeps/sh/configure: Likewise.
5032         * sysdeps/powerpc/powerpc64/configure: Likewise.
5033         * sysdeps/powerpc/powerpc32/configure: Likewise.
5034         * sysdeps/sparc/configure: Likwise.
5035         * sysdeps/i386/configure: Likewise.
5036
5037         * elf/dl-open.c: Comment fixes.
5038
5039 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5040
5041         * Makefile [CXX] (check-data): Remove.
5042         [CXX] (c++-types.data): New vpath directive.
5043         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5044         vpath.  Do not allow for C++ type data being missing.
5045         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5046         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5047         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5048         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5049         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5050         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5051         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5053         ... here.
5054         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5056         ... here.
5057         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5058         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5059         ... here.
5060         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5061         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5062         ... here.
5063         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5064         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5065         ... here.
5066         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5067         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5068         ... here.
5069         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5070         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5071         ... here.
5072         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5073         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5074
5075         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5076         definitions to architecture-specific files.
5077         (TLS_IE): Likewise.
5078         (TLS_LD): Likewise.
5079         (TLS_GD): Likewise.
5080         * sysdeps/i386/tls-macros.h: New file.
5081         * sysdeps/powerpc/tls-macros.h: Likewise.
5082         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5083         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5084         * sysdeps/sh/tls-macros.h: Likewise.
5085         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5086         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5087         * sysdeps/x86_64/tls-macros.h: Likewise.
5088
5089 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5090
5091         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5092         zero value for regular exit case.
5093
5094         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5095         (__start_context): Preserve zero value for regular exit case.
5096
5097 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5098             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5099
5100         * manual/setjmp.texi (setcontext): Clarify normal process
5101         termination when uc_link is the null pointer.
5102         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5103         exit call.
5104
5105 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5106
5107         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5108         preprocessor.  Test for each exception mask separately.
5109
5110 2012-07-16  Andreas Jaeger  <aj@suse.de>
5111
5112         * po/ru.po: Update from translation team.
5113
5114 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5115
5116         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5117         equal to 0.
5118         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5119         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5120         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5121         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5122         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5123
5124 2012-07-13  Andreas Jaeger  <aj@suse.de>
5125
5126         * po/fr.po: Update from translation team.
5127
5128 2012-07-12  Marek Polacek  <polacek@redhat.com>
5129
5130         [BZ #14173]
5131         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5132         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5133         loop condition.
5134
5135 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5136
5137         [BZ #13717]
5138         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5139         Change to 2.4.1 where previously 2.4.0.
5140         * sysdeps/unix/sysv/linux/configure: Regenerated.
5141         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5142         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5143         version.
5144         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5145         (__ASSUME_AT_CLKTCK): Remove.
5146         (__ASSUME_AT_PAGESIZE): Likewise.
5147         (__ASSUME_AT_XID): Likewise.
5148         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5149         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5150         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5151         unconditionally.
5152         (HAVE_AUX_PAGESIZE): Likewise.
5153         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5154         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5155         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5156
5157 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5158
5159         [BZ #14307]
5160         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5161         the temporary buffer used to invoke __gethostbyname2_r,
5162         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5163         host_data / struct gaih_addrtuple.
5164         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5165         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5166         header file nss/nsswitch.h.
5167         * nss/nsswitch.h (global scope): Add definition of implementation
5168         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5169         resolv/nss_dns/dns-host.c).
5170
5171 2012-07-11  Andreas Jaeger  <aj@suse.de>
5172
5173         * po/fr.po: Update from translation team.
5174
5175         * po/sv.po: Update from translation team
5176         * po/fr.po: Another update from translation team.
5177
5178 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5179
5180         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5181         for subnormals or multiply small sinh result by itself.
5182         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5183         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5184
5185 2012-07-11  David S. Miller  <davem@davemloft.net>
5186
5187         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5188
5189 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5190
5191         [BZ #14347]
5192         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5193         (INTERNAL_MARK): Shift it here.
5194
5195 2012-07-10  Marek Polacek  <polacek@redhat.com>
5196
5197         [BZ #14151]
5198         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5199         libc_cv_asm_global_directive with .globl.
5200         * configure: Regenerated.
5201         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5202         with .globl.
5203         * sysdeps/i386/configure: Regenerated.
5204         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5205         with .globl.
5206         * sysdeps/x86_64/configure: Regenerated.
5207         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5208         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5209         * elf/tst-unique2mod2.c: Likewise.
5210         * elf/tst-unique2mod1.c: Likewise.
5211         * elf/tst-unique1mod2.c: Likewise.
5212         * elf/tst-unique1mod1.c: Likewise.
5213         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5214         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5215         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5216         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5217         * sysdeps/mach/sysdep.h: Likewise.
5218         * sysdeps/i386/sysdep.h: Likewise.
5219         * sysdeps/i386/i386-mcount.S: Likewise.
5220         * sysdeps/x86_64/_mcount.S: Likewise.
5221         * sysdeps/x86_64/sysdep.h: Likewise.
5222         * sysdeps/sh/_mcount.S: Likewise.
5223         * sysdeps/sh/sysdep.h: Likewise.
5224         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5225         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5226         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5227         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5228         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5229         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5230         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5231         * locale/localeinfo.h: Likewise.
5232         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5233         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5234
5235 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5236
5237         [BZ #14336]
5238         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5239         system".
5240         * manual/message.texi (The Uniforum approach): Likewise.
5241         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5242         (glibc iconv Implementation): Likewise.
5243
5244 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5245
5246         [BZ #14337]
5247         * math/s_clog.c (__clog): Avoid scaling a value down where that
5248         could result in underflow.
5249         * math/s_clog10.c (__clog10): Likewise.
5250         * math/s_clog10f.c (__clog10f): Likewise.
5251         * math/s_clog10l.c (__clog10l): Likewise.
5252         * math/s_clogf.c (__clogf): Likewise.
5253         * math/s_clogl.c (__clogl): Likewise.
5254         * math/libm-test.inc (clog_test): Add more tests.
5255         (clog10_test): Likewise.
5256         * sysdeps/i386/fpu/libm-test-ulps: Update.
5257         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5258
5259 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5260
5261         [BZ #14283]
5262         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5263         by 7 not 8 to examine high bit of fractional part.
5264
5265         [BZ #14042]
5266         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5267         for call to __mcount_internal.
5268         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5269         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5270         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5271
5272 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5273
5274         [BZ #14154]
5275         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5276         approximation for values within 0x1p-13f of an odd multiple of
5277         pi/4.
5278         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5279         exception.  Add more tests.
5280         * sysdeps/i386/fpu/libm-test-ulps: Update.
5281
5282         [BZ #6778]
5283         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5284         inputs and return -1 for them.  Do not check for +Inf in case not
5285         reachable for +Inf.
5286         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5287         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5288         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5289         and return -1 for them.  Do not check for +Inf in case not
5290         reachable for +Inf.
5291         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5292         define.
5293         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5294         and return -1 for them.  Do not check for +Inf in case not
5295         reachable for +Inf.
5296         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5297         spurious underflow.
5298         * sysdeps/i386/fpu/libm-test-ulps: Update.
5299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5300
5301 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5302
5303         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5304
5305 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5306
5307         [BZ #14157]
5308         [BZ #14331]
5309         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5310         could result in spurious underflow.  Scale down values above
5311         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5312         * math/s_csqrtf.c (__csqrtf): Likewise.
5313         * math/s_csqrtl.c (__csqrtl): Likewise.
5314         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5315         spurious underflow.
5316         * sysdeps/i386/fpu/libm-test-ulps: Update.
5317         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5318
5319 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5320
5321         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5322         xopen-msg.sed.
5323         * catgets/xopen-msg.awk: New file.
5324         * catgets/xopen-msg.sed: Removed.
5325
5326         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5327         po2text.sed.
5328         * intl/po2test.awk: New file.
5329         * intl/po2test.sed: Removed.
5330
5331 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5332
5333         [BZ #14328]
5334         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5335         or multiply small sinh result by itself.
5336         * math/s_ctanf.c (__ctanf): Likewise.
5337         * math/s_ctanh.c (__ctanh): Likewise.
5338         * math/s_ctanhf.c (__ctanhf): Likewise.
5339         * math/s_ctanhl.c (__ctanhl): Likewise.
5340         * math/s_ctanl.c (__ctanl): Likewise.
5341         * math/libm-test.inc (ctan_test_tonearest): New function.
5342         (ctan_test_towardzero): Likewise.
5343         (ctan_test_downward): Likewise.
5344         (ctan_test_upward): Likewise.
5345         (ctanh_test_tonearest): Likewise.
5346         (ctanh_test_towardzero): Likewise.
5347         (ctanh_test_downward): Likewise.
5348         (ctanh_test_upward): Likewise.
5349         (main): Call these new functions.
5350         * sysdeps/i386/fpu/libm-test-ulps: Update.
5351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5352
5353 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5354
5355         * .gitignore: Delete /ports entry.
5356
5357 2012-07-03  Andreas Jaeger  <aj@suse.de>
5358
5359         * po/bg.po: Update from translation team.
5360         * po/cs.po: Likewise.
5361         * po/de.po: Likewise.
5362         * po/hr.po: Likewise.
5363         * po/nl.pl: Likewise.
5364         * po/pl.po: Likewise.
5365         * po/vi.po: Likewise.
5366
5367 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5368
5369         * Makeconfig [!+link] (+link-before-libc): New variable.
5370         [!+link] (+link-after-libc): Likewise.
5371         [!+link] (+link-tests): Likewise.
5372         [!+link] (+link): Define in terms of $(+link-before-libc) and
5373         $(+link-after-libc).
5374         [!+link-static] (+link-static-before-libc): New variable.
5375         [!+link-static] (+link-static-after-libc): Likewise.
5376         [!+link-static] (+link-static-tests): Likewise.
5377         [!+link-static] (+link-static): Define in terms of
5378         $(+link-static-before-libc) and $(+link-static-after-libc).
5379         [build-shared] (link-libc-before-gnulib): New variable.
5380         [build-shared] (link-libc-tests): Likewise.
5381         [build-shared] (link-libc): Define in terms of
5382         $(link-libc-before-gnulib).
5383         [!build-shared] (link-libc-tests): New variable.
5384         (link-libc-static-tests): New variable.
5385         [!gnulib] (gnulib-arch): New variable.
5386         [!gnulib] (gnulib-tests): Likewise.
5387         [!gnulib] (static-gnulib-arch): Likewise.
5388         [!gnulib] (static-gnulib-tests): Likewise.
5389         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5390         Define with "=" instead of ":=".
5391         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5392         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5393         * Rules (binaries-all-notests): New variable.
5394         (binaries-all-tests): Likewise.
5395         (binaries-static-notests): Likewise.
5396         (binaries-static-tests): Likewise.
5397         (binaries-all): Define using $(binaries-all-notests) and
5398         $(binaries-all-tests).
5399         (binaries-static): Define using $(binaries-static-notests) and
5400         $(binaries-static-tests).
5401         (binaries-shared-tests): New variable.
5402         (binaries-shared-notests): Likewise.
5403         (binaries-shared): Remove variable.
5404         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5405         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5406         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5407         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5408         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5409         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5410         * elf/Makefile (sln-modules): New variable.
5411         (extra-objs): Add $(sln-modules:=.o).
5412         (ldconfig-modules): Add static-stubs.
5413         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5414         * elf/static-stubs.c: New file.
5415
5416         [BZ #14283]
5417         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5418         by 7 not 8 to examine high bit of fractional part.  Use volatile
5419         variables when splitting into final array of floats if
5420         __FLT_EVAL_METHOD__ != 0.
5421         * math/libm-test.inc (cos_test): Add another test.
5422         (sin_test): Likewise.
5423         * sysdeps/i386/fpu/libm-test-ulps: Update.
5424
5425         [BZ #14273]
5426         * math/libm-test.inc (cosh_test): Add more tests.
5427
5428         * version.h (RELEASE): Set to "development".
5429         (VERSION): Set to "2.16.90".
5430
5431 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5432
5433         * NEWS: Update copyright. Remove last-updated date.
5434         Mention math library bug fixes and timezone data changes.
5435         * README: Mention GNU/Hurd, x32, and HPPA support status.
5436
5437 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5438
5439         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5440
5441 2012-06-27  Andreas Jaeger  <aj@suse.de>
5442
5443         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5444
5445 2012-06-25  Andreas Jaeger  <aj@suse.de>
5446
5447         * sysdeps/s390/fpu/libm-test-ulps: Update.
5448
5449 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5450             Thomas Schwinge  <thomas@codesourcery.com>
5451
5452         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5453         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5454         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5455         fanotify_mark.
5456
5457 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5458
5459         * sysdeps/mach/start.c: Remove file.
5460         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5461         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5462         * sysdeps/sh/init-first.c: Likewise.
5463
5464         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5465         registers for frame unwinding purposes, add CFI directives.
5466         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5467         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5468         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5469         Likewise.
5470
5471         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5472         __fortify_fail returning.
5473         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5474
5475         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5476         sysdeps/sh/____longjmp_chk.S.
5477         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5478         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5479         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5480         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5481
5482         * sysdeps/sh/abort-instr.h: New file.
5483         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5484         process in case exit returns.
5485
5486         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5487         initialize the GOT register before use.
5488
5489         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5490         calculation of ARGC > 4.
5491
5492         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5493         meaningful names to some local labels.
5494
5495 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5496             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5497
5498         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5499         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5500         (__arch_compare_and_exchange_val_16_acq): Likewise.
5501         (__arch_compare_and_exchange_val_32_acq): Likewise.
5502         (atomic_exchange_and_add): Fix gUSA sequence.
5503         (atomic_add): Likewise.
5504         (atomic_add_negative): Likewise.
5505         (atomic_add_zero): Likewise.
5506         (atomic_bit_test_set): Likewise.
5507
5508 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5509
5510         [BZ #13579]
5511         * include/link.h (struct link_map): Add l_free_initfini.
5512         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5513         l_initfini.
5514         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5515         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5516         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5517         set.
5518
5519 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5520
5521         * configure.in: Use AC_LANG_SOURCE.
5522         * configure: Regenerate.
5523
5524 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5525
5526         * configure.in (libc_cv_localstatedir): New substituted variable.
5527         * configure: Regenerated.
5528         * config.make.in (localstatedir): New variable, substituted from
5529         libc_cv_localstatedir.
5530         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5531         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5532         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5533         * sysdeps/gnu/configure: Regenerated.
5534
5535 2012-06-21  Jeff Law  <law@redhat.com>
5536
5537         [BZ #14277]
5538         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5539         free.  Simplify list management for _LIBC case.
5540
5541 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5542
5543         [BZ #14273]
5544         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5545         Clear sign bit of 64-bit integer value before comparing against
5546         overflow value.
5547
5548         * sysdeps/mach/configure: Regenerated.
5549
5550 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5551
5552         [BZ #14278]
5553         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5554
5555 2012-06-21  Jeff Law  <law@redhat.com>
5556
5557         [BZ #13882]
5558         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5559         uint16_t for elements in the "seen" array to avoid char overflows.
5560         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5561         * elf/dl-open.c (dl_open_worker): Likewise.
5562
5563 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5564
5565         * scripts/list-sources.sh: Scan PORTS for translations.
5566         * po/libc.pot: Regenerated.
5567
5568 2012-06-21  Andreas Jaeger  <aj@suse.de>
5569
5570         [BZ #12194]
5571         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5572         warning.
5573         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5574         * bits/byteswap-16.h (__bswap_16): Likewise.
5575         * bits/byteswap.h (__bswap_constant_16): Likewise.
5576
5577 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5578
5579         [BZ #14117]
5580         * sysdeps/i386/fpu_control.h: Removed.
5581         * sysdeps/x86_64/fpu_control.h: Moved to ...
5582         * sysdeps/x86/fpu_control.h: Here.
5583
5584         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5585         (_FPU_SETCW): Likewise.
5586
5587 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5588
5589         [BZ #14117]
5590         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5591         * sysdeps/x86/fpu/bits/mathinline.h: This.
5592         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5593
5594         [BZ #14050]
5595         [BZ #14117]
5596         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5597         functions if __x86_64__ is defined.
5598
5599 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5600
5601         * string/endian.h: Add !__ASSEMBLER__ condition for including
5602         conversion interfaces.
5603
5604 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5605
5606         [BZ #14241]
5607         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5608         of ABS(x) in calculating zero to negative powers other than odd
5609         integers.
5610         * math/libm-test.inc (pow_test): Add more tests.
5611
5612 2012-06-15  Andreas Jaeger  <aj@suse.de>
5613
5614         * manual/contrib.texi (Contributors): Update entry of Liubov
5615         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5616         Machado Filho.
5617
5618 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5619
5620         * string/string.h: Add __wur to GNU version of strerror_r.
5621
5622 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5623
5624         [BZ #14229]
5625         * string/Makefile (tests): Add tst-strtok_r.
5626         * string/tst-strtok_r.c: New file.
5627         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5628         RAX_LP/RDX_LP on SAVE_PTR.
5629
5630 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5631
5632         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5633
5634 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5635
5636         * libm_test.inc (csqrt_test): Allow more spurious underflow
5637         exceptions.
5638         (j0_test): Likewise.
5639         (j1_test): Likewise.
5640         (y0_test): Likewise.
5641         (y1_test): Likewise.
5642
5643 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5644
5645         * po/Makefile (libc.pot): Use UTF-8 charset.
5646
5647 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5648
5649         [BZ #14210]
5650         Suppress sign-conversion warning from FD_SET.
5651         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5652         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5653         not unsigned long int.
5654         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5655
5656 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5657
5658         [BZ #14050]
5659         [BZ #14117]
5660         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5661         __extern_always_inline instead of __extern_inline.
5662         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5663         (__signbit): Likewise.
5664         (__signbitl): Support C++ namespace.
5665         (lrintf): New inline function.
5666         (lrint): Likewise.
5667         (llrintf): Likewise.
5668         (llrint): Likewise.
5669         (fmaxf): Likewise.
5670         (fmax): Likewise.
5671         (fminf): Likewise.
5672         (fmin): Likewise.
5673         (rint): Likewise.
5674         (rintf): Likewise.
5675         (ceil): Likewise.
5676         (ceilf): Likewise.
5677         (floor): Likewise.
5678         (floorf): Likewise.
5679         (nearbyint): Likewise.
5680         (nearbyintf): Likewise.
5681
5682 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5683
5684         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5685         non-default versions.
5686
5687 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5688
5689         [BZ #14218]
5690         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5691
5692 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5693
5694         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5695         (FE_UPWARD, FE_DOWNWARD): Don't define.
5696         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5697         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5698
5699         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5700         reading it.
5701         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5702         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5703
5704 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5705
5706         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5707         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5708         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5709         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5710
5711 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5712
5713         [BZ #14117]
5714         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5715         * sysdeps/i386/fpu/Implies: New file.
5716         * sysdeps/x86_64/fpu/Implies: Likewise.
5717         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5718         * sysdeps/x86/fpu/bits/fenv.h: This.
5719
5720         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5721         __SSE_MATH__.
5722
5723 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5724
5725         [BZ #14134]
5726         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5727         character 0xffff that matches the last element of the
5728         conversion table.
5729
5730 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5731
5732         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5733         fmodl commit.
5734
5735 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5736
5737         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5738         values higher than 25.6283.
5739
5740 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5741
5742         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5743         subnormal exponent extraction and add some __builtin_expect.
5744         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5745         Fix for subnormal mantissa calculation.
5746
5747 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5748
5749         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5750         cpu2 is -1 and errno is not ENOSYS.
5751
5752 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5753
5754         [BZ #14117]
5755         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5756         * sysdeps/x86/bits/string.h: This.
5757         * sysdeps/x86_64/bits/string.h: Removed.
5758
5759         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5760         if not compiling for x86-64, but compiling for >= i486.
5761
5762         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5763         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5764
5765         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5766         New macro from Linux kernel 3.4.0.
5767         (FP_XSTATE_MAGIC2): Likewise.
5768         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5769         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5770         (struct _fpx_sw_bytes): New struct.
5771         (struct _xsave_hdr): Likewise.
5772         (struct _ymmh_state): Likewise.
5773         (struct _xstate): Likewise.
5774
5775         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5776         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5777         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5778         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5779         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5780         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5781
5782         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5783         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5784         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5785         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5786         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5787         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5788
5789 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5790
5791         [BZ #13743]
5792         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5793         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5794         (sysdep_headers): Include sys/platform/ppc.h.
5795         * sysdeps/powerpc/test-gettimebase.c: Test for
5796         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5797         * manual/Makefile (appendices): Include platform.texi.
5798         * manual/contrib.texi (Contributors): Update @node pointers.
5799         * manual/maint.texi (Maintenance): Likewise.
5800         (Platform): New node.
5801         * manual/platform.texi: New file.  Document the new features.
5802
5803 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5804             Jakub Jelinek  <jakub@redhat.com>
5805
5806         [BZ #14188]
5807         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5808         where __builtin_expect is unavailable.
5809
5810 2012-06-03  David S. Miller  <davem@davemloft.net>
5811
5812         * stdlib/longlong.h: Updated from GCC.
5813
5814 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5815
5816         [BZ #14042]
5817         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5818         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5819         __mcount_internal.
5820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5821         (GLIBC_2.16): Likewise.
5822
5823 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5824
5825         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5826
5827 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5828
5829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5830         (default-abi): New variable.
5831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5832         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5833         variable.
5834         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5835         Likewise.
5836         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5837         Likewise.
5838         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5839         Likewise.
5840
5841         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5842         definition.  Document in comment.
5843
5844 2012-06-01  David S. Miller  <davem@davemloft.net>
5845
5846         * stdlib/longlong.h: Updated from GCC.
5847
5848 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5849
5850         [BZ #14117]
5851         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5852         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5853         sys/debugreg.h sys/io.h here.
5854         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5855         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5856         sys/io.h.
5857         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5858         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5859         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5860         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5861         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5862         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5863
5864         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5865         Define only if __x86_64__ is defined.
5866
5867 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5868
5869         [BZ #14048]
5870         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5871         Use int64_t for variable i.
5872         * math/libm-test.inc (fmod_test): Add more tests.
5873
5874         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5875         z computation is not scheduled after fetestexcept.
5876         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5877         Use math_force_eval instead of asm to ensure calculation scheduled
5878         before exception test.
5879         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5880         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5881
5882 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5883
5884         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5885         computation is not scheduled after fetestexcept.
5886
5887 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5888
5889         [BZ #14117]
5890         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5891         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5892
5893 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5894
5895         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5896         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5897
5898 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5899
5900         [BZ #14117]
5901         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5902         <bits/wordsize.h>.
5903         (__WCHAR_MIN): Support __WORDSIZE == 64.
5904         (__WCHAR_MAX): Likewise.
5905
5906         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5907         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5908
5909         [BZ #14183]
5910         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5911         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5912
5913         [BZ #14117]
5914         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5915         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5916
5917         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5918         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5919
5920         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5921         Defined to 1 if __x86_64__ isn't defined.
5922         (_STAT_VER_LINUX_OLD): New.
5923         (st_atime): Remove duplicate.
5924         (st_mtime): Likewise.
5925         (st_ctime): Likewise.
5926
5927 2012-05-31  David S. Miller  <davem@davemloft.net>
5928
5929         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5930         entries.
5931
5932 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5933
5934         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5935         gen-libm-test.pl.
5936
5937         [BZ #14132]
5938         * elf/dl-reloc.c: Include <_itoa.h>.
5939         (_dl_reloc_bad_type): Remove use of INTUSE.
5940         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5941         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5942         * stdio-common/psiginfo.c (psiginfo): Likewise.
5943         * stdio-common/psignal.c (psignal): Likewise.
5944         * string/strsignal.c (strsignal): Likewise.
5945         * include/signal.h (_sys_siglist): Declare hidden proto.
5946         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5947         INTVARDEF with libc_hidden_data_def.
5948         * stdio-common/itoa-udigits.c: Likewise.
5949         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5950         (_itoa_lower_digits_internal): Remove declaration.
5951         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5952         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5953         (_sys_sigabbrev_internal): Remove aliases.
5954         (_sys_siglist): Define hidden alias.
5955
5956 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5957
5958         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5959         bits/sysctl.h.
5960
5961 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5962
5963         [BZ #14117]
5964         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5965         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5966
5967         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5968         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5969         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5970         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5971         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5972         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5973
5974         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5975         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5976         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5977
5978         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5979         with __addr.
5980         (insw): Likewise.
5981         (insl): Likewise.
5982         (outsb): Likewise.
5983         (outsw): Likewise.
5984         (outsl): Likewise.
5985
5986         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5987         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5988         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5989
5990         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5991         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5992         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5993         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5994         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5995         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5996
5997         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5998         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5999
6000         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6001         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6002
6003         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6004         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6005         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6006
6007         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6008         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6009         to ...
6010         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6011
6012         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6013         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6014         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6015
6016         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6017         for x86-64.
6018         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6019
6020 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6021
6022         * math/math.h (M_El): Use two more decimal places.
6023         (M_LOG2El): Likewise.
6024         (M_LOG10El): Likewise.
6025         (M_LN2l): Likewise.
6026         (M_LN10l): Likewise.
6027         (M_PIl): Likewise.
6028         (M_PI_2l): Likewise.
6029         (M_PI_4l): Likewise.
6030         (M_1_PIl): Likewise.
6031         (M_2_PIl): Likewise.
6032         (M_2_SQRTPIl): Likewise.
6033         (M_SQRT2l): Likewise.
6034         (M_SQRT1_2l): Likewise.
6035
6036 2012-05-31  David S. Miller  <davem@davemloft.net>
6037
6038         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6039         values between float registers.
6040         * sysdeps/sparc/sparc64/memset.S: Likewise.
6041         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6042
6043 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6044
6045         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6046         -D_FORTIFY_SOURCE=1.
6047         (CPPFLAGS-tst-longjmp_chk.c): Define.
6048         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6049         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6050         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6051         CFLAGS-tst-wchar-h.c.
6052
6053 2012-05-31  Marek Polacek  <polacek@redhat.com>
6054
6055         [BZ #14132]
6056         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6057         __endmntent_internal): Remove declaration.
6058         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6059         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6060         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6061
6062 2012-05-30  David S. Miller  <davem@davemloft.net>
6063
6064         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6065         (___Q_simulate_exceptions): Use real FP ops rather than writing
6066         into the %fsr.
6067         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6068         Likewise.
6069
6070 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6071
6072         [BZ #14117]
6073         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6074         * sysdeps/x86/bits/xtitypes.h: This.
6075
6076         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6077         * sysdeps/x86/bits/wordsize.h: This.
6078
6079         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6080         * sysdeps/x86/bits/huge_vall.h: This.
6081
6082         * sysdeps/i386/bits/select.h: Removed.
6083         * sysdeps/x86_64/bits/select.h: Renamed to ...
6084         * sysdeps/x86/bits/select.h: This.
6085
6086         * sysdeps/i386/bits/setjmp.h: Removed.
6087         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6088         * sysdeps/x86/bits/setjmp.h: This.
6089
6090         * sysdeps/i386/bits/mathdef.h: Removed.
6091         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6092         * sysdeps/x86/bits/mathdef.h: This.
6093
6094 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6095
6096         [BZ #14132]
6097         * include/sys/socket.h (__connect_internal)
6098         (__libc_sa_len_internal): Remove declaration.
6099         (__connect, __libc_sa_len): Declare hidden_proto.
6100         (SA_LEN): Remove use of INTUSE.
6101         * socket/connect.c: Add libc_hidden_def.
6102         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6103         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6104         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6105         alias.
6106         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6107         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6108         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6109         of adding _internal alias.
6110
6111 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6112
6113         [BZ #14117]
6114         * sysdeps/i386/bits/link.h: Removed.
6115         * sysdeps/i386/bits/linkmap.h: Likewise.
6116         * sysdeps/x86_64/bits/link.h: Renamed to ...
6117         * sysdeps/x86/bits/link.h: This.
6118         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6119         * sysdeps/x86/bits/linkmap.h: This.
6120
6121         * sysdeps/i386/bits/endian.h: Removed.
6122         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6123         * sysdeps/x86/bits/endian.h: This.
6124
6125         * sysdeps/i386/bits/byteswap.h: Removed.
6126         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6127         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6128         * sysdeps/x86/bits/byteswap.h: This.
6129         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6130         * sysdeps/x86/bits/byteswap-16.h: This.
6131         * sysdeps/i386/Implies: Add x86.
6132         * sysdeps/x86_64/Implies: Likewise.
6133
6134 2012-05-30  David S. Miller  <davem@davemloft.net>
6135
6136         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6137         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6138         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6139         (FP_TRAPPING_EXCEPTIONS): Define.
6140         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6141         (FP_TRAPPING_EXCEPTIONS): Define.
6142         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6143         subnormals only when inexact has been signalled or underflow
6144         exceptions are enabled.
6145         (_FP_PACK_CANONICAL): Likewise.
6146
6147 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6148
6149         [BZ #14183]
6150         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6151         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6152
6153 2012-05-30  Richard Henderson  <rth@twiddle.net>
6154
6155         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6156         with #ifndef NOT_IN_libc.
6157
6158         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6159         marked to avoid plt entry.
6160
6161 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6162
6163         [BZ #14112]
6164         * Makeconfig (default-abi): New macro.
6165         (abi-includes): Likewise.
6166         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6167         $(abi-$(default-abi)-lib-soname) for soname if defined.
6168         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6169         abi-variants.
6170         * Makefile (installed-stubs): Likewise.
6171         * include/stubs-biarch.h: Removed.
6172         * scripts/lib-names.awk: Only handle one library at a time.
6173         * scripts/soversions.awk: Remove WORDSIZE support.
6174         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6175         entries.
6176         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6177         Removed.
6178         (syscall-list-default-condition): Likewise.
6179         (syscall-list-default-condition): Likewise.
6180         (syscall-list-includes): Likewise.
6181         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6182         syscall-list-* with abi-*.  Handle undefined abi-variants.
6183         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6184         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6185         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6186         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6187         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6188         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6189         Removed.
6190         (syscall-list-32-options): Likewise.
6191         (syscall-list-32-condition): Likewise.
6192         (syscall-list-64-options): Likewise.
6193         (syscall-list-64-condition): Likewise.
6194         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6195         macro.
6196         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6197         Renamed to ...
6198         (abi-*): This.
6199         (abi-64-ld-soname): New macro.
6200         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6201         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6202         Renamed to ...
6203         (abi-*): This.
6204         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6205         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6206
6207 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6208
6209         * sysdeps/unix/sysv/linux/kernel-features.h
6210         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6211         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6212         include <kernel-features.h>.
6213         [!__NR_ftruncate64]: Remove conditional code.
6214         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6215         [__NR_ftruncate64]: Make code unconditional.
6216         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6217         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6218         include <kernel-features.h>.
6219         [!__NR_ftruncate64]: Remove conditional code.
6220         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6221         [__NR_ftruncate64]: Make code unconditional.
6222         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6224         include <kernel-features.h>.
6225         [!__NR_ftruncate64]: Remove conditional code.
6226         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6227         [__NR_ftruncate64]: Make code unconditional.
6228         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6230         include <kernel-features.h>.
6231         [!__NR_ftruncate64]: Remove conditional code.
6232         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6233         [__NR_ftruncate64]: Make code unconditional.
6234         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6235
6236         * configure.in (libc_cv_fpie): Weaken to a compile test using
6237         LIBC_TRY_CC_OPTION.
6238         * configure: Regenerated.
6239
6240 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6241
6242         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6243         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6244         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6245         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6246         Refreshed.
6247         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6248         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6249         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6250         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6251         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6252         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6253         Refreshed.
6254
6255 2012-05-27  David S. Miller  <davem@davemloft.net>
6256
6257         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6258         (___Q_zero): New.
6259         (__Q_simulate_exceptions): Return void.  Change to simulate
6260         exceptions by writing into the %fsr.
6261         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6262         (__Qp_handle_exceptions): Likewise.
6263         (numbers): Delete.
6264         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6265         __Qp_handle_exceptions.
6266         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6267         __Qp_handle_exceptions.
6268         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6269         as unused and give dummy FP_RND_NEAREST initializer.
6270         (FP_INHIBIT_RESULTS): Define.
6271         (___Q_simulate_exceptions): Update declaration.
6272         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6273         formatting.
6274         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6275         as unused and give dummy FP_RND_NEAREST initializer.
6276         (__Qp_handle_exceptions): Update declaration.
6277         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6278         formatting.
6279
6280 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6281
6282         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6283         the temporary FPU control word.
6284         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6285         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6286         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6287         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6288         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6289         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6290         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6291         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6292         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6293         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6294         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6295
6296 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6297
6298         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6299         fields.
6300
6301 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6302
6303         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6304         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6305         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6306         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6307         Likewise.
6308         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6309         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6310         Likewise.
6311
6312 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6313
6314         * po/h.po: Update from translation team.
6315
6316 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6317
6318         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6319
6320         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6321         handling of denormals.
6322         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6323         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6324         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6325         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6326         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6327         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6328         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6329         Likewise.
6330
6331 2012-05-26  Marek Polacek  <polacek@redhat.com>
6332
6333         [BZ #14152]
6334         * math/libm-test.inc (fma_test): Don't always expect underflow
6335         exception.
6336
6337 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6338
6339         [BZ #12416]
6340         * elf/tst-execstack.c: Include stackinfo.h.
6341         (do_test): Adjust test case to ensure that pthread_getattr_np
6342         behaviour remains the same after marking stack executable.
6343
6344 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6345
6346         * sysdeps/unix/sysv/linux/kernel-features.h
6347         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6348         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6349         kernel-features.h.
6350         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6351         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6352         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6353         kernel-features.h.
6354         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6355         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6356
6357 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6358
6359         * configure.in: Define the default includes to being none.
6360         * configure: Regenerated.
6361
6362 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6363
6364         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6365         * sysdeps/x86_64/setjmp.S: Likewise.
6366         * sysdeps/i386/bsd-setjmp.S: Likewise.
6367         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6368         * sysdeps/i386/setjmp.S: Likewise.
6369         * sysdeps/i386/__longjmp.S: Likewise.
6370         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6371         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6372
6373         * include/stap-probe.h: New file.
6374         * configure.in: Handle --enable-systemtap.
6375         * configure: Regenerated.
6376         * config.h.in (USE_STAP_PROBE): New #undef.
6377         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6378         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6379         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6380
6381 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6382
6383         [BZ #13717]
6384         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6385         to 2.4.0 where earlier.
6386         * sysdeps/unix/sysv/linux/configure: Regenerated.
6387         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
6396         [__ASSUME_32BITUIDS]: Make code unconditional.
6397         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6398         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6399         <kernel-features.h>.
6400         [__ASSUME_32BITUIDS]: Make code unconditional.
6401         [!__ASSUME_32BITUIDS]: Remove conditional code.
6402         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
6403         <kernel-features.h>.
6404         [__ASSUME_32BITUIDS]: Make code unconditional.
6405         [!__ASSUME_32BITUIDS]: Remove conditional code.
6406         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
6407         <kernel-features.h>.
6408         [__ASSUME_32BITUIDS]: Make code unconditional.
6409         [!__ASSUME_32BITUIDS]: Remove conditional code.
6410         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
6411         <kernel-features.h>.
6412         [__ASSUME_32BITUIDS]: Make code unconditional.
6413         [!__ASSUME_32BITUIDS]: Remove conditional code.
6414         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
6415         <kernel-features.h>.
6416         [__ASSUME_32BITUIDS]: Make code unconditional.
6417         [!__ASSUME_32BITUIDS]: Remove conditional code.
6418         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
6419         <kernel-features.h>.
6420         [__ASSUME_32BITUIDS]: Make code unconditional.
6421         [!__ASSUME_32BITUIDS]: Remove conditional code.
6422         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
6423         <kernel-features.h>.
6424         [__ASSUME_32BITUIDS]: Make code unconditional.
6425         [!__ASSUME_32BITUIDS]: Remove conditional code.
6426         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
6427         <kernel-features.h>.
6428         [__ASSUME_32BITUIDS]: Make code unconditional.
6429         [!__ASSUME_32BITUIDS]: Remove conditional code.
6430         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
6431         <kernel-features.h>.
6432         [__ASSUME_32BITUIDS]: Make code unconditional.
6433         [!__ASSUME_32BITUIDS]: Remove conditional code.
6434         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
6435         <kernel-features.h>.
6436         [__ASSUME_32BITUIDS]: Make code unconditional.
6437         [!__ASSUME_32BITUIDS]: Remove conditional code.
6438         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6439         <kernel-features.h>.
6440         [__NR_setresgid] (__setresgid): Do not declare.
6441         [__ASSUME_32BITUIDS]: Make code unconditional.
6442         [!__ASSUME_32BITUIDS]: Remove conditional code.
6443         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6444         <kernel-features.h>.
6445         [__NR_setresuid] (__setresuid): Do not declare.
6446         [__ASSUME_32BITUIDS]: Make code unconditional.
6447         [!__ASSUME_32BITUIDS]: Remove conditional code.
6448         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6449         <kernel-features.h>.
6450         [__ASSUME_32BITUIDS]: Make code unconditional.
6451         [!__ASSUME_32BITUIDS]: Remove conditional code.
6452         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6453         <kernel-features.h>.
6454         [__ASSUME_32BITUIDS]: Make code unconditional.
6455         [!__ASSUME_32BITUIDS]: Remove conditional code.
6456         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6457         <kernel-features.h>.
6458         [__ASSUME_32BITUIDS]: Make code unconditional.
6459         [!__ASSUME_32BITUIDS]: Remove conditional code.
6460         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6461         <kernel-features.h>.
6462         [__ASSUME_32BITUIDS]: Make code unconditional.
6463         [!__ASSUME_32BITUIDS]: Remove conditional code.
6464         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6465         <kernel-features.h>.
6466         [__ASSUME_32BITUIDS]: Make code unconditional.
6467         [!__ASSUME_32BITUIDS]: Remove conditional code.
6468         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6469         <kernel-features.h>.
6470         [__ASSUME_32BITUIDS]: Make code unconditional.
6471         [!__ASSUME_32BITUIDS]: Remove conditional code.
6472         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6473         <kernel-features.h>.
6474         [__ASSUME_32BITUIDS]: Make code unconditional.
6475         [!__ASSUME_32BITUIDS]: Remove conditional code.
6476         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6477         <kernel-features.h>.
6478         [__ASSUME_32BITUIDS]: Make code unconditional.
6479         [!__ASSUME_32BITUIDS]: Remove conditional code.
6480         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6481         <kernel-features.h>.
6482         [__ASSUME_32BITUIDS]: Make code unconditional.
6483         [!__ASSUME_32BITUIDS]: Remove conditional code.
6484         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6485         <kernel-features.h>.
6486         [__ASSUME_32BITUIDS]: Make code unconditional.
6487         [!__ASSUME_32BITUIDS]: Remove conditional code.
6488         * sysdeps/unix/sysv/linux/kernel-features.h
6489         (__ASSUME_SETRESUID_SYSCALL): Remove.
6490         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6491         (__ASSUME_32BITUIDS): Likewise.
6492         (__ASSUME_LDT_WORKS): Likewise.
6493         (__ASSUME_O_DIRECTORY): Likewise.
6494         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6495         architecture but not kernel version.
6496         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6497         (__ASSUME_MMAP2_SYSCALL): Likewise.
6498         (__ASSUME_STAT64_SYSCALL): Likewise.
6499         (__ASSUME_IPC64): Likewise.
6500         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6501         <kernel-features.h>.
6502         [__ASSUME_32BITUIDS]: Make code unconditional.
6503         [!__ASSUME_32BITUIDS]: Remove conditional code.
6504         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6505         <kernel-features.h>.
6506         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6507         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6508         132096]: Remove conditional code.
6509         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6510         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6511         <kernel-features.h>.
6512         [__ASSUME_32BITUIDS]: Make code unconditional.
6513         [!__ASSUME_32BITUIDS]: Remove conditional code.
6514         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6515         <kernel-features.h>.
6516         [__ASSUME_32BITUIDS]: Make code unconditional.
6517         [!__ASSUME_32BITUIDS]: Remove conditional code.
6518         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6519         <kernel-features.h>.
6520         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6521         unconditional.
6522         (__setresgid): Do not declare.
6523         [__ASSUME_32BITUIDS]: Make code unconditional.
6524         [!__ASSUME_32BITUIDS]: Remove conditional code.
6525         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6526         <kernel-features.h>.
6527         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6528         unconditional.
6529         (__setresuid): Do not declare.
6530         [__ASSUME_32BITUIDS]: Make code unconditional.
6531         [!__ASSUME_32BITUIDS]: Remove conditional code.
6532         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6533         <kernel-features.h>.
6534         [__ASSUME_32BITUIDS]: Make code unconditional.
6535         [!__ASSUME_32BITUIDS]: Remove conditional code.
6536         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6537         <kernel-features.h>.
6538         [__ASSUME_32BITUIDS]: Make code unconditional.
6539         [!__ASSUME_32BITUIDS]: Remove conditional code.
6540
6541 2012-05-25  Richard Henderson  <rth@twiddle.net>
6542
6543         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6544         dl_hwcap to ifunc resolver.
6545         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6546         elf_ifunc_invoke.
6547         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6548         dl_hwcap to ifunc resolver.
6549         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6550
6551 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6552
6553         [BZ #14153]
6554         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6555         for |x| <= 2**-26, not 2**-57.
6556         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6557         exception.
6558
6559 2012-05-24  Jeff Law  <law@redhat.com>
6560
6561         * stdio-common/Makefile (tests): Add bug25.
6562         * stdio-common/bug25.c: New test.
6563
6564 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6565
6566         [BZ #13576]
6567         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6568         multiple of MALLOC_ALIGNMENT in size.
6569         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6570
6571 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6572
6573         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6574         Require >= 256.
6575         (FILENAME_MAX): Use macro-int-constant.
6576         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6577         (_IOFBF): Use macro-int-constant.
6578         (_IOLBF): Likewise.
6579         (_IONBF): Likewise.
6580         (SEEK_CUR): Likewise.
6581         (SEEK_END): Likewise.
6582         (SEEK_SET): Likewise.
6583         (TMP_MAX): Likewise.
6584         (EOF): Use macro-int-constant.  Require < 0.
6585         (NULL): Use macro-constant.  Require == 0.
6586         (stdin): Require type to be FILE *.
6587         (stdout): Likewise.
6588         (stderr): Likewise.
6589         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6590         macro-int-constant.
6591         (EXIT_SUCCESS): Likewise.
6592         (NULL): Use macro-constant.  Require == 0.
6593         (RAND_MAX): Use macro-int-constant.
6594         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6595         [C99-based standards] (strtof): Require function.
6596         [C99-based standards] (strtold): Likewise.
6597         [C99-based standards] (strtoll): Likewise.
6598         [C99-based standards] (strtoull): Likewise.
6599         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6600         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6601         [ISO || ISO99 || ISO11] (math.h): Likewise.
6602         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6603         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6604         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6605
6606 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6607
6608         [BZ #14132]
6609         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6610         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6611         * intl/dgettext.c (DCGETTEXT): Likewise.
6612         * intl/gettext.c (DCGETTEXT): Likewise.
6613         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6614         * posix/regex_internal.h (gettext): Likewise.
6615         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6616         Remove declaration.
6617         * include/argz.h (__argz_count_internal)
6618         (__argz_stringify_internal): Remove declaration.
6619         (__argz_count, __argz_stringify): Declare hidden proto.
6620         * intl/dcgettext.c: Remove use of INTDEF.
6621         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6622         * string/argz-stringify.c: Likewise.
6623         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6624         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6625         Declare hidden proto.
6626         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6627         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6628         Declare hidden proto.
6629         * include/stdio.h (__asprintf_internal): Don't declare.
6630         (__asprintf): Don't define as macro.  Declare hidden proto.
6631         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6632         (__fsetlocking): Declare hidden proto.
6633         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6634         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6635         hidden proto.
6636         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6637         (_IO_setlinebuf): Remove use of INTUSE.
6638         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6639         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6640         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6641         Remove declaration.
6642         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6643         (_IO_do_flush): Remove use of INTUSE.
6644         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6645         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6646         (_IO_adjust_column, _IO_least_wmarker)
6647         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6648         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6649         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6650         (_IO_default_doallocate, _IO_wdefault_doallocate)
6651         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6652         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6653         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6654         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6655         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6656         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6657         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6658         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6659         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6660         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6661         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6662         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6663         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6664         proto.
6665         (_IO_flush_all_internal, _IO_adjust_column_internal)
6666         (_IO_default_uflow_internal, _IO_default_finish_internal)
6667         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6668         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6669         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6670         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6671         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6672         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6673         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6674         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6675         (_IO_file_close_internal, _IO_file_close_it_internal)
6676         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6677         (_IO_file_init_internal, _IO_file_attach_internal)
6678         (_IO_file_fopen_internal, _IO_file_read_internal)
6679         (_IO_file_sync_internal, _IO_file_seek_internal)
6680         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6681         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6682         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6683         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6684         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6685         (_IO_list_all_internal, _IO_link_in_internal)
6686         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6687         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6688         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6689         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6690         (_IO_do_write_internal, _IO_padn_internal)
6691         (_IO_getline_info_internal, _IO_getline_internal)
6692         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6693         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6694         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6695         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6696         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6697         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6698         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6699         with libc_hidden_ver, remove use of INTUSE.
6700         * libio/genops.c: Likewise.
6701         * libio/freopen.c: Likewise.
6702         * libio/freopen64.c: Likewise.
6703         * libio/iofclose.c: Likewise.
6704         * libio/iofdopen.c: Likewise.
6705         * libio/iofflush.c: Likewise.
6706         * libio/iofflush_u.c: Likewise.
6707         * libio/iofgets.c: Likewise.
6708         * libio/iofgets_u.c: Likewise.
6709         * libio/iofopen.c: Likewise.
6710         * libio/iofopncook.c: Likewise.
6711         * libio/iofread.c: Likewise.
6712         * libio/iofread_u.c: Likewise.
6713         * libio/ioftell.c: Likewise.
6714         * libio/iofwrite.c: Likewise.
6715         * libio/iogetline.c: Likewise.
6716         * libio/iogets.c: Likewise.
6717         * libio/iogetwline.c: Likewise.
6718         * libio/iopadn.c: Likewise.
6719         * libio/iopopen.c: Likewise.
6720         * libio/ioseekoff.c: Likewise.
6721         * libio/ioseekpos.c: Likewise.
6722         * libio/iosetbuffer.c: Likewise.
6723         * libio/iosetvbuf.c: Likewise.
6724         * libio/ioungetc.c: Likewise.
6725         * libio/ioungetwc.c: Likewise.
6726         * libio/iovdprintf.c: Likewise.
6727         * libio/iovsprintf.c: Likewise.
6728         * libio/iovsscanf.c: Likewise.
6729         * libio/memstream.c: Likewise.
6730         * libio/obprintf.c: Likewise.
6731         * libio/oldfileops.c: Likewise.
6732         * libio/oldiofclose.c: Likewise.
6733         * libio/oldiofdopen.c: Likewise.
6734         * libio/oldiofopen.c: Likewise.
6735         * libio/oldiopopen.c: Likewise.
6736         * libio/oldstdfiles.c: Likewise.
6737         * libio/putc.c: Likewise.
6738         * libio/setbuf.c: Likewise.
6739         * libio/setlinebuf.c: Likewise.
6740         * libio/stdfiles.c: Likewise.
6741         * libio/strops.c: Likewise.
6742         * libio/vasprintf.c: Likewise.
6743         * libio/vscanf.c: Likewise.
6744         * libio/vsnprintf.c: Likewise.
6745         * libio/vswprintf.c: Likewise.
6746         * libio/wfiledoalloc.c: Likewise.
6747         * libio/wfileops.c: Likewise.
6748         * libio/wgenops.c: Likewise.
6749         * libio/wmemstream.c: Likewise.
6750         * libio/wstrops.c: Likewise.
6751         * libio/__fpurge.c: Likewise.
6752         * libio/__fsetlocking.c: Likewise.
6753         * assert/assert.c: Likewise.
6754         * debug/fgets_chk.c: Likewise.
6755         * debug/fgets_u_chk.c: Likewise.
6756         * debug/fread_chk.c: Likewise.
6757         * debug/fread_u_chk.c: Likewise.
6758         * debug/gets_chk.c: Likewise.
6759         * debug/obprintf_chk.c: Likewise.
6760         * debug/vasprintf_chk.c: Likewise.
6761         * debug/vdprintf_chk.c: Likewise.
6762         * debug/vsnprintf_chk.c: Likewise.
6763         * debug/vsprintf_chk.c: Likewise.
6764         * malloc/mtrace.c: Likewise.
6765         * misc/error.c: Likewise.
6766         * misc/syslog.c: Likewise.
6767         * stdio-common/asprintf.c: Likewise.
6768         * stdio-common/fxprintf.c: Likewise.
6769         * stdio-common/getw.c: Likewise.
6770         * stdio-common/isoc99_fscanf.c: Likewise.
6771         * stdio-common/isoc99_scanf.c: Likewise.
6772         * stdio-common/isoc99_vfscanf.c: Likewise.
6773         * stdio-common/isoc99_vscanf.c: Likewise.
6774         * stdio-common/isoc99_vsscanf.c: Likewise.
6775         * stdio-common/printf-prs.c: Likewise.
6776         * stdio-common/printf_fp.c: Likewise.
6777         * stdio-common/printf_fphex.c: Likewise.
6778         * stdio-common/printf_size.c: Likewise.
6779         * stdio-common/putw.c: Likewise.
6780         * stdio-common/scanf.c: Likewise.
6781         * stdio-common/sprintf.c: Likewise.
6782         * stdio-common/tmpfile.c: Likewise.
6783         * stdio-common/vfprintf.c: Likewise.
6784         * stdio-common/vfscanf.c: Likewise.
6785         * stdlib/strfmon_l.c: Likewise.
6786         * sunrpc/openchild.c: Likewise.
6787         * sunrpc/xdr_stdio.c: Likewise.
6788         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6789         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6790
6791 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6792
6793         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6794
6795         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6796         in the third column, to generate for the shared library an IFUNC
6797         that uses _dl_vdso_vsym.
6798         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6799         * Makeconfig (object-suffixes-noshared): New variable.
6800
6801         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6802         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6803         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6804         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6805
6806         [BZ #14132]
6807         * include/sys/time.h (__gettimeofday): Remove macro.
6808         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6809         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6810         Remove INTDEF.
6811         (__gettimeofday): Add libc_hidden_def.
6812         (gettimeofday): Add libc_hidden_weak.
6813         * sysdeps/mach/gettimeofday.c: Likewise.
6814         * sysdeps/posix/gettimeofday.c: Likewise.
6815         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6816         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6817         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6818         (__gettimeofday_internal): Remove strong_alias.
6819         (__gettimeofday): Add libc_hidden_def.
6820         (gettimeofday): Add libc_hidden_weak.
6821         * sysdeps/unix/syscalls.list (gettimeofday):
6822         Remove __gettimeofday_internal alias.
6823
6824 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6825             H.J. Lu  <hongjiu.lu@intel.com>
6826
6827         [BZ #12495]
6828         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6829         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6830         (largebin_index_32_big): New.
6831         (largebin_index): Use it for 16-byte alignment.
6832         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6833         correction with front_misalign.
6834
6835 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6836
6837         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6838         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6839         Likewise.
6840         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6841         Likewise.
6842         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6843         Likewise.
6844         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6845         Likewise.
6846         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6847         Likewise.
6848         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6849         Likewise.
6850         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6851         Likewise.
6852         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6853         Likewise.
6854         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6855         Likewise.
6856         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6857         Likewise.
6858         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6859         Likewise.
6860         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6861         Likewise.
6862
6863         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6864         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6865
6866 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6867
6868         [BZ #10846]
6869         [BZ #14036]
6870         * math/libm-test.inc (exp_test): Add test from bug 14036.
6871         (pow_test): Add test from bug 10846.
6872
6873         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6874         and other flags.
6875         (special_function): Do not include flags in test name.
6876         (parse_args): Likewise.
6877         * sysdeps/i386/fpu/libm-test-ulps: Update.
6878         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6879         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6880         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6881         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6882
6883         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6884         exceptions.
6885         * math/libm-test.inc ("Philosophy"): Update comment about
6886         exception testing.
6887         (UNDERFLOW_EXCEPTION): New macro.
6888         (UNDERFLOW_EXCEPTION_OK): Likewise.
6889         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6890         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6891         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6892         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6893         (INVALID_EXCEPTION_OK): Update value.
6894         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6895         (OVERFLOW_EXCEPTION_OK): Likewise.
6896         (IGNORE_ZERO_INF_SIGN): Likewise.
6897         (test_exceptions): Handle underflow exceptions.
6898         (acos_test): Update for underflow exception expectations.
6899         (cexp_test): Likewise.
6900         (clog_test): Likewise.
6901         (clog10_test): Likewise.
6902         (csqrt_test): Likewise.
6903         (ctan_test): Likewise.
6904         (ctanh_test): Likewise.
6905         (exp_test): Likewise.
6906         (exp10_test): Likewise.
6907         (exp2_test): Likewise.
6908         (expm1_test): Likewise.
6909         (fma_test): Likewise.
6910         (j0_test): Likewise.
6911         (jn_test): Likewise.
6912         (nexttoward_test): Likewise.
6913         (pow_test): Likewise.
6914         (scalbn_test): Likewise.
6915         (scalbln_test): Likewise.
6916         (tan_test): Likewise.
6917         (y1_test): Likewise.
6918         * sysdeps/i386/fpu/libm-test-ulps: Update.
6919         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6920
6921 2012-05-23  David S. Miller  <davem@davemloft.net>
6922
6923         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6924         (__libc_sigaction): Remove unused local variables.
6925
6926 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6927
6928         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6929
6930 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6931
6932         mktime: avoid signed integer overflow
6933         * time/mktime.c (__mktime_internal): Do not mishandle the case
6934         where diff == INT_MIN.
6935
6936         mktime: simplify computation of average
6937         * time/mktime.c (ranged_convert): Use new time_t_avg function
6938         instead of rolling our own (probably-slower) code.
6939
6940         mktime: do not assume signed right shift propagates sign bit
6941         * time/mktime.c (isdst_differ): New static function.
6942         (__mktime_internal): No need to normalize tm_isdst now.
6943         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6944         tm_isdst values.
6945
6946         mktime: merge another wrapv change from gnulib
6947         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6948         from some compilers.
6949
6950         mktime: remove incorrect attempt at unusual arithmetics
6951         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6952         The code didn't really work on such machines anyway.
6953         (TYPE_MINIMUM): Assume two's complement.
6954         (twos_complement_arithmetic): Verify that long_int and time_t
6955         are two's complement (or unsigned, in the latter case).
6956
6957         mktime: check signed shifts on long_int and time_t, too
6958         * time/mktime.c (SHR): Check that shifts work as desired
6959         on the types long_int and time_t too, as SHR is used on
6960         such types.
6961
6962         mktime: do not assume 'long' is wide enough
6963         * time/mktime.c (verify): Move decl up.
6964         (long_int): New type.
6965         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6966         to remove assumption in the code that 'long' is wide enough to
6967         store year values.  This assumption is not true on x32 and on
6968         some non-glibc platforms.
6969
6970         mktime: merge wrapv change from gnulib
6971         * time/mktime.c (WRAPV): New macro.
6972         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6973         (guess_time_tm, __mktime_internal): Do not assume that signed
6974         integer overflow wraps around; modern compilers generate code
6975         where this assumption is no longer valid.
6976
6977 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6978
6979         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6980         Replace "jmp L(pseudo_end)" with "ret".
6981         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6982         Likewise.
6983
6984 2012-05-23  Andreas Jaeger  <aj@suse.de>
6985
6986         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6987         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6988
6989 2012-05-23  Andreas Jaeger  <aj@suse.de>
6990             Maximilian Attems  <max@stro.at>
6991
6992         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6993         New macros.
6994
6995 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6996
6997         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6998         code so that pseudo_end is just ret and the stack pointer is
6999         correct also for static library in error case.
7000
7001 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7002
7003         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7004         move to syscalls.list.
7005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7009
7010         * manual/install.texi (Running make install): Do not mention Linux
7011         kernel version for which pt_chown is not needed.
7012         (Linux): Do not mention problems with nscd with 2.0 kernels.
7013         * INSTALL: Regenerated.
7014
7015 2012-05-23  Andreas Jaeger  <aj@suse.de>
7016
7017         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7018         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7019         macro.
7020         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7021         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7022         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7023         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7024         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7025         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7026         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7027         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7028         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7029         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7030         * sysdeps/unix/sysv/linux/bits/in.h
7031         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7032
7033 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7034
7035         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7036         (PREPARE_VERSION): Just use assert instead, it will be elided
7037         under [NDEBUG] anyway.
7038
7039 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7040
7041         * sysdeps/unix/sysv/linux/Makefile: Include
7042         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7043         (sysdep_routines): Remove sysctl.
7044         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7045         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7046         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7047         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7048         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7049
7050 2012-05-22  Andreas Jaeger  <aj@suse.de>
7051
7052         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7053         that pseudo_end is just ret and the stack pointer is correct also
7054         for static library in error case.
7055
7056 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7057
7058         [BZ #14122]
7059         * nss/nsswitch.c (defconfig_entries): New variable.
7060         (__nss_database_lookup): Don't leak defconfig entries.
7061         (nss_parse_service_list): Don't leak on error paths.
7062         (free_database_entries): New function.
7063         (free_defconfig): New function.
7064         (free_mem): Move common code to free_database_entries.
7065
7066 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7067
7068         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7069         Add arch_prctl.
7070         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7071
7072         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7073         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7074         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7075         New macro.
7076         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7077         (INTERNAL_SYSCALL_TYPES): Likewise.
7078         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7079         (LOAD_REGS_TYPES_[1-6]): Likewise.
7080         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7081         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7082
7083 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7084
7085         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7086         copysignl for GLIBC_2_0.
7087         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7088         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7089         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7090         logbl for GLIBC_2_0.
7091         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7092         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7093
7094 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7095
7096         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7097         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7098
7099         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7100         Use "neg %eax".
7101
7102         * time/mktime.c: Update copyright years.
7103
7104 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7105
7106         mktime: merge comment-quoting-style change from gnulib
7107         * time/mktime.c: Quote 'like this' in comments.
7108         The GNU coding standards suggest that we no longer quote `like this',
7109         as "`" and "'" are typically rendered asymmetrically nowadays.
7110         The typical gnulib style is to quote 'like this' when quoting
7111         code, and "like this" when quoting English.
7112
7113         * time/mktime.c (compile-command): Add "-I.".
7114
7115         mktime: merge mktime-internal.h change from gnulib
7116         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7117
7118         mktime: merge time_r change from gnulib
7119         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7120
7121         mktime: merge DEBUG change from gnulib
7122         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7123         case system <time.h> has a #define.
7124
7125         mktime: merge <sys/types.h> change from gnulib
7126         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7127         since <time.t> is now guaranteed to define time_t.
7128
7129         mktime: merge HAVE_CONFIG_H change from gnulib
7130         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7131
7132 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7133
7134         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7135         Use "neg %eax".
7136
7137         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7138         __rlim_t cast.
7139         (struct rusage): Use anonymous union to pad each field to
7140         __syscall_slong_t.
7141
7142 2012-05-21  David S. Miller  <davem@davemloft.net>
7143
7144         * Makefules (o-iterator): Remove .s cases.
7145         (compile-command.s): Delete.
7146         (COMPILE.s): Delete.
7147         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7148
7149 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7150
7151         * configure.in (libc_cv_predef_stack_protector): Only consider
7152         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7153         * configure: Regenerated.
7154
7155 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7156
7157         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7158         New macro.  Use R*LP on int and pointer.
7159         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7160         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7161         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7162         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7163
7164         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7165         [__WORDSIZE_TIME64_COMPAT32] instead of
7166         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7167         (struct utmp): Likewise.
7168         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7169         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7170         Renamed to ...
7171         (__WORDSIZE_TIME64_COMPAT32): This.
7172         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7173         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7174         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7175         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7176         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7177         (__WORDSIZE_TIME64_COMPAT32): New macro.
7178
7179 2012-05-21  Andreas Jaeger  <aj@suse.de>
7180
7181         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7182         only if [SHARED]. Add prototype for __wcschr_ia32.
7183
7184 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7185
7186         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7187         of %rbp unmolested in the jmp_buf while mangling the low bits.
7188         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7189         unmolested high bits of %rbp while demangling the low bits.
7190         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7191
7192 2012-05-21  Andreas Jaeger  <aj@suse.de>
7193
7194         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7195         * sunrpc/svc_simple.c: Use it for registerrpc.
7196         * sunrpc/xcrypt.c: Use it for passwd2des.
7197
7198         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7199
7200 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7201
7202         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7203         Don't define if [__SYSCALL_WORDSIZE != 32].
7204         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7205         New macro.
7206
7207 2012-05-21  Bruno Haible  <bruno@clisp.org>
7208             Andreas Jaeger  <aj@suse.de>
7209
7210         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7211         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7212         inptr and inend for must_buffer_ch.
7213         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7214         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7215         * stdio-common/Makefile (tests): Remove bug15.
7216         (bug15-ENV): Remove macro.
7217         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7218         anymore.
7219
7220 2012-05-19  Andreas Jaeger  <aj@suse.de>
7221             Roland McGrath  <roland@hack.frob.com>
7222
7223         * manual/contrib.texi: Completely rewritten. It contains now an
7224         alphabetical list of contributors and their contributions.
7225
7226 2012-05-21  Richard Henderson  <rth@twiddle.net>
7227
7228         * misc/getauxval.c (__getauxval): Use unsigned long int.
7229         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7230         (getauxval): Use unsigned long int.
7231
7232 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7233
7234         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7235
7236 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7237
7238         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7239         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7240         __alignof__ (long double).
7241
7242 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7243
7244         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7245
7246 2012-05-20  Richard Henderson  <rth@twiddle.net>
7247
7248         * misc/getauxval.c: New file.
7249         * misc/sys/auxv.h: New file.
7250         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7251         (routines): Add getauxval.
7252         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7253         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7254         * elf/dl-sysdep.c (_dl_auxv): Remove.
7255         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7256         * elf/dl-support.c (_dl_auxv): New variable.
7257         (_dl_aux_init): Initialize it.
7258         * manual/startup.texi (Auxiliary Vector): New node.
7259         * sysdeps/generic/bits/hwcap.h: New file.
7260         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7261         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7262         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7263         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7264         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7265         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7267         Update.
7268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7269         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7270         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7271         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7272         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7273         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7274         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7275         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7276
7277 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7278
7279         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7280
7281 2012-05-19  David S. Miller  <davem@davemloft.net>
7282
7283         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7284
7285 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7286
7287         [BZ #14123]
7288         * math/s_ccosh.c: Include <float.h>
7289         (__ccosh): Avoid internal overflow calculating sinh and cosh
7290         values before multiplying by sin and cos values.
7291         * math/s_ccoshf.c: Likewise.
7292         * math/s_ccoshl.c: Likewise.
7293         * math/s_csin.c: Likewise.
7294         * math/s_csinf.c: Likewise.
7295         * math/s_csinl.c: Likewise.
7296         * math/s_csinh.c: Likewise.
7297         * math/s_csinhf.c: Likewise.
7298         * math/s_csinhl.c: Likewise.
7299         * math/libm-test.inc (ccos_test): Add more tests.
7300         (ccosh_test): Likewise.
7301         (csin_test): Likewise.
7302         (csinh_test): Likewise.
7303         * sysdeps/i386/fpu/libm-test-ulps: Update.
7304         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7305
7306 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7307
7308         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7309         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7310
7311         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7312
7313 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7314
7315         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7316         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7317         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7318         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7319         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7320         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7321         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7322         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7323         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7324         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7325         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7326         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7327         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7328         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7329         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7330         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7331         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7332         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7333         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7334         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7335         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7336         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7337         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7338         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7339         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7340         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7341         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7342         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7343         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7344         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7345         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7346
7347 2012-05-18  Andreas Jaeger  <aj@suse.de>
7348
7349         * csu/.gitignore: Delete.
7350
7351 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7352
7353         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7354         (timex): Use __syscall_slong_t.
7355
7356 2012-05-18  Andreas Jaeger  <aj@suse.de>
7357             Carlos O'Donell  <carlos_odonell@mentor.com>
7358
7359         * manual/install.texi (Configuring and compiling): Update
7360         description about files modified in the source directory.
7361         * INSTALL: Regenerated.
7362
7363 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7364
7365         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7366         value.  Use "or" to set return value to -1.
7367         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7368         negate return value.
7369
7370 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7371
7372         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7373         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7374         failure if the compiler has Graphite support disabled.
7375         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7376         Likewise.
7377         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7378         CFLAGS-memmove.c): Likewise.
7379         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7380         Likewise.
7381
7382 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7383
7384         * sysdeps/x86_64/x32/_itoa.h: New file.
7385
7386         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7387         getdents system call only if kernel and user dirents have the
7388         same d_ino and d_off.
7389
7390         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7391         LLONG_MAX != LONG_MAX.
7392         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7393         (_fitoa_word): Likewise.
7394
7395         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7396         years.
7397         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7398         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7399         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7400
7401         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7402         include <bits/wordsize.h>.  Check __x86_64__ instead of
7403         __WORDSIZE.
7404         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7405         if __x86_64__ is defined.  Use anonymous union on fpstate.
7406
7407         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7408         anonymous union.
7409
7410 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7411
7412         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7413         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7414         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7415         Refer to _rtld_local_ro instead of _rtld_global_ro.
7416         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7417         Likewise.
7418         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7419         Likewise.
7420         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7421         Likewise.
7422         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7423         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7424         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7425
7426         * sysdeps/powerpc/powerpc32/dl-machine.c
7427         (__elf_machine_runtime_setup) [PROF]: Don't reference
7428         _dl_prof_resolve.
7429
7430 2012-05-18  Andreas Jaeger  <aj@suse.de>
7431
7432         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7433         function only available for GCCs before 3.4 since GCC 3.4
7434         introduced a builtin.
7435         (lrint): Likewise.
7436         (llrintf): Likewise.
7437         (llrint): Likewise.
7438         (fmaxf): Likewise.
7439         (fmax): Likewise.
7440         (fminf): Likewise.
7441         (fmin): Likewise.
7442         (rint): Likewise.
7443         (rintf): Likewise.
7444         (nearbyint): Likewise.
7445         (nearbyintf): Likewise.
7446         (ceil): Likewise.
7447         (ceilf): Likewise.
7448         (floor): Likewise.
7449         (floorf): Likewise.
7450
7451 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7452
7453         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7454         on both fields and cast pointer to __syscall_ulong_t.
7455
7456         * bits/types.h (__fsword_t): New type.
7457         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7458         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7459         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7460         (__FSWORD_T_TYPE): Likewise.
7461         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7462         (__FSWORD_T_TYPE): Likewise.
7463         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7464         (__FSWORD_T_TYPE): Likewise.
7465         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7466         (__FSWORD_T_TYPE): Likewise.
7467         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7468         __SWORD_TYPE with __fsword_t.
7469         (statfs64): Likewise.
7470
7471 2012-05-17  David S. Miller  <davem@davemloft.net>
7472
7473         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7474
7475 2012-05-17  Andreas Jaeger  <aj@suse.de>
7476
7477         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7478         warning.
7479
7480 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7481
7482         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7483
7484 2012-05-17  Andreas Jaeger  <aj@suse.de>
7485
7486         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7487         when it is used.
7488
7489 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7490
7491         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7492
7493 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7494
7495         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7496         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7497
7498 2012-05-17  Andreas Jaeger  <aj@suse.de>
7499             Carlos O'Donell  <carlos_odonell@mentor.com>
7500
7501         [BZ #14059]
7502         * sysdeps/x86_64/multiarch/init-arch.h
7503         (bit_YMM_Usable): Rename to...
7504         (bit_AVX_Usable): ... this.
7505         (bit_FMA4_Usable): New macro.
7506         (bit_XMM_state): New macro.
7507         (bit_YMM_state): New macro.
7508         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7509         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7510         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7511         (CPUID_OSXSAVE): New macro.
7512         (CPUID_AVX): New macro.
7513         (CPUID_FMA4): New macro.
7514         (index_YMM_Usable): Rename to...
7515         (index_AVX_Usable): ... this.
7516         (HAS_AVX): Use HAS_ARCH_FEATURE.
7517         (HAS_FMA4): Likewise.
7518         (HAS_YMM_USABLE): Remove.
7519         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7520         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7521         are present.
7522         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7523         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7524         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7525         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7526         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7527
7528 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7529
7530         * math/libm-test.c: Support platforms without multiple rounding modes.
7531         * math/bug-nextafter.c: Support platforms without FP exceptions.
7532         * math/bug-nexttoward.c: Likewise.
7533         * math/test-fenv.c: Likewise.
7534         * math/test-misc.c: Likewise.
7535         * stdlib/bug-getcontext.c: Likewise.
7536
7537 2012-05-17  Andreas Jaeger  <aj@suse.de>
7538
7539         * manual/examples/search.c (critter_cmp): Change signature to
7540         avoid warnings.
7541         * manual/string.texi (Collation Functions): Likewise.
7542
7543 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7544
7545         * bits/types.h: Fold copyright years.
7546         * bits/typesizes.h: Likewise.
7547         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7548         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7549         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7550         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7551         * time/time.h: Likewise.
7552
7553 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7554
7555         [BZ #208]
7556         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7557         in instead of returning them.  Return void.
7558         (__libc_mallinfo): Accumulate over all arenas.
7559         (__malloc_stats): Adjust for change in int_mallinfo interface.
7560
7561 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7562
7563         [BZ #10375]
7564         * configure.in (NM): Add AC_CHECK_TOOL for it.
7565         (libc_extra_cflags): New substituted variable.
7566         Check for -fstack-protector being used implicitly.
7567         * configure: Regenerated.
7568         * config.make.in (config-extra-cflags): New variable,
7569         gets @libc_extra_cflags@.
7570         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7571
7572         [BZ #10375]
7573         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7574         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7575         * configure: Regenerated.
7576         * config.make.in (CPPUNDEFS): New substituted variable.
7577         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7578         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7579         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7580
7581 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7582
7583         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7584         (mq_attr): Use __syscall_slong_t.
7585
7586 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7587
7588         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7589         Check __x86_64__ instead of __WORDSIZE.
7590         (_STAT_VER_LINUX): Likewise.
7591         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7592         __syscall_ulong_t and __syscall_slong_t.
7593         (stat64): Likewise.
7594
7595 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7596
7597         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7598
7599 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7600
7601         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7602
7603 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7604
7605         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7606         __syscall_ulong_t.
7607
7608         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7609         include <bits/wordsize.h>.  Check __x86_64__ instead of
7610         __WORDSIZE.
7611         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7612         defined.
7613         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7614
7615         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7616         include <bits/wordsize.h>.  Check __x86_64__ instead of
7617         __WORDSIZE.
7618         (user_regs_struct): Use "__extension__ unsigned long long"
7619         instead of "unsigned long" if __x86_64__ is defined.
7620         (user): Likewise.  Pad after pointer field if __ILP32__ is
7621         defined.
7622
7623 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7624
7625         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7626         versions 5 to 9.
7627         * configure: Regenerated.
7628         * manual/install.texi (texinfo): Increase version requirement to
7629         4.5 or later.
7630         * INSTALL: Regenerated.
7631
7632         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7633
7634 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7635
7636         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7637
7638         * sysdeps/x86_64/x32/ffs.c: New file.
7639
7640         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7641         __syscall_ulong_t.
7642         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7643         defined.  Use __syscall_ulong_t.
7644         (shminfo): Use __syscall_ulong_t.
7645         (shm_info): Likewise.
7646
7647         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7648         __syscall_ulong_t.
7649
7650         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7651         <bits/wordsize.h>.
7652         (msgqnum_t): Use __syscall_ulong_t.
7653         (msglen_t): Likewise.
7654         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7655         __syscall_ulong_t.
7656
7657         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7658         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7659
7660         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7661
7662         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7663         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7664
7665         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7666         __syscall_slong_t.
7667
7668         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7669         include <bits/wordsize.h>.  Check __x86_64__ instead of
7670         __WORDSIZE.
7671
7672         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7673         "unsigned long long int" if __x86_64__ is defined.
7674         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7675
7676         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7677         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7678         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7679
7680         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7681         <stdint.h>.
7682         (GET_PC): Cast to uintptr_t first.
7683         (GET_FRAME): Likewise.
7684         (GET_STACK): Likewise.
7685
7686         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7687         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7688         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7689         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7690         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7691         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7692         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7693         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7694         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7695         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7696         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7697         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7698         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7699         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7700         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7701         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7702         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7703         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7704         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7705         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7706         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7707         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7708         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7709         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7710         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7711         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7712         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7713         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7714         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7715
7716 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7717
7718         * Makerules (+depfiles): Also collect depfiles from .oS in
7719         $(extra-objs).
7720         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7721         .oS, $(libnldbl-routines)).
7722
7723         * Makerules (native-compile-mkdep-flags): Define.
7724         * sunrpc/Makefile (extra-objs): Add $(addprefix
7725         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7726         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7727         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7728         calling $(make-target-directory).
7729
7730 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7731
7732         * bits/types.h (__snseconds_t): Removed.
7733         * time/time.h (struct timespec): Replace __snseconds_t with
7734         __syscall_slong_t.
7735         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7736         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7737         Likewise.
7738         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7739         (__SNSECONDS_T_TYPE): Likewise.
7740         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7741         (__SNSECONDS_T_TYPE): Likewise.
7742         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7743         (__SNSECONDS_T_TYPE): Likewise.
7744
7745 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7746
7747         * sysdeps/mach/hurd/bits/typesizes.h
7748         (__SYSCALL_SLONG_TYPE): New macro.
7749         (__SYSCALL_ULONG_TYPE): Likewise.
7750
7751 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7752
7753         * bits/types.h (__syscall_slong_t): New type.
7754         (__syscall_ulong_t): Likewise.
7755
7756         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7757         (__SYSCALL_ULONG_TYPE): Likewise.
7758         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7759         (__SYSCALL_SLONG_TYPE): Likewise.
7760         (__SYSCALL_ULONG_TYPE): Likewise.
7761         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7762         (__SYSCALL_SLONG_TYPE): Likewise.
7763         (__SYSCALL_ULONG_TYPE): Likewise.
7764         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7765         (__SYSCALL_SLONG_TYPE): Likewise.
7766         (__SYSCALL_ULONG_TYPE): Likewise.
7767
7768 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7769
7770         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7771         Add sigaltstack-offsets.sym.
7772         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7773         <sigaltstack-offsets.h>.
7774         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7775         longjmp_msg pointer.
7776         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7777         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7778         signal stack.
7779         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7780
7781 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7782
7783         * elf/stackguard-macros.h: Remove file.
7784         * sysdeps/generic/stackguard-macros.h: New file.
7785         * sysdeps/i386/stackguard-macros.h: Likewise.
7786         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7787         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7788         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7789         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7790         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7791         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7792         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7793         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7794         <elf/stackguard-macros.h>.
7795
7796         [BZ #14109]
7797         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7798         __aligned__ in attribute.
7799         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7800         (gregset_t): Likewise.
7801
7802 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7803
7804         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7805         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7806         * sysdeps/x86_64/x32/Implies-after: New file.
7807
7808 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7809
7810         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7811         and access return value for _dl_profile_fixup.  Use R10_LP to
7812         load frame size.
7813
7814 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7815
7816         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7817
7818 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7819
7820         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7821         * sysdeps/x86_64/x32/sysdep.h: New file.
7822
7823 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7824
7825         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7826         * sysdeps/x86_64/setjmp.S: Likewise.
7827
7828 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7829
7830         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7831         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7832         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7833         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7834         remove unused global constant.
7835
7836 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7837
7838         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7839         include of <not-cancel.h>.
7840
7841 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7842
7843         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7844
7845 2012-05-15  Jeff Law  <law@redhat.com>
7846             Andreas Jaeger  <aj@suse.de>
7847
7848         [BZ #13594]
7849         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7850         out from...
7851         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7852         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7853         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7854         code changing __hst_map_handle.map.
7855
7856 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7857
7858         * configure.in (sysnames): Look for Implies-before and Implies-after
7859         files.
7860         * configure: Regenerated.
7861
7862 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7863
7864         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7865         8-byte data alignment with LP_SIZE alignment.
7866
7867 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7868
7869         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7870         into R10_LP.
7871
7872 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7873
7874         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7875
7876 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7877
7878         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7879         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7880         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7881         Likewise.
7882         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7883
7884 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7885
7886         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7887         (stackinfo_sub_sp): Likewise.
7888
7889 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7890
7891         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7892         RAX_LP.
7893
7894 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7895
7896         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7897         into R*_LP.
7898
7899 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7900
7901         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7902         sizes into R*_LP.
7903
7904 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7905
7906         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7907
7908 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7909
7910         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7911         into R11_LP and load __x86_64_shared_cache_size_half into
7912         R8_LP.
7913
7914 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7915
7916         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7917         R8_LP.
7918
7919 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7920
7921         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7922         logb for POWER7.
7923         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7924         logbf for POWER7.
7925         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7926         logbl for POWER7.
7927         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7928         powerpc32/power7/fpu/s_logb.c via #include.
7929         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7930         powerpc32/power7/fpu/s_logbf.c via #include.
7931         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7932         powerpc32/power7/fpu/s_logbl.c via #include.
7933
7934 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7935
7936         * README.libm: Remove file.
7937
7938 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7939
7940         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7941         count for x32.  Use R*_LP and omit operand-size suffix.
7942
7943 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7944
7945         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7946         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7947         * sysdeps/x86_64/x32/shlib-versions: New file.
7948
7949 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7950
7951         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7952         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7953         Use _dl_fatal_printf instead.
7954
7955 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7956
7957         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7958         set if not set by the user.  Do not allow for being unset.
7959         * sysdeps/unix/sysv/linux/configure: Regenerated.
7960
7961 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7962
7963         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7964         the `q' suffix from lea and replace .quad with ASM_ADDR.
7965
7966 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7967
7968         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7969         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7970         instead of $17.
7971         (PTR_DEMANGLE): Likewise.
7972
7973 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7974
7975         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7976         (LP_OP): Likewise.
7977         (ASM_ADDR): Likewise.
7978         (RAX_LP): Likewise.
7979         (RBP_LP): Likewise.
7980         (RBX_LP): Likewise.
7981         (RCX_LP): Likewise.
7982         (RDI_LP): Likewise.
7983         (RSI_LP): Likewise.
7984         (RSP_LP): Likewise.
7985         (R8_LP): Likewise.
7986         (R9_LP): Likewise.
7987         (R10_LP): Likewise.
7988         (R10_LP): Likewise.
7989         (R11_LP): Likewise.
7990         (R12_LP): Likewise.
7991         (R13_LP): Likewise.
7992         (R14_LP): Likewise.
7993         (R15_LP): Likewise.
7994
7995 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7996
7997         * sysdeps/x86_64/x32/dl-machine.h: New file.
7998
7999 2012-05-14  Andreas Jaeger  <aj@suse.de>
8000
8001         * manual/Makefile (subdir): Remove export of subdir.
8002         (all): Remove target.
8003         (.PHONY): Remove all from list.
8004         (mkinstalldirs): Remove.
8005         (.PHONY): Remove installdirs from list.
8006         ($(inst_infodir)/libc.info): Use make-target-directory.
8007         (installdirs): Remove.
8008         (subdir_%): Remove.
8009         (glibc-targets): Remove.
8010         (lib): Remove.
8011         (stubs): Remove.
8012         ($(objpfx)stubs ../po/manual.pot): Remove.
8013         ($(objpfx)stamp%): Remove.
8014         (make-target-directory): Remove.
8015         (subdir_install): Remove.
8016         (routines): Remove.
8017         (aux): Remove.
8018         (sources): Remove.
8019         (objects): Remove.
8020         (headers): Remove.
8021
8022         [BZ #13750]
8023         * manual/.gitignore: Remove, it's not needed anymore.
8024         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8025         all files in it.
8026         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8027         directory.
8028         (texis): Renamed to $(objpfx)texis.
8029         (texis-path): New, contains path to generated files.
8030         (chapters.%): Use texis-path for complete path, add extra argument
8031         libc-texinfo.sh.
8032         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8033         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8034         (summary,texi, stamp-summary): Use complete path of
8035         files. Generate files in build dir.
8036         (dir-add.texi): Build in build dir.
8037         (libm-err.texi,stamp-libm-err): Likewise.
8038         (version.texi, stamp-version): Likewise.
8039         (.%c.texi): Likewise.
8040         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8041         (mostlyclean): Remove target.
8042         (realclean): Remove target.
8043         (generated): Add new variable with contents from mostlyclean and
8044         realclean, remove entries duplicated in common-mostlyclean, add
8045         stamp-libm-err and stamp-version.
8046         (generated-dirs): Add libc directory.
8047         ($(inst_infodir)/libc.info): Install files from build dir.
8048
8049         * manual/install.texi (Configuring and compiling): Adjust since
8050         the info files are not part of the tar ball anymore.
8051
8052 2012-05-14  Andreas Jaeger  <aj@suse.de>
8053
8054         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8055         variable.
8056
8057 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8058
8059         [BZ #13717]
8060         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8061         to 2.2.0 where earlier.
8062         * sysdeps/unix/sysv/linux/configure: Regenerated.
8063         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8064         Remove conditional code.
8065         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8066         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8067         Remove conditional code.
8068         [!__NR_lchown]: Likewise.
8069         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8070         [__NR_lchown]: Likewise.
8071         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8072         comment referencing __ASSUME_LCHOWN_SYSCALL.
8073         * sysdeps/unix/sysv/linux/i386/sigaction.c
8074         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8075         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8076         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8077         Remove conditional code.
8078         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8079         (__protocol_available): Remove #if 0 code.
8080         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8081         conditional code.
8082         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8083         * sysdeps/unix/sysv/linux/kernel-features.h
8084         (__ASSUME_GETCWD_SYSCALL): Don't define.
8085         (__ASSUME_REALTIME_SIGNALS): Likewise.
8086         (__ASSUME_PREAD_SYSCALL): Likewise.
8087         (__ASSUME_PWRITE_SYSCALL): Likewise.
8088         (__ASSUME_POLL_SYSCALL): Likewise.
8089         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8090         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8091         non-SPARC.
8092         (__ASSUME_SIOCGIFNAME): Don't define.
8093         (__ASSUME_MSG_NOSIGNAL): Likewise.
8094         (__ASSUME_SENDFILE): Define unconditionally.
8095         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8096         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8097         conditional code.
8098         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8099         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8100         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8101         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8102         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8103         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8104         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8106         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8107         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8109         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8110         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8112         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8113         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8115         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8116         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8118         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8119         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8121         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8122         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8124         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8125         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8127         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8128         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8129         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8130         Remove conditional code.
8131         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8132         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8133         Remove conditional code.
8134         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8135         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8136         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8137         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8138         Remove conditional code.
8139         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8140         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8141         Remove conditional code.
8142         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8143         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8144         Remove conditional code.
8145         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8146         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8147         Remove conditional code.
8148         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8149         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8150         Remove conditional code.
8151         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8152         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8153         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8154         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8155         * sysdeps/unix/sysv/linux/sigaction.c
8156         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8157         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8158         * sysdeps/unix/sysv/linux/sigpending.c
8159         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8160         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8161         * sysdeps/unix/sysv/linux/sigprocmask.c
8162         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8163         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8164         * sysdeps/unix/sysv/linux/sigsuspend.c
8165         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8166         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8167         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8168         (__libc_missing_rt_sigs): Remove.
8169         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8170         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8171         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8172         Remove conditional code.
8173         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8174         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8175         return 1.
8176         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8177         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8178         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8179         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8180
8181 2012-05-14  Andreas Jaeger  <aj@suse.de>
8182
8183         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8184         it's not used in glibc.
8185         (__coshm1): Likewise.
8186         (__acosh1p): Likewise.
8187         (__sgn): Likewise.
8188
8189         * manual/string.texi (Copying and Concatenation): Add missing
8190         variable in concat example.
8191         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8192
8193 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8194
8195         [BZ #14103]
8196         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8197         __builtin_clzl with __builtin_clzll.
8198
8199 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8200
8201         [BZ #14104]
8202         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8203         libc_freeres_ptr.
8204
8205 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8206
8207         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8208         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8209         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8210         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8211
8212 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8213
8214         * NEWS: Update ia64 info.
8215
8216 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8217
8218         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8219         used as bcopy.
8220
8221 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8222
8223         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8224         * sysdeps/unix/syscalls.list (dup3): Likewise.
8225         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8226         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8227
8228 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8229
8230         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8231         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8232
8233 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8234
8235         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8236         thread pointer.
8237         (TLS_IE): Use mov/add instead of movq/addq to load thread
8238         pointer.
8239         (TLS_GD_PREFIX): New.
8240         (TLS_GD): Use it.
8241
8242 2012-05-11  David S. Miller  <davem@davemloft.net>
8243
8244         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8245         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8246         (_FPU_SETCW): Likewise.
8247
8248 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8249
8250         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8251         is 32-byte aligned.
8252
8253 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8254
8255         [BZ #11837]
8256         * iconvdata/gb18030.c: Update tables.
8257         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8258         characters specially.
8259         (BODY for TO_LOOP): Add encoding of missing ranges.
8260
8261 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8262
8263         [BZ #13673]
8264         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8265         * sysdeps/mach/hurd/dup3.c: Likewise.
8266         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8267         * sysdeps/powerpc/memmove.c:: Likewise.
8268
8269 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8270
8271         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8272         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8273
8274 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8275
8276         * elf/elf.h (R_X86_64_RELATIVE64): New.
8277         (R_X86_64_NUM): Updated.
8278         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8279         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8280         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8281         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8282         tst-quad1pie tst-quad2pie
8283         (modules-names): Add tst-quadmod1 tst-quadmod2.
8284         ($(objpfx)tst-quad1): New dependency.
8285         ($(objpfx)tst-quad2): Likewise.
8286         ($(objpfx)tst-quad1pie): Likewise.
8287         ($(objpfx)tst-quad2pie): Likewise.
8288         * sysdeps/x86_64/tst-quad1.c: New file.
8289         * sysdeps/x86_64/tst-quad1pie.c: New file.
8290         * sysdeps/x86_64/tst-quad2.c: Likewise.
8291         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8292         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8293         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8294         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8295         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8296
8297 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8298
8299         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8300         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8301         * streams/stropts.h (t_scalar_t): Define type.
8302
8303         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8304         (_PATH_PRESERVE): Set to "/var/lib".
8305         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8306
8307         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8308         instead of int.
8309
8310         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8311         if __dir_mkfile succeeded.
8312
8313         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8314         checking for _hurd_dtablesize.  Unlock it right after having
8315         finished _hurd_dtable allocation.
8316
8317 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8318
8319         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8320         * sysdeps/mach/hurd/configure: Regenerated.
8321         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8322         special-casing to...
8323         * sysdeps/gnu/configure.in: ... this new file.
8324         * sysdeps/unix/sysv/linux/configure: Regenerated.
8325         * sysdeps/gnu/configure: New generated file.
8326
8327         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8328         for Linux: use nsec instead of usec, as well as:
8329         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8330         members of type struct timespec.
8331         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8332         New macros.
8333         (struct stat64): Likewise.
8334         (_STATBUF_ST_NSEC): New macro.
8335         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8336
8337         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8338         __strtoul_internal rather than strtoul.
8339
8340 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8341
8342         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8343         and reject them.
8344
8345 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8346
8347         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8348         which preserves existing values.
8349         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8350
8351 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8352
8353         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8354         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8355         greater than FD_SETSIZE.
8356
8357 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8358
8359         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8360         allocated, call __vm_protect to finish enabling the existing space, and
8361         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8362         allocate the remainder.
8363
8364 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8365
8366         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8367         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8368
8369 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8370
8371         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8372         sysdeps/mach/hurd/readlink.c.
8373
8374         * posix/tst-sysconf.c (posix_options): Only use
8375         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8376         _POSIX_SYNCHRONIZED_IO when they are defined
8377         * sysdeps/mach/hurd/bits/posix_opt.h:
8378         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8379         (_XOPEN_REALTIME): Undefine macro.
8380         (_XOPEN_REALTIME_THREADS): Undefine macro.
8381         (_XOPEN_SHM): Undefine macro.
8382         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8383         macro to -1.
8384         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8385         macro to -1.
8386         (_POSIX_ASYNC_IO): Undefine macro.
8387         (_POSIX_PRIORITIZED_IO): Undefine macro.
8388         (_POSIX_SPIN_LOCKS): Define macro to -1.
8389
8390         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8391         SA_NODEFER, SA_RESETHAND.
8392         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8393         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8394         F_DUPFD_CLOEXEC.
8395
8396 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8397
8398         * elf/Makefile (pldd-modules): Define unconditionally.
8399
8400 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8401
8402         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8403
8404 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8405
8406         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8407         Return ENOENT when name is empty.
8408         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8409
8410 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8411
8412         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8413
8414         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8415
8416 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8417
8418         Fix mlock in all cases except non-readable pages.
8419         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8420         instead of VM_PROT_ALL as parameter to __vm_wire function.
8421
8422         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8423         (__mkdir): When path is `/', just fail with EEXIST.
8424         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8425
8426 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8427
8428         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8429         <sys/uio.h> (for writev).
8430         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8431         and <sys/param.h> (for MIN).
8432
8433 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8434
8435         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8436         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8437         if interrupted.
8438
8439 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8440
8441         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8442         Depend on against $(link-rpcuserlibs).
8443
8444 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8445
8446         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8447         (__libc_stack_end): Do not use attribute_relro.
8448         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8449         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8450         to libthread-provided value.
8451         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8452         attribute_relro.
8453
8454 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8455
8456         [BZ #3748]
8457         * bits/libc-lock.h (__libc_once_get): New macro.
8458         * sysdeps/mach/bits/libc-lock.h: Likewise.
8459         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8460         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8461         instead of using implementation details.
8462
8463         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8464         * libio/freopen.c: Likewise.
8465         * libio/freopen64.c: Likewise.
8466         * misc/syslog.c: Likewise.
8467         * nscd/connections.c: Likewise.
8468         * nscd/netgroupcache.c: Likewise.
8469         * sysdeps/posix/getcwd.c: Likewise.
8470
8471 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8472
8473         * math/w_ilogbf.c: Add #include <limits.h>.
8474
8475 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8476
8477         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8478         path instead of returning without unlocking.
8479
8480         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8481         immediate-write ioctls.
8482         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8483
8484 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8485
8486         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8487         __builtin_frame_address instead of making assumptions about the
8488         location of the return address relative to DATA.  Force early load of
8489         the return address.
8490         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8491         __builtin_frame_address.
8492
8493         dup3 for GNU Hurd.
8494         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8495         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8496         implement dup3 and do some further code clean-ups.
8497         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8498         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8499
8500 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8501
8502         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8503
8504         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8505         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8506         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8507         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8508         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8509         d->port.lock.
8510
8511         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8512         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8513         when handler == SIG_ERR, not when handler != SIG_ERR.
8514
8515 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8516
8517         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8518         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8519         definitions.
8520
8521         accept4 for GNU Hurd.
8522         * include/sys/socket.h (__libc_accept4): New prototype.
8523         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8524         to implement __libc_accept4.
8525         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8526         __libc_accept4.
8527         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8528
8529         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8530         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8531         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8532         signal-defines.sym.
8533
8534 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8535
8536         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8537
8538 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8539
8540         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8541         assertion on O_CLOEXEC flag.
8542         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8543         * hurd/intern-fd.c: Likewise.
8544         * hurd/port2fd.c: Likewise.
8545
8546 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8547
8548         [BZ #3906]
8549         * bits/in.h (IPV6_PKTINFO): Define new macro.
8550         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8551
8552 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8553
8554         [BZ #13954]
8555         [BZ #13955]
8556         [BZ #13956]
8557         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8558         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8559         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8560         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8561         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8562         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8563         * math/libm-test.inc (logb_test) : Additional logb tests.
8564
8565 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8566             Andreas Jaeger  <aj@suse.de>
8567
8568         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8569         * configure: Regenerated.
8570         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8571         * config.make.in (link-obsolete-rpc): New substituted variable.
8572         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8573         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8574         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8575         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8576         so that libc.a contains the symbols.
8577         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8578         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8579         * sunrpc/auth_none.c: Likewise.
8580         * sunrpc/auth_unix.c: Likewise.
8581         * sunrpc/authdes_prot.c: Likewise.
8582         * sunrpc/authuxprot.c: Likewise.
8583         * sunrpc/clnt_gen.c: Likewise.
8584         * sunrpc/clnt_perr.c: Likewise.
8585         * sunrpc/clnt_raw.c: Likewise.
8586         * sunrpc/clnt_simp.c: Likewise.
8587         * sunrpc/clnt_tcp.c: Likewise.
8588         * sunrpc/clnt_udp.c: Likewise.
8589         * sunrpc/clnt_unix.c: Likewise.
8590         * sunrpc/des_crypt.c: Likewise.
8591         * sunrpc/des_soft.c: Likewise.
8592         * sunrpc/get_myaddr.c: Likewise.
8593         * sunrpc/key_call.c: Likewise.
8594         * sunrpc/key_prot.c: Likewise.
8595         * sunrpc/netname.c: Likewise.
8596         * sunrpc/pm_getmaps.c: Likewise.
8597         * sunrpc/pm_getport.c: Likewise.
8598         * sunrpc/pmap_clnt.c: Likewise.
8599         * sunrpc/pmap_prot.c: Likewise.
8600         * sunrpc/pmap_prot2.c: Likewise.
8601         * sunrpc/pmap_rmt.c: Likewise.
8602         * sunrpc/publickey.c: Likewise.
8603         * sunrpc/rpc_cmsg.c: Likewise.
8604         * sunrpc/rpc_common.c: Likewise.
8605         * sunrpc/rpc_dtable.c: Likewise.
8606         * sunrpc/rpc_prot.c: Likewise.
8607         * sunrpc/rpc_thread.c: Likewise.
8608         * sunrpc/rtime.c: Likewise.
8609         * sunrpc/svc.c: Likewise.
8610         * sunrpc/svc_auth.c: Likewise.
8611         * sunrpc/svc_raw.c: Likewise.
8612         * sunrpc/svc_run.c: Likewise.
8613         * sunrpc/svc_tcp.c: Likewise.
8614         * sunrpc/svc_udp.c: Likewise.
8615         * sunrpc/svc_unix.c: Likewise.
8616         * sunrpc/svcauth_des.c: Likewise.
8617         * sunrpc/xcrypt.c: Likewise.
8618         * sunrpc/xdr.c: Likewise.
8619         * sunrpc/xdr_array.c: Likewise.
8620         * sunrpc/xdr_float.c: Likewise.
8621         * sunrpc/xdr_intXX_t.c: Likewise.
8622         * sunrpc/xdr_mem.c: Likewise.
8623         * sunrpc/xdr_rec.c: Likewise.
8624         * sunrpc/xdr_ref.c: Likewise.
8625         * sunrpc/xdr_sizeof.c: Likewise.
8626         * sunrpc/xdr_stdio.c: Likewise.
8627
8628 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8629
8630         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8631         change.  Update copyright years.
8632
8633 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8634
8635         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8636
8637 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8638             Joseph Myers  <joseph@codesourcery.com>
8639             Paul Pluzhnikov  <ppluzhnikov@google.com>
8640
8641         [BZ #14012]
8642         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8643         requiring rpcgen.
8644         [cross-compiling] (extra-libs): Likewise.
8645         [cross-compiling] (extra-libs-others): Likewise.
8646         [cross-compiling] (librpcsvc-routines): Likewise.
8647         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8648         [cross-compiling] (omit-deps): Likewise.
8649         (sunrpc-CPPFLAGS): New variable.
8650         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8651         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8652         (cross-rpcgen-objs): New variable.
8653         (extra-objs): Append $(cross-rpcgen-objs).
8654         ($(cross-rpcgen-objs)): New rule.
8655         ($(objpfx)cross-rpcgen): Likewise.
8656         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8657         comment.
8658         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8659         ($(objpfx)x%.stmp): Likewise.
8660         * sunrpc/proto.h [IS_IN_build] (_): Define.
8661         [IS_IN_build] (_libc_intl_domainname): Likewise.
8662
8663 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8664
8665         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8666         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8667         and R_X86_64_TPOFF64.
8668
8669 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8670
8671         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8672         sysdeps/unix/sysv/syscalls.list.
8673         (stime): Likewise.
8674         (utime): Likewise.
8675         * sysdeps/unix/sysv/syscalls.list: Remove file.
8676
8677 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8678
8679         [BZ #3440]
8680         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8681         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8682         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8683         (__LC_IDENTIFICATION): Make these macros useful in #if
8684         expressions, as required by C99.
8685
8686 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8687
8688         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8689         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8690         after this.
8691
8692 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8693
8694         * stdlib/longlong.h: Updated from GCC.
8695
8696 2012-05-09  Andreas Jaeger  <aj@suse.de>
8697
8698         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8699         default is first entry.
8700         (run_mode): Set type.
8701         (main): Remove informal message about syslog.
8702         (options): Fix typo.
8703
8704         [BZ #14053]
8705         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8706         to asm.
8707         (lrint): Likewise.
8708         (llrintf): Likewise.
8709         (llrint): Likewise.
8710         (rint): Likewise.
8711         (rintf): Likewise.
8712         (nearbyint): Likewise.
8713         (nearbyintf): Likewise.
8714
8715 2012-05-09  Andreas Jaeger  <aj@suse.de>
8716             Pedro Alves  <palves@redhat.com>
8717
8718         * nscd/nscd.c (run_mode): Use enum.
8719         (main): Cleanup coding style issue.
8720
8721 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8722             Andreas Jaeger  <aj@suse.de>
8723
8724         * nscd/nscd.c (go_background): Replaced with...
8725         (run_mode): ... this.
8726         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8727         (options): Add -F --foreground.
8728         (main): Implement it.
8729         (parse_opt): Parse it.
8730
8731 2012-05-09  Andreas Jaeger  <aj@suse.de>
8732
8733         [BZ #14083]
8734         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8735         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8736         -Wconversion warning.
8737         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8738         Likewise.
8739
8740 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8741
8742         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8743         == 0.
8744         (LC_ALL): Use macro-int-constant.
8745         (LC_COLLATE): Likewise.
8746         (LC_CTYPE): Likewise.
8747         (LC_MESSAGES): Likewise.
8748         (LC_MONETARY): Likewise.
8749         (LC_NUMERIC): Likewise.
8750         (LC_TIME): Likewise.
8751         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8752         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8753         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8754         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8755         Specify type.
8756         [C99-based standards] (float_t): Expect type.
8757         [C99-based standards] (double_t): Expect type.
8758         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8759         type.
8760         [C99-based standards] (HUGE_VALL): Likewise.
8761         [C99-based standards] (INFINITY): Likewise.
8762         [C99-based standards] (NAN): Likewise.
8763         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8764         [C99-based standards] (FP_NAN): Likewise.
8765         [C99-based standards] (FP_NORMAL): Likewise.
8766         [C99-based standards] (FP_SUBNORMAL): Likewise.
8767         [C99-based standards] (FP_ZERO): Likewise.
8768         [C99-based standards] (FP_FAST_FMA): Use
8769         optional-macro-int-constant.  Specify type.  Require == 1.
8770         [C99-based standards] (FP_FAST_FMAF): Likewise.
8771         [C99-based standards] (FP_FAST_FMAL): Likewise.
8772         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8773         [C99-based standards] (FP_ILOGBNAN): Likewise.
8774         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8775         Specify type.
8776         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8777         [C99-based standards] (math_errhandling): Specify type.
8778         [ISO99 || ISO11] (signgam): Do not allow.
8779         [non-C99-based standards] (copysignf): Do not allow.
8780         [non-C99-based standards] (exp2f): Likewise.
8781         [non-C99-based standards] (log2f): Likewise.
8782         [non-C99-based standards] (modff): Allow.
8783         [non-C99-based standards] (erff): Do not allow.
8784         [non-C99-based standards] (erfcf): Likewise.
8785         [non-C99-based standards] (gammaf): Likewise.
8786         [non-C99-based standards] (hypotf): Likewise.
8787         [non-C99-based standards] (j0f): Likewise.
8788         [non-C99-based standards] (j1f): Likewise.
8789         [non-C99-based standards] (jnf): Likewise.
8790         [non-C99-based standards] (lgammaf): Likewise.
8791         [non-C99-based standards] (tgammaf): Likewise.
8792         [non-C99-based standards] (y0f): Likewise.
8793         [non-C99-based standards] (y1f): Likewise.
8794         [non-C99-based standards] (ynf): Likewise.
8795         [non-C99-based standards] (isnanf): Likewise.
8796         [non-C99-based standards] (acoshf): Likewise.
8797         [non-C99-based standards] (asinhf): Likewise.
8798         [non-C99-based standards] (atanhf): Likewise.
8799         [non-C99-based standards] (cbrtf): Likewise.
8800         [non-C99-based standards] (expm1f): Likewise.
8801         [non-C99-based standards] (ilogbf): Likewise.
8802         [non-C99-based standards] (log1pf): Likewise.
8803         [non-C99-based standards] (logbf): Likewise.
8804         [non-C99-based standards] (nextafterf): Likewise.
8805         [non-C99-based standards] (remainderf): Likewise.
8806         [non-C99-based standards] (rintf): Likewise.
8807         [non-C99-based standards] (scalbf): Likewise.
8808         [non-C99-based standards] (copysignl): Likewise.
8809         [non-C99-based standards] (exp2l): Likewise.
8810         [non-C99-based standards] (log2l): Likewise.
8811         [non-C99-based standards] (modfl): Allow.
8812         [non-C99-based standards] (erfl): Do not allow.
8813         [non-C99-based standards] (erfcl): Likewise.
8814         [non-C99-based standards] (gammal): Likewise.
8815         [non-C99-based standards] (hypotl): Likewise.
8816         [non-C99-based standards] (j0l): Likewise.
8817         [non-C99-based standards] (j1l): Likewise.
8818         [non-C99-based standards] (jnl): Likewise.
8819         [non-C99-based standards] (lgammal): Likewise.
8820         [non-C99-based standards] (tgammal): Likewise.
8821         [non-C99-based standards] (y0l): Likewise.
8822         [non-C99-based standards] (y1l): Likewise.
8823         [non-C99-based standards] (ynl): Likewise.
8824         [non-C99-based standards] (isnanl): Likewise.
8825         [non-C99-based standards] (acoshl): Likewise.
8826         [non-C99-based standards] (asinhl): Likewise.
8827         [non-C99-based standards] (atanhl): Likewise.
8828         [non-C99-based standards] (cbrtl): Likewise.
8829         [non-C99-based standards] (expm1l): Likewise.
8830         [non-C99-based standards] (ilogbl): Likewise.
8831         [non-C99-based standards] (log1pl): Likewise.
8832         [non-C99-based standards] (logbl): Likewise.
8833         [non-C99-based standards] (nextafterl): Likewise.
8834         [non-C99-based standards] (remainderl): Likewise.
8835         [non-C99-based standards] (rintl): Likewise.
8836         [non-C99-based standards] (scalbl): Likewise.
8837         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8838         [non-C99-based standards] (FP_*): Do not allow.
8839         [C99-based standards] (FP_*): Change to
8840         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8841         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8842         allow.
8843         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8844         (SIG_ERR): Likewise.
8845         [X/Open-based standards] (SIG_HOLD): Likewise.
8846         (SIG_IGN): Likewise.
8847         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8848         positive value.
8849         (SIGFPE): Likewise.
8850         (SIGILL): Likewise.
8851         (SIGINT): Likewise.
8852         (SIGSEGV): Likewise.
8853         (SIGTER): Likewise.
8854         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8855         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8856         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8857         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8858         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8859         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8860         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8861         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8862         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8863         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8864         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8865         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8866         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8867         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8868         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8869         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8870         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8871         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8872         [X/Open-based standards] (SIGTRAP): Likewise.
8873         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8874         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8875         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8876         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8877         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8878         allow.
8879
8880 2012-05-08  Ian Wienand  <ianw@vmware.com>
8881
8882         [BZ #14080]
8883         * time/tzset.c (__tzset_parse_tz): Update default rules for
8884         daylight time changes in the Energy Policy Act of 2005.
8885
8886 2012-05-09  Andreas Jaeger  <aj@suse.de>
8887
8888         [BZ #13983]
8889         * elf/ldconfig.c (parse_conf): Change string to make clear that
8890         ldconfig only issued a warning if ld.so.conf does not exist.
8891
8892 2012-05-08  David S. Miller  <davem@davemloft.net>
8893
8894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8895         movxtod instead of popping the value on the stack.
8896
8897         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8898
8899 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8900
8901         * config.h.in: Add HAVE_ARM_PCS_VFP.
8902
8903 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8904
8905         [BZ #13979]
8906         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8907         checking but the checks are disabled for any reason.
8908
8909 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8910
8911         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8912         and ELF64_R_TYPE with ELFW(R_TYPE).
8913
8914 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8915
8916         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8917         (ulimit): Likewise.
8918
8919         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8920         (settimeofday): Likewise.
8921
8922 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8923
8924         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8925         a struct th_u2 inside the union, and move tu_block/tu_code into
8926         a new th_u3 union of tu_block/tu_code inside of that.  Move
8927         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8928         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8929         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8930         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8931         (th_stuff): Change to th_u1.tu_stuff.
8932         (th_data): Define.
8933         (th_msg): Change to th_u1.th_u2.tu_data.
8934
8935 2012-05-07  David S. Miller  <davem@davemloft.net>
8936
8937         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8938
8939         [BZ #14074]
8940         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8941         (SETUP_PIC_REG): Use it.
8942         (SETUP_PIC_REG_LEAF): Use it.
8943
8944 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8945
8946         [BZ #13885]
8947         [BZ #13923]
8948         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8949         USE_AS_EXPM1L.
8950         (EXPL_FINITE): Likewise.
8951         (FLDLOG): Likewise.
8952         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8953         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8954         e_expl.S.
8955         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8956         USE_AS_EXPM1L.
8957         (EXPL_FINITE): Likewise.
8958         (FLDLOG): Likewise.
8959         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8960         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8961         e_expl.S.
8962         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8963         test of -max_value argument for long double.
8964         * sysdeps/i386/fpu/libm-test-ulps: Update.
8965         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8966
8967 2012-05-06  David S. Miller  <davem@davemloft.net>
8968
8969         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8970         quad soft-float symbols whose references which are compiler
8971         generated.
8972         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8973
8974 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8975
8976         [BZ #13884]
8977         [BZ #13914]
8978         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8979         USE_AS_EXP10L.
8980         (EXPL_FINITE): Likewise.
8981         (FLDLOG): Likewise.
8982         (c0): Likewise.
8983         (c1): Likewise.
8984         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8985         Adjust comments for base varying.
8986         (__expl_finite): Change alias to EXPL_FINITE.
8987         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8988         e_expl.S.
8989         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8990         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8991         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8992         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8993         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8994         USE_AS_EXP10L.
8995         (EXPL_FINITE): Likewise.
8996         (FLDLOG): Likewise.
8997         (c0): Likewise.
8998         (c1): Likewise.
8999         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9000         Adjust comments for base varying.
9001         (__expl_finite): Change alias to EXPL_FINITE.
9002         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9003         tests for bugs.
9004         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9005
9006         [BZ #14064]
9007         * math/libm-test.inc (check_float_internal): Correct ulp
9008         calculation for subnormal expected results.
9009
9010 2012-05-06  Andreas Jaeger  <aj@suse.de>
9011
9012         * Makeconfig (+math-flags): New, set to -frounding-math.
9013         (+cflags): Add +math-flags so that all of glibc gets compiled with
9014         it.
9015
9016         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9017
9018 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9019
9020         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9021         Disable one test.
9022
9023         [BZ #13787]
9024         [BZ #13922]
9025         [BZ #14036]
9026         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9027         (__ieee754_expl): Allow for and saturate large arguments.
9028         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9029         (u_threshold): Likewise.
9030         (__exp): Call __ieee754_exp before checking for overflow and
9031         underflow.
9032         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9033         (u_threshold): Likewise.
9034         (__expf): Call __ieee754_expf before checking for overflow and
9035         underflow.
9036         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9037         (u_threshold): Likewise.
9038         (__expl): Call __ieee754_expl before checking for overflow and
9039         underflow.
9040         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9041         (__ieee754_expl): Allow for and saturate large arguments.
9042         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9043         missing overflow exception on overflow.
9044         (expm1_test): Do not allow missing overflow exception on overflow.
9045
9046         * sysdeps/i386/fpu/e_expl.c: Move to ...
9047         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9048         rather than using inline asm.
9049         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9050         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9051         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9052
9053         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9054         (nice): Likewise.
9055         (poll): Likewise.
9056         (signal): Likewise.
9057         (time): Likewise.
9058         (times): Likewise.
9059
9060 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9061
9062         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9063         sysdeps/unix/common/syscalls.list.
9064         (fchmod): Likewise.
9065         (fchown): Likewise.
9066         (ftruncate): Likewise.
9067         (getrusage): Likewise.
9068         (gettimeofday): Likewise.
9069         (setpgid): Likewise.
9070         (setregid): Likewise.
9071         (setreuid): Likewise.
9072         (sigaction): Likewise.
9073         (truncate): Likewise.
9074         (vhangup): Likewise.
9075         * sysdeps/unix/common/syscalls.list: Remove file.
9076         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9077         * sysdeps/unix/sysv/linux/Implies: Likewise.
9078
9079 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9080
9081         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9082         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9083         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9084         Moved to ...
9085         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9086         Here.
9087         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9088         to ...
9089         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9090         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9091         to ...
9092         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9093         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9094         to ...
9095         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9096         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9097         to ...
9098         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9099         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9100         to ...
9101         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9102         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9103         to ...
9104         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9105         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9106         to ...
9107         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9108         Here.
9109         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9110         to ...
9111         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9112         Here.
9113         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9114         to ...
9115         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9116         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9117         Moved to ...
9118         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9119         Here.
9120         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9121         to ...
9122         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9123
9124 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9125
9126         * sysdeps/unix/common/bits/dirent.h: Remove file.
9127         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9128
9129         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9130         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9131         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9132         * sysdeps/unix/bsd/isatty.c: Likewise.
9133         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9134         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9135         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9136
9137 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9138
9139         [BZ #13563]
9140         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9141         long double comparison inaccuracies.
9142         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9143         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9144
9145 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9146
9147         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9148         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9149
9150 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9151
9152         [BZ #14049]
9153         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9154         nonzero digits before rounding a hex value.
9155         * stdlib/tst-strtod.c (tests): Add another test.
9156
9157 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9158
9159         * sysdeps/s390/fpu/libm-test-ulps: Update.
9160
9161 2012-05-03  Andreas Jaeger  <aj@suse.de>
9162
9163         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9164         does not get optimized out.
9165         (malloc_opt_barrier): New.
9166
9167 2012-05-03  Andreas Jaeger  <aj@suse.de>
9168             Roland McGrath  <roland@hack.frob.com>
9169
9170         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9171         intermediate file deletion.
9172         (generated): Add .symlist files.
9173
9174 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9175
9176         [BZ #13775]
9177         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9178         Redirect under this condition.
9179         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9180         [__USE_GNU] (__dprintf_chk): Not under this condition.
9181         [__USE_GNU] (__vdprintf_chk): Likewise.
9182         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9183         under this condition.
9184         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9185         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9186         [__USE_XOPEN2K8] (vdprintf): Likewise.
9187         [__USE_GNU] (__dprintf_chk): Not under this condition.
9188         [__USE_GNU] (__vdprintf_chk): Likewise.
9189         [__USE_GNU] (dprintf): Likewise.
9190         [__USE_GNU] (vdprintf): Likewise.
9191
9192 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9193
9194         * elf/Makefile (common-generated): Set this instead of generated for
9195         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9196         $(all-built-dso)-derived lists.
9197
9198 2012-05-03  Andreas Jaeger  <aj@suse.de>
9199
9200         * sysdeps/i386/fpu/libm-test-ulps: Update.
9201
9202         * FAQ: Removed.
9203         * FAQ.in: Likewise.
9204         * scripts/gen-FAQ.pl: Likewise.
9205         * manual/install.texi (Installation): Point to online location of
9206         FAQ.
9207         * Makefile (files-for-dist): Remove FAQ.
9208         (FAQ): Remove.
9209
9210 2012-05-02  Allan McRae  <allan@archlinux.org>
9211
9212         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9213         (LDFLAGS-reldepmod5.so): Likewise.
9214         (LDFLAGS-reldep6mod1.so): Likewise.
9215         (LDFLAGS-reldep6mod4.so): Likewise.
9216         (LDFLAGS-reldep8mod3.so): Likewise.
9217         (LDFLAGS-unload4mod1.so): Likewise.
9218         (LDFLAGS-unload4mod2.so): Likewise.
9219         (LDFLAGS-tst-initorder): Likewise.
9220         (LDFLAGS-tst-initordera2.so): Likewise.
9221         (LDFLAGS-tst-initordera3.so): Likewise.
9222         (LDFLAGS-tst-initordera4.so): Likewise.
9223         (LDFLAGS-tst-initorderb2.so): Likewise.
9224         (LDFLAGS-noload): Likewise.
9225         (LDFLAGS-next): Likewise.
9226         (LDFLAGS-order2mod1.so): Likewise.
9227         (LDFLAGS-order2mod2.so): Likewise.
9228         (LDFLAGS-tst-initorder2): Likewise.
9229         (LDFLAGS-tst-initorder2a.so): Likewise.
9230         (LDFLAGS-tst-initorder2b.so): Likewise.
9231         (LDFLAGS-tst-initorder2c.so): Likewise.
9232         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9233
9234 2012-05-02  David S. Miller  <davem@davemloft.net>
9235
9236         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9237
9238 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9239
9240         [BZ #14055]
9241         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9242
9243 2012-05-02  Andreas Jaeger  <aj@suse.de>
9244
9245         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9246         since we manipulate rounding mode.
9247         (CPPFLAGS-test-idouble.c): Likewise.
9248         (CPPFLAGS-test-ifloat.c): Likewise.
9249         (CFLAGS-test-ldouble.c): Likewise.
9250         (CFLAGS-test-double.c): Likewise.
9251         (CFLAGS-test-float.c): Likewise.
9252         (CFLAGS-test-misc.c): Likewise.
9253         (CFLAGS-test-test-fenv.c): Likewise.
9254
9255 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9256
9257         [BZ #2550]
9258         [BZ #2570]
9259         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9260         comparisons to determine direction to adjust input.
9261
9262 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9263
9264         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9265         output to the target.
9266
9267         * scripts/localplt.awk: New file.
9268         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9269         (check-localplt-CFLAGS): Variable removed.
9270         ($(all-built-dso:=.jmprel)): New static pattern rule.
9271         (generated): Add those targets.
9272         (localplt-built-dso): New variable.
9273         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9274
9275         * elf/check-localplt.c: File removed.
9276
9277         * scripts/check-execstack.awk: New file.
9278         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9279         (check-execstack-CFLAGS): Variable removed.
9280         ($(objpfx)check-execstack.h): Target removed.
9281         ($(objpfx)execstack-default): New target.
9282         (generated): Add that instead of check-execstack.h.
9283         ($(all-built-dso:=.phdr)): New static pattern rule.
9284         (generated): Add those targets.
9285         * elf/check-execstack.c: File removed.
9286
9287         * scripts/check-textrel.awk: New file.
9288         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9289         (check-textrel-CFLAGS): Variable removed.
9290         (all-built-dso): Use := to define.o
9291         ($(all-built-dso:=.dyn)): New static pattern rule.
9292         (generated): Add those targets.
9293         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9294         * config.make.in (READELF): New substituted variable.
9295         * elf/check-textrel.c: File removed.
9296
9297 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9298
9299         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9300         allow.
9301         * conform/data/ctype.h-data [C99-based standards] (isblank):
9302         Expect function.
9303         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9304         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9305         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9306         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9307         Specify type.  Require positive value.
9308         (EILSEQ): Likewise.
9309         (ERANGE): Likewise.
9310         [ISO || POSIX] (EILSEQ): Do not expect.
9311         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9312         Specify type.  Require positive value.
9313         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9314         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9315         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9316         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9317         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9318         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9319         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9320         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9321         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9322         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9323         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9324         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9325         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9326         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9327         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9328         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9329         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9330         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9331         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9332         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9333         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9334         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9335         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9336         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9337         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9338         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9339         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9340         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9341         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9342         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9343         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9344         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9345         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9346         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9347         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9348         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9349         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9350         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9351         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9352         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9353         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9354         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9355         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9356         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9357         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9358         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9359         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9360         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9361         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9362         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9363         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9364         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9365         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9366         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9367         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9368         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9369         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9370         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9371         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9372         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9373         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9374         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9375         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9376         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9377         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9378         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9379         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9380         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9381         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9382         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9383         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9384         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9385         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9386         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9387         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9388         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9389         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9390         Require >= 2.
9391         (FLT_ROUNDS): Expect as macro, not constant.
9392         (FLT_MANT_DIG): Use macro-int-constant.
9393         (DBL_MANT_DIG): Likewise.
9394         (LDBL_MANT_DIG): Likewise.
9395         (FLT_DIG): Likewise.
9396         (DBL_DIG): Likewise.
9397         (LDBL_DIG): Likewise.
9398         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9399         (DBL_MIN_EXP): Likewise.
9400         (LDBL_MIN_EXP): Likewise.
9401         (FLT_MAX_EXP): Use macro-int-constant.
9402         (DBL_MAX_EXP): Likewise.
9403         (LDBL_MAX_EXP): Likewise.
9404         (FLT_MAX_10_EXP): Likewise.
9405         (DBL_MAX_10_EXP): Likewise.
9406         (LDBL_MAX_10_EXP): Likewise.
9407         (FLT_MAX): Use macro-constant.
9408         (DBL_MAX): Likewise.
9409         (LDBL_MAX): Likewise.
9410         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9411         (DBL_EPSILON): Likewise.
9412         (LDBL_EPSILON): Likewise.
9413         (FLT_MIN): Likewise.
9414         (DBL_MIN): Likewise.
9415         (LDBL_MIN): Likewise.
9416         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9417         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9418         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9419         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9420         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9421         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9422         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9423         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9424         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9425         [ISO11] (FLT_TRUE_MIN): Likewise.
9426         [ISO11] (LDBL_TRUE_MIN): Likewise.
9427         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9428         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9429         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9430         (SCHAR_MAX): Likewise.
9431         (UCHAR_MAX): Likewise.
9432         (CHAR_MIN): Likewise.
9433         (CHAR_MAX): Likewise.
9434         (MB_LEN_MAX): Use macro-int-constant.
9435         (SHRT_MIN): Use macro-int-constant.  Specify type.
9436         (SHRT_MAX): Likewise.
9437         (USHRT_MAX): Likewise.
9438         (INT_MAX): Likewise.
9439         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9440         bound negative.
9441         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9442         bound with "U".
9443         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9444         bound with "L".
9445         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9446         bound negative.  Suffix upper bound with "L".
9447         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9448         bound with "UL".
9449         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9450         Specify type.
9451         [C99-based standards] (LLONG_MAX): Likewise.
9452         [C99-based standards] (ULLONG_MAX): Likewise.
9453         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9454         == 0.
9455         [ISO11] (max_align_t): Require type.
9456         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9457
9458         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9459         from $CFLAGS, without defining away __attribute__ calls.
9460         (checknamespace): Use $CFLAGS_namespace.
9461
9462         * conform/conformtest.pl (@keywords): Only include C99 keywords
9463         for standards based on C99 or C11.
9464
9465         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9466         Disable tests.
9467         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9468         UNIX98]: Likewise.
9469
9470         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9471         usability of symbols in #if.
9472
9473         * conform/conformtest.pl: If macro or constant types start
9474         "promoted:", expect the symbol to be of the following type
9475         promoted by the integer promotions.
9476
9477         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9478         in one place.  Also handle "macro-constant".
9479
9480         * conform/conformtest.pl: Only accept expected macro values with
9481         "==".  Parse all "macro" lines in one place.
9482         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9483
9484         * conform/conformtest.pl: Handle braced types on "constant" lines
9485         instead of handling "typed-constant".
9486         * conform/data/signal.h-data: Use "constant" instead of
9487         "typed-constant".
9488
9489         * conform/conformtest.pl: Handle "optional-" at start of lines in
9490         one place rather than duplicating several cases.  Handle each
9491         format of "macro" line with initial "optional-".
9492
9493         * conform/conformtest.pl: Only accept expected constant or
9494         optional-constant values with "==".  Parse all "constant" lines in
9495         one place.  Parse all "optional-constant" lines in one place.
9496         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9497         * conform/data/fmtmsg.h-data: Likewise.
9498         * conform/data/netinet/in.h-data: Likewise.
9499         * conform/data/tar.h-data: Likewise.
9500         * conform/data/limits.h-data: Use "==" form on "constant" and
9501         "optional-constant" lines.
9502
9503         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9504         Use -std=c99 for XOPEN2K.
9505         (@knownproblems): Remove.
9506         (newtoken): Don't check %isknown.
9507
9508         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9509         Do not expect macro.
9510         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9511         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9512         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9513         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9514         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9515         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9516         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9517         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9518         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9519         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9520         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9521         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9522         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9523         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9524         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9525         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9526         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9527         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9528         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9529         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9530         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9531         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9532         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9533         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9534         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9535         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9536         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9537         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9538         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9539         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9540         [XPG3] (acosh): Likewise.
9541         [XPG3] (asinh): Likewise.
9542         [XPG3] (atanh): Likewise.
9543         [XPG3] (cbrt): Likewise.
9544         [XPG3] (expm1): Likewise.
9545         [XPG3] (ilogb): Likewise.
9546         [XPG3] (log1p): Likewise.
9547         [XPG3] (logb): Likewise.
9548         [XPG3] (nextafter): Likewise.
9549         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9550         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9551         [XPG3] (remainder): Likewise.
9552         [XPG3] (rint): Likewise.
9553         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9554         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9555         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9556         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9557         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9558         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9559         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9560         [UNIX98 || XOPEN2K] (scalb): Expect.
9561         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9562         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9563         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9564         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9565         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9566         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9567         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9568         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9569         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9570         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9571         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9572         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9573         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9574         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9575         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9576         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9577         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9578         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9579         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9580         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9581         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9582         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9583         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9584         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9585         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9586         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9587         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9588         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9589         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9590         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9591         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9592         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9593         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9594         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9595         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9596         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9597         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9598         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9599         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9600         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9601         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9602         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9603         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9604         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9605         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9606         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9607         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9608         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9609         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9610         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9611         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9612         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9613         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9614         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9615         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9616         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9617         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9618         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9619         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9620         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9621         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9622         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9623         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9624         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9625         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9626         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9627         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9628         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9629         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9630         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9631         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9632         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9633         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9634         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9635         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9636         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9637         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9638         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9639         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9640         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9641         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9642         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9643         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9644         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9645         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9646         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9647         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9648         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9649         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9650         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9651         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9652         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9653         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9654         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9655         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9656         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9657         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9658         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9659         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9660         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9661         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9662         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9663         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9664         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9665         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9666         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9667         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9668         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9669         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9670         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9671         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9672         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9673         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9674         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9675         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9676         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9677         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9678         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9679         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9680         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9681         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9682         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9683         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9684         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9685         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9686         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9687         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9688         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9689         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9690         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9691         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9692         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9693         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9694         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9695         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9696         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9697         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9698
9699         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9700         _XOPEN_SOURCE_EXTENDED for XPG4.
9701
9702         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9703
9704         * Makeconfig (localtime): Remove variable.
9705         (inst_localtime-file): Likewise.
9706
9707 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9708
9709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9710         Update.
9711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9712         Update.
9713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9714         Update.
9715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9716         Update.
9717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9718         Update.
9719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9720         Update.
9721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9722         Update.
9723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9724         Update.
9725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9726         Update.
9727
9728 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9729
9730         [BZ #2550]
9731         [BZ #2570]
9732         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9733         comparisons to determine direction to adjust input.
9734         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9735         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9736         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9737         Likewise.
9738         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9739         Likewise.
9740         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9741         Likewise.
9742         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9743         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9744         Likewise.
9745         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9746         Likewise.
9747         * math/libm-test.inc (nexttoward_test): Add more tests.
9748
9749 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9750
9751         [BZ #14040]
9752         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9753         in version GLIBC_2.1, not GLIBC_2.0.
9754         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9755         Likewise.
9756
9757 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9758
9759         [BZ #13942]
9760         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9761         (1 - x) * (1 + x).
9762         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9763         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9764         * math/libm-test.inc (acos_test): Add more tests.
9765         (asin_test): Likewise.
9766         * sysdeps/i386/fpu/libm-test-ulps: Update.
9767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9768
9769         [BZ #14034]
9770         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9771         of square root.
9772         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9773         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9774         * math/libm-test.inc (acos_test_tonearest): New function.
9775         (acos_test_towardzero): Likewise.
9776         (acos_test_downward): Likewise.
9777         (acos_test_upward): Likewise.
9778         (asin_test_tonearest): Likewise.
9779         (asin_test_towardzero): Likewise.
9780         (asin_test_downward): Likewise.
9781         (asin_test_upward): Likewise.
9782         (main): Call the new functions.
9783         * sysdeps/i386/fpu/libm-test-ulps: Update.
9784         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9785
9786         [BZ #13884]
9787         [BZ #13924]
9788         * math/e_exp10.c: Include <float.h>.
9789         (__ieee754_exp10): Handle underflow here rather than multiplying
9790         large negative argument by M_LN10.
9791         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9792         of __ieee754_expf.
9793         * math/e_exp10l.c: Include <float.h>.
9794         (__ieee754_exp10l): Handle underflow here rather than multiplying
9795         large negative argument by M_LN10l.
9796         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9797         spurious overflow exception on underflow.
9798
9799 2012-04-29  Marek Polacek  <polacek@redhat.com>
9800
9801         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9802         (__fortify_function): New macro.
9803         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9804         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9805         __extern_always_inline.
9806         * libio/bits/stdio2.h: Likewise.
9807         * libio/bits/stdio.h: Likewise.
9808         * string/string.h: Likewise.
9809         * string/bits/string3.h: Likewise.
9810         * include/stdio.h: Likewise.
9811         * stdlib/bits/stdlib.h: Likewise.
9812         * stdlib/stdlib.h: Likewise.
9813         * rt/bits/mqueue2.h: Likewise.
9814         * rt/mqueue.h: Likewise.
9815         * posix/bits/unistd.h: Likewise.
9816         * posix/unistd.h: Likewise.
9817         * io/bits/poll2.h: Likewise.
9818         * io/bits/fcntl2.h: Likewise.
9819         * io/fcntl.h: Likewise.
9820         * io/sys/poll.h: Likewise.
9821         * misc/bits/syslog.h: Likewise.
9822         * misc/bits/syslog-ldbl.h: Likewise.
9823         * misc/sys/syslog.h: Likewise.
9824         * socket/bits/socket2.h: Likewise.
9825         * socket/sys/socket.h: Likewise.
9826         * debug/tst-chk1.c: Likewise.
9827         * wcsmbs/bits/wchar2.h: Likewise.
9828         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9829         * wcsmbs/wchar.h: Likewise.
9830
9831 2012-04-29  Andreas Jaeger  <aj@suse.de>
9832
9833         * Makerules (tests): Remove enable-check-abi protection.
9834         (check-abi-warn): Remove.
9835         (check-abi-%): Remove check-abi-warn usage.
9836
9837         * configure.in: Remove check-abi configure option.
9838         * configure: Regenerated.
9839         * config.make.in (enable-check-abi): Remove.
9840
9841 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9842
9843         [BZ #14033]
9844         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9845         double functions to double *_finite functions.
9846
9847         [BZ #13941]
9848         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9849         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9850         LDBL_MIN_EXP.
9851         * stdio-common/Makefile (tests): Add tst-sprintf3.
9852         * stdio-common/tst-sprintf3.c: New file.
9853
9854         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9855         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9856
9857 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9858
9859         * conform/conformtest.pl: Remove duplicate typed-constant
9860         handling.
9861
9862 2012-04-28  David S. Miller  <davem@davemloft.net>
9863
9864         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9865         (check-abi-%): Remove AWK script prerequisite and explicit
9866         abilist directory.
9867         (check-abi): Rewrite to just diff the symlist with the abilist.
9868         (config-tls, config-abi-config): Delete, no longer used.
9869         (update-abi-%): Remove AWK script and explicit abilist directory.
9870         (update-abi): Rewrite to simply compare and conditionally copy the
9871         symlist and the sysdep abilist file.  Remove update-abi-config
9872         checks.
9873         * abilist/ld.abilist: Remove.
9874         * abilist/libBrokenLocale.abilist: Remove.
9875         * abilist/libanl.abilist: Remove.
9876         * abilist/libcrypt.abilist: Remove.
9877         * abilist/libdl.abilist: Remove.
9878         * abilist/librt.abilist: Remove.
9879         * abilist/libthread_db.abilist: Remove.
9880         * abilist/libutil.abilist: Remove.
9881         * scripts/extract-abilist.awk: Remove.
9882         * scripts/merge-abilist.awk: Remove.
9883         * sysdeps/generic/libcidn.abilist: New file.
9884         * sysdeps/generic/libnss_compat.abilist: New file.
9885         * sysdeps/generic/libnss_db.abilist: New file.
9886         * sysdeps/generic/libnss_dns.abilist: New file.
9887         * sysdeps/generic/libnss_files.abilist: New file.
9888         * sysdeps/generic/libnss_hesiod.abilist: New file.
9889         * sysdeps/generic/libnss_nis.abilist: New file.
9890         * sysdeps/generic/libnss_nisplus.abilist: New file.
9891         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9892         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9893         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9894         file.
9895         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9896         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9897         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9898         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9899         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9900         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9901         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9902         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9903         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9904         file.
9905         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9906         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9907         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9908         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9909         file.
9910         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9911         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9912         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9913         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9914         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9915         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9916         file.
9917         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9918         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9919         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9920         file.
9921         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9922         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9923         New file.
9924         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9925         New file.
9926         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9927         New file.
9928         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9929         New file.
9930         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9931         New file.
9932         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9933         New file.
9934         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9935         New file.
9936         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9937         New file.
9938         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9939         New file.
9940         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9941         New file.
9942         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9943         New file.
9944         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9945         New file.
9946         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9947         New file.
9948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9949         file.
9950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9951         New file.
9952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9953         New file.
9954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9955         file.
9956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9957         New file.
9958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9959         New file.
9960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9961         file.
9962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9963         New file.
9964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9965         New file.
9966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9967         New file.
9968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9969         New file.
9970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9971         New file.
9972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9973         New file.
9974         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9975         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9976         file.
9977         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9978         New file.
9979         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9980         file.
9981         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9982         file.
9983         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9984         file.
9985         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9986         file.
9987         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9988         file.
9989         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9990         New file.
9991         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9992         file.
9993         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9994         file.
9995         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9996         New file.
9997         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9998         file.
9999         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10000         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10001         file.
10002         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10003         New file.
10004         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10005         file.
10006         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10007         file.
10008         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10009         file.
10010         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10011         file.
10012         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10013         file.
10014         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10015         New file.
10016         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10017         file.
10018         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10019         file.
10020         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10021         New file.
10022         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10023         file.
10024         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10025         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10026         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10027         file.
10028         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10029         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10030         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10031         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10032         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10033         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10034         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10035         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10036         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10037         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10038         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10039         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10040         file.
10041         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10042         New file.
10043         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10044         file.
10045         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10046         file.
10047         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10048         file.
10049         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10050         file.
10051         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10052         file.
10053         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10054         New file.
10055         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10056         New file.
10057         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10058         file.
10059         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10060         New file.
10061         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10062         file.
10063         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10064         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10065         file.
10066         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10067         New file.
10068         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10069         file.
10070         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10071         file.
10072         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10073         file.
10074         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10075         file.
10076         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10077         file.
10078         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10079         New file.
10080         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10081         New file.
10082         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10083         file.
10084         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10085         New file.
10086         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10087         file.
10088
10089 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10090
10091         * conform/conformtest.pl: Fix typo in handling typed-constant from
10092         allow-header.
10093
10094 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10095
10096         * README: Cut down references to pre-2.6 Linux kernels and
10097         Linuxthreads.  Update lists of configurations in libc and ports
10098         and sort alphabetically.  Say "or newer" with Linux kernel version
10099         requirements.
10100
10101         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10102
10103 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10104
10105         [BZ #887]
10106         * math/libm-test.inc (logb_test_downward): New test to expose
10107         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10108         rounding mode.
10109
10110 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10111
10112         [BZ #14027]
10113         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10114         to be done.
10115         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10116         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10117
10118 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10119
10120         * sysdeps/unix/i386/brk.S: Remove file.
10121         * sysdeps/unix/i386/dl-brk.S: Likewise.
10122         * sysdeps/unix/i386/pipe.S: Likewise.
10123         * sysdeps/unix/i386/sigreturn.S: Likewise.
10124         * sysdeps/unix/i386/syscall.S: Likewise.
10125         * sysdeps/unix/i386/vfork.S: Likewise.
10126         * sysdeps/unix/i386/wait.S: Likewise.
10127
10128         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10129         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10130
10131         * configure.in (arm*-none*): Do not allow without
10132         --enable-hacker-mode.
10133         (netbsd*): Remove case setting base_os.
10134         (386bsd*): Likewise.
10135         (freebsd*): Likewise.
10136         (bsdi*): Likewise.
10137         (osf*): Likewise.
10138         (sunos*): Likewise.
10139         (ultrix*): Likewise.
10140         (newsos*): Likewise.
10141         (dynix*): Likewise.
10142         (*bsd*): Likewise.
10143         (sysv*): Likewise.
10144         (isc*): Likewise.
10145         (esix*): Likewise.
10146         (sco*): Likewise.
10147         (minix*): Likewise.
10148         (irix4*): Likewise.
10149         (irix6*): Likewise.
10150         (solaris[2-9]*): Likewise.
10151         (none): Likewise.
10152         * configure: Regenerated.
10153
10154 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10155
10156         [BZ #11521]
10157         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10158         overflow or cancellation in calculating denominator.
10159         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10160         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10161         down expression to avoid unexpected rounding in newer GCCs.
10162         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10163
10164 2012-04-26  David S. Miller  <davem@davemloft.net>
10165
10166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10167         long-double compat symbols.
10168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10175         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10176         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10177         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10178         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10179         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10180         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10181
10182 2012-04-25  David S. Miller  <davem@davemloft.net>
10183
10184         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10185         HWCAP_* values only after the memory barriers have been defined.
10186         (atomic_full_barrier): Define.
10187         (atomic_read_barrier): Define.
10188         (atomic_write_barrier): Define.
10189
10190 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10191
10192         * shlib-versions: Add libgcc_s version information.
10193         * sysdeps/generic/libgcc_s.h: Remove.
10194         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10195         libgcc_s.h.
10196         * sysdeps/gnu/unwind-resume.c: Likewise.
10197         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10198
10199 2012-04-25  David S. Miller  <davem@davemloft.net>
10200
10201         * sysdeps/unix/sparc/brk.S: Delete.
10202         * sysdeps/unix/sparc/dl-brk.S: Delete.
10203         * sysdeps/unix/sparc/pipe.S: Delete.
10204         * sysdeps/unix/sparc/sysdep.S: Delete.
10205         * sysdeps/unix/sparc/sysdep.h: Delete.
10206         * sysdeps/unix/sparc/vfork.S: Delete.
10207         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10208         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10209         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10210         ret_ERRVAL, r0, r1, MOVE): Define.
10211         (JUMPTARGET): Remove.
10212         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10213         sysdeps/unix/sparc/sysdep.h
10214         (ENTRY, END): Remove.
10215         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10216
10217 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10218
10219         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10220         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10221         -DIS_IN_build.
10222
10223         * timezone/README: Update upstream location and email address for
10224         tzcode and tzdata.
10225         * timezone/zdump.c: Update from tzcode 2012b.
10226         * timezone/zic.c: Likewise.
10227
10228         * configure.in (libc_cv_as_needed): Remove test.
10229         * configure: Regenerated.
10230         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10231         conditional definition.
10232         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10233         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10234         * config.make.in (have-as-needed): Remove variable.
10235
10236 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10237             Paul Pluzhnikov  <ppluzhnikov@google.com>
10238
10239         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10240         strings correctly.
10241
10242 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10243
10244         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10245         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10246         * sysdeps/sh/strlen.S: Likewise.
10247
10248 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10249
10250         * sysdeps/unix/fork.S: Remove file.
10251         * sysdeps/unix/i386/fork.S: Likewise.
10252         * sysdeps/unix/sparc/fork.S: Likewise.
10253
10254         * sysdeps/unix/system.c: Remove file.
10255         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10256
10257         * sysdeps/unix/getegid.S: Remove file.
10258         * sysdeps/unix/geteuid.S: Likewise.
10259
10260 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10261
10262         * scripts/check-localplt.awk: New file.
10263         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10264         of diff.
10265         * scripts/data/localplt-generic.data: Add a comment.
10266
10267         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10268         NODE when __dir_mkfile failed.
10269         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10270         Reported by Ludovic Courtès <ludo@gnu.org>.
10271
10272 2012-04-24  Andreas Jaeger  <aj@suse.de>
10273
10274         * Makerules (common-clean): Also remove gen-as-const-headers
10275         files.
10276
10277 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10278
10279         * Makerules (native-compile): Do not change working directory for
10280         build.  Use $(OUTPUT_OPTION) in command.
10281         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10282
10283 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10284
10285         [BZ #13886]
10286         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10287         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10288         * math/libm-test.inc (floor_test): Add more tests.
10289         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10290
10291 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10292
10293         * sysdeps/unix/getdents.c: Remove file.
10294         * sysdeps/unix/sysv/getdents.c: Likewise.
10295         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10296
10297         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10298         sysdeps/unix/mman/syscalls.list.
10299         (mmap): Likewise.
10300         (mprotect): Likewise.
10301         (msync): Likewise.
10302         (munmap): Likewise.
10303         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10304         * sysdeps/unix/mman/syscalls.list: Remove.
10305         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10306
10307         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10308         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10309         * configure: Regenerated.
10310         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10311         $(libgcc_s_suffix).
10312         * config.make.in (libgcc_s_suffix): Remove variable.
10313
10314 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10315
10316         * sysdeps/unix/sysv/gethostname.c: Move to ...
10317         * sysdeps/posix/gethostname.c: ... here.
10318
10319         * sysdeps/unix/execve.S: Remove file.
10320
10321         * sysdeps/unix/_exit.S: Remove file.
10322
10323 2012-04-23  Andreas Jaeger  <aj@suse.de>
10324
10325         [BZ #13739]
10326         * manual/Makefile: Remove make dist support, there's no
10327         need for a stand-alone documentation tar ball.
10328         (TEXI2DVI): Define always, it's not in Makeconfig.
10329         (dist): Removed.
10330         (tar-it): Removed.
10331         (edition): Removed.
10332         (glibc-doc-$(edition).tar): Removed
10333         (%.Z): Removed.
10334         (%.gz): Removed.
10335         (%.uu): Removed.
10336         (ETAGS): Remove, it's in Makeconfig.
10337         (move-if-change): Remove, it's in Makeconfig.
10338
10339 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10340
10341         [BZ #13970]
10342         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10343         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10344         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10345         (strtod_l, strtof_l, strtold_l): Remove __wur.
10346         It is not necessarily an error to ignore strtol's return value.
10347         One can reliably look at the stored endptr to decide whether
10348         the number had valid syntax.
10349
10350 2012-04-21  Andreas Jaeger  <aj@suse.de>
10351
10352         [BZ #13739]
10353         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10354
10355 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10356
10357         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10358         * sysdeps/unix/sysv/Versions: Remove file.
10359
10360 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10361
10362         [BZ #13927]
10363         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10364
10365 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10366
10367         [BZ #7064]
10368         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10369         version from __vm86.
10370
10371 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10372
10373         * sysdeps/unix/common/lxstat.c: Remove file.
10374         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10375
10376         * sysdeps/unix/sysv/Makefile: Remove file.
10377
10378         * sysdeps/unix/sysv/direct.h: Remove file.
10379
10380         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10381         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10382         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10383         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10384         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10385         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10386         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10387
10388         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10389
10390         * sysdeps/unix/xmknod.c: Remove file.
10391         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10392
10393         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10394
10395         * sysdeps/unix/sysv/i386/time.S: Remove file.
10396
10397         * sysdeps/unix/fxstat.c: Remove file.
10398         * sysdeps/unix/xstat.c: Likewise.
10399         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10400
10401         * sysdeps/unix/sysv/sigaction.c: Remove file.
10402
10403         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10404         (sysdep_headers): Remove variable.
10405         [termio.h not in sysdep_headers] (generated): Likewise.
10406         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10407         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10408         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10409         * sysdeps/unix/sysv/tcflow.c: Likewise.
10410         * sysdeps/unix/sysv/tcflush.c: Likewise.
10411         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10412         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10413         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10414         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10415         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10416
10417         * sysdeps/unix/siglist.c: Remove file.
10418
10419         * sysdeps/unix/getppid.S: Remove file.
10420
10421         * sysdeps/unix/mkdir.c: Remove file.
10422         * sysdeps/unix/rmdir.c: Likewise.
10423
10424 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10425
10426         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10427         ERR_MAX value.
10428         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10429         errlist-compat value.
10430
10431 2012-04-18  David S. Miller  <davem@davemloft.net>
10432
10433         * sysdeps/generic/memcopy.h (reg_char): Delete.
10434         * debug/strcat_chk.c: Use char, not reg_char.
10435         * debug/strcpy_chk.c: Likewise.
10436         * debug/strncat_chk.c: Likewise.
10437         * debug/strncpy_chk.c: Likewise.
10438         * string/memchr.c: Likewise.
10439         * string/memrchr.c: Likewise.
10440         * string/rawmemchr.c: Likewise.
10441         * string/strcat.c: Likewise.
10442         * string/strchr.c: Likewise.
10443         * string/strchrnul.c: Likewise.
10444         * string/strcmp.c: Likewise.
10445         * string/strcpy.c: Likewise.
10446         * string/strncat.c: Likewise.
10447         * string/strncmp.c: Likewise.
10448         * string/strncpy.c: Likewise.
10449
10450 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10451
10452         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10453         __builtin_memcopy is called when src and dest ranges are known to not
10454         overlap.
10455
10456 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10457
10458         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10459         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10460         fwd_align_merge macro call.
10461         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10462         bwd_align_merge macro call.
10463         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10464
10465 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10466
10467         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10468         bwd_align_merge macros.
10469         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10470         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10471         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10472
10473 2012-04-18  David S. Miller  <davem@davemloft.net>
10474
10475         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10476
10477 2012-04-18  Andreas Jaeger  <aj@suse.de>
10478
10479         [BZ# 6794]
10480         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10481         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10482         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10483
10484         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10485         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10486         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10487
10488         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10489         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10490         Adjust for changed ldbl-128 files.
10491
10492         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10493         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10494         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10495
10496 2012-04-17  David S. Miller  <davem@davemloft.net>
10497
10498         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10499
10500 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10501
10502         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10503         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10504         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10505         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10506         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10507         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10508
10509 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10510
10511         [BZ #6794]
10512         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10513         * math/libm-test.inc: Add ilogb errno and exception tests.
10514         * math/w_ilogb.c: New file: ilogb wrapper.
10515         * math/w_ilogbf.c: New file: ilogbf wrapper.
10516         * math/w_ilogbl.c: New file: ilogbl wrapper.
10517         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10518         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10519         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10520         exception being thrown with 0.0 as argument.
10521         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10522         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10523         exception being thrown with 0.0 as argument.
10524         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10525         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10526         exception being thrown with 0.0 as argument.
10527         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10528         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10529         exception being thrown with 0.0 as argument.
10530         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10531         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10532         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10533         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10534         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10535         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10536         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10537         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10538         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10539
10540 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10541
10542         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10543         with altivec.
10544
10545 2012-04-16  Marek Polacek  <polacek@redhat.com>
10546
10547         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10548
10549 2012-04-16  Marek Polacek  <polacek@redhat.com>
10550
10551         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10552         operands of fdivp instruction.
10553
10554 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10555
10556         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10557         * elf/tst-auditmod3b.c: Likewise.
10558         * elf/tst-auditmod4b.c: Likewise.
10559         * elf/tst-auditmod5b.c: Likewise.
10560         * elf/tst-auditmod6b.c: Likewise.
10561         * elf/tst-auditmod6c.c: Likewise.
10562         * elf/tst-auditmod7b.c: Likewise.
10563         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10564         * sysdeps/x86_64/preconfigure.in: Likewise.
10565         * sysdeps/x86_64/preconfigure: Regenerated.
10566
10567 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10568
10569         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10570         __ILP32__.
10571
10572 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10573
10574         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10575         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10576
10577 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10578
10579         [BZ #13973]
10580         * locale/iso-639.def: Fix gl language name. Spotted by
10581         Yaron Shahrabani.
10582
10583 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10584
10585         [BZ #2074]
10586         * libio/libio.h (__io_write_fn): Update comment.
10587
10588 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10589
10590         [BZ #2074]
10591         * stdio.texi (Hook Functions): The user provided writer function
10592         is not allowed to return -1.
10593
10594 2012-04-11  David S. Miller  <davem@davemloft.net>
10595
10596         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10597
10598 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10599
10600         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10601         Add a leading slash to rtkaio.
10602
10603 2012-04-11  Jim Meyering  <meyering@redhat.com>
10604
10605         [BZ #11959]
10606         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10607         It is not necessarily an error to ignore fwrite's return
10608         value.  One can reliably use ferror to test for errors after
10609         the fact.
10610
10611 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10612
10613         * bits/types.h (__snseconds_t): New type.
10614         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10615
10616         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10617         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10618         (__SNSECONDS_T_TYPE): Likewise.
10619         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10620         (__SNSECONDS_T_TYPE): Likewise.
10621         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10622         (__SNSECONDS_T_TYPE): Likewise.
10623
10624 2012-04-10  Andreas Jaeger  <aj@suse.de>
10625
10626         [BZ #2636]
10627         * manual/time.texi (Processor Time): Return type of times is
10628         elapsed real time since an arbitrary point in the past.
10629         (CPU Time): Move CLK_TCK from here...
10630         (Processor Time): ...to here.  Correct description.
10631         * manual/conf.texi (Constants for Sysconf): Correct description of
10632         _SC_CLK_TCK.
10633
10634 2012-04-10  David S. Miller  <davem@davemloft.net>
10635
10636         [BZ #13967]
10637         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10638         where the is a gap between DT_REL(A) and DT_JMPREL.
10639
10640 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10641
10642         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10643         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10644         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10645
10646 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10647
10648         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10649         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10650         (dl_main): Handle --inhibit-cache.
10651         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10652         _dl_inhibit_cache.
10653         * elf/dl-load.c (_dl_map_object): Use it.
10654         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10655
10656 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10657
10658         [BZ #13872]
10659         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10660         (__ieee754_powl): Saturate large exponents rather than testing for
10661         overflow of y*log2(x).
10662         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10663         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10664         exceptions.
10665
10666         [BZ #11521]
10667         * math/s_ctan.c: Include <float.h>.
10668         (__ctan): Avoid internal overflow or cancellation in calculating
10669         denominator.
10670         * math/s_ctanf.c: Likewise.
10671         * math/s_ctanl.c: Likewise.
10672         * math/s_ctanh.c: Likewise.
10673         * math/s_ctanhf.c: Likewise.
10674         * math/s_ctanhl.c: Likewise.
10675         * math/libm-test.inc (ctan_test): Add more tests.
10676         (ctanh_test): Likewise.
10677         * sysdeps/i386/fpu/libm-test-ulps: Update.
10678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10679
10680 2012-04-09  Andreas Jaeger  <aj@suse.de>
10681
10682         [BZ #6894]
10683         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10684         is an optional BSD extension.
10685
10686         [BZ #10254]
10687         * manual/stdio.texi (Opening Streams): Document additional fopen
10688         parameters.
10689
10690 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10691
10692         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10693         %eax without telling the compiler.
10694
10695 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10696
10697         [BZ # 13963]
10698         * manual/install.texi: Use sourceware.org.
10699
10700 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10701
10702         [BZ #13873]
10703         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10704         (__ieee754_pow): Generate overflow and underflow using huge*huge
10705         and tiny*tiny rather than just returning constant infinity or zero
10706         for large exponents.
10707         * math/libm-test.inc (pow_test): Require overflow exceptions for
10708         applicable cases of large exponents.
10709
10710         [BZ #706]
10711         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10712         (__ieee754_pow): Use iterative multiplication algorithm only for
10713         integer exponents with absolute value below 1024.  Check for odd
10714         integer exponents when using algorithm for real exponents.
10715         * math/libm-test.inc (pow_test): Add more tests.
10716         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10717
10718 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10719
10720         [BZ #13705]
10721         * math/libm-test.inc (exp_test): Do not allow overflow exception
10722         on underflow test.
10723
10724 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10725
10726         [BZ #13705]
10727         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10728         instead of __kernel_standard_f.
10729
10730 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10731
10732         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10733         * sysdeps/x86_64/memset_chk.S: Likewise.
10734
10735 2012-04-08  Andreas Jaeger  <aj@suse.de>
10736
10737         [BZ #10153]
10738         * manual/startup.texi (Environment Access): Describe return value
10739         for putenv and setenv.
10740
10741         [BZ #6895]
10742         * manual/filesys.texi (Directory Entries): Add description for
10743         DT_LNK.
10744
10745         [BZ #6890]
10746         * manual/filesys.texi (Directory Entries): Clarify that it's file
10747         system not operating system in the description of DT_UNKNOWN.
10748
10749         [BZ #6578]
10750         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10751
10752 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10753
10754         [BZ #6649]
10755         * manual/llio.texi (Opening and Closing Files): Add cross
10756         reference to explain mode argument.
10757
10758 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10759
10760         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10761         * sysdeps/x86_64/memset_chk.S: Likewise.
10762
10763 2012-04-07  David S. Miller  <davem@davemloft.net>
10764
10765         * elf/elf.h (R_SPARC_WDISP10): Define.
10766         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10767         R_SPARC_SIZE32.
10768         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10769         R_SPARC_SIZE64 and R_SPARC_H34.
10770
10771 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10772
10773         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10774         conditions and remove no longer applicable assertion.
10775
10776 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10777
10778         * bits/byteswap.h: Include <features.h>.
10779         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10780         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10781
10782 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10783
10784         * bits/byteswap.h (__bswap_16): Removed.
10785         Include <bits/byteswap-16.h> to get __bswap_16.
10786         * sysdeps/i386/bits/byteswap.h: Likewise.
10787         * sysdeps/s390/bits/byteswap.h: Likewise.
10788         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10789         * bits/byteswap-16.h: New file.
10790         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10791         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10792         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10793         * string/Makefile (headers): Add bits/byteswap-16.h.
10794
10795 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10796
10797         [BZ #13895]
10798         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10799         extra indirection.
10800         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10801         * nss/tst-nss-static.c: New.
10802
10803 2012-04-06  Robert Millan  <rmh@gnu.org>
10804
10805         [BZ #6486]
10806         * manual/llio.texi (File Position Primitive): lseek
10807         refers to WHENCE when it really means OFFSET.
10808
10809 2012-04-06  Andreas Jaeger  <aj@suse.de>
10810
10811         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10812         strncmp declarations.
10813
10814         * abilist/libc.abilist: Add __poll and __ppoll.
10815
10816 2012-04-05  David S. Miller  <davem@davemloft.net>
10817
10818         * scripts/check-local-headers.sh: Accept a host triplet in the
10819         path matched by the exclude regexp.
10820
10821         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10822         definition.
10823         * sysdeps/powerpc/powerpc32/dl-machine.h
10824         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10825         * sysdeps/s390/s390-32/dl-machine.h
10826         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10827         * sysdeps/sparc/sparc32/dl-machine.h
10828         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10829         * sysdeps/sparc/sparc64/dl-machine.h
10830         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10831
10832         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10833         lazy binding.
10834         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10835         undefined symbol errors.
10836
10837         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10838         DT_NEEDED entries.
10839
10840 2012-04-05  Michael Matz  <matz@suse.de>
10841
10842         [BZ #13592]
10843         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10844
10845 2012-04-05  Andreas Jaeger  <aj@suse.de>
10846
10847         [BZ #13908]
10848         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10849         comment.
10850
10851 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10852
10853         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10854         which ROUND is no valid rounding mode.
10855
10856 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10857
10858         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10859         read again.
10860         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10861
10862 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10863
10864         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10865         an exception using FPU order intentionally.
10866
10867 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10868
10869         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10870         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10871         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10872         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10873
10874 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10875
10876         [BZ #12340]
10877         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10878         EINVAL when BUFLEN is too smal.
10879
10880 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10881
10882         [BZ #13553]
10883         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10884         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10885
10886 2012-04-03  Andreas Jaeger  <aj@suse.de>
10887
10888         [BZ #13938]
10889         * manual/setjmp.texi (System V contexts): Fix sentence.
10890
10891         [BZ #13926]
10892         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10893         New macro for this case.
10894         [!__GNUC__] (__bswap_64): New inline function for this case.
10895         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10896         * bits/byteswap.h: Likewise.
10897         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10898         ull, guard with __GLIBC_HAVE_LONG_LONG.
10899
10900         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10901         __GLIBC_HAVE_LONG_LONG.
10902
10903         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10904         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10905
10906 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10907
10908         [BZ #13691]
10909         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10910         inptr and inend, rather than using last_ch.
10911
10912 2012-04-02  David S. Miller  <davem@davemloft.net>
10913
10914         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10915         * stdio-common/printf-parse.h (read_int): Change return type to
10916         'int', return -1 on INT_MAX overflow.
10917         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10918         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10919         overflows INT_MAX.  Check for overflow of in-format-string precision
10920         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10921         SIZE_MAX not INT_MAX for integer overflow test.
10922         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10923         skip the construct in the format string but do not record anything.
10924         * stdio-common/bug22.c: Adjust to test both width/prevision
10925         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10926         explicitly for proper errno values.
10927
10928 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10929
10930         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10931         CHAR_MAX.
10932         * string/test-strcmp.c [! WIDE]: Likewise.
10933         * time/tst-mktime2.c: Likewise for INT_MAX.
10934         * string/test-string.h: #include <sys/param.h> for MIN.
10935
10936         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10937         * sysdeps/i386/init-first.c (init): Likewise.
10938         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10939         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10940         * sysdeps/sh/init-first.c (init): Likewise.
10941
10942 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10943
10944         * po/ru.po: Update from translation team.
10945         * po/vi.po: Likewise.
10946
10947 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10948
10949         * resolv/nss_dns/dns-host.c: Merge copyright years.
10950
10951 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10952
10953         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10954         Optimize memcpy with prefetch if
10955         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10956         src, dst pointers have unequal 16 byte alignments.
10957
10958 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10959
10960         [BZ #13928]
10961         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10962         from a CNAME entry and return the minimum ttl for the query.
10963         (gaih_getanswer_slice): Likewise.
10964
10965 2012-03-30  Jeff Law  <law@redhat.com>
10966
10967         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10968         due to long keys.
10969         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10970         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10971
10972         * resolv/nss_dns/dns-host.c: Update copyright year.
10973
10974 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10975
10976         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10977         requests to save a system call.  Fix check that all bytes are sent.
10978
10979         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10980         comments for sendmmsg.
10981
10982 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10983
10984         [BZ #13691]
10985         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10986         with only 1 character between 0x0041 and 0x01b0.
10987         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10988         * wcsmbs/tst-mbsnrtowcs.c: New file.
10989
10990 2012-03-29  David S. Miller  <davem@davemloft.net>
10991
10992         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10993         small copies by hand.
10994
10995 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10996
10997         [BZ #13761]
10998         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10999         _nss_compat_initgroups_dyn): Fall back to malloc/free
11000         for large group memberships.
11001
11002 2012-03-28  David S. Miller  <davem@davemloft.net>
11003
11004         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11005         that branches into memcpy.
11006         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11007         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11008         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11009         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11010         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11011         bits.
11012         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11013         implementation too.
11014         * sysdeps/sparc/mempcpy.S: New file.
11015
11016         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11017         the IFUNC routine in the libc case.
11018         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11019
11020         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11021         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11022         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11023         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11024         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11025         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11026         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11027         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11028
11029         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11030         loop to 256 bytes instead of 64 bytes and fix test signedness.
11031
11032         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11033         * sysdeps/sparc/sparc32/Makefile: rather than here...
11034         * sysdeps/sparc/sparc64/Makefile: and here.
11035
11036 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11037
11038         * malloc/mallocbug.c: Avoid warnings about unused variables.
11039
11040 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11041
11042         [BZ #13760]
11043         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11044         in the right place. Discard and retry query if response is
11045         larger than input buffer size.
11046
11047 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11048
11049         [BZ #369]
11050         [BZ #2678]
11051         [BZ #3866]
11052         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11053         x for large integer exponent.
11054         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11055         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11056         sign of result as needed afterwards.
11057         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11058         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11059         result for underflowing pow the same as for overflow.
11060         (__kernel_standard_l): Handle powl overflow and underflow here
11061         rather than calling __kernel_standard.
11062         * math/libm-test.inc (pow_test): Add more tests.
11063
11064         [BZ #3868]
11065         [BZ #13879]
11066         [BZ #13910]
11067         [BZ #13911]
11068         [BZ #13912]
11069         [BZ #13913]
11070         [BZ #13915]
11071         [BZ #13916]
11072         [BZ #13917]
11073         [BZ #13918]
11074         [BZ #13919]
11075         [BZ #13920]
11076         [BZ #13921]
11077         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11078         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11079         (__kernel_standard_l): New function.
11080         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11081         __kernel_standard.
11082         * math/w_acosl.c (__acosl): Likewise.
11083         * math/w_asinl.c (__asinl): Likewise.
11084         * math/w_atan2l.c (__atan2l): Likewise.
11085         * math/w_atanhl.c (__atanhl): Likewise.
11086         * math/w_coshl.c (__coshl): Likewise.
11087         * math/w_exp10l.c (__exp10l): Likewise.
11088         * math/w_exp2l.c (__exp2l): Likewise.
11089         * math/w_fmodl.c (__fmodl): Likewise.
11090         * math/w_hypotl.c (__hypotl): Likewise.
11091         * math/w_j0l.c (__j0l, __y0l): Likewise.
11092         * math/w_j1l.c (__j1l, __y1l): Likewise.
11093         * math/w_jnl.c (__jnl, __ynl): Likewise.
11094         * math/w_lgammal.c (__lgammal): Likewise.
11095         * math/w_log10l.c (__log10l): Likewise.
11096         * math/w_log2l.c (__log2l): Likewise.
11097         * math/w_logl.c (__logl): Likewise.
11098         * math/w_powl.c (__powl): Likewise.
11099         * math/w_remainderl.c (__remainderl): Likewise.
11100         * math/w_scalbl.c (sysv_scalbl): Likewise.
11101         * math/w_sinhl.c (__sinhl): Likewise.
11102         * math/w_sqrtl.c (__sqrtl): Likewise.
11103         * math/w_tgammal.c (__tgammal): Likewise.
11104         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11105         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11106         * math/libm-test.inc (acos_test): Add more tests.
11107         (acosh_test): Likewise.
11108         (asin_test): Likewise.
11109         (atanh_test): Likewise.
11110         (exp_test): Likewise.
11111         (exp10_test): Likewise.
11112         (exp2_test): Likewise.
11113         (expm1_test): Likewise.
11114         (lgamma_test): Likewise.
11115         (log_test): Likewise.
11116         (log10_test): Likewise.
11117         (log1p_test): Likewise.
11118         (log2_test): Likewise.
11119         (pow_test): Do not allow some spurious overflow exceptions.
11120         (sqrt_test): Add more tests.
11121         (tgamma_test): Likewise.
11122         (y0_test): Likewise.
11123         (y1_test): Likewise.
11124         (yn_test): Likewise.
11125
11126 2012-03-27  Anton Blanchard  <anton@samba.org>
11127
11128         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11129         MAP_HUGETLB.
11130         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11131         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11132         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11133
11134 2012-03-27  David S. Miller  <davem@davemloft.net>
11135
11136         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11137
11138         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11139         have-as-vis3 check.
11140
11141 2012-03-27  Andreas Jaeger  <aj@suse.de>
11142
11143         * sysdeps/x86_64/elf/configure.in: Moved to ...
11144         * sysdeps/x86_64/configure.in: ... here.
11145         * sysdeps/x86_64/elf/start.S: Moved to ...
11146         * sysdeps/x86_64/start.S: ... here.
11147         * sysdeps/x86_64/elf/configure: Delete.
11148
11149         * sysdeps/x86_64/configure.in: Merge contents from
11150         sysdeps/i386/configure.in (without i686 check).
11151
11152         * sysdeps/i386/elf/Versions: Merge into ...
11153         * sysdeps/i386/Versions: ... this.
11154         * sysdeps/i386/elf/Versions: Delete file.
11155         * sysdeps/i386/elf/start.S: Moved to ...
11156         * sysdeps/i386/start.S: ...here.
11157         * sysdeps/i386/elf/configure.in: Merge into...
11158         * sysdeps/i386/configure.in: ...here.
11159         * sysdeps/i386/elf/configure.in: Delete file.
11160         * sysdeps/i386/elf/configure: Delete file.
11161
11162         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11163         * debug/backtracesyms.c: ... here.
11164         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11165         * debug/backtracesymsfd.c: ... here.
11166         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11167         * sysdeps/generic/ifunc-sel.h: ... here.
11168
11169         * sysdeps/unix/i386/start.c: Delete file.
11170         * sysdeps/unix/sparc/start.c: Delete file.
11171         * sysdeps/unix/start.c: Delete file.
11172
11173         * sysdeps/sh/elf/configure.in: Moved to ...
11174         * sysdeps/sh/configure.in: ... here.
11175         * sysdeps/sh/elf/start.S: Moved to ...
11176         * sysdeps/sh/start.S: ... here.
11177         * sysdeps/sh/elf/configure: Delete file.
11178
11179         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11180         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11181         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11182         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11183         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11184         * sysdeps/powerpc/powerpc64/start.S: here.
11185         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11186         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11187         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11188         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11189         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11190
11191         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11192         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11193         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11194         * sysdeps/powerpc/powerpc32/start.S: ... here.
11195         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11196         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11197         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11198
11199         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11200         * sysdeps/powerpc/ifunc-sel.h: ... here.
11201         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11202         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11203
11204         * sysdeps/sparc/elf/configure.in: Moved to ...
11205         * sysdeps/sparc/configure.in: ... here.
11206         * sysdeps/sparc/elf/configure: Delete file.
11207         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11208         * sysdeps/sparc/sparc32/start.S: ... here.
11209         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11210         * sysdeps/sparc/sparc64/start.S: ... here.
11211         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11212         * sysdeps/sparc/sparc32/Makefile: ... this.
11213         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11214         * sysdeps/sparc/sparc64/Makefile: ... this.
11215
11216         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11217         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11218         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11219         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11220         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11221         * sysdeps/s390/s390-32/setjmp.S: ... here.
11222         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11223         * sysdeps/s390/s390-32/configure.in: ... here.
11224         * sysdeps/s390/s390-32/elf/configure: Delete file.
11225         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11226         * sysdeps/s390/s390-32/start.S: ... here.
11227
11228         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11229         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11230         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11231         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11232         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11233         * sysdeps/s390/s390-64/setjmp.S: ... here.
11234         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11235         * sysdeps/s390/s390-64/configure.in: ... here
11236         * sysdeps/s390/s390-64/elf/configure: Delete file.
11237         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11238         * sysdeps/s390/s390-64/start.S: ... here.
11239         * sysdeps/s390/s390-64/elf/configure: Delete.
11240
11241         * configure.in: Remove support for elf directories in sysdeps.
11242
11243         * configure: Regenerated.
11244         * sysdeps/i386/configure: Regenerated.
11245         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11246         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11247         * sysdeps/s390/s390-32/configure: Regenerated.
11248         * sysdeps/s390/s390-64/configure: Regenerated.
11249         * sysdeps/sh/configure: Regenerated.
11250         * sysdeps/sparc/configure: Regenerated.
11251         * sysdeps/x86_64/configure: Regenerated.
11252
11253 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11254
11255         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11256
11257         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11258         denormal result into account.
11259
11260 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11261
11262         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11263         Reported by Allan McRae <allan@archlinux.org>.
11264
11265 2012-03-23  Jeff Law  <law@redhat.com>
11266
11267         * nss/getnssent.c (__nss_getent): Fix typo.
11268
11269 2012-03-23  David S. Miller  <davem@davemloft.net>
11270
11271         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11272
11273 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11274
11275         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11276         to pad to uint64_t for each field.
11277         (dl_tls_index): Replace unsigned long with uint64_t.
11278
11279 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11280         Paul Pluzhnikov  <ppluzhnikov@google.com>
11281
11282         [BZ #6528]
11283         * grp/Makefile (otherlibs): Don't set it.
11284         * inet/Makefile (otherlibs): Likewise.
11285         * login/Makefile (otherlibs): Likewise.
11286         * nscd/Makefile (otherlibs): Likewise.
11287         * posix/Makefile (otherlibs): Likewise.
11288         * pwd/Makefile (otherlibs): Likewise.
11289         * rt/Makefile (otherlibs): Likewise.
11290         * sunrpc/Makefile (otherlibs): Likewise.
11291         * nss/Makefile (otherlibs): Likewise.
11292         Add libnss_files to routines and static-only-routines.
11293         ($(objpfx)getent): Remove rule.
11294         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11295         static-only-routines.
11296
11297 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11298
11299         [BZ #13892]
11300         * math/s_cexp.c: Include <float.h>.
11301         (__cexp): Handle exp result overflowing not necessarily
11302         overflowing both real and imaginary parts of result.
11303         * math/s_cexpf.c: Likewise.
11304         * math/s_cexpl.c: Likewise.
11305         * math/libm-test.inc (cexp_test): Add more tests.
11306         * sysdeps/i386/fpu/libm-test-ulps: Update.
11307         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11308
11309 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11310
11311         * include/link.h (ELFW): New macro.
11312         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11313         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11314
11315 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11316
11317         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11318         with uint64_t.
11319
11320 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11321
11322         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11323         declaration.
11324         (struct La_x32_retval): Likewise.
11325
11326 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11327
11328         * sysdeps/x86_64/preconfigure.in: New file.
11329         * sysdeps/x86_64/preconfigure: New generated file.
11330
11331 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11332
11333         [BZ #13824]
11334         * math/e_exp2l.c: Include <float.h>.
11335         (__ieee754_exp2l): Handle overflow and underflow cases
11336         separately.  Only pass fractional part of argument to
11337         __ieee754_expl.
11338         * math/libm-test.inc (exp2_test): Add more tests.
11339
11340         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11341         negating x to take absolute value.
11342         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11343         Likewise.
11344         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11345         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11346         Likewise.
11347         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11348         computing low part if x was negated.
11349         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11350
11351 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11352
11353         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11354         la_x32_gnu_pltexit.
11355         (pltexit): Cast int_retval to ptrdiff_t.
11356         * elf/tst-auditmod3b.c: Likewise.
11357         * elf/tst-auditmod4b.c: Likewise.
11358         * elf/tst-auditmod5b.c: Likewise.
11359         * elf/tst-auditmod6b.c: Likewise.
11360         * elf/tst-auditmod6c.c: Likewise.
11361         * elf/tst-auditmod7b.c: Likewise.
11362
11363         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11364         and x32_gnu_pltexit.
11365
11366         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11367         __ELF_NATIVE_CLASS.
11368         (La_x32_regs): New macro.
11369         (La_x32_retval): Likewise.
11370         (la_x32_gnu_pltenter): New function prototype.
11371         (la_x32_gnu_pltexit): Likewise.
11372
11373 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11374
11375         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11376         exponent.
11377
11378         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11379
11380         * configure.in (libc_cv_cc_nofma): Check for option to disable
11381         generation of FMA instructions.
11382         * configure: Regenerate.
11383         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11384         * sysdeps/ieee754/dbl-64/Makefile: New file.
11385         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11386         Remove brandred-fma4.
11387         (CFLAGS-brandred-fma4.c): Remove.
11388         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11389         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11390         define.
11391         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11392         define.
11393
11394 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11395
11396         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11397         LLONG_MAX != LONG_MAX.
11398         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11399         (_fitoa_word): Likewise.
11400         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11401         LLONG_MAX != LONG_MAX.
11402         * stdio-common/_itowa.h: Include <_itoa.h>.
11403         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11404         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11405         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11406         only if not defined.
11407         (_ITOA_WORD_TYPE): Likewise.
11408         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11409         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11410
11411 2012-03-21  David S. Miller  <davem@davemloft.net>
11412
11413         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11414
11415 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11416
11417         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11418         of x86_64 when setting libc_cv_slibdir, libdir and
11419         libc_cv_localedir.
11420         * sysdeps/unix/sysv/linux/configure: Regenerated.
11421
11422 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11423
11424         * manual/lang.texi (Old Varargs): Remove section.
11425         (How Variadic): Update menu.
11426         (va_start): Do not mention varargs.h.
11427
11428 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11429             Joseph Myers  <joseph@codesourcery.com>
11430
11431         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11432         link test.
11433         * configure: Regenerated.
11434
11435 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11436
11437         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11438         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11439         conformtest.pl
11440
11441 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11442
11443         * NOTES: Remove.
11444         * Makefile (files-for-dist): Remove NOTES.
11445         (NOTES): Remove rule.
11446         * README: Don't refer to NOTES.
11447         * manual/creature.texi: Don't include macros.texi.
11448         * manual/intro.texi (creature.texi): Remove comment referring to
11449         NOTES.
11450
11451         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11452         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11453         * configure: Regenerated.
11454         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11455         LIBC_TRY_CC_OPTION.
11456         (libc_cv_as_i686): Likewise.
11457         (libc_cv_cc_avx): Likewise.
11458         (libc_cv_cc_sse2avx): Likewise.
11459         (libc_cv_cc_fma4): Likewise.
11460         (libc_cv_cc_novzeroupper): Likewise.
11461         * sysdeps/i386/configure: Regenerated.
11462
11463         [BZ #13883]
11464         * sysdeps/i386/fpu/s_cexp.S: Remove.
11465         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11466         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11467         * math/libm-test.inc (cexp_test): Add more tests.
11468         * sysdeps/i386/fpu/libm-test-ulps: Update.
11469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11470
11471 2012-03-21  Allan McRae  <allan@archlinux.org>
11472
11473         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11474
11475 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11476
11477         [BZ #13871]
11478         * math/w_exp2.c: Do not include <float.h>.
11479         (o_threshold, u_threshold): Remove.
11480         (__exp2): Calculate result before checking finiteness and calling
11481         __kernel_standard.
11482         * math/w_exp2f.c: Likewise.
11483         * math/w_exp2l.c: Likewise.
11484         * math/libm-test.inc (exp2_test): Require overflow exception for
11485         1e6 input.
11486
11487         [BZ #3866]
11488         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11489         range of signed 64-bit integers before using fistpll.  Remove
11490         checks for whether integers fit in mantissa bits.
11491         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11492         the range of signed 32-bit integers before using fistpl.  Remove
11493         checks for whether integers fit in mantissa bits.
11494         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11495         (__ieee754_powl): Test for y outside the range of signed 64-bit
11496         integers before using fistpll.  Reduce 64-bit values to 63-bit
11497         ones as needed.
11498         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11499         divide-by-zero is raised for zero to large negative powers.
11500         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11501         (__ieee754_powl): Test for y outside the range of signed 64-bit
11502         integers before using fistpll.  Reduce 64-bit values to 63-bit
11503         ones as needed.
11504         * math/libm-test.inc (pow_test): Add more tests.
11505
11506 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11507
11508         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11509         <stdio-common/_itoa.h>.
11510         * debug/segfault.c: Likewise.
11511         * elf/dl-cache.c: Likewise.
11512         * elf/dl-minimal.c: Likewise.
11513         * elf/dl-misc.c: Likewise.
11514         * elf/dl-sysdep.c: Likewise.
11515         * elf/dl-version.c: Likewise.
11516         * elf/rtld.c: Likewise.
11517         * hurd/hurdsock.c: Likewise.
11518         * hurd/lookup-retry.c: Likewise.
11519         * malloc/malloc.c: Likewise.
11520         * malloc/mtrace.c: Likewise.
11521         * nscd/nscd_getgr_r.c: Likewise.
11522         * nscd/nscd_getpw_r.c: Likewise.
11523         * nscd/nscd_getserv_r.c: Likewise.
11524         * posix/getopt_init.c: Likewise.
11525         * posix/wordexp.c: Likewise.
11526         * stdio-common/_itoa.c: Likewise.
11527         * stdio-common/printf_fphex.c: Likewise.
11528         * stdio-common/vfprintf.c: Likewise.
11529         * string/_strerror.c: Likewise.
11530         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11531         * sysdeps/i386/i686/hp-timing.h: Likewise.
11532         * sysdeps/mach/_strerror.c: Likewise.
11533         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11534         * sysdeps/mach/hurd/sethostid.c: Likewise.
11535         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11536         * sysdeps/mach/xpg-strerror.c: Likewise.
11537         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11538         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11539         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11540         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11541         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11542         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11543         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11544         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11545         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11546         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11547         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11548         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11549         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11550         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11551         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11552         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11553         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11554         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11555         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11556         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11557         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11558
11559         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11560
11561         * stdio-common/_itoa.h: Moved to ...
11562         * sysdeps/generic/_itoa.h: Here.
11563
11564         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11565
11566         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11567         instead of "_itoa.h" and "_itowa.h".
11568         * stdio-common/vfprintf.: Likewise.
11569
11570 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11571
11572         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11573         <bits/wordsize.h>.
11574         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11575         (__signbit): Likwise.
11576         (llrintf): Likwise.
11577         (llrint): Likwise.
11578
11579 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11580
11581         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11582         __WORDSIZE != 64.
11583
11584 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11585
11586         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11587         OVERFLOW_EXCEPTION_OK.
11588         * math/libm-test.inc ("Philosophy"): Update comment about
11589         exception testing.
11590         (OVERFLOW_EXCEPTION): Define.
11591         (OVERFLOW_EXCEPTION_OK): Likewise.
11592         (INVALID_EXCEPTION_OK): Renumber.
11593         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11594         (IGNORE_ZERO_INF_SIGN): Likewise.
11595         (test_exceptions): Handle FE_OVERFLOW.
11596         (exp10_test): Expect overflow exceptions.
11597         (exp2_test): Likewise.
11598         (expm1_test): Likewise.
11599         (nextafter_test): Likewise.
11600         (pow_test): Likewise.
11601         (scalbn_test): Likewise.
11602         (scalbln_test): Likewise.
11603
11604 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11605
11606         * sysdeps/x86_64/bits/atomic.h
11607         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11608         64bit integer.
11609         (atomic_exchange_acq): Likewise.
11610         (__arch_exchange_and_add_body): Likewise.
11611         (__arch_add_body): Likewise.
11612         (atomic_add_negative): Likewise.
11613         (atomic_add_zero): Likewise.
11614
11615 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11616
11617         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11618         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11619
11620 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11621
11622         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11623         Check __x86_64__ instead of __WORDSIZE.
11624
11625 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11626
11627         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11628
11629 2012-03-19  David S. Miller  <davem@davemloft.net>
11630
11631         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11632
11633         * sysdeps/sparc/fpu/fenv_private.h: New file.
11634         * sysdeps/sparc/fpu/math_private.h: Use it.
11635         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11636         Remove.
11637         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11638         (libc_feholdexcept_setroundl): Remove.
11639         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11640         Remove.
11641         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11642         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11643
11644 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11645
11646         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11647         int64_t instead of long int.
11648         (INSERT_WORDS64): Likwise.
11649
11650 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11651
11652         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11653         _Unwind_GetCFA return to _Unwind_Ptr first.
11654
11655 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11656
11657         [BZ #13629]
11658         * math/s_clog.c: Include <float.h>.
11659         (__clog): Scale large or subnormal inputs.
11660         * math/s_clogf.c: Likewise.
11661         * math/s_clogl.c: Likewise.
11662         * math/s_clog10.c: Include <float.h>.
11663         (M_LOG10_2): Define.
11664         (__clog10): Scale large or subnormal inputs.
11665         * math/s_clog10f.c: Likewise.
11666         * math/s_clog10l.c: Likewise.
11667         * math/libm-test.inc (clog_test): Add more tests.
11668         (clog10_test): Likewise.
11669         * sysdeps/i386/fpu/libm-test-ulps: Update.
11670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11671
11672         [BZ #11451]
11673         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11674         x and y.
11675         * math/libm-test.inc (atan2_test): Add another test.
11676
11677         * Makerules (common-objdir-compile): Remove.
11678         * sysdeps/unix/Makefile (config-generated): Do not add
11679         $(unix-generated) to variable.
11680         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11681         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11682         Remove rule.
11683         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11684         Likewise.
11685         [generic bits/local_lim.h] (before-compile): Do not append to
11686         variable.
11687         [generic bits/local_lim.h] (common-generated): Likewise.
11688         [generic sys/param.h] (before-compile): Do not append to variable.
11689         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11690         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11691         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11692         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11693         include.
11694         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11695         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11696         [generic sys/param.h] ($(addprefix
11697         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11698         [generic sys/param.h] (common-generated): Do not append to
11699         variable.
11700         [generic sys/param.h] (sysdep_headers): Likewise.
11701         [generic bits/errno.h] (before-compile): Do not append to
11702         variable.
11703         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11704         rule.
11705         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11706         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11707         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11708         [generic bits/errno.h] (common-generated): Do not append to
11709         variable.
11710         [generic bits/ioctls.h] (before-compile): Do not append to
11711         variable.
11712         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11713         rule.
11714         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11715         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11716         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11717         rule.
11718         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11719         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11720         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11721         [generic bits/ioctls.h] (common-generated): Do not append to
11722         variable.
11723         [generic sys/syscall.h] (syscall.h): Remove variable.
11724         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11725         rule.
11726         [generic sys/syscall.h] (before-compile): Do not append to
11727         variable.
11728         [generic sys/syscall.h] (common-generated): Likewise.
11729         * sysdeps/unix/errnos-tmpl.c: Remove file.
11730         * sysdeps/unix/errnos.awk: Likewise.
11731         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11732         * sysdeps/unix/ioctls.awk: Likewise.
11733         * sysdeps/unix/mk-local_lim.c: Likewise.
11734         * sysdeps/unix/snarf-ioctls: Likewise.
11735
11736 2012-03-19  Richard Henderson  <rth@twiddle.net>
11737
11738         * sysdeps/i386/fpu/fenv_private.h: New file.
11739         * sysdeps/i386/fpu/math_private.h: Use it.
11740         (math_opt_barrier, math_force_eval): Remove.
11741         (libc_feholdexcept_setround_53bit): Remove.
11742         (libc_feupdateenv_53bit): Remove.
11743         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11744         (math_opt_barrier, math_force_eval): Remove.
11745         (libc_feholdexcept): Remove.
11746         (libc_feholdexcept_setround): Remove.
11747         (libc_fetestexcept, libc_fesetenv): Remove.
11748         (libc_feupdateenv_test): Remove.
11749         (libc_feupdateenv, libc_feholdsetround): Remove.
11750         (libc_feresetround): Remove.
11751
11752         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11753         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11754
11755         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11756         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11757         (libc_feupdateenv_testl): New.
11758         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11759         (libc_feupdateenv_testf): New.
11760         (libc_feupdateenv): Use libc_feupdateenv_test.
11761         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11762         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11763
11764         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11765         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11766         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11767         (libc_feresetround_noex): New.
11768         (libc_feresetround_noexf): New.
11769         (libc_feresetround_noexl): New.
11770         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11771         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11772         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11773         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11774         SET_RESTORE_ROUND.
11775         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11776         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11777         (__cos): Likewise.
11778         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11779         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11780         SET_RESTORE_ROUND_NOEX.
11781         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11782         SET_RESTORE_ROUND_NOEXF.
11783         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11784         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11785         (libc_feholdsetroundf): New.
11786         (libc_feresetround, libc_feresetroundf): New.
11787
11788         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11789         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11790         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11791
11792         * sysdeps/generic/math_private.h: Include <fenv.h>.
11793         (default_libc_feholdexcept): New.
11794         (default_libc_feholdexcept_setround): New.
11795         (default_libc_fesetenv, default_libc_feupdateenv): New.
11796         (libc_feholdexcept): Only define if undefined.
11797         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11798         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11799         (libc_feholdexcept_setroundl): Likewise.
11800         (libc_feholdexcept_setround_53bit): Likewise.
11801         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11802         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11803         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11804         (libc_feupdateenv_53bit): Likewise.
11805         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11806         (libc_feholdexcept): Convert from macro to inline function.
11807         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11808         (libc_fesetenv, libc_feupdateenv): Likewise.
11809
11810         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11811         not previously defined.
11812         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11813         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11814         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11815         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11816         * sysdeps/ieee754/flt-32/math_private.h: New file.
11817         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11818         math_private.h below SET_FLOAT_WORD.
11819         (__isnan, __isinf_ns, __finite): Remove.
11820         (__isnanf, __isinf_nsf, __finitef): Remove.
11821
11822 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11823
11824         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11825
11826 2012-03-17  David S. Miller  <davem@davemloft.net>
11827
11828         [BZ #6471]
11829         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11830         for 2.16.
11831
11832 2012-03-16  David S. Miller  <davem@davemloft.net>
11833
11834         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11835         warnings.
11836
11837         [BZ #6471]
11838         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11839         properly.
11840         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11841         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11842         sysdep_routines when subdir is sysvipc.
11843         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11844         __getshmlba helper.
11845
11846         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11847
11848 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11849
11850         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11851         [__LP64__].
11852
11853 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11854
11855         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11856         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11857         (__lround): Renamed to ...
11858         (__llround): This.  Replace long int with long long int.
11859         Define lround functions as aliases of llround functions.
11860         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11861
11862 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11863
11864         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11865         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11866         adresses to uintptr_t.  Replace "long int" and "unsigned long
11867         int" with "greg_t" on va_arg.
11868
11869 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11870
11871         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11872         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11873
11874         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11875         Move e_machine check before EI_CLASS check.  Handle x32
11876         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11877         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11878         SKIP_EM_IA_64 and include
11879         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11880
11881         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11882         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11883         (add_system_dir): New macro.
11884
11885         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11886         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11887
11888 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11889
11890         [BZ #2551]
11891         [BZ #2552]
11892         [BZ #2553]
11893         [BZ #2554]
11894         [BZ #2562]
11895         [BZ #2563]
11896         [BZ #2565]
11897         [BZ #2566]
11898         [BZ #2576]
11899         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11900         (y0): Likewise.
11901         * math/w_j0f.c (j0f): Likewise.
11902         (y0f): Likewise.
11903         * math/w_j0l.c (__j0l): Likewise.
11904         (__y0l): Likewise.
11905         * math/w_j1.c (j1): Likewise.
11906         (y1): Likewise.
11907         * math/w_j1f.c (j1f): Likewise.
11908         (y1f): Likewise.
11909         * math/w_j1l.c (__j1l): Likewise.
11910         (__y1l): Likewise.
11911         * math/w_jn.c (jn): Likewise.
11912         (yn): Likewise.
11913         * math/w_jnf.c (jnf): Likewise.
11914         (ynf): Likewise.
11915         * math/w_jnl.c (__jnl): Likewise.
11916         (__ynl): Likewise.
11917         * math/libm-test.inc (j0_test): Add more tests.
11918         (j1_test): Likewise.
11919         (jn_test): Likewise.  Add trailing semicolon to existing test.
11920         (y0_test): Likewise.
11921         (y1_test): Likewise.
11922         * sysdeps/i386/fpu/libm-test-ulps: Update.
11923         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11924
11925         [BZ #13851]
11926         [BZ #13854]
11927         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11928         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11929         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11930         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11931         (__tanl): Set errno for infinite argument.
11932         * sysdeps/i386/fpu/mptan.c: Remove.
11933         * sysdeps/i386/fpu/s_tan.S: Likewise.
11934         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11935         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11936         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11937         * math/libm-test.inc (tan_test): Add more tests and enable more
11938         tests for double and long double.
11939         * sysdeps/i386/fpu/libm-test-ulps: Update.
11940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11941
11942 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11943
11944         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11945         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11946
11947 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11948
11949         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11950         * configure.in: Use it for both main tree and add-ons.
11951         * configure: Regenerated.
11952
11953 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11954
11955         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11956
11957 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11958
11959         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11960         in comment.
11961
11962         [BZ #13851]
11963         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11964         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11965         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11966         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11967         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11968         infinite argument.
11969         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11970         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11971         != 0 for prec == 2.
11972         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11973         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11974         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11975         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11976         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11977         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11978         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11979         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11980         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11981         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11982         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11983         * math/libm-test.inc (cos_test): Add more tests and enable more
11984         tests for long double.
11985         (sin_test): Likewise.
11986         (sincos_test): Likewise.
11987         * sysdeps/i386/fpu/libm-test-ulps: Update.
11988         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11989
11990 2012-03-16  David S. Miller  <davem@davemloft.net>
11991
11992         * sysdeps/sparc/fpu/math_private.h: New file.
11993
11994 2012-03-15  David S. Miller  <davem@davemloft.net>
11995
11996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11997         file.
11998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12000         file.
12001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12002         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12003         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12004         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12005         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12006         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12007         sysdep routines.
12008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12009
12010         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12011         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12012
12013         * sysdeps/sparc/sparc-ifunc.h: New file.
12014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12015         sparc-ifunc.h
12016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12018         Likewise.
12019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12020         Likewise.
12021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12025         Likewise.
12026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12031         Likewise.
12032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12033         Likewise.
12034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12038         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12039         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12040         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12041         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12042         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12043         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12044         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12045         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12046         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12047         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12048         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12049         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12050         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12051         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12052         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12053         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12054         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12055         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12056         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12057         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12058
12059 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12060
12061         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12062         scaling.
12063         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12064
12065 2012-03-15  Andreas Jaeger  <aj@suse.de>
12066
12067         [BZ #13852]
12068         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12069         ieee754/flt-32 implementation for sin, cos and sincos.
12070         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12071         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12072         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12073         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12074         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12075         ieee754/flt-32 implementation for tan.
12076
12077         * math/libm-test.inc (cos_test): Enable some large input tests for
12078         float as well
12079         (sin_test): Likewise.
12080         (sincos_test): Likewise.
12081         (tan_test): Add tests for large input.
12082
12083         * sysdeps/i386/fpu/libm-test-ulps: Update.
12084
12085 2012-03-15  Andreas Jaeger  <aj@suse.de>
12086
12087         [BZ #13658]
12088         * math/libm-test.inc (cos_test): Add more test cases.
12089         (sin_test): Likewise.
12090         (sincos_test): Likewise.
12091
12092 2012-03-15  Andreas Jaeger  <aj@suse.de>
12093
12094         [BZ #13837]
12095         * math/libm-test.inc (cos_test): Add a test case for large input
12096         value.
12097         (sin_test): Likewise.
12098         (sincos_test): Likewise.
12099
12100 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12101         Joseph Myers  <joseph@codesourcery.com>
12102
12103         [BZ #13658]
12104         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12105         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12106         * sysdeps/i386/fpu/branred.c: Likewise.
12107         * sysdeps/i386/fpu/dosincos.c: Likewise.
12108         * sysdeps/i386/fpu/mpa.c: Likewise.
12109         * sysdeps/i386/fpu/s_cos.S: Likewise.
12110         * sysdeps/i386/fpu/s_sin.S: Likewise.
12111         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12112         * sysdeps/i386/fpu/sincos32.c: Likewise.
12113
12114         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12115         Define.
12116         (libc_feupdateenv_53bit): Define.
12117         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12118         Define.
12119         (libc_feupdateenv_53bit): Define.
12120
12121         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12122         53 bit (without extend i386 double precision).
12123
12124         * math/libm-test.inc (sincos_test): Add tests for large input.
12125         (sin): Likewise.
12126         (cos): Likewise.
12127
12128         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12129
12130 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12131
12132         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12133
12134 2012-03-15  David S. Miller  <davem@davemloft.net>
12135
12136         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12137         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12138         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12139         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12140         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12141         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12142         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12143         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12144         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12145         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12146         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12147         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12148         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12149         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12150         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12152         file.
12153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12155         file.
12156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12158         file.
12159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12161         file.
12162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12163         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12164         fmin/fmax sysdep routines.
12165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12166
12167 2012-03-14  David S. Miller  <davem@davemloft.net>
12168
12169         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12170         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12171         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12172         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12173         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12174         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12175         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12176         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12177         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12178         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12179         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12180         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12181         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12182         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12183         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12184         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12185         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12186         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12187         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12188         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12189         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12190         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12191         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12192         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12193         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12194         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12195         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12196         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12197         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12198         routines.
12199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12200         file.
12201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12203         file.
12204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12205         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12206         file.
12207         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12209         file.
12210         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12211         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12212         file.
12213         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12215         file.
12216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12217         file.
12218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12219         file.
12220         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12221         file.
12222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12223         New file.
12224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12225         file.
12226         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12227         file.
12228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12230         file.
12231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12233         file.
12234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12236         file.
12237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12239         VIS3 routines.
12240
12241         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12242         New file.
12243
12244         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12245
12246         * sysdeps/sparc/configure.in: New file.
12247         * sysdeps/sparc/configure: Generate.
12248         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12249         * configure: Regenerate.
12250         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12251         * config.make.in (have-as-vis3): New.
12252         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12253         available use -Av9d instead of -Av9a.
12254         * sysdeps/sparc/sparc64/Makefile: Likewise.
12255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12257         New file.
12258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12259         file.
12260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12261         New file.
12262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12263         file.
12264         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12265         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12266         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12267         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12268         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12269
12270         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12271         fzeros/fnegs to load 0x80000000 into a float register instead of
12272         using the stack.
12273         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12274
12275 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12276
12277         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12278         bits/syscall.h.
12279         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12280         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12281         ($(inst_includedir)/bits/syscall.h): Remove rule.
12282         ($(objpfx)bits/syscall.d): Include instead of
12283         $(objpfx)syscall-list.d.
12284         (generated): Change syscall-list.h and syscall-list.d to
12285         bits/syscall.h and bits/syscall.d.
12286
12287 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12288
12289         [BZ #13846]
12290         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12291
12292 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12293
12294         [BZ #13841]
12295         * math/s_csqrt.c: Include <float.h>.
12296         (__csqrt): Scale large or subnormal inputs.
12297         * math/s_csqrtf.c: Likewise.
12298         * math/s_csqrtl.c: Likewise.
12299         * math/libm-test.inc (csqrt_test): Add more tests.
12300         * sysdeps/i386/fpu/libm-test-ulps: Update.
12301         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12302
12303         [BZ #13840]
12304         * math/libm-test.inc (hypot_test): Add more tests.
12305
12306 2012-03-13  David S. Miller  <davem@davemloft.net>
12307
12308         [BZ #13840]
12309         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12310         double-precision for the calculation instead of scaling.
12311
12312 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12313
12314         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12315         manipulate bits before adding and subtracting TWO52[sx].
12316         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12317         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12318         Likewise.
12319         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12320
12321 2012-03-13  David S. Miller  <davem@davemloft.net>
12322
12323         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12324         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12325         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12326         rtld-global-offsets.h
12327         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12328
12329         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12330         large parameters.
12331
12332         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12333
12334         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12335         'err' in the ifdef scope in which it is actually used.
12336
12337         * nss/nss_db/db-init.c: Include string.h
12338
12339 2012-03-12  David S. Miller  <davem@davemloft.net>
12340
12341         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12342         masking out of the most significant byte of random value used.
12343         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12344         Fix coding style in previous change.
12345
12346         * sysdeps/unix/sysv/linux/kernel-features.h
12347         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12348         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12349         expression.
12350         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12351         later.
12352
12353 2012-03-11  David S. Miller  <davem@davemloft.net>
12354
12355         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12356         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12357         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12358         for 'resultvar' otherwise things get truncated on 64-bit.
12359
12360         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12361         Fix masking out of the most significant byte of random value used.
12362
12363         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12364
12365 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12366
12367         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12368
12369 2012-03-09  David S. Miller  <davem@davemloft.net>
12370
12371         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12372         variables with appropriate CPP guards.
12373         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12374         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12375         on resulting framesize and the management of the outregs buffer for pltexit.
12376         Preserve floating point return values across _dl_call_pltexit call.
12377         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12378         framesize and the management of the outregs buffer for pltexit.
12379         Preserve floating point return values across _dl_call_pltexit
12380         call.
12381         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12382         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12383         (print_exit): Fix format string for return register value.
12384
12385 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12386
12387         * sunrpc/Makefile (others): Add rpcgen.
12388         ($(objpfx)rpcgen): Remove special build rule and dependency on
12389         libc.
12390         * sunrpc/rpcgen.c: New file.
12391
12392 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12393
12394         [BZ #13673]
12395         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12396         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12397         * sysdeps/i386/crti.S: Likewise.
12398         * sysdeps/i386/crtn.S: Likewise.
12399         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12400         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12401         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12402         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12403         * sysdeps/sh/crti.S: Likewise.
12404         * sysdeps/sh/crtn.S: Likewise.
12405         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12406
12407         [BZ #13673]
12408         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12409         with URL.
12410         * locale/programs/locfile-kw.gperf: Likewise.
12411         * locale/programs/charmap-kw.h: Regenerated.
12412         * locale/programs/locfile-kw.h: Likewise.
12413
12414         [BZ #13673]
12415         * intl/plural.y: Replace FSF snail mail address with URL.
12416         * intl/plural.c: Regenerated.
12417
12418 2012-03-09  Richard Henderson  <rth@twiddle.net>
12419
12420         * include/math_private.h: Remove file.
12421         * math/math_private.h: Move file ...
12422         * sysdeps/generic/math_private.h: ... here.
12423
12424         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12425         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12426         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12427
12428         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12429         and <math_private.h>.
12430         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12431         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12432         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12433         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12434         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12435         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12436         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12437         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12438         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12439         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12440         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12441         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12442         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12443         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12444         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12445         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12446         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12447         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12448         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12449         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12450         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12451         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12452         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12453         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12454         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12455         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12456         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12457         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12458         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12459         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12460         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12461         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12462         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12463         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12464         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12465         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12466         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12467         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12468         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12469         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12470         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12471         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12472         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12473         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12474         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12475         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12476         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12477         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12478         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12479         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12480         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12481         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12482         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12483         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12484         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12485         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12486         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12487         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12488         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12489         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12490         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12491         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12492         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12493         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12494         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12495         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12496         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12497         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12498         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12499         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12500         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12501         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12502         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12503         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12504         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12505         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12506         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12507         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12508         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12509         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12510         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12511         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12512         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12513         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12514         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12515         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12516         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12517         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12518         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12519         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12520         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12521         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12522         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12523         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12524         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12525         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12526         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12527         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12528         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12529         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12530         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12531         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12532         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12533         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12534         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12535         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12536         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12537         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12538         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12539         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12540         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12541         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12542         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12543         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12544         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12545         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12546         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12547         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12548         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12549         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12550         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12551         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12552         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12553         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12554         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12555         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12556         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12557         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12558         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12559         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12560         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12561         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12562         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12563         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12564         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12565         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12566         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12567         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12568         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12569         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12570         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12571         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12572         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12573         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12574         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12575         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12576         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12577         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12578         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12579         * sysdeps/ieee754/k_standard.c: Likewise.
12580         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12581         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12582         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12583         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12584         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12585         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12586         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12587         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12588         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12589         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12590         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12591         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12592         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12593         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12594         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12595         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12596         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12597         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12598         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12599         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12600         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12601         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12602         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12603         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12604         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12605         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12606         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12607         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12608         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12609         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12610         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12611         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12612         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12613         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12614         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12615         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12616         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12617         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12618         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12619         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12620         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12621         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12622         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12623         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12624         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12625         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12626         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12627         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12628         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12629         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12630         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12631         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12632         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12633         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12634         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12635         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12636         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12637         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12638         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12639         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12640         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12641         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12642         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12643         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12644         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12645         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12646         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12647         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12648         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12649         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12650         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12651         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12652         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12653         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12654         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12655         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12656         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12657         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12658         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12659         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12660         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12661         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12662         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12663         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12664         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12665         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12666         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12667         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12668         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12669         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12670         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12671         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12672         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12673         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12674         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12675         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12676         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12677         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12678         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12679         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12680         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12681         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12682         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12683         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12684         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12685         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12686         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12687         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12688         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12689         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12690         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12691         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12692         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12693         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12694         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12695         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12696         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12697         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12698         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12699         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12700         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12701         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12702         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12703         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12704         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12705         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12706         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12707         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12708         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12709         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12710         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12711         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12712         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12713         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12714         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12715         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12716         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12717         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12718         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12719         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12720         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12721         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12722         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12723         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12724         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12725         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12726         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12727         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12728         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12729         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12730         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12731         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12732         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12733         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12734         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12735         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12736         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12737         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12738         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12739         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12740         * sysdeps/ieee754/s_lib_version.c: Likewise.
12741         * sysdeps/ieee754/s_matherr.c: Likewise.
12742         * sysdeps/ieee754/s_signgam.c: Likewise.
12743         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12744         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12745         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12746         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12747         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12748         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12749         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12750         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12751         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12752         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12753         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12754         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12755         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12756         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12757         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12758         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12759         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12760         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12761         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12762         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12763         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12764
12765 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12766
12767         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12768         * sunrpc/rpc_main.c: Likewise.
12769         * sunrpc/rpc_svcout.c: Likewise.
12770
12771 2012-03-09  David S. Miller  <davem@davemloft.net>
12772
12773         * include/math_private.h: New file.
12774
12775 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12776
12777         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12778         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12779         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12780         from <bits/socket_type.h>.
12781         (enum __socket_type): Don't define here.
12782         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12783         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12784         bits/socket_type.h.
12785
12786         [BZ #13566]
12787         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12788         checking __USE_GNU.
12789
12790         * Makerules ($(inst_includedir)/%.h): New rule.
12791         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12792         (install-others): Remove variable setting.
12793         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12794
12795 2012-03-08  Richard Henderson  <rth@twiddle.net>
12796
12797         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12798         from macro to inline function; merge with the
12799         !__LIBC_INTERNAL_MATH_INLINES version.
12800         (__ieee754_sqrtf): Likewise.
12801
12802         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12803         to inline function.
12804         (__rintf, __floor, __floorf): Likewise.
12805
12806         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12807         macro to inline function.
12808         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12809
12810         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12811         not <math/math_private.h>.
12812
12813 2012-03-08  David S. Miller  <davem@davemloft.net>
12814
12815         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12816         copyright year.
12817         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12818
12819 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12820
12821         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12822         normalization.
12823         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12824         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12825
12826 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12827
12828         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12829         be defined individually, they must be defined as a block.  Define
12830         S for printing a string instead of hidint the different by using a
12831         macro for adding the 'l'.
12832         * stdio-common/tst-fphex-wide.c: Adjust.
12833
12834 2012-03-07  Marek Polacek  <polacek@redhat.com>
12835
12836         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12837
12838 2012-03-08  Marek Polacek  <polacek@redhat.com>
12839
12840         [BZ #13806]
12841         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12842         * stdio-common/tst-fphex.c: Define a few macros to make the
12843         test reusable.  Use them.
12844         * stdio-common/tst-fphex-wide.c: New file.
12845
12846 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12847
12848         [BZ #6911]
12849         * manual/macros.texi (gnusystems): New macro.
12850         (nongnusystems): Likewise.
12851         (gnulinuxhurdsystems): Likewise.
12852         (gnuhurdsystems): Likewise..
12853         (gnulinuxsystems): Likewise.
12854         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12855         variants of the GNU system, not "GNU system".
12856         * manual/conf.texi: Likewise.
12857         * manual/errno.texi: Likewise.  Update example of errno macro
12858         expansion.
12859         * manual/filesys.texi: Likewise.
12860         (getumask): Document as specific to GNU/Hurd.
12861         * manual/install.texi: Likewise.  Reword some references to
12862         GNU/Linux.
12863         * manual/intro.texi: Likewise.
12864         * manual/io.texi: Likewise.
12865         (File Name Portability): Detail which constraints are inapplicable
12866         to all GNU systems and which are only inapplicable to GNU/Hurd.
12867         * manual/job.texi: Likewise.
12868         * manual/llio.texi: Likewise.
12869         (O_NOCTTY): Document as present on GNU/Linux.
12870         * manual/maint.texi: Likewise.
12871         * manual/memory.texi: Likewise.
12872         * manual/pattern.texi: Likewise.
12873         * manual/pipe.texi: Likewise.
12874         * manual/process.texi: Likewise.
12875         * manual/resource.texi: Likewise.
12876         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12877         child on GNU/Hurd.
12878         * manual/setjmp.texi: Likewise.
12879         * manual/signal.texi: Likewise.
12880         * manual/startup.texi: Likewise.
12881         * manual/stdio.texi: Likewise.
12882         * manual/terminal.texi: Likewise.
12883         (ONLCR): Document as POSIX.
12884         (OXTABS): Document availability on GNU/Linux as XTABS.
12885         (ONOEOT): Document availability separately from other bits.
12886         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12887         * manual/time.texi: Likewise.
12888         * manual/users.texi: Likewise.
12889         * INSTALL: Regenerated.
12890         * sysdeps/gnu/errlist.c: Regenerated.
12891
12892         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12893         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12894         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12895         puts.
12896         * configure: Regenerated.
12897
12898 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12899
12900         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12901         default includes instead of AC_HEADER_CHECK.
12902         * sysdeps/i386/configure: Regenerated.
12903
12904         [BZ #10716]
12905         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12906         * math/s_cacoshf.c (__cacoshf): Likewise.
12907         * math/s_cacoshl.c (__cacoshl): Likewise.
12908         * math/s_casinh.c (__casinh): Set signs of result from argument.
12909         * math/s_casinhf.c (__casinhf): Likewise.
12910         * math/s_casinhl.c (__casinhl): Likewise.
12911         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12912         (casinh_test): Add more tests.
12913         * sysdeps/i386/fpu/libm-test-ulps: Update.
12914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12915
12916 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12917
12918         * po/zh_TW.po: Update from translation team.
12919
12920         * login/Makefile (distribute): Remove variable.
12921         * catgets/Makefile: Likewise.
12922         * mach/Makefile: Likewise.
12923         * malloc/Makefile: Likewise.
12924         * misc/Makefile: Likewise.
12925         * iconv/Makefile: Likewise.
12926         * nscd/Makefile: Likewise.
12927         * hurd/Makefile: Likewise.
12928         * manual/Makefile: Likewise.
12929         * locale/Makefile: Likewise.
12930         * intl/Makefile: Likewise.
12931         * conform/Makefile: Likewise.
12932         * nss/Makefile: Likewise.
12933         * time/Makefile: Likewise.
12934         * soft-fp/Makefile: Likewise.
12935         * dirent/Makefile: Likewise.
12936         * gmon/Makefile: Likewise.
12937         * po/Makefile: Likewise.
12938         * rt/Makefile: Likewise.
12939         * socket/Makefile: Likewise.
12940         * math/Makefile: Likewise.
12941         * signal/Makefile: Likewise.
12942         * debug/Makefile: Likewise.
12943         * elf/Makefile: Likewise.
12944         * timezone/Makefile: Likewise.
12945         * stdlib/Makefile: Likewise.
12946         * iconvdata/Makefile: Likewise.
12947         * sunrpc/Makefile: Likewise.
12948         * io/Makefile: Likewise.
12949         * argp/Makefile: Likewise.
12950         * inet/Makefile: Likewise.
12951         * hesiod/Makefile: Likewise.
12952         * grp/Makefile: Likewise.
12953         * csu/Makefile: Likewise.
12954         * wctype/Makefile: Likewise.
12955         * crypt/Makefile: Likewise.
12956         * libio/Makefile: Likewise.
12957         * string/Makefile: Likewise.
12958         * nis/Makefile: Likewise.
12959         * resolv/Makefile: Likewise.
12960         * stdio-common/Makefile: Likewise.
12961         * wcsmbs/Makefile: Likewise.
12962         * dlfcn/Makefile: Likewise.
12963         * posix/Makefile: Likewise.
12964
12965         [BZ #6959]
12966         * timezone/Makefile: Don't install timezone files, just the programs
12967         and scripts.
12968
12969 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12970
12971         * nss/databases.def: Add missing gshadow entry.
12972
12973         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12974
12975 2012-03-06  Marek Polacek  <polacek@redhat.com>
12976
12977         [BZ #13726]
12978         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12979         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12980         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12981         * stdio-common/tst-long-dbl-fphex.c: New file.
12982
12983 2012-03-06  David S. Miller  <davem@davemloft.net>
12984
12985         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12986         (set_obp_int): New function.
12987         (get_obp_int): New function.
12988         (__get_clockfreq_via_dev_openprom): Likewise.
12989         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12990         Avoid unused variable warnings on 'val' and use builtin_expect.
12991         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12992         __builtin_expect.
12993         (INLINE_CLONE_SYSCALL): Likewise.
12994
12995 2012-03-05  David S. Miller  <davem@davemloft.net>
12996
12997         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12998
12999 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13000
13001         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13002
13003         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13004         only for |x| >= 40.
13005         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13006
13007 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13008
13009         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13010         Replace gettimeofday with __vdso_gettimeofday.
13011
13012         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13013         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13014         __vdso_clock_gettime and __vdso_getcpu.
13015
13016         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13017         time with __vdso_time.
13018
13019 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13020
13021         * manual/lang.texi (size_t): Note types to which size_t may be
13022         equivalent with the GNU C Library, but do not describe when
13023         differences between them are significant.
13024
13025 2012-03-05  Andreas Jaeger  <aj@suse.de>
13026
13027         * sysdeps/i386/fpu/libm-test-ulps: Update.
13028
13029 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13030
13031         [BZ #3976]
13032         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13033         (__ieee754_pow): Save and restore rounding mode and use
13034         round-to-nearest for main computations.
13035         * math/libm-test.inc (pow_test_tonearest): New function.
13036         (pow_test_towardzero): Likewise.
13037         (pow_test_downward): Likewise.
13038         (pow_test_upward): Likewise.
13039         (main): Call the new functions.
13040         * sysdeps/i386/fpu/libm-test-ulps: Update.
13041         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13042
13043         [BZ #3976]
13044         * math/libm-test.inc (cosh_test_tonearest): New function.
13045         (cosh_test_towardzero): Likewise.
13046         (cosh_test_downward): Likewise.
13047         (cosh_test_upward): Likewise.
13048         (sinh_test_tonearest): Likewise.
13049         (sinh_test_towardzero): Likewise.
13050         (sinh_test_downward): Likewise.
13051         (sinh_test_upward): Likewise.
13052         (main): Call the new functions.
13053         * sysdeps/i386/fpu/libm-test-ulps: Update.
13054         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13055
13056 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13057
13058         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13059         default stack guard is set in last bytes.
13060         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13061
13062 2012-03-05  Kees Cook  <keescook@chromium.org>
13063
13064         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13065
13066         [BZ #13656]
13067         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13068         possibly allocate from heap instead of stack.
13069         * stdio-common/bug-vfprintf-nargs.c: New file.
13070         * stdio-common/Makefile (tests): Add nargs overflow test.
13071
13072 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13073
13074         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13075
13076 2012-03-03  Marek Polacek  <polacek@redhat.com>
13077
13078         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13079         * math/math_private.h: Likewise.
13080         * stdlib/tst-strtod.c: Likewise.
13081         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13082         * sysdeps/x86_64/bits/atomic.h: Likewise.
13083
13084 2012-03-02  David S. Miller  <davem@davemloft.net>
13085
13086         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13087         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13088         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13089         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13090         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13091         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13092         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13093         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13094
13095 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13096
13097         [BZ #13792]
13098         * manual/examples/README: New file, says the example source files
13099         can be used under GPL>=2.
13100         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13101         line containing just "*/".
13102         * manual/examples/add.c: Add copyright header (GPL>=2).
13103         * manual/examples/argp-ex1.c: Likewise.
13104         * manual/examples/argp-ex2.c: Likewise.
13105         * manual/examples/argp-ex3.c: Likewise.
13106         * manual/examples/argp-ex4.c: Likewise.
13107         * manual/examples/atexit.c: Likewise.
13108         * manual/examples/db.c: Likewise.
13109         * manual/examples/dir.c: Likewise.
13110         * manual/examples/dir2.c: Likewise.
13111         * manual/examples/execinfo.c: Likewise.
13112         * manual/examples/filecli.c: Likewise.
13113         * manual/examples/filesrv.c: Likewise.
13114         * manual/examples/fmtmsgexpl.c: Likewise.
13115         * manual/examples/genpass.c: Likewise.
13116         * manual/examples/inetcli.c: Likewise.
13117         * manual/examples/inetsrv.c: Likewise.
13118         * manual/examples/isockad.c: Likewise.
13119         * manual/examples/longopt.c: Likewise.
13120         * manual/examples/memopen.c: Likewise.
13121         * manual/examples/memstrm.c: Likewise.
13122         * manual/examples/mkfsock.c: Likewise.
13123         * manual/examples/mkisock.c: Likewise.
13124         * manual/examples/mygetpass.c: Likewise.
13125         * manual/examples/pipe.c: Likewise.
13126         * manual/examples/popen.c: Likewise.
13127         * manual/examples/rprintf.c: Likewise.
13128         * manual/examples/search.c: Likewise.
13129         * manual/examples/select.c: Likewise.
13130         * manual/examples/setjmp.c: Likewise.
13131         * manual/examples/sigh1.c: Likewise.
13132         * manual/examples/sigusr.c: Likewise.
13133         * manual/examples/stpcpy.c: Likewise.
13134         * manual/examples/strdupa.c: Likewise.
13135         * manual/examples/strftim.c: Likewise.
13136         * manual/examples/strncat.c: Likewise.
13137         * manual/examples/subopt.c: Likewise.
13138         * manual/examples/swapcontext.c: Likewise.
13139         * manual/examples/termios.c: Likewise.
13140         * manual/examples/testopt.c: Likewise.
13141         * manual/examples/testpass.c: Likewise.
13142         * manual/examples/timeval_subtract.c: Likewise.
13143
13144         [BZ #13792]
13145         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13146         function to ...
13147         * manual/timeval_subtract.c.texi: ... here, new file.
13148
13149 2012-03-02  David S. Miller  <davem@davemloft.net>
13150
13151         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13152
13153 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13154
13155         [BZ #3976]
13156         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13157         (__sin): Save and restore rounding mode and use round-to-nearest
13158         for all computations.
13159         (__cos): Save and restore rounding mode and use round-to-nearest
13160         for all computations.
13161         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13162         <fenv.h>.
13163         (tan): Save and restore rounding mode and use round-to-nearest for
13164         all computations.
13165         * math/libm-test.inc (cos_test_tonearest): New function.
13166         (cos_test_towardzero): Likewise.
13167         (cos_test_downward): Likewise.
13168         (cos_test_upward): Likewise.
13169         (sin_test_tonearest): Likewise.
13170         (sin_test_towardzero): Likewise.
13171         (sin_test_downward): Likewise.
13172         (sin_test_upward): Likewise.
13173         (tan_test_tonearest): Likewise.
13174         (tan_test_towardzero): Likewise.
13175         (tan_test_downward): Likewise.
13176         (tan_test_upward): Likewise.
13177         (main): Call the new functions.
13178         * sysdeps/i386/fpu/libm-test-ulps: Update.
13179         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13180
13181         [BZ #10135]
13182         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13183         small n, then large n, before computing and testing k+n.
13184         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13185         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13186         Likewise.
13187         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13188         Likewise.
13189         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13190         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13191         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13192         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13193         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13194         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13195         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13196         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13197         * math/libm-test.inc (scalbn_test): Add more tests.
13198         (scalbln_test): Likewise.
13199
13200         * manual/filesys.texi (mode_t): Describe constraints on size and
13201         signedness, not exact equivalence to a particular type.
13202         (ino_t): Likewise.
13203         (ino64_t): Likewise.
13204         (dev_t): Likewise.
13205         (nlink_t): Likewise.
13206         (blkcnt_t): Likewise.
13207         (blkcnt64_t): Likewise.
13208         * manual/llio.texi (off_t): Likewise.
13209
13210         [BZ #3976]
13211         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13212         (__ieee754_exp): Save and restore rounding mode and use
13213         round-to-nearest for all computations.
13214         * math/libm-test.inc (exp_test_tonearest): New function.
13215         (exp_test_towardzero): Likewise.
13216         (exp_test_downward): Likewise.
13217         (exp_test_upward): Likewise.
13218         (main): Call the new functions.
13219         * sysdeps/i386/fpu/libm-test-ulps: Update.
13220         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13221
13222 2012-03-01  Chris Demetriou  <cgd@google.com>
13223
13224         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13225         have predictable order.
13226
13227 2012-03-01  David S. Miller  <davem@davemloft.net>
13228
13229         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13230
13231         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13232         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13233         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13234         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13235
13236         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13237         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13238         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13239         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13240         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13241         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13242         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13243         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13244         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13245
13246         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13247
13248         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13249         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13250         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13251
13252         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13253         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13254         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13255         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13256         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13257         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13258         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13259         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13260         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13261         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13262         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13263         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13264         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13265         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13266         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13267         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13268         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13269         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13270         * sysdeps/sparc/elf/configure: Regenerated.
13271
13272 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13273
13274         * configure.in (AS, LD): Require binutils 2.20 or later.
13275         * configure: Regenerated.
13276         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13277         as required minimum version.
13278         * INSTALL: Regenerated.
13279
13280         [BZ #2541]
13281         [BZ #4108]
13282         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13283         before squaring exponent.
13284         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13285         bottom long double and 27 bits of top long double before squaring
13286         exponent.
13287         * math/libm-test.inc (erfc_test): Add more tests.
13288         * sysdeps/i386/fpu/libm-test-ulps: Update.
13289         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13291
13292 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13293
13294         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13295         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13296         containing bit-fields.
13297         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13298         * soft-fp/single.h (_FP_UNION_S): Likewise.
13299         * soft-fp/double.h (_FP_UNION_D): Likewise.
13300
13301 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13302
13303         [BZ #13786]
13304         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13305         not include ../strcmp.S.
13306         [USE_AS_STRNCASECMP_L]: Likewise.
13307         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13308         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13309         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13310         (__strncasecmp_l_ia32): Define as alias to
13311         __strncasecmp_l_nonascii.
13312
13313         [BZ #5794]
13314         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13315         * sysdeps/i386/fpu/libm-test-ulps: Update.
13316         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13317
13318         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13319         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13320
13321 2012-02-29  Jeff Law  <law@redhat.com>
13322
13323         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13324         out of bounds read.
13325
13326 2012-02-29  Marek Polacek  <polacek@redhat.com>
13327
13328         [BZ #13706]
13329         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13330         * elf/Makefile: Add rules to run tst-unused-dep.out.
13331
13332 2012-02-28  David S. Miller  <davem@davemloft.net>
13333
13334         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13335         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13336         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13337         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13338         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13339         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13340
13341 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13342
13343         * math/libm-test.inc (llround_test): Move one test from
13344         lround_test.  Use TEST_f_L in moved test.
13345         (lround_test): Move misplaced test to llround_test.  Add testcase
13346         from bug 2561.
13347
13348 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13349
13350         * sysdeps/x86_64/fpu/e_expf.S: New file.
13351         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13352
13353 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13354
13355         [BZ #13637]
13356         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13357         of remain_len that may cause incomplete multi-byte character and
13358         false match.
13359         * posix/bug-regex33.c: New file.
13360         * posix/Makefile (tests): Add bug-regex33.
13361
13362 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13363
13364         * manual/macros.texi: New file.
13365         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13366         * manual/libc.texinfo: Include macros.texi.
13367         * manual/creatute.texi: Likewise.
13368         * manual/install.texi: Likewise.
13369         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13370         @glibcadj{} in references to the GNU C Library.
13371         * manual/charset.texi: Likewise.
13372         * manual/conf.texi: Likewise.
13373         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13374         when not using those macros.
13375         * manual/creature.texi: Likewise.
13376         * manual/crypt.texi: Likewise.
13377         * manual/errno.texi: Likewise.
13378         * manual/filesys.texi: Likewise.
13379         * manual/header.texi: Likewise.
13380         * manual/install.texi: Likewise.
13381         * manual/intro.texi: Likewise.
13382         * manual/io.texi: Likewise.
13383         * manual/job.texi: Likewise.
13384         * manual/lang.texi: Likewise.
13385         * manual/libc.texiinfo: Likewise.
13386         * manual/llio.texi: Likewise.
13387         * manual/locale.texi: Likewise.
13388         * manual/maint.texi: Likewise.
13389         * manual/math.texi: Likewise.
13390         * manual/memory.texi: Likewise.
13391         * manual/message.texi: Likewise.
13392         * manual/nss.texi: Likewise.
13393         * manual/pattern.texi: Likewise.
13394         * manual/process.texi: Likewise.
13395         * manual/resource.texi: Likewise.
13396         * manual/search.texi: Likewise.
13397         * manual/setjmp.texi: Likewise.
13398         * manual/signal.texi: Likewise.
13399         * manual/socket.texi: Likewise.
13400         * manual/startup.texi: Likewise.
13401         * manual/stdio.texi: Likewise.
13402         * manual/string.texi: Likewise.
13403         * manual/sysinfo.texi: Likewise.
13404         * manual/syslog.texi: Likewise.
13405         * manual/terminal.texi: Likewise.
13406         * manual/time.texi: Likewise.
13407         * manual/users.texi: Likewise.
13408         * INSTALL: Regenerated.
13409         * NOTES: Regenerated.
13410         * sysdeps/gnu/errlist.c: Regenerated.
13411
13412 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13413
13414         * include/dirent.h: Include <dirstream.h> before
13415         <dirent/dirent.h>.
13416
13417 2012-02-28  David S. Miller  <davem@davemloft.net>
13418
13419         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13420         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13421         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13422         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13423
13424 2012-02-27  David S. Miller  <davem@davemloft.net>
13425
13426         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13427         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13428         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13429         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13430
13431         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13432         frame pointer instead of stack pointer relative arg slot.
13433         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13434         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13435         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13436
13437 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13438
13439         [BZ #3992]
13440         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13441
13442 2012-02-27  David S. Miller  <davem@davemloft.net>
13443
13444         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13445         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13446         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13447         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13448         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13449         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13450         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13451         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13452
13453 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13454
13455         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13456         later.  Allow versions 5-9.
13457         * configure: Regenerated.
13458         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13459         required minimum version and 4.6 as recommended version.  Do not
13460         mention bugs in GCC 2.7 and 2.8.
13461         * INSTALL: Regenerated.
13462
13463 2012-02-27  David S. Miller  <davem@davemloft.net>
13464
13465         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13466         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13467         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13468         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13469         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13470         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13471         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13472         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13473
13474         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13475         manipulate bits before adding and subtracting TWO112[sx].
13476         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13477
13478 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13479
13480         [BZ #13775]
13481         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13482         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13483         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13484         being in POSIX, because they are in 1003.1-2008.
13485
13486         * rt/tst-aio.c: Include <fcntl.h>.
13487         * rt/tst-aio7.c: Likewise.
13488         * rt/tst-aio64.c: Likewise.
13489
13490         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13491
13492 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13493
13494         * manual/install.texi (--with-headers): Describe headers as
13495         interface headers, not private headers.
13496         (Specific advice for GNU/Linux systems): Describe use of headers
13497         from "make headers_install", not private headers from older
13498         kernels.
13499         * INSTALL: Regenerated.
13500         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13501         Change to 2.6.19.
13502         * sysdeps/unix/sysv/linux/configure: Regenerated.
13503
13504         * manual/llio.texi (fclean): Remove documentation.
13505
13506         * manual/Makefile (libc-texi-generated): New variable.  Include
13507         version.texi.
13508         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13509         $(libc-texi-generated), not duplicated list of files.
13510         (version.texi, stamp-version): New rules.
13511         (realclean): Remove $(libc-texi-generated), not individual files
13512         from that list.  Do not remove dir-add.texinfo.
13513         * manual/libc.texinfo: Comment out uses of edition numbers and
13514         references to printed manual.  Remove last-updated dates.
13515         (EDITION): Comment out.
13516         (ISBN): Likewise.
13517         (VERSION, UPDATED): Remove.
13518         (version.texi): Include.
13519
13520 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13521
13522         * sysdeps/posix/spawni.c: Include <signal.h>.
13523         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13524         * sysdeps/pthread/aio_fsync.c: Likewise.
13525
13526 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13527
13528         * conform/Makefile (tests): Run only when not cross-compiling and
13529         when fast-check is not defined.
13530
13531         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13532         * conform/data/limits.h-data: Fixes for POSIX2008.
13533         * conform/run-conformtest.sh: Run all tests.
13534         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13535         headers.
13536         * include/bits/dlfcn.h: Likewise.
13537         * include/langinfo.h: Likewise.
13538         * include/monetary.h: Likewise.
13539         * include/sys/poll.h: Likewise.
13540
13541         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13542         for __USE_GNU.
13543         * posix/spawn.h: Define __need_sigset_t.
13544         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13545         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13546         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13547         to get sigevent_t only.
13548         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13549         only for __USE_GNU.
13550         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13551         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13552         process_vm_writev only for __USE_GNU.
13553         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13554
13555         * conform/Makefile: For now ignore errors from run-conformtest.
13556         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13557         POSIX to avoid namespace pollution.  Don't prepend headers.
13558         * conform/data/aio.h-data: Fixes for POSIX testing.
13559         * conform/data/fcntl.h-data: Likewise.
13560         * conform/data/glob.h-data: Likewise.
13561         * conform/data/grp.h-data: Likewise.
13562         * conform/data/pthread.h-data: Likewise.
13563         * conform/data/pwd.h-data: Likewise.
13564         * conform/data/signal.h-data: Likewise.
13565         * conform/data/spawn.h-data: Likewise.
13566         * conform/data/stdio.h-data: Likewise.
13567         * conform/data/stdlib.h-data: Likewise.
13568         * conform/data/stropts.h-data: Likewise.
13569         * conform/data/sys/mman.h-data: Likewise.
13570         * conform/data/sys/stat.h-data: Likewise.
13571         * conform/data/sys/types.h-data: Likewise.
13572         * conform/data/sys/wait.h-data: Likewise.
13573         * conform/data/time.h-data: Likewise.
13574         * conform/data/unistd.h-data: Likewise.
13575         * conform/data/utime.h-data: Likewise.
13576
13577         * io/sys/stat.h: fchmod was always in POSIX.
13578         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13579         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13580         * rt/aio.h: Define __need_timespec before including <time.h>.
13581         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13582         struct.  Add forward declaration of pthread_attr_t and use it in
13583         sigevent.
13584         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13585         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13586         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13587         always remove CLK_TCK definition.
13588
13589 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13590
13591         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13592
13593 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13594
13595         * conform/run-conformtest.sh: New file.
13596         * conform/Makefile: Run run-conformtest for tests.
13597         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13598         support.
13599
13600         * conform/data/uchar.h-data: New file.
13601         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13602         * conform/data/arpa/inet.h-data: Likewise.
13603         * conform/data/assert.h-data: Likewise.
13604         * conform/data/complex.h-data: Likewise.
13605         * conform/data/cpio.h-data: Likewise.
13606         * conform/data/ctype.h-data: Likewise.
13607         * conform/data/dirent.h-data: Likewise.
13608         * conform/data/dlfcn.h-data: Likewise.
13609         * conform/data/errno.h-data: Likewise.
13610         * conform/data/fcntl.h-data: Likewise.
13611         * conform/data/float.h-data: Likewise.
13612         * conform/data/fmtmsg.h-data: Likewise.
13613         * conform/data/fnmatch.h-data: Likewise.
13614         * conform/data/ftw.h-data: Likewise.
13615         * conform/data/glob.h-data: Likewise.
13616         * conform/data/grp.h-data: Likewise.
13617         * conform/data/iconv.h-data: Likewise.
13618         * conform/data/inttypes.h-data: Likewise.
13619         * conform/data/langinfo.h-data: Likewise.
13620         * conform/data/libgen.h-data: Likewise.
13621         * conform/data/limits.h-data: Likewise.
13622         * conform/data/locale.h-data: Likewise.
13623         * conform/data/math.h-data: Likewise.
13624         * conform/data/monetary.h-data: Likewise.
13625         * conform/data/mqueue.h-data: Likewise.
13626         * conform/data/ndbm.h-data: Likewise.
13627         * conform/data/net/if.h-data: Likewise.
13628         * conform/data/netdb.h-data: Likewise.
13629         * conform/data/netinet/in.h-data: Likewise.
13630         * conform/data/nl_types.h-data: Likewise.
13631         * conform/data/poll.h-data: Likewise.
13632         * conform/data/pthread.h-data: Likewise.
13633         * conform/data/pwd.h-data: Likewise.
13634         * conform/data/regex.h-data: Likewise.
13635         * conform/data/sched.h-data: Likewise.
13636         * conform/data/search.h-data: Likewise.
13637         * conform/data/semaphore.h-data: Likewise.
13638         * conform/data/setjmp.h-data: Likewise.
13639         * conform/data/signal.h-data: Likewise.
13640         * conform/data/spawn.h-data: Likewise.
13641         * conform/data/stdarg.h-data: Likewise.
13642         * conform/data/stdio.h-data: Likewise.
13643         * conform/data/stdlib.h-data: Likewise.
13644         * conform/data/string.h-data: Likewise.
13645         * conform/data/strings.h-data: Likewise.
13646         * conform/data/stropts.h-data: Likewise.
13647         * conform/data/sys/ipc.h-data: Likewise.
13648         * conform/data/sys/mman.h-data: Likewise.
13649         * conform/data/sys/msg.h-data: Likewise.
13650         * conform/data/sys/resource.h-data: Likewise.
13651         * conform/data/sys/select.h-data: Likewise.
13652         * conform/data/sys/sem.h-data: Likewise.
13653         * conform/data/sys/shm.h-data: Likewise.
13654         * conform/data/sys/socket.h-data: Likewise.
13655         * conform/data/sys/stat.h-data: Likewise.
13656         * conform/data/sys/statvfs.h-data: Likewise.
13657         * conform/data/sys/time.h-data: Likewise.
13658         * conform/data/sys/timeb.h-data: Likewise.
13659         * conform/data/sys/times.h-data: Likewise.
13660         * conform/data/sys/types.h-data: Likewise.
13661         * conform/data/sys/uio.h-data: Likewise.
13662         * conform/data/sys/un.h-data: Likewise.
13663         * conform/data/sys/utsname.h-data: Likewise.
13664         * conform/data/sys/wait.h-data: Likewise.
13665         * conform/data/syslog.h-data: Likewise.
13666         * conform/data/tar.h-data: Likewise.
13667         * conform/data/termios.h-data: Likewise.
13668         * conform/data/utime.h-data: Likewise.
13669         * conform/data/utmpx.h-data: Likewise.
13670         * conform/data/varargs.h-data: Likewise.
13671         * conform/data/wchar.h-data: Likewise.
13672         * conform/data/wctype.h-data: Likewise.
13673         * conform/data/wordexp.h-data: Likewise.
13674
13675         * include/stropts.h: New file.
13676         * include/uchar.h: New file.
13677         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13678         * include/assert.h: Likewise.
13679         * include/ctype.h: Likewise.
13680         * include/dirent.h: Likewise.
13681         * include/dlfcn.h: Likewise.
13682         * include/fcntl.h: Likewise.
13683         * include/fnmatch.h: Likewise.
13684         * include/glob.h: Likewise.
13685         * include/grp.h: Likewise.
13686         * include/libio.h: Likewise.
13687         * include/locale.h: Likewise.
13688         * include/math.h: Likewise.
13689         * include/net/if.h: Likewise.
13690         * include/netdb.h: Likewise.
13691         * include/netinet/in.h: Likewise.
13692         * include/pthread.h: Likewise.
13693         * include/pwd.h: Likewise.
13694         * include/regex.h: Likewise.
13695         * include/sched.h: Likewise.
13696         * include/search.h: Likewise.
13697         * include/setjmp.h: Likewise.
13698         * include/signal.h: Likewise.
13699         * include/stdio.h: Likewise.
13700         * include/stdlib.h: Likewise.
13701         * include/string.h: Likewise.
13702         * include/sys/cdefs.h: Likewise.
13703         * include/sys/mman.h: Likewise.
13704         * include/sys/msg.h: Likewise.
13705         * include/sys/resource.h: Likewise.
13706         * include/sys/select.h: Likewise.
13707         * include/sys/socket.h: Likewise.
13708         * include/sys/stat.h: Likewise.
13709         * include/sys/statvfs.h: Likewise.
13710         * include/sys/time.h: Likewise.
13711         * include/sys/times.h: Likewise.
13712         * include/sys/uio.h: Likewise.
13713         * include/sys/utsname.h: Likewise.
13714         * include/sys/wait.h: Likewise.
13715         * include/termios.h: Likewise.
13716         * include/time.h: Likewise.
13717         * include/ulimit.h: Likewise.
13718         * include/unistd.h: Likewise.
13719         * include/utime.h: Likewise.
13720         * include/wchar.h: Likewise.
13721         * include/wctype.h: Likewise.
13722         * include/wordexp.h: Likewise.
13723
13724         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13725
13726         * time/time.h: TIME_UTC must be a macro.
13727         Make timespec_get available for ISO C11 only as well.
13728
13729 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13730
13731         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13732         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13733
13734 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13735
13736         * configure.in: Use -o not -a in test for unsupported multi-arch.
13737
13738 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13739
13740         * manual/texinfo.tex: Update to version 2012-01-19.16.
13741
13742 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13743
13744         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13745
13746 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13747
13748         [BZ #13738]
13749         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13750         * manual/fdl-1.3.texi: New file.
13751         * manual/fdl-1.1.texi: File removed.
13752
13753         [BZ #13738]
13754         * manual/libc.texinfo (FDL_VERSION): New @set.
13755         Use it for mention of FDL in cover text.
13756         (Documentation License): Use it in @include file name.
13757
13758 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13759             Roland McGrath  <roland@hack.frob.com>
13760
13761         [BZ #5461]
13762         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13763         not LONG_LONG_MAX and LONG_LONG_MIN.
13764         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13765         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13766         name.
13767         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13768
13769 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13770
13771         [BZ #2547]
13772         [BZ #11365]
13773         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13774         manipulate bits before adding and subtracting TWO23[sx].
13775         * math/libm-test.inc (nearbyint_test): Add more tests.
13776
13777 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13778
13779         [BZ #2548]
13780         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13781         bits before adding and subtracting TWO23[sx].
13782         * math/libm-test.inc (rint_test): Add more tests.
13783         (rint_test_tonearest): Likewise.
13784         (rint_test_towardzero): Likewise.
13785         (rint_test_downward): Likewise.
13786         (rint_test_upward: Likewise.
13787
13788 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13789
13790         [BZ #10110]
13791         * include/stdc-predef.h: New file.  Extracted from features.h.
13792         * include/features.h: Include stdc-predef.h.
13793         * Makefile (headers): Add stdc-predef.h.
13794         * CONFORMANCE (Compiler limitations): Update.
13795
13796 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13797
13798         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13799
13800 2012-02-21  David S. Miller  <davem@davemloft.net>
13801
13802         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13803         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13804
13805 2012-02-20  David S. Miller  <davem@davemloft.net>
13806
13807         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13808         using a normal save/restore sequence, rather than allocating a
13809         dummy stack frame just to store a frame pointer and restore.
13810         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13811
13812 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13813
13814         * manual/install.texi: Fix stray word in line-wrapped comment.
13815
13816 2012-02-20  David S. Miller  <davem@davemloft.net>
13817
13818         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13819         both binutils and gcc support GOTDATA.
13820
13821         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13822         "rd %pc" in the PIC register setup sequences.
13823
13824         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13825         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13826         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13827         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13828         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13829         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13830         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13831         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13832         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13833         (SYSCALL_ERROR_HANDLER): Likewise.
13834         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13835         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13836         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13837         (SYSCALL_ERROR_HANDLER): Likewise.
13838
13839         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13840         (HAVE_GCC_GOTDATA): New.
13841         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13842         relocation support in both binutils and gcc.
13843         * sysdeps/sparc/elf/configure: Regenerate.
13844
13845         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13846         * sysdeps/sparc/sparc32/elf/configure: Delete.
13847         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13848         * sysdeps/sparc/sparc64/elf/configure: Delete.
13849         * sysdeps/sparc/elf/configure.in: New file.
13850         * sysdeps/sparc/elf/configure: Generate.
13851
13852         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13853         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13854         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13855         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13856         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13857
13858 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13859
13860         * manual/install.texi: Do not mention specific glibc version
13861         numbers.
13862         * manual/libc.texinfo (VERSION, UPDATED): Update.
13863         (@copying): Use @copyright{} and range of years.
13864
13865 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13866
13867         [BZ #13695]
13868         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13869         [crti.S not in sysdirs] (generated): Do not append.
13870         [crti.S not in sysdirs] (omit-deps): Likewise.
13871         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13872         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13873         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13874         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13875         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13876         Likewise.
13877         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13878         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13879         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13880         * csu/defs.awk: Remove file.
13881         * sysdeps/generic/initfini.c: Likewise.
13882         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13883         variable.
13884         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13885         Likewise.
13886
13887 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13888
13889         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13890         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13891         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13892         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13893         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13894         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13895         <bits/epoll.h>.
13896         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13897         (__EPOLL_PACKED): Define to empty if not defined by
13898         <bits/epoll.h>.
13899         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13900         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13901         bits/epoll.h.
13902
13903 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13904
13905         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13906         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13907         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13908         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13909         <bits/timerfd.h>.
13910         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13911         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13912         bits/timerfd.h.
13913
13914 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13915
13916         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13917         in C locale.
13918         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13919         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13920         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13922
13923 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13924
13925         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13926         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13927
13928 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13929
13930         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13931         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13932         defined.
13933         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13934         Likewise.
13935         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13936         entry for 2.16.
13937
13938 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13939
13940         * math/w_acos.c: Use non-signaling floating-point comparisons.
13941         * math/w_acosf.c: Likewise.
13942         * math/w_acosh.c: Likewise.
13943         * math/w_acoshf.c: Likewise.
13944         * math/w_acoshl.c: Likewise.
13945         * math/w_acosl.c: Likewise.
13946         * math/w_asin.c: Likewise.
13947         * math/w_asinf.c: Likewise.
13948         * math/w_asinl.c: Likewise.
13949         * math/w_atanh.c: Likewise.
13950         * math/w_atanhf.c: Likewise.
13951         * math/w_atanhl.c: Likewise.
13952         * math/w_exp2.c: Likewise.
13953         * math/w_exp2f.c: Likewise.
13954         * math/w_exp2l.c: Likewise.
13955         * math/w_j0.c: Likewise.
13956         * math/w_j0f.c: Likewise.
13957         * math/w_j0l.c: Likewise.
13958         * math/w_j1.c: Likewise.
13959         * math/w_j1f.c: Likewise.
13960         * math/w_j1l.c: Likewise.
13961         * math/w_jn.c: Likewise.
13962         * math/w_jnf.c: Likewise.
13963         * math/w_log.c: Likewise.
13964         * math/w_log10.c: Likewise.
13965         * math/w_log10f.c: Likewise.
13966         * math/w_log10l.c: Likewise.
13967         * math/w_log2.c: Likewise.
13968         * math/w_log2f.c: Likewise.
13969         * math/w_log2l.c: Likewise.
13970         * math/w_logf.c: Likewise.
13971         * math/w_logl.c: Likewise.
13972         * math/w_sqrt.c: Likewise.
13973         * math/w_sqrtf.c: Likewise.
13974         * math/w_sqrtl.c: Likewise.
13975         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13976         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13977         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13978         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13979         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13980
13981 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13982
13983         [BZ #9739]
13984         * manual/string.texi (strnlen): Use correct parameter name in
13985         equivalent expression.
13986
13987 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13988
13989         [BZ #11174]
13990         * manual/users.texi (seteuid): Consistently use neweuid for
13991         argument name.
13992
13993 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13994
13995         [BZ #13704]
13996         * manual/nss.texi (Services in the NSS configuration): Correct
13997         list of services in example configuration file.
13998
13999 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14000
14001         [BZ #11322]
14002         * manual/arith.texi: Remove statements about negative zero
14003         behaving identically to zero.
14004
14005 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14006
14007         [BZ #5993]
14008         * manual/install.texi: Do not document upgrading from libc5.
14009
14010 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14011
14012         [BZ #4596]
14013         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14014
14015 2012-02-18  David S. Miller  <davem@davemloft.net>
14016
14017         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14018         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14019         %o7 across the call.
14020         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14021         instead.
14022         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14023         SETUP_PIC_REG_LEAF.
14024         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14025         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14026         * sysdeps/sparc/crtn.S: Likewise.
14027
14028 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14029
14030         * aout/Makefile: Remove.
14031
14032 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14033
14034         [BZ #13058]
14035         * manual/examples/argp-ex1.c (main): Format definition in GNU
14036         style.
14037         * manual/examples/argp-ex2.c (main): Likewise.
14038         * manual/examples/argp-ex3.c (main): Likewise.
14039         * manual/examples/argp-ex4.c (main): Likewise.
14040         * manual/examples/longopt.c (main): Use new-style prototype
14041         definition.
14042         * manual/examples/strncat.c (main): Specify return type and use
14043         (void) for arguments.
14044         * manual/examples/subopt.c (main): Use char **argv argument.
14045
14046 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14047
14048         [BZ #5077]
14049         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14050         rounding modes.
14051
14052 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14053
14054         [BZ #6907]
14055         * manual/string.texi (strchr): Change when strchrnul is
14056         recommended.
14057
14058 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14059
14060         [BZ #174]
14061         * manual/locale.texi (setlocale): Document LOCPATH.
14062
14063 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14064
14065         [BZ #10210]
14066         * manual/process.texi (execle): Move @dots{} before last argument.
14067
14068 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14069
14070         [BZ #12047]
14071         * manual/charset.texi (Generic Charset Conversion): Fix typo
14072         (LC_TYPE -> LC_CTYPE).
14073
14074 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14075
14076         [BZ #5805]
14077         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14078         (scalbnf): Likewise.
14079         (scalbnl): Likewise.
14080         (scalbln): Likewise.
14081         (scalblnf): Likewise.
14082         (scalblnl): Likewise.
14083         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14084         (vwarnx): Likewise.
14085         (verr): Likewise.
14086         (verrx): Likewise.
14087         * manual/filesys.texi (telldir): Use braces around return type.
14088         * manual/llio.texi (mmap): Add space after comma.
14089         (mmap64): Likewise.
14090         * manual/math.texi (jn): Use @var{} on parameter names.
14091         (jnf): Likewise.
14092         (jnl): Likewise.
14093         (yn): Likewise.
14094         (ynf): Likewise.
14095         (ynl): Likewise.
14096         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14097         line.
14098         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14099         "...".
14100         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14101         (sched_get_priority_max): Likewise.
14102         * manual/signal.texi (sigvec): Add space after comma.
14103         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14104         names.
14105         (if_indextoname): Likewise.
14106         (if_freenameindex): Likewise.
14107         (sendto): Use ',' instead of '.' in prototype.
14108         * manual/startup.texi (syscall): Use @dots{} instead of literal
14109         "...".
14110         * manual/stdio.texi (__fpending): Separate initial words of
14111         paragraph from @deftypefun line.
14112         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14113         "...".
14114         (vsyslog): Use @var{} on parameter names.
14115         * manual/terminal.texi (stty): Use @var{} on parameter names.
14116         * manual/users.texi (getutmp): Use @var{} on parameter names.
14117         (getutmpx): Likewise.
14118
14119 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14120
14121         [BZ #6884]
14122         * manual/stdio.texi (fopen): Fix typos in description of
14123         ",ccs=STRING".
14124
14125 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14126
14127         [BZ #4026]
14128         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14129         get clock_id definition.
14130
14131 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14132
14133         [BZ #4822]
14134         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14135         (madvise): Cast every argument to void on its own.
14136
14137 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14138
14139         [BZ #9902]
14140         * manual/startup.texi (Exit Status): Fix typo.
14141
14142 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14143
14144         [BZ #10140]
14145         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14146         * manual/examples/argp-ex2.c: Likewise.
14147         * manual/examples/argp-ex3.c: Likewise.
14148
14149 2012-02-16  Richard Henderson  <rth@redhat.com>
14150
14151         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14152         * sysdeps/s390/s390-32/initfini.c: Remove.
14153         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14154         * sysdeps/s390/s390-64/initfini.c: Remove.
14155
14156 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14157
14158         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14159         compiler output for sysdeps/generic/initfini.c.
14160         * sysdeps/sh/elf/initfini.c: Remove file.
14161
14162 2012-02-16  David S. Miller  <davem@davemloft.net>
14163
14164         [BZ #11494]
14165         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14166
14167         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14168         * sysdeps/sparc/crti.S: New file.
14169         * sysdeps/sparc/crtn.S: New file.
14170         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14171         * sysdeps/sparc/sparc64/Makefile: Likewise.
14172
14173 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14174
14175         [BZ #3335]
14176         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14177
14178 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14179
14180         [BZ #4822]
14181         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14182
14183         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14184         (write, read, close): Likewise.
14185         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14186
14187 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14188
14189         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14190         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14191         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14192         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14193         <bits/signalfd.h>.
14194         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14195         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14196         bits/signalfd.h.
14197
14198 2012-02-14  Marek Polacek  <polacek@redhat.com>
14199
14200         * sysdeps/x86_64/crti.S: New file.
14201         * sysdeps/x86_64/crtn.S: New file.
14202         * sysdeps/x86_64/elf/initfini.c: Remove file.
14203
14204 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14205
14206         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14207         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14208         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14209         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14210         <bits/inotify.h>.
14211         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14212         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14213         bits/inotify.h.
14214
14215 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14216
14217         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14218         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14219         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14220         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14221         <bits/eventfd.h>.
14222         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14223         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14224         bits/eventfd.h.
14225
14226 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14227
14228         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14229         __feraiseexcept instead of feraiseexcept.
14230
14231         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14232         nanosleep invocations.
14233         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14234         strings, and add error checking for a nanosleep invocations.
14235
14236 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14237
14238         Replace FSF snail mail address with URLs, as per GNU coding standards.
14239         Most of the snail mail addresses were wrong anyway, and omitting
14240         them makes the source code easier to maintain.  Almost all of the
14241         changes are to license notices and to locale LC_IDENTIFICATION
14242         addresses, except for this one:
14243         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14244         not its snail mail address.
14245
14246 2012-02-09  Richard Henderson  <rth@twiddle.net>
14247
14248         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14249         of kernel-features.h.
14250
14251         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14252
14253 2012-02-08  Marek Polacek  <polacek@redhat.com>
14254
14255         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14256         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14257         * sysdeps/gnu/_G_config.h: Likewise.
14258         * sysdeps/generic/_G_config.h: Likewise.
14259
14260 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14261
14262         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14263         tests.
14264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14265
14266         * sysdeps/powerpc/powerpc32/crti.S: New file.
14267         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14268         * sysdeps/powerpc/powerpc64/crti.S: New file.
14269         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14270
14271         * Makeconfig (have-initfini): Don't set.
14272         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14273         * configure.in (nopic_initfini): Don't substitute.
14274         * config.h.in (HAVE_INITFINI): Don't #undef.
14275         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14276         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14277
14278 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14279
14280         Support crti.S and crtn.S provided directly by architectures.
14281         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14282         [crti.S in sysdirs] (omit-deps): Likewise.
14283         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14284         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14285         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14286         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14287         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14288         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14289         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14290         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14291         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14292         compiler output for sysdeps/generic/initfini.c.
14293         * sysdeps/i386/elf/Makefile: Remove file.
14294         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14295
14296 2012-02-07  Marek Polacek  <polacek@redhat.com>
14297
14298         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14299         * sysdeps/gnu/_G_config.h: Likewise.
14300         * sysdeps/mach/hurd/_G_config.h: Likewise.
14301
14302 2012-02-07  Marek Polacek  <polacek@redhat.com>
14303
14304         * math/Makefile (tests): Add tst-CMPLX2.
14305         * math/tst-CMPLX2.c: New file.
14306
14307 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14308
14309         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14310
14311         * math/libm-test.inc (jn_test): Add missing L suffix.
14312
14313 2012-02-06  Marek Polacek  <polacek@redhat.com>
14314
14315         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14316         * sysdeps/i386/fpu/e_powf.S: Likewise.
14317         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14318         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14319         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14320         * sysdeps/i386/fpu/e_pow.S: Likewise.
14321         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14322         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14323         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14324         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14325         * sysdeps/i386/fpu/e_log2.S: Likewise.
14326         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14327         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14328         * sysdeps/i386/fpu/e_powl.S: Likewise.
14329         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14330         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14331         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14332         * sysdeps/i386/fpu/e_logl.S: Likewise.
14333         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14334         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14335         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14336         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14337         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14338         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14339         * sysdeps/i386/fpu/e_log.S: Likewise.
14340         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14341         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14342         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14343         * sysdeps/i386/fpu/e_logf.S: Likewise.
14344         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14345         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14346         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14347         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14348         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14349         * sysdeps/i386/fpu/e_log10.S: Likewise.
14350         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14351         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14352         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14353         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14354         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14355         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14356         * sysdeps/i386/asm-syntax.h: Likewise.
14357         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14358         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14359         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14360         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14361         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14362         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14363         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14364         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14365         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14366         * sysdeps/powerpc/sysdep.h: Likewise.
14367         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14368         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14369
14370 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14371
14372         [BZ #411]
14373         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14374
14375 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14376
14377         * sysdeps/i386/sysdep.h: Include <features.h>.
14378         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14379         version.
14380
14381 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14382
14383         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14384         Define.
14385         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14386         LOAD_PIC_REG_STR.
14387
14388 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14389
14390         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14391         (SETUP_PIC_REG): Use GET_PC_THUNK.
14392         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14393         macro.
14394
14395 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14396
14397         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14398         for non-PIC compilation.
14399         (SETUP_PIC_REG): Add .p2align directive.
14400         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14401         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14402         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14403         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14404         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14405         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14406         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14407         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14408         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14409         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14410         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14411         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14412         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14413         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14414         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14415         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14416         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14417         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14418         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14419         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14420         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14421         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14422         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14423         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14424         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14425         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14426         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14427         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14428         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14429         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14430         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14431         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14432         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14433         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14434         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14435         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14436         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14437         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14438         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14439         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14440         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14441
14442 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14443
14444         * math/tst-CMPLX.c: Include <stdio.h>.
14445
14446 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14447
14448         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14449         float.
14450         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14451         * sysdeps/sparc/bits/mathdef.h: Likewise.
14452
14453 2012-01-31  Marek Polacek  <polacek@redhat.com>
14454
14455         * libio/libio.h: Don't define _PARAMS.
14456         * locale/programs/config.h: Don't define PARAMS.
14457         * stdlib/strtol_l.c: Likewise.
14458         (__strtol_l): Remove PARAMS from the prototype.
14459
14460 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14461
14462         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14463         names.  Just use the correct names.  Remove unnecessary wrapper
14464         functions.
14465         * malloc/arena.c: Likewise.
14466         * malloc/hooks.c: Likewise.
14467
14468         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14469         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14470         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14471
14472 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14473
14474         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14475         into tail calls.
14476         (update_get_addr): New function.
14477         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14478         GET_ADDR_MODULE parameter.
14479
14480 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14481
14482         * crypt/cert.c: Remove __STDC__ conditionals.
14483         * crypt/crypt-entry.c: Likewise.
14484         * crypt/crypt_util.c: Likewise.
14485         * libio/filedoalloc.c: Likewise.
14486         * libio/fileops.c: Likewise.
14487         * libio/genops.c: Likewise.
14488         * libio/iofclose.c: Likewise.
14489         * libio/iofdopen.c: Likewise.
14490         * libio/iofopen.c: Likewise.
14491         * libio/iofopen64.c: Likewise.
14492         * libio/iogetdelim.c: Likewise.
14493         * libio/iopopen.c: Likewise.
14494         * libio/obprintf.c: Likewise.
14495         * libio/oldfileops.c: Likewise.
14496         * libio/oldiofclose.c: Likewise.
14497         * libio/oldiofdopen.c: Likewise.
14498         * libio/oldiofopen.c: Likewise.
14499         * libio/oldiopopen.c: Likewise.
14500         * libio/wfiledoalloc.c: Likewise.
14501         * libio/wgenops.c: Likewise.
14502         * locale/programs/xmalloc.c: Likewise.
14503         * misc/syslog.c: Likewise.
14504         * stdio-common/xbug.c: Likewise.
14505         * string/memchr.c: Likewise.
14506         * string/memcmp.c: Likewise.
14507         * string/memrchr.c: Likewise.
14508         * string/rawmemchr.c: Likewise.
14509         * sysdeps/posix/getcwd.c: Likewise.
14510         * time/strftime_l.c: Likewise.
14511
14512 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14513
14514         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14515         * config.make.in (config-cflags-sse2avx): Define.
14516         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14517         Fix typo.
14518
14519 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14520
14521         * scripts/config.guess: Update from upstream config git repository.
14522         * scripts/config.sub: Likewise.
14523
14524 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14525
14526         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14527         (EM_NUM): Update.
14528         (R_TILEPRO_*, R_TILEGX_*): New macros.
14529
14530         * scripts/firstversions.awk: Fix bug in version range handling.
14531
14532         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14533
14534         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14535
14536         * include/sys/epoll.h: New file.
14537         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14538         libc_hidden_def.
14539
14540 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14541
14542         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14543         Avoid unnecessary __WORDSIZE == 64 test.
14544         (fmaxf): Use VEX format if possible.
14545         (fmax): Likewise.
14546         (fminf): Likewise.
14547         (fmin): Likewise.
14548
14549         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14550         * math/math_private.h: Remove libc_fegetround* and
14551         libc_fesetround*.
14552         * sysdeps/i386/configure.in: Check for -msse2avx.
14553         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14554         also if SSE2AVX is defined.
14555         Remove libc_fegetround* and libc_fesetround*.
14556         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14557         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14558         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14559         of HAS_YMM_USABLE.
14560         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14561         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14562         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14563         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14564         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14565
14566         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14567
14568 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14569
14570         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14571         size is not set.
14572         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14573
14574 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14575
14576         [BZ #13618]
14577         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14578         relocation.
14579         * Makeconfig (libm): Define.
14580         * elf/Makefile: Add rules to build and run tst-relsort1.
14581         * elf/tst-relsort1.c: New file.
14582         * elf/tst-relsort1mod1.c: New file.
14583         * elf/tst-relsort1mod2.c: New file.
14584
14585 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14586
14587         * math/s_ldexp.c: Remove __STDC__ conditionals.
14588         * math/s_ldexpf.c: Likewise.
14589         * math/s_ldexpl.c: Likewise.
14590         * math/s_nextafter.c: Likewise.
14591         * math/s_nexttowardf.c: Likewise.
14592         * math/s_significand.c: Likewise.
14593         * math/s_significandf.c: Likewise.
14594         * math/s_significandl.c: Likewise.
14595         * math/w_jnl.c: Likewise.
14596         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14597         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14598         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14599         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14600         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14601         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14602         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14603         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14604         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14605         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14606         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14607         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14608         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14609         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14610         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14611         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14612         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14613         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14614         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14615         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14616         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14617         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14618         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14619         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14620         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14621         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14622         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14623         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14624         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14625         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14626         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14627         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14628         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14629         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14630         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14631         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14632         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14633         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14634         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14635         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14636         * sysdeps/ieee754/k_standard.c: Likewise.
14637         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14638         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14639         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14640         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14641         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14642         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14643         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14644         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14645         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14646         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14647         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14648         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14649         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14650         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14651         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14652         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14653         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14654         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14655         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14656         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14657         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14658         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14659         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14660         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14661         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14662         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14663         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14664         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14665         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14666         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14667         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14668         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14669         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14670         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14671         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14672         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14673         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14674         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14675         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14676         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14677         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14678         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14679         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14680         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14681         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14682         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14683         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14684         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14685         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14686         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14687         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14688         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14689         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14690         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14691         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14692         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14693         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14694         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14695         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14696         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14697         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14698         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14699         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14700         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14701         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14702         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14703         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14704         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14705         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14706         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14707         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14708         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14709         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14710         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14711         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14712         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14713         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14714         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14715         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14716         * sysdeps/ieee754/s_matherr.c: Likewise.
14717         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14718         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14719         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14720         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14721
14722 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14723
14724         * crypt/md5.h: Remove __STDC__ conditionals.
14725         * libio/libioP.h: Likewise.
14726         * locale/programs/config.h: Likewise.
14727         * sysdeps/generic/sysdep.h: Likewise.
14728         * sysdeps/i386/asm-syntax.h: Likewise.
14729         * sysdeps/s390/asm-syntax.h: Likewise.
14730         * sysdeps/unix/sysdep.h: Likewise.
14731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14733
14734 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14735
14736         * libio/libio.h: Remove __STDC__ conditionals.
14737         * malloc/obstack.h: Likewise.
14738         * math/complex.h: Likewise.
14739         * math/math.h: Likewise.
14740         * sysdeps/generic/_G_config.h: Likewise.
14741         * sysdeps/gnu/_G_config.h: Likewise.
14742         * sysdeps/mach/hurd/_G_config.h: Likewise.
14743         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14744         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14745         * sysdeps/sparc/bits/mathdef.h: Likewise.
14746
14747 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14748
14749         [BZ #13583]
14750         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14751         Clean up HAS_* macros.
14752         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14753         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14754         possible.
14755         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14756         HAS_AVX.
14757         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14758         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14759         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14760         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14761         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14762
14763 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14764
14765         * elf/tst-unique3.cc (gets): Remove declaration.
14766         * elf/tst-unique3lib.cc (gets): Likewise.
14767         * elf/tst-unique3lib2.cc (gets): Likewise.
14768         * elf/tst-unique4.cc (gets): Likewise.
14769
14770 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14771
14772         * include/stdio.h: Add C++ protection.  Add gets declarations and
14773         definitions.
14774         * debug/tst-chk1.c: Don't declare gets here.
14775         * stdio-common/tst-gets.c: Likewise.
14776
14777 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14778
14779         * posix/glob: Remove directory.
14780
14781 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14782
14783         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14784
14785 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14786
14787         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14788         of the non-standard EPFNOSUPPORT.
14789
14790 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14791
14792         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14793         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14794         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14795
14796 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14797
14798         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14799
14800 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14801
14802         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14803         transient errors.
14804         * nscd/grpcache.c (cache_addgr): Likewise.
14805         * nscd/hstcache.c (cache_addhst): Likewise.
14806         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14807         * nscd/pwdcache.c (cache_addpw): Likewise.
14808         * nscd/servicescache.c (cache_addserv): Likewise.
14809
14810 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14811
14812         * malloc/malloc.c: Various cleanups.
14813         * malloc/hooks.c: Likewise.
14814
14815         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14816         * stdlib/bug-fmtmsg1.c: New file.
14817
14818         * stdlib/fmtmsg.c (init): Add missing unlock.
14819         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14820
14821 2012-01-12  Marek Polacek  <polacek@redhat.com>
14822
14823         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14824         and _GNU_SOURCE.
14825
14826 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14827
14828         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14829         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14830         macro to ensure uniqueness of label name.
14831         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14832         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14833
14834 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14835
14836         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14837
14838         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14839         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14840         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14841         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14842
14843 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14844
14845         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14846
14847         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14848         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14849         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14850
14851         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14852
14853         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14854         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14855         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14856         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14857
14858         * math/bits/math-finite.h: Add ldexp support.
14859
14860 2012-01-10  Marek Polacek  <polacek@redhat.com>
14861
14862         * locale/programs/localedef.h (show_archive_content): Add noreturn
14863         attribute.
14864
14865 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14866
14867         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14868
14869 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14870
14871         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14872
14873         * io/Makefile (headers): Add bits/poll2.h.
14874
14875 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14876
14877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14878         typo #include statement.
14879
14880 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14881
14882         * include/sys/cdefs.h: Define __attribute_alloc_size.
14883         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14884         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14885         * elf/pldd.c: Likewise.
14886         * iconv/iconv_charmap.c: Likewise.
14887         * iconv/iconvconfig.c: Likewise.
14888         * iconv/strtab.c: Likewise.
14889         * locale/programs/locale.c: Likewise.
14890         * locale/programs/localedef.h: Likewise.
14891         * locale/programs/simple-hash.c: Likewise.
14892         * nscd/nscd.h: Likewise.
14893         * nss/makedb.c: Likewise.
14894         * sysdeps/generic/ldconfig.h: Likewise.
14895         * locale/programs/localedef.c: Remove xmalloc prototype.
14896         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14897
14898 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14899
14900         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14901         appropriate.
14902
14903 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14904
14905         * math/Makefile (tests): Add tst-CMPLX.
14906         * math/tst-CMPLX.c: New file.
14907
14908         * math/complex.h (CMPLXL): Fix typo.
14909
14910         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14911         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14912         GLIBC_2.16.
14913         * debug/tst-chk1.c: Add poll and ppoll tests.
14914         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14915         * include/sys/poll.h: Add hidden proto for ppoll.
14916         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14917         * sysdeps/mach/hurd/ppoll.c: Likewise.
14918         * io/ppoll.c: Likewise.
14919         * debug/poll_chk.c: New file.
14920         * debug/ppoll_chk.c: New file.
14921         * include/bits/poll2.h: New file.
14922         * io/bits/poll2.h: New file.
14923
14924         [BZ #1350]
14925         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14926
14927         * configure.in: static is always set to yes.  Remove.
14928         * config.make.in: Don't set build-static.
14929         * Makeconfig: Remove use of build-static.
14930         * dlfcn/Makefile: Likewise.
14931         * elf/Makefile: Likewise.
14932         * math/Makefile: Likewise.
14933         * misc/Makefile: Likewise.
14934         * nptl/Makefile: Likewise.
14935         * sysdeps/mach/hurd/Makefile: Likewise.
14936
14937         * configure.in: PWD_P is not used anymore.
14938         * config.make.in: Remove PWD_P entry.
14939
14940         * configure.in: Remove last remnants of RANLIB.
14941         No need to check for signed size_t anymore.
14942         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14943         and IA-64.
14944         Remove __builtin_expect test because we require at least gcc 3.4.
14945         * aclocal.m4: Likewise.
14946
14947         * wcsmbs/mbrtoc16.c: Implement using towc function.
14948         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14949         * wcsmbs/wcsmbsload.c: Likewise.
14950         * iconv/gconv_simple.c: Likewise.
14951         * iconv/gconv_int.h: Likewise.
14952         * iconv/gconv_builtin.h: Likewise.
14953         * iconv/iconv_prog.c: Remove CHAR16 handling.
14954
14955         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14956
14957         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14958
14959         * configure.in: Remove --with-elf and --enable-bounded options.
14960         Dont set base_machine for ia64.  More non-ELF conditions removed.
14961         Remove testing and setting of leading underscore information.
14962         * config.make.in (build-bounded): Set to no.
14963         * config.h.in: Remove NO_UNDERSCORES entry.
14964         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14965         them.
14966         * csu/start.c: Remove !NO_UNDERSCORE code.
14967         * locale/localeinfo.h: Likewise.
14968         * sysdeps/generic/machine-gmon.h: Likewise.
14969         * sysdeps/generic/sysdep.h: Likewise.
14970         * sysdeps/i386/sysdep.h: Likewise.
14971         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14972         * sysdeps/mach/sysdep.h: Likewise.
14973         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14974         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14975         * sysdeps/sh/sysdep.h: Likewise.
14976         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14977         * sysdeps/unix/i386/sysdep.S: Likewise.
14978         * sysdeps/unix/sparc/start.c: Likewise.
14979         * sysdeps/unix/sparc/sysdep.S: Likewise.
14980         * sysdeps/unix/sparc/sysdep.h: Likewise.
14981         * sysdeps/unix/start.c: Likewise.
14982         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14983         * sysdeps/x86_64/sysdep.h: Likewise.
14984
14985 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14986
14987         [BZ #13553]
14988         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14989         for non-gcc.
14990         * argp/argp-fmtstream.h: Use const instead __const.
14991         * argp/argp.h: Likewise.
14992         * assert/assert.h: Likewise.
14993         * bits/fenv.h: Likewise.
14994         * bits/sched.h: Likewise.
14995         * bits/sigset.h: Likewise.
14996         * bits/sigthread.h: Likewise.
14997         * catgets/nl_types.h: Likewise.
14998         * conform/data/pthread.h-data: Likewise.
14999         * crypt/crypt-private.h: Likewise.
15000         * crypt/crypt.h: Likewise.
15001         * crypt/crypt_util.c: Likewise.
15002         * ctype/ctype.h: Likewise.
15003         * debug/execinfo.h: Likewise.
15004         * debug/mbsnrtowcs_chk.c: Likewise.
15005         * debug/mbsrtowcs_chk.c: Likewise.
15006         * debug/wcsnrtombs_chk.c: Likewise.
15007         * debug/wcsrtombs_chk.c: Likewise.
15008         * debug/wcstombs_chk.c: Likewise.
15009         * dirent/dirent.h: Likewise.
15010         * dlfcn/dlfcn.h: Likewise.
15011         * elf/neededtest4.c: Likewise.
15012         * grp/grp.h: Likewise.
15013         * gshadow/gshadow.h: Likewise.
15014         * iconv/gconv.h: Likewise.
15015         * iconv/gconv_int.h: Likewise.
15016         * iconv/gconv_simple.c: Likewise.
15017         * iconv/iconv.h: Likewise.
15018         * iconv/loop.c: Likewise.
15019         * iconv/skeleton.c: Likewise.
15020         * include/aio.h: Likewise.
15021         * include/aliases.h: Likewise.
15022         * include/argz.h: Likewise.
15023         * include/arpa/inet.h: Likewise.
15024         * include/assert.h: Likewise.
15025         * include/dirent.h: Likewise.
15026         * include/dlfcn.h: Likewise.
15027         * include/execinfo.h: Likewise.
15028         * include/fcntl.h: Likewise.
15029         * include/fenv.h: Likewise.
15030         * include/glob.h: Likewise.
15031         * include/grp.h: Likewise.
15032         * include/libintl.h: Likewise.
15033         * include/mntent.h: Likewise.
15034         * include/netdb.h: Likewise.
15035         * include/pwd.h: Likewise.
15036         * include/rpc/netdb.h: Likewise.
15037         * include/sched.h: Likewise.
15038         * include/search.h: Likewise.
15039         * include/shadow.h: Likewise.
15040         * include/signal.h: Likewise.
15041         * include/stdio.h: Likewise.
15042         * include/stdlib.h: Likewise.
15043         * include/string.h: Likewise.
15044         * include/sys/socket.h: Likewise.
15045         * include/sys/stat.h: Likewise.
15046         * include/sys/statfs.h: Likewise.
15047         * include/sys/statvfs.h: Likewise.
15048         * include/sys/syslog.h: Likewise.
15049         * include/sys/time.h: Likewise.
15050         * include/sys/uio.h: Likewise.
15051         * include/time.h: Likewise.
15052         * include/unistd.h: Likewise.
15053         * include/utmp.h: Likewise.
15054         * include/wchar.h: Likewise.
15055         * include/wctype.h: Likewise.
15056         * inet/aliases.h: Likewise.
15057         * inet/arpa/inet.h: Likewise.
15058         * inet/netinet/ether.h: Likewise.
15059         * inet/netinet/in.h: Likewise.
15060         * intl/libintl.h: Likewise.
15061         * io/bits/fcntl2.h: Likewise.
15062         * io/fcntl.h: Likewise.
15063         * io/ftw.h: Likewise.
15064         * io/sys/poll.h: Likewise.
15065         * io/sys/stat.h: Likewise.
15066         * io/sys/statfs.h: Likewise.
15067         * io/sys/statvfs.h: Likewise.
15068         * io/utime.h: Likewise.
15069         * libio/bits/stdio.h: Likewise.
15070         * libio/bits/stdio2.h: Likewise.
15071         * libio/libio.h: Likewise.
15072         * libio/libioP.h: Likewise.
15073         * libio/stdio.h: Likewise.
15074         * locale/lc-ctype.c: Likewise.
15075         * locale/locale.h: Likewise.
15076         * login/utmp.h: Likewise.
15077         * malloc/arena.c: Likewise.
15078         * malloc/malloc.c: Likewise.
15079         * malloc/malloc.h: Likewise.
15080         * malloc/mcheck.c: Likewise.
15081         * malloc/mtrace.c: Likewise.
15082         * math/bits/mathcalls.h: Likewise.
15083         * math/fenv.h: Likewise.
15084         * math/math_private.h: Likewise.
15085         * misc/bits/error.h: Likewise.
15086         * misc/bits/syslog.h: Likewise.
15087         * misc/err.h: Likewise.
15088         * misc/error.h: Likewise.
15089         * misc/fstab.h: Likewise.
15090         * misc/mntent.h: Likewise.
15091         * misc/regexp.h: Likewise.
15092         * misc/search.h: Likewise.
15093         * misc/sgtty.h: Likewise.
15094         * misc/sys/mman.h: Likewise.
15095         * misc/sys/syslog.h: Likewise.
15096         * misc/sys/uio.h: Likewise.
15097         * misc/sys/xattr.h: Likewise.
15098         * misc/ttyent.h: Likewise.
15099         * nis/rpcsvc/ypclnt.h: Likewise.
15100         * nss/nss.h: Likewise.
15101         * posix/bits/unistd.h: Likewise.
15102         * posix/fnmatch.h: Likewise.
15103         * posix/glob.h: Likewise.
15104         * posix/sched.h: Likewise.
15105         * posix/spawn.h: Likewise.
15106         * posix/sys/wait.h: Likewise.
15107         * posix/unistd.h: Likewise.
15108         * posix/wordexp.h: Likewise.
15109         * pwd/pwd.h: Likewise.
15110         * resolv/netdb.h: Likewise.
15111         * resource/sys/resource.h: Likewise.
15112         * rt/aio.h: Likewise.
15113         * rt/bits/mqueue2.h: Likewise.
15114         * rt/mqueue.h: Likewise.
15115         * shadow/shadow.h: Likewise.
15116         * signal/signal.h: Likewise.
15117         * socket/send.c: Likewise.
15118         * socket/sendto.c: Likewise.
15119         * socket/sys/socket.h: Likewise.
15120         * stdio-common/printf.h: Likewise.
15121         * stdlib/bits/stdlib.h: Likewise.
15122         * stdlib/fmtmsg.h: Likewise.
15123         * stdlib/monetary.h: Likewise.
15124         * stdlib/stdlib.h: Likewise.
15125         * stdlib/ucontext.h: Likewise.
15126         * streams/stropts.h: Likewise.
15127         * string/argz.h: Likewise.
15128         * string/bits/string2.h: Likewise.
15129         * string/string.h: Likewise.
15130         * string/strings.h: Likewise.
15131         * sunrpc/rpc/auth.h: Likewise.
15132         * sunrpc/rpc/auth_des.h: Likewise.
15133         * sunrpc/rpc/clnt.h: Likewise.
15134         * sunrpc/rpc/netdb.h: Likewise.
15135         * sunrpc/rpc/pmap_clnt.h: Likewise.
15136         * sunrpc/rpc/xdr.h: Likewise.
15137         * sysdeps/generic/inttypes.h: Likewise.
15138         * sysdeps/generic/net/if.h: Likewise.
15139         * sysdeps/generic/sys/swap.h: Likewise.
15140         * sysdeps/gnu/net/if.h: Likewise.
15141         * sysdeps/gnu/utmpx.h: Likewise.
15142         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15143         * sysdeps/i386/i486/bits/string.h: Likewise.
15144         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15145         * sysdeps/s390/bits/string.h: Likewise.
15146         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15147         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15148         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15149         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15150         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15151         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15152         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15153         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15154         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15155         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15156         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15157         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15158         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15159         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15160         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15161         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15162         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15163         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15164         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15165         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15166         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15167         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15168         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15169         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15170         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15171         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15172         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15173         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15174         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15175         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15176         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15177         * sysvipc/sys/ipc.h: Likewise.
15178         * sysvipc/sys/msg.h: Likewise.
15179         * sysvipc/sys/sem.h: Likewise.
15180         * sysvipc/sys/shm.h: Likewise.
15181         * termios/termios.h: Likewise.
15182         * time/sys/time.h: Likewise.
15183         * time/time.h: Likewise.
15184         * wcsmbs/bits/wchar2.h: Likewise.
15185         * wcsmbs/uchar.h: Likewise.
15186         * wcsmbs/wchar.h: Likewise.
15187         * wctype/wctype.h: Likewise.
15188
15189         [BZ #13551]
15190         * Makeconfig: Remove all but ELF support including AIX support.
15191         * Makerules: Likewise.
15192         * config.h.in: Likewise.
15193         * config.make.in: Likewise.
15194         * configure: Likewise.
15195         * configure.in: Likewise.
15196         * csu/Makefile: Likewise.
15197         * csu/version.c: Likewise.
15198         * debug/Makefile: Likewise.
15199         * dlfcn/Makefile: Likewise.
15200         * elf/Makefile: Likewise.
15201         * extra-lib.mk: Likewise.
15202         * iconv/Makefile: Likewise.
15203         * include/libc-symbols.h: Likewise.
15204         * include/shlib-compat.h: Likewise.
15205         * resolv/Makefile: Likewise.
15206         * resolv/res_libc.c: Likewise.
15207         * rt/Makefile: Likewise.
15208         * sysdeps/i386/asm-syntax.h: Likewise.
15209         * sysdeps/i386/sysdep.h: Likewise.
15210         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15211         * sysdeps/mach/sysdep.h: Likewise.
15212         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15213         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15214         * sysdeps/s390/asm-syntax.h: Likewise.
15215         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15216         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15217         * sysdeps/sh/sysdep.h: Likewise.
15218         * sysdeps/unix/sparc/sysdep.h: Likewise.
15219         * sysdeps/wordsize-32/divdi3.c: Likewise.
15220         * sysdeps/x86_64/sysdep.h: Likewise.
15221
15222         * argp/Versions: Remove _argp_unlock_xxx.
15223
15224         [BZ #13559]
15225         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15226         * abilist/libBrokenLocale.abilist: Likewise.
15227         * abilist/libanl.abilist: Likewise.
15228         * abilist/libc.abilist: Likewise.
15229         * abilist/libcrypt.abilist: Likewise.
15230         * abilist/libdl.abilist: Likewise.
15231         * abilist/libm.abilist: Likewise.
15232         * abilist/libnsl.abilist: Likewise.
15233         * abilist/libpthread.abilist: Likewise.
15234         * abilist/libresolv.abilist: Likewise.
15235         * abilist/librt.abilist: Likewise.
15236         * abilist/libthread_db.abilist: Likewise.
15237         * abilist/libutil.abilist: Likewise.
15238         * abilist/libnss_db.abilist: New file.
15239
15240         * scripts/abilist.awk: Add support for indirect functions.
15241
15242         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15243
15244         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15245
15246         * shlib-versions: Remove entries for ports architectures.
15247
15248         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15249         files in ports.
15250         * elf/stackguard-macros.h: Remove support for IA-64.
15251         * elf/tst-auditmod1.c: Likewise.
15252         * sysdeps/generic/ldsodefs.h: Likewise.
15253
15254         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15255         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15256         configure files.
15257
15258         [BZ #13552]
15259         * configure.in: Remove --enable-omitfp support.
15260         * FAQ.in: Adjust.
15261         * config.make.in: Likewise.
15262         * Makeconfig: Likewise.
15263         * manual/install.texi: Likewise.
15264
15265         In case anyone cares, the IA-64 architecture could move to ports.
15266         * sysdeps/ia64/*: Removed.
15267         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15268         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15269
15270         [BZ #13555]
15271         * configure.in: Remove entries for unsupported architectures.
15272
15273         [BZ #13533]
15274         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15275         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15276         routines.
15277         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15278         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15279         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15280         fall back to using wcrtomb.
15281         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15282         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15283         renaming.
15284         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15285         * wcsmbs/tst-c16c32-1.c: New file.
15286
15287         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15288         local variable.
15289
15290         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15291
15292         * elf/tst-unique3.cc: Add explicit declaration of gets.
15293         * elf/tst-unique3lib.cc: Likewise.
15294         * elf/tst-unique3lib2.cc: Likewise.
15295         * elf/tst-unique4.cc: Likewise.
15296
15297         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15298
15299 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15300
15301         [BZ #13566]
15302         * assert/assert.h (static_assert): Don't define for C++.
15303         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15304         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15305
15306 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15307
15308         * iconv/loop.c (single loop): Fix assertion in storing of
15309         remaining bytes.
15310
15311         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15312
15313 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15314
15315         * posix/getconf.c: Update copyright year.
15316         * nss/getent.c: Likewise.
15317         * nss/makedb.c: Likewise.
15318         * iconv/iconvconfig.c: Likewise.
15319         * iconv/iconv_prog.c: Likewise.
15320         * elf/ldconfig.c: Likewise.
15321         * elf/pldd.c: Likewise.
15322         * elf/sotruss.ksh: Likewise.
15323         * catgets/gencat.c: Likewise.
15324         * csu/version.c: Likewise.
15325         * elf/ldd.bash.in: Likewise.
15326         * elf/sprof.c (print_version): Likewise.
15327         * locale/programs/locale.c: Likewise.
15328         * locale/programs/localedef.c: Likewise.
15329         * login/programs/pt_chown.c: Likewise.
15330         * nscd/nscd.c (print_version): Likewise.
15331         * debug/xtrace.sh: Likewise.
15332         * malloc/memusage.sh: Likewise.
15333         * malloc/mtrace.pl: Likewise.
15334         * debug/catchsegv.sh: Likewise.
15335
15336 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15337
15338         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15339         pure attribute.
15340
15341 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15342
15343         [BZ #13533]
15344         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15345         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15346         transformations.
15347         * iconv/gconv_int.h: Likewise.
15348         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15349         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15350         from libc for GLIBC_2.16.
15351         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15352         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15353         * wcsmbs/uchar.h: Really define mbstate_t.
15354         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15355         * wcsmbs/c16rtomb.c: New file.
15356         * wcsmbs/mbrtoc16.c: New file.
15357         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15358         for C/POSIX locale.
15359         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15360         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15361
15362         * wcsmbs/wchar.h: Add missing __restrict.
15363
15364 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15365
15366         [BZ #13532]
15367         * time/Makefile (routines): Add timespec_get.
15368         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15369         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15370         timespec for ISO C11.
15371         * time/timespec_get.c: New file.
15372         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15373         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15374
15375         [BZ #13531]
15376         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15377         * stdlib/stdlib.h: Declare aligned_alloc.
15378         * Versions.def: Add GLIBC_2.16 for libc.
15379         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15380
15381         [BZ 13527]
15382         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15383         ISO C11.
15384
15385         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15386         code.
15387
15388         [BZ #13528]
15389         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15390
15391         [BZ #13529]
15392         * assert/assert.h (static_assert): Define.
15393
15394         * version.h: Update for 2.16 development version.
15395
15396         [BZ #13526]
15397         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15398         _ISOC11_SOURCE.
15399
15400         * version.h (RELEASE): Bump for 2.15 release.
15401         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15402
15403         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15404         Patch by Marek Polacek <mpolacek@redhat.com>.
15405
15406         * bits/byteswap.h: Protect long long constants with __extension__.
15407         * sysdeps/i386/bits/byteswap.h: Likewise.
15408         * sysdeps/ia64/bits/byteswap.h: Likewise.
15409         * sysdeps/s390/bits/byteswap.h: Likewise.
15410         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15411
15412 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15413
15414         [BZ #13540]
15415         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15416         destination buffer.
15417         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15418
15419 2011-12-23  Marek Polacek  <polacek@redhat.com>
15420
15421         * elf/dl-addr.c (determine_info): Add inline keyword.
15422         * elf/tst-auditmod4b.c (check_avx): Likewise.
15423         * elf/tst-auditmod6b.c (check_avx): Likewise.
15424         * elf/tst-auditmod6c.c (check_avx): Likewise.
15425         * elf/tst-auditmod7b.c (check_avx): Likewise.
15426
15427 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15428
15429         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15430         !__SSE_MATH__.
15431
15432 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15433
15434         [BZ #13540]
15435         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15436         processing for last bytes.
15437
15438 2011-08-06  Bruno Haible  <bruno@clisp.org>
15439
15440         [BZ #13061]
15441         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15442         U+0385, not to U+1FEE.
15443
15444         [BZ #13062]
15445         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15446         entry for U+00A5 U+0301.
15447
15448 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15449
15450         [BZ #13166]
15451         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15452         buffer for the output is too small.
15453
15454         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15455         optimization.
15456
15457         [BZ #13185]
15458         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15459         SSE flags if possible.
15460
15461 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15462
15463         [BZ #13540]
15464         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15465         processing for last bytes.
15466
15467 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15468
15469         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15470         (syscall-list-default-options, syscall-list-default-condition)
15471         (syscall-list-includes): Define.
15472         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15473         list of ABIs and options and #if conditions for each ABI.  Do not
15474         handle common syscalls between ABIs specially.
15475         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15476         Remove.
15477         (syscall-list-variants, syscall-list-32bit-options)
15478         (syscall-list-32bit-condition, syscall-list-64bit-options)
15479         (syscall-list-64bit-condition): Define.
15480         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15481         (syscall-list-variants, syscall-list-32bit-options)
15482         (syscall-list-32bit-condition, syscall-list-64bit-options)
15483         (syscall-list-64bit-condition): Define.
15484         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15485         Remove.
15486         (syscall-list-variants, syscall-list-32bit-options)
15487         (syscall-list-32bit-condition, syscall-list-64bit-options)
15488         (syscall-list-64bit-condition): Define.
15489         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15490         Remove.
15491         (syscall-list-variants, syscall-list-32bit-options)
15492         (syscall-list-32bit-condition, syscall-list-64bit-options)
15493         (syscall-list-64bit-condition): Define.
15494
15495 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15496
15497         * locale/iso-639.def: Add brx entry.
15498
15499         [BZ #13328]
15500         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15501         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15502
15503         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15504         __feraiseexcept_renamed.
15505
15506 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15507
15508         [BZ #13538]
15509         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15510         EPOLLET with unsigned values.
15511         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15512         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15513
15514         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15515         to large cancellation.
15516         * math/s_cacoshf.c: Likewise.
15517         * math/s_cacoshl.c: Likewise.
15518
15519 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15520
15521         [BZ #13305]
15522         [BZ #12786]
15523         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15524         * math/s_cacoshf.c: Likewise.
15525         * math/s_cacoshl.c: Likewise.
15526
15527 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15528
15529         [BZ #13439]
15530         * iconv/gconv.h: Define __GCONV_SWAP.
15531         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15532         * iconvdata/utf-16.c: Likewise.
15533         * iconvdata/utf-32.c: Likewise.
15534
15535 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15536
15537         [BZ #13524]
15538         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15539         numerator after shifting it by one limb.
15540
15541 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15542
15543         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15544         under [__USE_EXTERN_INLINES].
15545
15546 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15547
15548         [BZ #13446]
15549         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15550
15551 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15552
15553         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15554         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15555         optimized code.
15556         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15557         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15558         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15559         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15560         for strncasecmp/strncasecmp_l compilation.
15561         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15562         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15563
15564 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15565
15566         [BZ #13484]
15567         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15568         of __asm__.
15569
15570 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15571
15572         [BZ #13506]
15573         * time/tzfile.c (__tzfile_read): Check values from file header.
15574
15575 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15576
15577         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15578         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15579         * powerpc/powerpc32/dl-start.S: Likewise.
15580         * powerpc/powerpc32/elf/start.S: Likewise.
15581         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15582         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15583         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15584         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15585         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15586         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15587         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15588         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15589         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15590         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15591         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15592         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15593         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15594         * powerpc/powerpc32/memset.S: Likewise.
15595         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15596         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15597         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15598         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15599         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15600         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15601         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15602         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15603         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15604         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15605         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15606         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15607         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15608
15609 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15610
15611         * math/libm-test.inc: Added more nearbyint tests.
15612         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15613         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15614         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15615         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15616
15617 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15618
15619         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15620         FD_CLOEXEC.
15621
15622 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15623
15624         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15625         Add wcscpy-ssse3 wcscpy-c.
15626         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15627         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15628         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15629         * sysdeps/x86_64/wcschr.S: New file.
15630         * sysdeps/x86_64/wcsrchr.S: New file.
15631         * string/test-strcmp.c: Remove checking of wcscmp function for
15632         wrong alignments.
15633         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15634         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15635         wcsrchr-sse2 wcsrchr-c.
15636         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15637         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15638         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15639         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15640         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15641         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15642         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15643         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15644         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15645         * wcsmbc/wcschr.c (WCSCHR): New macro.
15646
15647 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15648
15649         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15650         * wcsmbs/test-wcsrchr.c: New file.
15651         * string/test-strrchr.c: Add wcsrchr support.
15652         (WIDE): New macro.
15653         * wcsmbs/test-wcscpy.c: New file.
15654         * string/test-strcpy.c: Add wcscpy support.
15655         (WIDE): New macro.
15656
15657 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15658
15659         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15660         the inner loop.
15661
15662 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15663
15664         [BZ #13472]
15665         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15666
15667 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15668
15669         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15670         Minor optimizations.
15671
15672         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15673         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15674         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15675
15676 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15677
15678         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15679         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15680         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15681         for gcc to avoid warnings.
15682         * inet/Makefile (tests): Add tst-checks.
15683         * inet/tst-checks.c: New file.
15684
15685         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15686         warning.
15687
15688         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15689         __wmemcmp_sse2.
15690
15691         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15692         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15693
15694         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15695
15696 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15697
15698         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15699         problem.
15700
15701         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15702
15703 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15704
15705         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15706         conditional on GCC version.
15707         (__arch_compare_and_exchange_val_8_acq)
15708         (__arch_compare_and_exchange_val_16_acq)
15709         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15710         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15711         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15712
15713 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15714
15715         * sysdeps/sh/backtrace.c: New file.
15716
15717 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15718
15719         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15720         parenthesis.
15721
15722 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15723
15724         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15725         falling back to utime.
15726
15727 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15728
15729         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15730         expectations for float.
15731
15732 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15733
15734         * locale/weight.h (findidx): Add parameter len.
15735         * locale/weightwc.h (findidx): Likewise.
15736         * posix/fnmatch_loop.c (FCT): Adjust caller.
15737         * posix/regcomp.c (build_equiv_class): Likewise.
15738         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15739         * posix/regexec.c (check_node_accept_bytes): Likewise.
15740         * string/strcoll_l.c (STRCOLL): Likewise.
15741         * string/strxfrm_l.c (STRXFRM): Likewise.
15742
15743 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15744
15745         * Makefile.in: Remove CVSOPT handling.
15746         * configure.in: Remove use of AC_REVISION.
15747         * iconvdata/Makefile (distribute): No need to filter out CVS.
15748         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15749         handling.
15750
15751 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15752
15753         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15754         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15755         [USE_AS_STRNCASECMP_L]: Likewise.
15756         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15757         NO_TLS_DIRECT_SEG_REFS.
15758         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15759         Fix argument offsets for non-PIC.
15760         [USE_AS_STRNCASECMP_L]: Likewise.
15761         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15762         NO_TLS_DIRECT_SEG_REFS.
15763
15764 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15765
15766         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15767         O_CLOEXEC.
15768         * locale/loadlocale.c (_nl_load_locale): Likewise.
15769
15770 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15771
15772         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15773         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15774         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15775         (SYSCALL_GETTIME): Set errno on error.
15776
15777         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15778         count references to noai6ai_cached.
15779
15780 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15781
15782         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15783
15784         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15785         FD_CLOEXEC for /proc/self/maps.
15786
15787         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15788         FD_CLOEXEC for /proc/meminfo.
15789
15790         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15791         gai.conf.
15792
15793         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15794         FD_CLOEXEC for given file.
15795
15796         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15797
15798         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15799         FD_CLOEXEC for /etc/hosts.
15800         (_gethtent): Likewise.
15801
15802         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15803
15804         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15805         cancellation and set FD_CLOEXEC for /etc/netgroup.
15806
15807         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15808         reading /etc/publickey.
15809
15810         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15811         allow cancellation when reading /etc/group.
15812
15813         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15814         cancellation.
15815         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15816
15817         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15818         when using data file.
15819
15820         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15821
15822         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15823         (write_nis_obj): Use "c" and "e" in fopen.
15824
15825         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15826
15827         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15828
15829         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15830
15831         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15832
15833         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15834         locale.alias.
15835
15836         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15837
15838         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15839
15840         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15841
15842         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15843         file parsing and set FD_CLOEXEC.
15844
15845 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15846
15847         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15848
15849 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15850
15851         * malloc/arena.c (arena_get2): Don't call reused_arena when
15852         _int_new_arena failed.
15853
15854 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15855
15856         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15857         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15858         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15859         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15860         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15861         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15862         to compile strcasecmp and strncasecmp.
15863         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15864         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15865
15866         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15867
15868 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15869
15870         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15871         locale-defines.sym to gen-as-const-headers.
15872         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15873         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15874         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15875         to compile strcasecmp and strncasecmp.
15876         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15877         strcasecmp_l and strncasecmp_l.
15878         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15879         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15880         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15881         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15882         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15883         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15884         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15885         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15886         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15887         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15888         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15889
15890 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15891
15892         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15893         result of SYSDEP_GETTIME_CPU to retval.
15894         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15895         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15896
15897         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15898         variable.
15899
15900         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15901         mantissa words.
15902         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15903
15904         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15905         from unused variable.
15906
15907         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15908         DWARF definitions.
15909         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15910         for assembling.
15911
15912         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15913         over namespaces.
15914
15915         * sunrpc/rpc_prot.c (rejected): Fix case value.
15916
15917         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15918         unsigned long long int to avoid warnings in shift.
15919
15920         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15921         of use of trans.
15922         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15923         variable tmp.
15924
15925         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15926         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15927         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15928
15929         * nis/nis_table.c (nis_list): Use variable of correct type for
15930         result of __follow_path call.
15931
15932 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15933
15934         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15935         of math functions ceil, trunc, floor, round, and sqrt, when
15936         avaliable on the platform.
15937         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15938         name clash.
15939         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15940         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15941         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15942
15943 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15944
15945         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15946         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15947
15948 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15949
15950         * include/unistd.h: Fix __readlink return type.
15951         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15952
15953 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15954
15955         * stdlib/ucontext.h: Undo last change for makecontext.
15956
15957 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15958
15959         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15960
15961         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15962         * setjmp/setjmp.h: Mark functions as non-leaf.
15963         * setjmp/bits/setjmp2.h: Likewise.
15964         * stdlib/ucontext.h: Likewise.
15965
15966 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15967
15968         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15969         (reused_arena): Don't check arena limit.
15970         (arena_get2): Atomically check arena limit.
15971
15972 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15973
15974         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15975         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15976
15977         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15978         instructions.
15979
15980 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15981
15982         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15983         handler when locking.
15984
15985         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15986         Fix size of allocated buffer.
15987
15988 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15989
15990         [BZ #10103]
15991         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15992         declarations for long double functions.
15993         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15994
15995         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15996
15997 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15998
15999         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16000         installed.
16001
16002         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16003         is disabled.
16004
16005 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16006
16007         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16008
16009 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16010
16011         * include/alloca.h (stackinfo_alloca_round): Define.
16012         (extend_alloca): Use it.
16013         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16014         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16015         here.
16016
16017         * scripts/check-local-headers.sh: Ignore libaudit.h.
16018
16019         * nscd/Makefile (extra-objs): Make recursively expanded.
16020
16021 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16022
16023         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16024         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16025
16026         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16027         * posix/tst-rfc3484-2.c: Likewise.
16028         * posix/tst-rfc3484-3.c: Likewise.
16029
16030         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16031         process_vm_writev.
16032         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16033         process_vm_writev.
16034         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16035         process_vm_writev from libc using GLIBC_2.15 version.
16036
16037         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16038
16039 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16040
16041         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16042         stack usage.
16043
16044 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16045
16046         [BZ #13367]
16047         * nss/getent.c (initgroups_keys): Show error message in case no group
16048         names are given.
16049
16050         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16051         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16052         __bump_nl_timestamp.
16053         * nscd/connections (nscd_init): When host database is served open
16054         netlink socket and request notification about configuration changes.
16055         (main_loop_poll): Track netlink file descriptor and bump timestamp
16056         in case data becomes available.
16057         (main_loop_epoll): Likewise.
16058         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16059         (database_pers_head): Add extra_data fileds.
16060         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16061         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16062         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16063         Adjust caller.
16064         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16065         in6ai data, call __free_in6ai.
16066         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16067         Add -DHAVE_NETLINK.
16068         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16069         interface information.  Reuse previous data if netlink timestamp
16070         is not changed.
16071         (__bump_nl_timestamp): New function.
16072         (__free_in6ai): New function.
16073
16074 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16075
16076         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16077         close_not_cancel_no_status here.
16078         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16079
16080 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16081
16082         [BZ #13276]
16083         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16084         return value.
16085
16086         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16087         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16088         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16089
16090 2011-07-03  Andreas Jaeger  <aj@suse.de>
16091
16092         [BZ #10709]
16093         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16094         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16095         * math/libm-test.inc (sin_test): Add test case.
16096
16097 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16098
16099         [BZ #13337]
16100         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16101         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16102
16103         * elf/chroot_canon.c (chroot_canon): Cleanups.
16104
16105         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16106
16107         [BZ #13335]
16108         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16109         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16110
16111         * string/test-strchr.c: Make usable for strchrnul testing.
16112         * string/test-strchrnul.c: New file.
16113         * string/Makefile (strop-tests): Add strchrnul.
16114
16115         * po/it.po: Update from translation team.
16116         * po/es.po: Likewise.
16117
16118 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16119
16120         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16121         the three constants needed as parameters.  Drop the others.
16122         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16123         __m128i_strloadu_tolower.
16124         Create and initialize variable zero and use it in all the places
16125         where _mm_setzero_si128 was used.
16126
16127         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16128         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16129         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16130         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16131         anymore.
16132         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16133         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16134         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16135         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16136         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16137         __mpranred, __mptan.
16138         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16139         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16140         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16141         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16142         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16143         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16144         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16145         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16146         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16147
16148 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16149
16150         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16151         redefine if SHARED.
16152         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16153
16154         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16155         wide char related routines to wcsmbs subdir.
16156
16157 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16158
16159         [BZ #13344]
16160         * misc/sys/cdefs.h (__THROWNL): Define.
16161         * posix/unistd.h: Use __THREADNL instead of __THREAD
16162         for memory synchronization functions.
16163
16164 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16165
16166         [BZ #13349]
16167         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16168         doesn't exist.
16169         * manual/stdio.texi (Obstack Streams): Node removed.
16170
16171 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16172
16173         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16174         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16175         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16176
16177         * math/math_private.h (math_force_eval): Allow non-addressable
16178         arguments.
16179         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16180
16181 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16182
16183         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16184         file is not needed.
16185
16186         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16187         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16188         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16189         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16190         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16191         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16192         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16193         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16194         Add AVX variants.
16195         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16196         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16197         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16198         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16199         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16200         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16201         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16202         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16203         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16204         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16205         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16206         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16207         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16208         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16209         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16210         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16211         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16212         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16213         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16214
16215         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16216         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16217
16218         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16219         place.  Use VEX encoding when compiling for AVX.
16220
16221 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16222
16223         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16224         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16225
16226         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16227
16228 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16229
16230         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16231         useless if() expression.
16232         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16233         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16234         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16235         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16236         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16237         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16238         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16239         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16240         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16241         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16242         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16243         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16244         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16245         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16246         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16247         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16248         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16249         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16250         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16251
16252         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16253
16254 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16255
16256         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16257         condition.
16258         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16259
16260 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16261
16262         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16263         .text section.  Avoid duplicate constants.
16264         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16265         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16266         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16267         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16268         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16269         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16270         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16271         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16272         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16273         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16274         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16275         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16276         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16277         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16278         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16279         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16280         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16281         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16282         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16283         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16284         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16285         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16286         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16287         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16288         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16289         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16290         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16291         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16292         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16293         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16294         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16295         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16296         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16297         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16298         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16299         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16300         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16301         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16302         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16303         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16304         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16305         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16306         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16307         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16308         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16309
16310 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16311
16312         * sysdeps/x86_64/dla.h: Move to ...
16313         * sysdeps/x86_64/fpu/dla.h: ...here.
16314         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16315         situations.  Use __builtin_fma only for gcc 4.6 and up.
16316
16317         * config.make.in: Add have-mfma4 entry.
16318         * configure.in: Substitute libc_cv_cc_fma4.
16319         * math/Makefile (dbl-only-routines): Add sincostab.
16320         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16321         Use __sincostab not sincos.
16322         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16323         name is a macro.
16324         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16325         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16326         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16327         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16328         using __copysign.
16329         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16330         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16331         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16332         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16333         and __inv.
16334         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16335         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16336         __copysign.
16337         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16338         define aliases when function name is a macro.
16339         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16340         sysdeps/ieee754/dbl-64/sincos.tbl.
16341         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16342         fma4-enabled routines.
16343         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16344         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16345         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16346         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16347         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16348         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16349         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16350         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16351         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16352         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16353         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16354         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16355         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16356         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16357         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16358         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16359         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16360         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16361         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16362         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16363         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16364         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16365         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16366         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16367         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16368         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16369         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16370         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16371         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16372         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16373
16374         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16375         rename.
16376         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16377         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16378         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16379         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16380         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16381         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16382         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16383         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16384
16385 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16386
16387         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16388
16389 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16390
16391         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16392
16393         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16394         prediction.
16395         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16396
16397         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16398         Remove unused variable magic_bits.
16399         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16400
16401         * string/strnlen.c: Define and use STRNLEN macro.
16402         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16403         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16404         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16405         * wcsmbs/wcslen.c: Define and use WCSLEN.
16406         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16407         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16408         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16409         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16410         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16411         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16412         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16413
16414 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16415
16416         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16417         strnlen-sse2-no-bsf.
16418         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16419         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16420         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16421         Add strnlen support.
16422         (USE_AS_STRNLEN): New macro.
16423         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16424         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16425         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16426         * sysdeps/x86_64/wcslen.S: New file.
16427
16428 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16429
16430         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16431         XMM-moves are used for copying on small sizes.
16432
16433 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16434
16435         * wcsmbs/Makefile (strop-tests): Add wcschr.
16436         * wcsmbs/test-wcschr.c: New file.
16437         * string/test-strchr.c: Update.
16438         Add wcschr support.
16439         (WIDE): New macro.
16440
16441 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16442
16443         * wcsmbs/Makefile (strop-tests): Add wcslen.
16444         * wcsmbs/test-wcslen.c: New file.
16445         * string/test-strlen.c: Update.
16446         Add wcslen support.
16447         (WIDE): New macro.
16448
16449 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16450
16451         * po/it.po: Update from translation team.
16452
16453 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16454
16455         * sysdeps/x86_64/wcscmp.S: Update.
16456         Fix wrong comparison semantics.
16457         wcscmp shall use signed comparison not unsigned.
16458         Don't use substraction to avoid overflow bug.
16459         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16460         * wcsmbc/wcscmp.c: Likewise.
16461         * string/test-strcmp.c: Likewise.
16462         Add new tests to check cases with negative values.
16463
16464 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16465
16466         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16467         * sysdeps/x86_64/dla.h: ...here.  New file.
16468         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16469         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16470         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16471         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16472         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16473         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16474         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16475         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16476         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16477
16478 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16479
16480         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16481         __ynl_finite aliases.
16482
16483 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16484
16485         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16486
16487         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16488         define DLA_FMA.
16489         [DLA_FMA] (EMULV): Use DLA_FMA.
16490         [DLA_FMA] (MUL12): Use EMULV.
16491         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16492         that are not needed.
16493         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16494         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16495         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16496         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16497         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16498         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16499         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16500
16501 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16502
16503         * math/s_nan.c: Undef __nan.
16504         * math/s_nanf.c: Undef __nanf.
16505         * math/s_nanl.c: Undef __nanl.
16506         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16507         "math_private.h".
16508
16509 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16510
16511         * math/s_catan.c: Add branch predictions.
16512         * math/s_catanf.c: Likewise.
16513         * math/s_catanh.c: Likewise.
16514         * math/s_catanhf.c: Likewise.
16515         * math/s_catanhl.c: Likewise.
16516         * math/s_catanl.c: Likewise.
16517         * math/s_cexp.c: Likewise.
16518         * math/s_cexpf.c: Likewise.
16519         * math/s_cexpl.c: Likewise.
16520         * math/s_clog.c: Likewise.
16521         * math/s_clog10.c: Likewise.
16522         * math/s_clog10f.c: Likewise.
16523         * math/s_clog10l.c: Likewise.
16524         * math/s_clogf.c: Likewise.
16525         * math/s_clogl.c: Likewise.
16526         * math/s_csqrt.c: Likewise.
16527         * math/s_csqrtf.c: Likewise.
16528         * math/s_csqrtl.c: Likewise.
16529         * math/s_ctanf.c: Likewise.
16530         * math/s_ctanh.c: Likewise.
16531         * math/s_ctanhf.c: Likewise.
16532         * math/s_ctanhl.c: Likewise.
16533         * math/s_ctanl.c: Likewise.
16534
16535         * math/math_private.h: Define __nan, __nanf, __nanl.
16536         * math/s_cacosh.c: Include <math_private.h>.
16537         * math/s_cacoshl.c: Likewise.
16538         * math/s_casinh.c: Likewise.
16539         * math/s_casinhf.c: Likewise.
16540         * math/s_casinhl.c: Likewise.
16541         * math/s_ccos.c: Rely entire on ccosh.
16542         * math/s_ccosf.c: Rely entire on ccoshf.
16543         * math/s_ccosl.c: Rely entirely on ccoshl.
16544         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16545         Remove tests for FE_INVALID.
16546         * math/s_ccoshf.c: Likewise.
16547         * math/s_ccoshl.c: Likewise.
16548         * math/s_csin.c: Likewise.
16549         * math/s_csinf.c: Likewise.
16550         * math/s_csinh.c Likewise.
16551         * math/s_csinhf.c: Likewise.
16552         * math/s_csinhl.c: Likewise.
16553         * math/s_csinl.c: Likewise.
16554         * math/s_ctan.c: Likewise.
16555         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16556         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16557         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16558
16559 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16560
16561         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16562         compilation problems.
16563
16564         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16565         __builtin_expect.
16566
16567 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16568
16569         * sysdeps/i386/configure.in: Test for -mfma4 option.
16570         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16571         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16572         COMMON_CPUID_INDEX_80000001.
16573         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16574         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16575         use it if FMA3 is not supported.
16576         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16577
16578         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16579         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16580
16581 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16582
16583         [BZ #12892]
16584         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16585         it would create a cycle with a link time dependency.
16586
16587 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16588
16589         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16590         instruction.
16591         * string/Makefile (strop-tests): Add rawmemchr.
16592         * string/test-rawmemchr.c: New file.
16593
16594         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16595         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16596         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16597         when compiling str{,n}casecmp and when AVX is available.  Hook up
16598         new optimized code in initializers.
16599
16600 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16601
16602         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16603         __feraiseexcept instead of feraiseexcept.
16604
16605 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16606
16607         * math/math_private.h: Define defaults for libc_fetestexcept and
16608         libc_feupdateenv.
16609         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16610         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16611         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16612         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16613         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16614         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16615         libc_fetestexcept and libc_feupdateenv.
16616
16617         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16618         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16619         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16620         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16621         libc_feholdexcept_setround.
16622
16623         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16624         Add s_nearbyint-c and s_nearbyintf-c.
16625         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16626         nearbyintf inlines.
16627         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16628         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16629         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16630         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16631
16632         * math/math_private.h: Define defaults for libc_fegetround,
16633         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16634         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16635         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16636         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16637         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16638         standard functions.
16639         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16640         Remove comments and hacks for old compiler versions.
16641         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16642         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16643         libc_feholdexceptl.
16644
16645 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16646
16647         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16648         (__feraiseexcept_renamed): Add __NTH.
16649         (feraiseexcept): Add __NTH.  Rename local variables to fix
16650         namespace violations.
16651
16652 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16653
16654         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16655
16656         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16657
16658         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16659         recently added interfaces.
16660         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16661
16662         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16663         about macro parameter expansion.
16664
16665         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16666         __NO_MATH_INLINES is defined.  Cleanups.
16667
16668         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16669         and __floorf is target has SSE4.1.
16670         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16671         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16672         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16673         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16674
16675         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16676         name.
16677         (floorf): Likewise.
16678
16679         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16680
16681 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16682
16683         * misc/sys/cdefs.h: Fix last change.
16684
16685         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16686         database lookup.
16687
16688 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16689
16690         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16691
16692         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16693         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16694         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16695         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16696         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16697         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16698         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16699         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16700         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16701         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16702         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16703         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16704         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16705         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16706         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16707         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16708         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16709         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16710         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16711         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16712         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16713         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16714
16715         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16716         ceil, ceilf, floor, floorf.
16717
16718         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16719         Perform IRELATIVE relocations last.
16720
16721         * elf/do-rel.h: Add another parameter nrelative, replacing the
16722         local variable with the same name.  Change name of the function
16723         to end in Rel or Rela (uppercase).
16724         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16725         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16726         elf_dynamic_do_##reloc function.
16727
16728 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16729
16730         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16731         is sufficient, at least on modern CPUs.
16732
16733         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16734
16735         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16736         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16737
16738         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16739         __expl_finite.
16740         * math/bits/math-finite.h: Add entries for exp.
16741         * math/e_expl.c: Add __*_finite alias.
16742         * sysdeps/i386/fpu/e_exp.S: Likewise.
16743         * sysdeps/i386/fpu/e_expf.S: Likewise.
16744         * sysdeps/i386/fpu/e_expl.c: Likewise.
16745         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16746         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16747         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16748         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16749         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16750         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16751         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16752
16753         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16754         is sufficient, at least on modern CPUs.
16755
16756         * ctype/ctype-info.c (__ctype_init): Define.
16757         * include/ctype.h (__ctype_init): Declare.
16758         (__ctype_b_loc): The variable is always initialized.
16759         (__ctype_toupper_loc): Likewise.
16760         (__ctype_tolower_loc): Likewise.
16761         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16762         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16763
16764 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16765
16766         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16767
16768         * configure.in: Also look in $cxxmachine/include for C++ system
16769         headers.
16770
16771 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16772
16773         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16774         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16775         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16776         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16777         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16778         (USE_AS_WMEMCMP): New macro.
16779         Fixing indents.
16780         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16781         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16782         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16783         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16784         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16785         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16786         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16787         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16788         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16789         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16790         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16791         (USE_AS_WMEMCMP): New macro.
16792         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16793         * sysdeps/string/test-memcmp.c: Update.
16794         Fix simple_wmemcmp.
16795         Add new tests.
16796         * wcsmbs/wmemcmp.c: Update.
16797         (WMEMCMP): New macro.
16798         Fix overflow bug.
16799
16800 2011-10-12  Andreas Jaeger  <aj@suse.de>
16801
16802         [BZ #13268]
16803         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16804
16805 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16806
16807         * libio/iofwide.c (do_length): Avoid warning.
16808
16809         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16810
16811 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16812
16813         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16814
16815         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16816         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16817         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16818         * sysdeps/i386/i686/fpu/e_log.S: New file.
16819         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16820         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16821
16822         * ctype/ctype.h: Add support for inlined isXXX functions when
16823         compiling C++ code.
16824
16825 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16826
16827         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16828
16829         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16830
16831 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16832
16833         [BZ #13291]
16834         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16835
16836 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16837
16838         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16839         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16840         feraiseexcept.
16841
16842         * sysdeps/x86_64/memrchr.S: Check for zero size.
16843
16844         * string/stratcliff.c: Add memrchr tests.
16845
16846 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16847
16848         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16849         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16850         rawmemchr-sse2 rawmemchr-sse2-bsf.
16851         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16852         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16853         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16854         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16855         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16856         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16857         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16858         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16859         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16860         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16861         * string/memrchr.c (MEMRCHR): New macro.
16862
16863 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16864
16865         Add integration with gcc's -ffinite-math-only and optimize wrapper
16866         functions in libm.
16867         * Versions.def: Define GLIBC_2.15 version for libm.
16868         * math/Makefile (headers): Add bits/math-finite.h.
16869         * math/bits/math-finite.h: New file.
16870         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16871         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16872         * math/e_acoshl.c: Add __*_finite alias.
16873         * math/e_acosl.c: Likewise.
16874         * math/e_asinl.c: Likewise.
16875         * math/e_atan2l.c: Likewise.
16876         * math/e_atanhl.c: Likewise.
16877         * math/e_coshl.c: Likewise.
16878         * math/e_exp10.c: Likewise.
16879         * math/e_exp10f.c: Likewise.
16880         * math/e_exp10l.c: Likewise.
16881         * math/e_exp2l.c: Likewise.
16882         * math/e_fmodl.c: Likewise.
16883         * math/e_gammal_r.c: Likewise.
16884         * math/e_hypotl.c: Likewise.
16885         * math/e_j0l.c: Likewise.
16886         * math/e_j1l.c: Likewise.
16887         * math/e_jnl.c: Likewise.
16888         * math/e_lgammal_r.c: Likewise.
16889         * math/e_log10l.c: Likewise.
16890         * math/e_log2l.c: Likewise.
16891         * math/e_logl.c: Likewise.
16892         * math/e_powl.c: Likewise.
16893         * math/e_sinhl.c: Likewise.
16894         * math/e_sqrtl.c: Likewise.
16895         * math/e_scalb.c: Completely rewritten and optimized.
16896         * math/e_scalbf.c: Likewise.
16897         * math/e_scalbl.c: Likewise.
16898         * math/w_acos.c: Likewise.
16899         * math/w_acosf.c: Likewise.
16900         * math/w_acosl.c: Likewise.
16901         * math/w_acosh.c: Likewise.
16902         * math/w_acoshf.c: Likewise.
16903         * math/w_acoshl.c: Likewise.
16904         * math/w_asin.c: Likewise.
16905         * math/w_asinf.c: Likewise.
16906         * math/w_asinl.c: Likewise.
16907         * math/w_atan2.c: Likewise.
16908         * math/w_atan2f.c: Likewise.
16909         * math/w_atan2l.c: Likewise.
16910         * math/w_atanh.c: Likewise.
16911         * math/w_atanhf.c: Likewise.
16912         * math/w_atanhl.c: Likewise.
16913         * math/w_exp10.c: Likewise.
16914         * math/w_exp10f.c: Likewise.
16915         * math/w_exp10l.c: Likewise.
16916         * math/w_fmod.c: Likewise.
16917         * math/w_fmodf.c: Likewise.
16918         * math/w_fmodl.c: Likewise.
16919         * math/w_j0.c: Likewise.
16920         * math/w_j0f.c: Likewise.
16921         * math/w_j0l.c: Likewise.
16922         * math/w_j1.c: Likewise.
16923         * math/w_j1f.c: Likewise.
16924         * math/w_j1l.c: Likewise.
16925         * math/w_jn.c: Likewise.
16926         * math/w_jnf.c: Likewise.
16927         * math/w_log.c: Likewise.
16928         * math/w_logf.c: Likewise.
16929         * math/w_logl.c: Likewise.
16930         * math/w_log10.c: Likewise.
16931         * math/w_log10f.c: Likewise.
16932         * math/w_log10l.c: Likewise.
16933         * math/w_log2.c: Likewise.
16934         * math/w_log2f.c: Likewise.
16935         * math/w_log2l.c: Likewise.
16936         * math/w_pow.c: Likewise.
16937         * math/w_powf.c: Likewise.
16938         * math/w_powl.c: Likewise.
16939         * math/w_remainder.c: Likewise.
16940         * math/w_remainderf.c: Likewise.
16941         * math/w_remainderl.c: Likewise.
16942         * math/w_scalb.c: Likewise.
16943         * math/w_scalbf.c: Likewise.
16944         * math/w_scalbl.c: Likewise.
16945         * math/w_sqrt.c: Likewise.
16946         * math/w_sqrtf.c: Likewise.
16947         * math/w_sqrtl.c: Likewise.
16948         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16949         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16950         used.
16951         * math/math_private.h: Declare __kernel_standard_f.
16952         * math/w_cosh.c: Remove cruft and optimize a bit.
16953         * math/w_coshf.c: Likewise.
16954         * math/w_coshl.c: Likewise.
16955         * math/w_exp2.c: Likewise.
16956         * math/w_exp2f.c: Likewise.
16957         * math/w_exp2l.c: Likewise.
16958         * math/w_hypot.c: Likewise.
16959         * math/w_hypotf.c: Likewise.
16960         * math/w_hypotl.c: Likewise.
16961         * math/w_lgamma.c: Likewise.
16962         * math/w_lgamma_r.c: Likewise.
16963         * math/w_lgammaf.c: Likewise.
16964         * math/w_lgammaf_r.c: Likewise.
16965         * math/w_lgammal.c: Likewise.
16966         * math/w_lgammal_r.c: Likewise.
16967         * math/w_sinh.c: Likewise.
16968         * math/w_sinhf.c: Likewise.
16969         * math/w_sinhl.c: Likewise.
16970         * math/w_tgamma.c: Likewise.
16971         * math/w_tgammaf.c: Likewise.
16972         * math/w_tgammal.c: Likewise.
16973         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16974         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16975         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16976         Minor optimizations.  Pretty printing.  Remove cruft.
16977         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16978         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16979         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16980         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16981         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16982         * sysdeps/i386/fpu/e_asin.S: Likewise.
16983         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16984         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16985         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16986         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16987         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16988         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16989         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16990         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16991         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16992         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16993         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16994         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16995         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16996         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16997         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16998         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16999         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17000         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17001         * sysdeps/i386/fpu/e_log.S: Likewise.
17002         * sysdeps/i386/fpu/e_log10.S: Likewise.
17003         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17004         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17005         * sysdeps/i386/fpu/e_log2.S: Likewise.
17006         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17007         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17008         * sysdeps/i386/fpu/e_logf.S: Likewise.
17009         * sysdeps/i386/fpu/e_logl.S: Likewise.
17010         * sysdeps/i386/fpu/e_pow.S: Likewise.
17011         * sysdeps/i386/fpu/e_powf.S: Likewise.
17012         * sysdeps/i386/fpu/e_powl.S: Likewise.
17013         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17014         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17015         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17016         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17017         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17018         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17019         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17020         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17021         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17022         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17023         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17024         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17025         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17026         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17027         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17028         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17029         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17030         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17031         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17032         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17033         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17034         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17035         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17036         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17037         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17038         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17039         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17040         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17041         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17042         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17043         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17044         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17045         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17046         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17047         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17048         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17049         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17050         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17051         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17052         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17053         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17054         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17055         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17056         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17057         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17058         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17059         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17060         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17061         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17062         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17063         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17064         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17065         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17066         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17067         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17068         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17069         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17070         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17071         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17072         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17073         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17074         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17075         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17076         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17077         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17078         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17079         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17080         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17081         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17082         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17083         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17084         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17085         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17086         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17087         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17088         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17089         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17090         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17091         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17092         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17093         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17094         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17095         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17096         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17097         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17098         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17099         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17100         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17101         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17102         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17103         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17104         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17105         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17106         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17107         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17108         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17109         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17110         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17111         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17112         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17113         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17114         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17115         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17116         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17117         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17118         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17119         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17120         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17121         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17122         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17123         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17124         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17125         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17126         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17127         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17128         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17129         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17130         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17131         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17132         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17133         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17134         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17135         (__isnanf): Likewise.
17136         (__isinf_ns): Likewise.
17137         (__isinf_nsf): Likewise.
17138         (__finite): Likewise.
17139         (__finitef): Likewise.
17140         (__ieee754_sqrt): Define as macro.
17141         (__ieee754_sqrtf): Define as macro.
17142         (__ieee754_sqrtl): Define as macro.
17143         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17144         inlined copy.
17145         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17146         __FINITE_MATH_ONLY__ consistent.
17147         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17148
17149 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17150
17151         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17152         of rawmemchr.
17153
17154         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17155
17156 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17157
17158         * po/ja.po: Update from translation team.
17159
17160 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17161
17162         * locale/programs/locarchive.c (prepare_address_space): New function.
17163         (create_archive, enlarge_archive, open_archive): Use it.
17164
17165         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17166         inside [SHARED], where it is used.
17167
17168         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17169
17170         * nss/getent.c (netgroup_keys): Remove unused variable.
17171         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17172
17173 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17174
17175         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17176         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17177         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17178         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17179         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17180         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17181         * math/Makefile (libm-calls): Add s_isinf_ns.
17182         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17183         * math/multc3.c: Likewise.
17184         * math/s_casin.c: Likewise.
17185         * math/s_casinf.c: Likewise.
17186         * math/s_casinl.c: Likewise.
17187         * math/s_ccos.c: Likewise.
17188         * math/s_ccosf.c: Likewise.
17189         * math/s_ccosl.c: Likewise.
17190         * math/s_ctan.c: Likewise.
17191         * math/s_ctanf.c: Likewise.
17192         * math/s_ctanh.c: Likewise.
17193         * math/s_ctanhf.c: Likewise.
17194         * math/s_ctanhl.c: Likewise.
17195         * math/s_ctanl.c: Likewise.
17196         * math/w_fmod.c: Likewise.
17197         * math/w_fmodf.c: Likewise.
17198         * math/w_fmodl.c: Likewise.
17199         * math/w_remainder.c: Likewise.
17200         * math/w_remainderf.c: Likewise.
17201         * math/w_remainderl.c: Likewise.
17202         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17203         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17204         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17205         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17206         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17207         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17208         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17209         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17210
17211         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17212         of the number.
17213         * stdio-common/printf_fphex.c: Likewise.
17214         * stdio-common/printf_size.c: Likewise.
17215
17216         * math/e_exp10.c: Include math_private.h using <...> not "...".
17217         * math/e_exp10f.c: Likewise.
17218         * math/e_exp10l.c: Likewise.
17219         * math/e_exp2l.c: Likewise.
17220         * math/e_j0l.c: Likewise.
17221         * math/e_j1l.c: Likewise.
17222         * math/e_jnl.c: Likewise.
17223         * math/e_lgammal_r.c: Likewise.
17224         * math/e_rem_pio2l.c: Likewise.
17225         * math/e_scalb.c: Likewise.
17226         * math/e_scalbf.c: Likewise.
17227         * math/e_scalbl.c: Likewise.
17228         * math/k_cosl.c: Likewise.
17229         * math/k_sinl.c: Likewise.
17230         * math/k_tanl.c: Likewise.
17231         * math/s_cacoshf.c: Likewise.
17232         * math/s_catan.c: Likewise.
17233         * math/s_catanf.c: Likewise.
17234         * math/s_catanh.c: Likewise.
17235         * math/s_catanhf.c: Likewise.
17236         * math/s_catanhl.c: Likewise.
17237         * math/s_catanl.c: Likewise.
17238         * math/s_ccosh.c: Likewise.
17239         * math/s_ccoshf.c: Likewise.
17240         * math/s_ccoshl.c: Likewise.
17241         * math/s_cexp.c: Likewise.
17242         * math/s_cexpf.c: Likewise.
17243         * math/s_cexpl.c: Likewise.
17244         * math/s_clog.c: Likewise.
17245         * math/s_clog10.c: Likewise.
17246         * math/s_clog10f.c: Likewise.
17247         * math/s_clog10l.c: Likewise.
17248         * math/s_clogf.c: Likewise.
17249         * math/s_clogl.c: Likewise.
17250         * math/s_csin.c: Likewise.
17251         * math/s_csinf.c: Likewise.
17252         * math/s_csinh.c: Likewise.
17253         * math/s_csinhf.c: Likewise.
17254         * math/s_csinhl.c: Likewise.
17255         * math/s_csinl.c: Likewise.
17256         * math/s_csqrt.c: Likewise.
17257         * math/s_csqrtf.c: Likewise.
17258         * math/s_csqrtl.c: Likewise.
17259         * math/s_ctan.c: Likewise.
17260         * math/s_ctanf.c: Likewise.
17261         * math/s_ctanh.c: Likewise.
17262         * math/s_ctanhf.c: Likewise.
17263         * math/s_ctanhl.c: Likewise.
17264         * math/s_ctanl.c: Likewise.
17265         * math/s_ldexp.c: Likewise.
17266         * math/s_ldexpf.c: Likewise.
17267         * math/s_ldexpl.c: Likewise.
17268         * math/s_significand.c: Likewise.
17269         * math/s_significandf.c: Likewise.
17270         * math/s_significandl.c: Likewise.
17271         * math/w_acos.c: Likewise.
17272         * math/w_acosf.c: Likewise.
17273         * math/w_acosh.c: Likewise.
17274         * math/w_acoshf.c: Likewise.
17275         * math/w_acoshl.c: Likewise.
17276         * math/w_acosl.c: Likewise.
17277         * math/w_asin.c: Likewise.
17278         * math/w_asinf.c: Likewise.
17279         * math/w_asinl.c: Likewise.
17280         * math/w_atan2.c: Likewise.
17281         * math/w_atan2f.c: Likewise.
17282         * math/w_atan2l.c: Likewise.
17283         * math/w_atanh.c: Likewise.
17284         * math/w_atanhf.c: Likewise.
17285         * math/w_atanhl.c: Likewise.
17286         * math/w_cosh.c: Likewise.
17287         * math/w_coshf.c: Likewise.
17288         * math/w_coshl.c: Likewise.
17289         * math/w_dremf.c: Likewise.
17290         * math/w_exp10.c: Likewise.
17291         * math/w_exp10f.c: Likewise.
17292         * math/w_exp10l.c: Likewise.
17293         * math/w_exp2.c: Likewise.
17294         * math/w_exp2f.c: Likewise.
17295         * math/w_fmod.c: Likewise.
17296         * math/w_fmodf.c: Likewise.
17297         * math/w_fmodl.c: Likewise.
17298         * math/w_hypot.c: Likewise.
17299         * math/w_hypotf.c: Likewise.
17300         * math/w_hypotl.c: Likewise.
17301         * math/w_j0.c: Likewise.
17302         * math/w_j0f.c: Likewise.
17303         * math/w_j0l.c: Likewise.
17304         * math/w_j1.c: Likewise.
17305         * math/w_j1f.c: Likewise.
17306         * math/w_j1l.c: Likewise.
17307         * math/w_jn.c: Likewise.
17308         * math/w_jnf.c: Likewise.
17309         * math/w_jnl.c: Likewise.
17310         * math/w_lgamma.c: Likewise.
17311         * math/w_lgamma_r.c: Likewise.
17312         * math/w_lgammaf.c: Likewise.
17313         * math/w_lgammaf_r.c: Likewise.
17314         * math/w_lgammal.c: Likewise.
17315         * math/w_lgammal_r.c: Likewise.
17316         * math/w_log.c: Likewise.
17317         * math/w_log10.c: Likewise.
17318         * math/w_log10f.c: Likewise.
17319         * math/w_log10l.c: Likewise.
17320         * math/w_log2.c: Likewise.
17321         * math/w_log2f.c: Likewise.
17322         * math/w_log2l.c: Likewise.
17323         * math/w_logf.c: Likewise.
17324         * math/w_logl.c: Likewise.
17325         * math/w_pow.c: Likewise.
17326         * math/w_powf.c: Likewise.
17327         * math/w_powl.c: Likewise.
17328         * math/w_remainder.c: Likewise.
17329         * math/w_remainderf.c: Likewise.
17330         * math/w_remainderl.c: Likewise.
17331         * math/w_scalb.c: Likewise.
17332         * math/w_scalbf.c: Likewise.
17333         * math/w_scalbl.c: Likewise.
17334         * math/w_sinh.c: Likewise.
17335         * math/w_sinhf.c: Likewise.
17336         * math/w_sinhl.c: Likewise.
17337         * math/w_sqrt.c: Likewise.
17338         * math/w_sqrtf.c: Likewise.
17339         * math/w_sqrtl.c: Likewise.
17340         * math/w_tgamma.c: Likewise.
17341         * math/w_tgammaf.c: Likewise.
17342         * math/w_tgammal.c: Likewise.
17343
17344         * po/ja.po: Update from translation team.
17345
17346 2011-09-29  Andreas Jaeger  <aj@suse.de>
17347
17348         [BZ #13179]
17349         * sunrpc/netname.c (netname2host): Fix logic.
17350
17351         [BZ #6779]
17352         [BZ #6783]
17353         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17354         correctly.
17355         * math/w_remainder.c (__remainder): Likewise.
17356         * math/w_remainderf.c (__remainderf): Likewise.
17357         * math/libm-test.inc (remainder_test): Add test cases.
17358
17359 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17360
17361         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17362         sdiv_qrnnd.
17363
17364 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17365
17366         * string/test-memcmp.c: Avoid unncessary #defines.
17367         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17368
17369 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17370
17371         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17372         Use new sse2 version for core i3 - i7 as it's faster
17373         than sse42 version.
17374         (bit_Prefer_PMINUB_for_stringop): New.
17375         * sysdeps/x86_64/rawmemchr.S: Update.
17376         Replace with faster SSE2 version.
17377         * sysdeps/x86_64/memrchr.S: New file.
17378         * sysdeps/x86_64/memchr.S: Update.
17379         Replace with faster SSE2 version.
17380
17381 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17382
17383         * elf/dl-load.c (lose): Add cast to avoid warning.
17384
17385 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17386
17387         * po/ca.po: Update from translation team.
17388
17389         * inet/getnetgrent_r.c: Hook up nscd.
17390         * nscd/Makefile (routines): Add nscd_netgroup.
17391         (nscd-modules): Add netgroupcache.
17392         (CFLAGS-netgroupcache.c): Define.
17393         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17394         (cache_search): Add const to second parameter.
17395         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17396         INNETGR.
17397         (dbs): Add netgrdb entry.
17398         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17399         (verify_persistent_db): Handle netgrdb.
17400         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17401         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17402         GETFDNETGR.
17403         (netgroup_response_header): Define.
17404         (innetgroup_response_header): Define.
17405         (datahead): Add netgroup_response_header and innetgroup_response_header
17406         elements.
17407         * nscd/nscd.conf: Add entries for netgroup cache.
17408         * nscd/nscd.h (dbtype): Add netgrdb.
17409         (_PATH_NSCD_NETGROUP_DB): Define.
17410         (netgroup_iov_disabled): Declare.
17411         (xmalloc, xcalloc, xrealloc): Move declarations here.
17412         (cache_search): Adjust prototype.
17413         Add netgroup-related prototypes.
17414         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17415         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17416         (__nscd_innetgr): Declare.
17417         * nscd/selinux.c (perms): Use access_vector_t as element type and
17418         add netgroup-related initializers.
17419         * nscd/netgroupcache.c: New file.
17420         * nscd/nscd_netgroup.c: New file.
17421         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17422         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17423         For four parameters use innetgr.
17424         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17425         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17426         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17427         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17428
17429         * nscd/connections.c (register_traced_file): Don't register file
17430         for disabled databases.
17431
17432 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17433
17434         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17435
17436         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17437         from tree and freeing node.
17438
17439 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17440
17441         * nss/nsswitch.c (__nss_database_lookup): Handle
17442         nss_parse_service_list out of memory case.
17443
17444 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17445
17446         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17447         out of memory case.
17448
17449 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17450
17451         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17452         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17453         pass it down.
17454         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17455         elf_machine_rela, elf_machine_lazy_rel.
17456         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17457         (ELF_DYNAMIC_DO_REL): Likewise.
17458         (ELF_DYNAMIC_DO_RELA): Likewise.
17459         (ELF_DYNAMIC_RELOCATE): Likewise.
17460         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17461         to ELF_DYNAMIC_DO_REL.
17462         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17463         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17464         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17465         elf_machine_rela.
17466         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17467         skip_ifunc, don't call ifunc function if non-zero.
17468         (elf_machine_rela): Likewise.
17469         (elf_machine_lazy_rel): Likewise.
17470         (elf_machine_lazy_rela): Likewise.
17471         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17472         (elf_machine_lazy_rel): Likewise.
17473         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17474         Likewise.
17475         (elf_machine_lazy_rel): Likewise.
17476         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17477         Likewise.
17478         (elf_machine_lazy_rel): Likewise.
17479         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17480         (elf_machine_lazy_rel): Likewise.
17481         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17482         (elf_machine_lazy_rel): Likewise.
17483         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17484         (elf_machine_lazy_rel): Likewise.
17485         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17486         (elf_machine_lazy_rel): Likewise.
17487         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17488         (elf_machine_lazy_rel): Likewise.
17489         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17490         (elf_machine_lazy_rel): Likewise.
17491
17492 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17493
17494         * nss/nss_files/files-init.c (_nss_files_init): Use static
17495         initialization for all the *_traced_file variables.
17496
17497 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17498
17499         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17500
17501 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17502
17503         [BZ #13226]
17504         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17505
17506 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17507
17508         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17509         Reread the line before reparsing it.
17510
17511 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17512
17513         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17514
17515 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17516             Maxim Kuvyrkov  <maxim@codesourcery.com>
17517             Joseph Myers  <joseph@codesourcery.com>
17518
17519         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17520         if needed for __stack_chk_guard.
17521
17522 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17523
17524         * sysdeps/posix/spawni.c (script_execute): Always define it.
17525         It will be optimized away if unused.
17526         (maybe_script_execute): New function.
17527         (__spawni): Call it.
17528
17529         * Makerules: Don't include tls.make.
17530         (config-tls): Always set to thread.
17531         * tls.make.c: File removed.
17532
17533 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17534
17535         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17536         * config.make.in (CPPFLAGS-config): New substituted variable.
17537
17538 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17539
17540         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17541
17542         [BZ #13192]
17543         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17544         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17545
17546 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17547
17548         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17549         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17550         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17551         (CALL_FAIL): Likewise.
17552         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17553         (CALL_FAIL): Macro removed.
17554         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17555
17556 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17557
17558         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17559         for __FINITE_MATH_ONLY__ == 1.
17560
17561 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17562
17563         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17564         __ieee754_sqrt instead of sqrt.
17565         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17566         __ieee754_sqrtf instead of sqrtf.
17567         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17568         __floorf instead of floorf.
17569         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17570         __floorf, __truncf instead of floorf, truncf.
17571
17572 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17573
17574         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17575
17576         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17577         __extern_always_inline.
17578         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17579         32-bit.
17580
17581 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17582
17583         * elf/rtld.c (dl_main): Also relocate in dependency order when
17584         doing symbol dependency testing.
17585
17586 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17587
17588         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17589         Always define `refsym'.
17590
17591 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17592
17593         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17594         (__FD_ELT): Renamed from __FDELT.
17595         * misc/bits/select2.h (__FD_ELT): Likewise.
17596         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17597         __FD_MASK instead of __FDELT, __FDMASK.
17598         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17599         Likewise.
17600         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17601         Likewise.
17602
17603         * elf/Makefile (gen-ldd): Fix pattern.
17604
17605         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17606         (init_tls): Likewise.
17607
17608 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17609
17610         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17611
17612 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17613
17614         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17615         `struct cmsghdr *' instead of `void *'.
17616         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17617         Likewise.
17618
17619 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17620
17621         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17622         if non-absolute.
17623         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17624         ldd_rewrite_script.
17625
17626 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17627
17628         * configure.in: Remove --with-tls option.
17629         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17630         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17631         out in case it is missing.
17632         * sysdeps/ia64/elf/configure.in: Likewise.
17633         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17634         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17635         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17636         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17637         * sysdeps/sh/elf/configure.in: Likewise.
17638         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17639         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17640         * sysdeps/x86_64/elf/configure.in: Likewise.
17641         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17642         * sysdeps/mach/hurd/tls.h: Likewise.
17643
17644         [BZ #13067]
17645         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17646
17647         [BZ #13090]
17648         * configure.in: Fix use of AC_INIT.
17649
17650         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17651
17652 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17653
17654         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17655         __set_errno.
17656         * malloc/hooks.c: Likewise.
17657
17658         [BZ #11929]
17659         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17660         variables statically.
17661         (narenas): Initialize.
17662         (list_lock): Initialize.
17663         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17664         initializtion of main_arena and list_lock.  Small cleanups.
17665         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17666         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17667         Add initializers to main_arena and mp_.
17668         (malloc_state): Remove pagesize member.  Change all users to use
17669         GLRO(dl_pagesize).
17670
17671         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17672         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17673         is always initialized.
17674
17675         * malloc/malloc.c: Removed unused configurations and dead code.
17676         * malloc/arena.c: Likewise.
17677         * malloc/hooks.c: Likewise.
17678         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17679
17680         * include/tls.h: Removed.  USE___THREAD must always be defined.
17681         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17682         * elf/dl-libc.c: Likewise.
17683         * elf/dl-tsd.c: Likewise.
17684         * include/errno.h: Likewise.
17685         * include/netdb.h: Likewise.
17686         * include/resolv.h: Likewise.
17687         * inet/herrno-loc.c: Likewise.
17688         * inet/herrno.c: Likewise.
17689         * malloc/arena.c: Likewise.
17690         * malloc/hooks.c: Likewise.
17691         * malloc/malloc.c: Likewise.
17692         * resolv/res-state.c: Likewise.
17693         * resolv/res_libc.c: Likewise.
17694         * sysdeps/i386/dl-machine.h: Likewise.
17695         * sysdeps/ia64/dl-machine.h: Likewise.
17696         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17697         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17698         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17699         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17700         * sysdeps/sh/dl-machine.h: Likewise.
17701         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17702         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17703         * sysdeps/unix/i386/sysdep.S: Likewise.
17704         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17705         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17706         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17707         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17708         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17709         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17710         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17711         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17712         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17713         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17714         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17715         * sysdeps/x86_64/dl-machine.h: Likewise.
17716         * tls.make.c: Likewise.
17717
17718         * configure.in: Remove --with-__thread option.  Make tests for
17719         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17720         tls_model attribute fail if no support is available.  Remove
17721         USE_IN_LIBIO.
17722         * Makeconfig: Adjust for dropped configure option.  All features are
17723         now mandatory.
17724         * Makerules: Likewise.
17725         * Versions.def: Likewise.
17726         * argp/argp-fmtstream.c: Likewise.
17727         * argp/argp-fmtstream.h: Likewise.
17728         * argp/argp-help.c: Likewise.
17729         * assert/assert.c: Likewise.
17730         * config.h.in: Likewise.
17731         * config.make.in: Likewise.
17732         * configure: Likewise.
17733         * configure.in: Likewise.
17734         * csu/Versions: Likewise.
17735         * csu/init.c: Likewise.
17736         * elf/tst-audit2.c: Likewise.
17737         * elf/tst-tls10.c: Likewise.
17738         * elf/tst-tls10.h: Likewise.
17739         * elf/tst-tls11.c: Likewise.
17740         * elf/tst-tls12.c: Likewise.
17741         * elf/tst-tls14.c: Likewise.
17742         * elf/tst-tlsmod11.c: Likewise.
17743         * elf/tst-tlsmod12.c: Likewise.
17744         * elf/tst-tlsmod13.c: Likewise.
17745         * elf/tst-tlsmod13a.c: Likewise.
17746         * elf/tst-tlsmod14a.c: Likewise.
17747         * elf/tst-tlsmod15b.c: Likewise.
17748         * elf/tst-tlsmod16a.c: Likewise.
17749         * elf/tst-tlsmod16b.c: Likewise.
17750         * elf/tst-tlsmod7.c: Likewise.
17751         * elf/tst-tlsmod8.c: Likewise.
17752         * elf/tst-tlsmod9.c: Likewise.
17753         * gmon/gmon.c: Likewise.
17754         * grp/fgetgrent_r.c: Likewise.
17755         * grp/putgrent.c: Likewise.
17756         * hurd/fopenport.c: Likewise.
17757         * include/libc-symbols.h: Likewise.
17758         * include/tls.h: Likewise.
17759         * intl/gettextP.h: Likewise.
17760         * intl/loadinfo.h: Likewise.
17761         * locale/global-locale.c: Likewise.
17762         * locale/localeinfo.h: Likewise.
17763         * mach/devstream.c: Likewise.
17764         * malloc/arena.c: Likewise.
17765         * malloc/set-freeres.c: Likewise.
17766         * misc/err.c: Likewise.
17767         * misc/getttyent.c: Likewise.
17768         * misc/mntent_r.c: Likewise.
17769         * posix/getopt.c: Likewise.
17770         * posix/wordexp.c: Likewise.
17771         * pwd/fgetpwent_r.c: Likewise.
17772         * resolv/Versions: Likewise.
17773         * resolv/res_hconf.c: Likewise.
17774         * shadow/fgetspent_r.c: Likewise.
17775         * shadow/putspent.c: Likewise.
17776         * stdio-common/printf_fphex.c: Likewise.
17777         * stdio-common/tmpfile.c: Likewise.
17778         * stdlib/abort.c: Likewise.
17779         * stdlib/fmtmsg.c: Likewise.
17780         * sunrpc/auth_unix.c: Likewise.
17781         * sunrpc/clnt_perr.c: Likewise.
17782         * sunrpc/clnt_tcp.c: Likewise.
17783         * sunrpc/clnt_udp.c: Likewise.
17784         * sunrpc/clnt_unix.c: Likewise.
17785         * sunrpc/openchild.c: Likewise.
17786         * sunrpc/svc_simple.c: Likewise.
17787         * sunrpc/svc_tcp.c: Likewise.
17788         * sunrpc/svc_udp.c: Likewise.
17789         * sunrpc/svc_unix.c: Likewise.
17790         * sunrpc/xdr.c: Likewise.
17791         * sunrpc/xdr_array.c: Likewise.
17792         * sunrpc/xdr_rec.c: Likewise.
17793         * sunrpc/xdr_ref.c: Likewise.
17794         * sunrpc/xdr_stdio.c: Likewise.
17795
17796 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17797
17798         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17799
17800 2011-07-03  Andreas Jaeger  <aj@suse.de>
17801
17802         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17803         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17804         regenerate with gen-libm-tests.pl.
17805
17806 2010-05-12  Petr Baudis  <pasky@suse.cz>
17807
17808         [BZ #11589]
17809         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17810         around j0() zero points by switching to j1().
17811         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17812         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17813         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17814         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17815
17816 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17817
17818         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17819         instead of 0.
17820         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17821         instead of 0.                              .
17822         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17823         Patch in part by Pavel Roskin <proski@gnu.org>.
17824
17825         [BZ #13138]
17826         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17827         realloc.
17828         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17829         Free memory block if necessary.
17830
17831         [BZ #12847]
17832         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17833         be NULL.  Don't lock in this case.
17834
17835 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17836
17837         * elf/elf.h (ELFOSABI_GNU): New macro.
17838         (ELFOSABI_LINUX): Define to that.
17839
17840 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17841
17842         * string/strncat.c (strncat): Undef the symbol in case it has been
17843         defined in bits/string.h.
17844
17845 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17846
17847         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17848
17849         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17850         link map.
17851
17852 2011-08-17  Andreas Jaeger  <aj@suse.de>
17853
17854         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17855
17856 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17857             Ian Lance Taylor  <iant@google.com>
17858
17859         * math/libm-test.inc (lround_test): New testcase.
17860         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17861
17862 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17863
17864         * Makefile: Remove support for automatic cvs check-ins.
17865         * Makerules: Likewise.
17866         * config.make.in: Likewise.
17867         * configure.in: Likewise.
17868         * intl/Makefile: Likewise.
17869         * locale/Makefile: Likewise.
17870         * po/Makefile: Likewise.
17871         * posix/Makefile: Likewise.
17872         * sysdeps/gnu/Makefile: Likewise.
17873         * sysdeps/mach/hurd/Makefile: Likewise.
17874         * sysdeps/sparc/sparc32/Makefile: Likewise.
17875
17876         [BZ #13118]
17877         * posix/Makefile (bug-regex32-ENV): Define.
17878         Patch by John Stanley <jpsinthemix@verizon.net>.
17879
17880         * misc/Makefile (headers): Add bits/select2.h.
17881         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17882         * misc/bits/select2.h: New file.
17883         * include/bits/select2.h: New file.
17884         * debug/Makefile (routines): Add fdelt_chk.
17885         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17886         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17887         FD_ISSET.
17888         * debug/fdelt_chk.c: New file.
17889
17890         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17891         * wcsmbs/test-wmemcmp.c: Likewise.
17892         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17893         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17894
17895 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17896
17897         * string/Makefile (strop-tests): Add memcmp.
17898         * string/test-wmemcmp.c: New file.
17899         * string/test-memcmp.c: Add wmemcmp support.
17900
17901 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17902
17903         [BZ #13153]
17904         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17905         2011-07-19 change.
17906
17907         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17908         garbage value in a __mach_port_mod_refs call in the cases of the
17909         task-self and thread-self ports.
17910
17911 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17912
17913         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17914
17915 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17916
17917         * elf/dl-load.c (lose): Check for non-null L.
17918
17919 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17920
17921         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17922
17923         * elf/dl-libc.c (dlerror_run): Pass back error code from
17924         dl_catch_error.
17925
17926         [BZ #13123]
17927         * elf/dl-load.c (lose): Free l_origin if it is valid.
17928
17929         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17930         names.
17931         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17932         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17933         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17934         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17935         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17936         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17937
17938 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17939
17940         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17941         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17942         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17943         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17944         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17945         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17946         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17947         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17948         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17949         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17950
17951 2011-08-15  Alan Modra  <amodra@gmail.com>
17952
17953         [BZ #13092]
17954         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17955         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17956         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17957         ppc_mcount to static-only-routines.
17958         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17959         __mcount_internal.
17960         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17961         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17962
17963 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17964
17965         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17966         for finite and infinity parameters.
17967
17968 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17969
17970         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17971         and add nop instructions for throughput optimization.
17972         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17973
17974 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17975
17976         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17977         aligned copy for power7 with vector-scalar instructions.
17978         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17979
17980 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17981
17982         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17983         AVX check.
17984
17985 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17986
17987         [BZ #13144]
17988         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17989         last change.
17990
17991 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17992
17993         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17994         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17995         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17996         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17997         clock_gettime.
17998
17999 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18000
18001         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18002         Forgot to demangle the pointer.
18003
18004         * sysdeps/i386/sysdep.h: Define atom_text_section.
18005         * sysdeps/x86_64/sysdep.h: Likewise.
18006         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18007         section with atom_text_section.
18008         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18009         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18010         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18011         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18012         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18013
18014         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18015         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18016         already be defined.  Change to take two parameters and don't assign
18017         result to variable.  Adjust all users.
18018         Define INTERNAL_GETTIME if not already defined.
18019         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18020         call.
18021         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18022         HAVE_CLOCK_GETTIME_VSYSCALL.
18023         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18024
18025         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18026         gettimeofday vsyscall, just use time.
18027
18028 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18029
18030         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18031         <errno.h>.
18032
18033 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18034
18035         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18036         syscall on x86-64.
18037         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18038         syscall.
18039         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18040         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18041         syscall if possible.
18042
18043 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18044
18045         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18046         e_ident.  Don't pass to find_mapsXX.
18047         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18048
18049 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18050
18051         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18052         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18053         * sysdeps/x86_64/multiarch/strchr.S: Update.
18054         Check bit_slow_BSF bit.
18055         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18056         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18057         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18058
18059 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18060
18061         [BZ #13134]
18062         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18063         before glibc 2.15.
18064         (tryshell): Define.
18065         (__spawni): Change last parameter to be flag.  Test
18066         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18067         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18068         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18069         * posix/spawni.c: Likewise.
18070         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18071         * posix/spawnp.c: Likewise.  Change normal version to use
18072         SPAWN_XFLAGS_USE_PATH.
18073         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18074         SPAWN_XFLAGS_TRY_SHELL.
18075
18076         [BZ #13150]
18077         * posix/glob.h: Remove gcc 1.x support.
18078
18079         [BZ #13068]
18080         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18081
18082 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18083
18084         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18085         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18086         strrchr-sse2-bsf
18087         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18088         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18089         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18090         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18091         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18092         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18093
18094 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18095
18096         * sysdeps/x86_64/wcscmp.S: New file.
18097
18098         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18099         wcscmp-c wcscmp-sse2
18100         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18101         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18102         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18103         * wcsmbs/wcscmp.c: Allow renaming.
18104
18105 2011-09-05  David S. Miller  <davem@davemloft.net>
18106
18107         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18108         stack slot, rather than the struct return pointer slot.
18109         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18110         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18111         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18112         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18113
18114 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18115
18116         * po/ja.po: Update from translation team.
18117
18118         [BZ #13144]
18119         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18120         kernel in 64-bit binaries.
18121
18122 2011-09-01  David S. Miller  <davem@davemloft.net>
18123
18124         * elf/elf.h (HWCAP_SPARC_*): Move to..
18125         * sysdeps/sparc/sysdep.h: this new file and add new values.
18126         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18127         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18128         _DL_HWCAP_COUNT to 24.
18129         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18130         entries.
18131         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18132         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18133         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18134         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18135         instead of magic constants.
18136         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18137
18138 2011-08-31  David S. Miller  <davem@davemloft.net>
18139
18140         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18141         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18142         Reimplement to do errno handling inline.
18143         (SYSCALL_ERROR_HANDLER): New macro.
18144         (__SYSCALL_STRING): Do not do errno handling in asm.
18145         (__CLONE_SYSCALL_STRING): Delete.
18146         (__INTERNAL_SYSCALL_STRING): Delete.
18147         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18148         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18149         (PSEUDO): Reimplement to do errno handling inline.
18150         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18151         (SYSCALL_ERROR_HANDLER): New macro.
18152         (__SYSCALL_STRING): Do not do errno handling in asm.
18153         (__CLONE_SYSCALL_STRING): Delete.
18154         (__INTERNAL_SYSCALL_STRING): Delete.
18155         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18156         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18157         i386.
18158         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18159         (inline_syscall*): Add 'err' argument.
18160         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18161         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18162         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18163         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18164
18165         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18166         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18167
18168 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18169
18170         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18171
18172 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18173
18174         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18175         directive.
18176
18177 2011-08-24  David S. Miller  <davem@davemloft.net>
18178
18179         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18180
18181 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18182
18183         * elf/Makefile: Add rules to build and run unload8 test.
18184         * elf/unload8.c: New file.
18185         * elf/unload8mod1.c: New file.
18186         * elf/unload8mod1x.c: New file.
18187         * elf/unload8mod2.c: New file.
18188         * elf/unload8mod3.c: New file.
18189
18190         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18191         it wasn't used.
18192
18193 2011-08-23  David S. Miller  <davem@davemloft.net>
18194
18195         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18196         subtract stack bias.
18197         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18198         %sp not %fp in calculations.
18199         (_JMPBUF_UNWINDS_ADJ): Likewise.
18200
18201         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18202         (aio_suspend): Call it to force an exception region around the
18203         AIO_MISC_WAIT() invocation.
18204
18205 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18206
18207         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18208         backslash.
18209
18210 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18211
18212         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18213         protection macro.
18214         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18215         and <dl-machine.h>.
18216         (Elf64_FuncDesc): Remove.
18217
18218 2011-08-22  David S. Miller  <davem@davemloft.net>
18219
18220         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18221         sigaltstack check, add missing cfi directives.
18222         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18223         missing cfi directives, and sigaltstack handling.
18224
18225 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18226
18227         [BZ #11724]
18228         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18229         object is seen twice.
18230         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18231
18232         * elf/Makefile (distribute): Add tst-initorder2.c.
18233         (tests): Add tst-initorder2.
18234         (modules-names): Add tst-initorder2a tst-initorder2b
18235         tst-initorder2c tst-initorder2d.  Add rules to build them.
18236         ($(objpfx)tst-initorder2.out): New rule.
18237         * elf/tst-initorder2.c: New file.
18238         * elf/tst-initorder2.exp: New file.
18239
18240 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18241
18242         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18243
18244         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18245         dependencies back to end of function.
18246
18247         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18248         $(elfobjdir)/ld.so.
18249
18250 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18251
18252         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18253         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18254         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18255         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18256         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18257         of __vdso_gettimeofday.
18258         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18259         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18260         attribute_hidden.
18261         (_libc_vdso_platform_setup): Remove initialization of
18262         __vdso_gettimeofday and __vdso_time.
18263
18264 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18265
18266         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18267         and fgetc_unlocked.
18268         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18269         getc_unlocked.
18270
18271         * elf/dl-open.c (add_to_global): Report additions to the global scope
18272         for LD_DEBUG=scopes.
18273         (dl_open_worker): Also print scope of newly loaded dependencies.
18274         (_dl_show_scope): Indicate if there is no scope.
18275
18276         [BZ #13114]
18277         * stdio-common/Makefile (tests): Add bug24.
18278         * stdio-common/bug24.c: New file.
18279
18280 2011-08-19  Andreas Jaeger  <aj@suse.de>
18281
18282         [BZ #13114]
18283         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18284         non-existant file when using close-on-exec mode.
18285
18286 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18287
18288         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18289         the very first instruction.
18290
18291         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18292         the CFI state in the end.
18293         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18294         inclusion of dl-trampoline.h.
18295         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18296
18297 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18298
18299         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18300         expectations for long double.
18301
18302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18303         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18304
18305 2011-08-14  David S. Miller  <davem@davemloft.net>
18306
18307         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18308         artificual limit depends upon the system page size.
18309
18310 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18311
18312         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18313         * resolv/Makefile: Define CFLAGS-libresolv.
18314
18315 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18316
18317         * nss/makedb.c (compute_tables): Make variables used in nested
18318         function static.
18319
18320 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18321
18322         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18323         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18324         if buffer was too small.
18325
18326         * elf/pldd.c (main): Attach to all threads in the process.
18327         Rewrite /proc handling to use *at functions.
18328
18329 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18330
18331         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18332         specifies first scope to show.
18333         (dl_open_worker): Update callers.  Move printing scope of new
18334         object to before the relocation.
18335         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18336         * sysdeps/generic/ldsodefs.h: Update declaration.
18337
18338         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18339         string for the scope number.
18340
18341 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18342
18343         * nscd/servicescache.c (cache_addserv): Make sure written is always
18344         initialized.
18345
18346 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18347
18348         * sysdeps/i386/i486/bits/atomic.h
18349         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18350         statement expression, so as to suppress "set but not used" warning.
18351         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18352
18353         * string/strncat.c (STRNCAT): Use prototype definition.
18354
18355         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18356         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18357         -Iprograms here.
18358         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18359         (localedef-modules): Add localedef.
18360         (locale-modules): Add locale.
18361
18362         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18363         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18364         to avoid a warning.
18365
18366 2011-08-14  David S. Miller  <davem@davemloft.net>
18367
18368         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18369         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18370
18371 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18372
18373         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18374         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18375         * elf/rtld.c (dl_main): Set l_name of vDSO.
18376         Call _dl_show_scope when DL_DEBUG_SCOPES.
18377         (process_dl_debug): Recognize scopes flag and also set it for all.
18378         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18379         Declare _dl_show_scope.
18380
18381         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18382         (do_dlopen): Pass caller_dlopen to dl_open.
18383         (__libc_dlopen_mode): Initialize caller_dlopen.
18384
18385         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18386         of libc.  Make tolower call locale-independent.  Optimize a bit by
18387         using isdigit instead of isalnum.
18388         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18389
18390 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18391
18392         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18393         was a dependency or dynamically loaded.
18394
18395 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18396
18397         * intl/l10nflist.c: Allow architecture-specific pop function.
18398         * sysdeps/x86_64/l10nflist.c: New file.
18399
18400         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18401         classification.
18402
18403 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18404
18405         * include/dirent.h: Add libc_hidden_proto for scandirat and
18406         scandirat64.  Don't declare __scandirat64.
18407         * dirent/scandirat.c: Add libc_hidden_def.
18408         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18409         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18410
18411 2011-08-10  David S. Miller  <davem@davemloft.net>
18412
18413         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18414         enum.
18415         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18416         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18417         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18418
18419 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18420
18421         * Versions.def [libc]: Add GLIBC_2.15.
18422         * dirent/Makefile (routines): Add scandirat and scandirat64.
18423         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18424         GLIBC_2.15.
18425         * dirent/dirent.h: Declare scandirat and scandirat64.
18426         * dirent/scandirat.c: New file.
18427         * dirent/scandirat64.c: New file.
18428         * sysdeps/wordsize-64/scandirat.c: New file.
18429         * sysdeps/wordsize-64/scandirat64.c: New file.
18430         * dirent/opendir.c: Define opendirat.
18431         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18432         using scandirat.
18433         * dirent/scandir64.c: Adjust for scandir.c change.
18434         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18435         __scandirat64, and __scandir_cancel_handler.
18436         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18437         additional parameter and use openat instead of open (outside of ld.so).
18438         Add new __opendir as wrapper around __opendirat.
18439         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18440         here without requiring old scandirat implementation.
18441
18442 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18443
18444         * dirent/scandir.c (cancel_handler): Renamed to
18445         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18446         defined.  Adjust users.
18447         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18448         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18449
18450 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18451
18452         * string/test-string.h (IMPL): Use __STRING to expand name and then
18453         stringify it.
18454
18455         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18456         of cleanups.
18457
18458 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18459
18460         * string/Makefile: Update.
18461         (strop-tests): Append strncat.
18462         * string/test-wcscmp.c: New file.
18463         New comprehensive test for wcscmp.
18464         * string/test-strcmp.c: Update.
18465         (WIDE): New define.
18466
18467 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18468
18469         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18470         line.
18471
18472 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18473
18474         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18475         encoding to ACE if AI_IDN.
18476
18477 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18478
18479         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18480         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18481
18482 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18483
18484         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18485         Fix overflow bug in strncat.
18486         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18487
18488         * string/test-strncat.c: Update.
18489         Add new tests for checking overflow bugs.
18490
18491 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18492
18493         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18494         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18495         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18496         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18497         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18498         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18499         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18500         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18501         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18502
18503         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18504         (USE_AS_STRCAT): Define.
18505         Add strcat and strncat support.
18506         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18507
18508 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18509
18510         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18511         __n bigger than INT_MAX+1.
18512         (__strncmp_g): Likewise.
18513
18514 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18515
18516         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18517         * libio/stido.h: Likewise.
18518
18519         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18520         (AF_NFC): Define.
18521         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18522         (AF_NFC): Define.
18523
18524         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18525         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18526         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18527         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18528         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18529
18530         [BZ #13021]
18531         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18532         installed.
18533
18534         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18535         typo.
18536         (_dl_x86_64_save_sse): Likewise.
18537
18538 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18539
18540         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18541         OSXSAVE.
18542         (_dl_x86_64_save_sse): Likewise.
18543
18544         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18545
18546         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18547
18548 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18549
18550         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18551         change.
18552         (_dl_x86_64_save_sse): Use correct AVX check.
18553
18554 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18555
18556         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18557         bug in strncpy/strncat.
18558         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18559
18560 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18561
18562         * string/tester.c (test_strcat): Add tests for different alignments
18563         of source and destination.
18564         (test_strncat): Likewise.
18565
18566 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18567
18568         [BZ #12852]
18569         * posix/glob.c (glob): Check passed in values before using them in
18570         expressions to avoid some overflows.
18571         (glob_in_dir): Likewise.
18572
18573         [BZ #13007]
18574         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18575         check for AVX enablement so that we don't crash with old kernels and
18576         new hardware.
18577         * elf/tst-audit4.c: Add same checks here.
18578         * elf/tst-audit6.c: Likewise.
18579
18580         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18581
18582 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18583
18584         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18585
18586 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18587
18588         * po/cs.po: Update from translation team.
18589         * po/bg.po: Likewise.
18590
18591 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18592
18593         * misc/sys/cdefs.h: Add support for const attribute.
18594         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18595         to gnu_dev_{major,minor,makedev} functions.
18596
18597 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18598
18599         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18600
18601 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18602
18603         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18604         strlen results.
18605
18606 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18607
18608         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18609         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18610         register in order to avoid conflicts with the soft frame pointer
18611         being held in r11 when necessary.
18612         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18613         (INTERNAL_VSYSCALL_NCS): Likewise.
18614
18615 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18616
18617         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18618         * elf/dl-fini.c (_dl_fini): Adjust caller.
18619         * elf/dl-close.c (_dl_close_worker): Likewise.
18620         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18621
18622 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18623
18624         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18625         "aux_cache->nlibs < 0".
18626
18627         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18628         in the reload-count case.
18629
18630 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18631
18632         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18633         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18634         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18635         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18636         * sysdeps/x86_64/multiarch/strcat.S: New file.
18637         * sysdeps/x86_64/multiarch/strncat.S: New file.
18638         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18639         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18640         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18641         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18642         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18643         (USE_AS_STRCAT): Define.
18644         Add strcat and strncat support.
18645         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18646         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18647         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18648         * string/strncat.c: Update.
18649         (USE_AS_STRNCAT): Define.
18650         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18651         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18652         and i7.
18653         * sysdeps/x86_64/multiarch/init-arch.h
18654         (bit_Prefer_PMINUB_for_stringop): New.
18655         (index_Prefer_PMINUB_for_stringop): Likewise.
18656         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18657         bit_Prefer_PMINUB_for_stringop.
18658
18659 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18660
18661         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18662         buffer64.
18663         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18664         of casting of buffer.
18665         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18666         buffer32 and buffer64.
18667         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18668         writes instead of casting of buffer.
18669         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18670         buffer32.
18671         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18672         casting of buffer.
18673
18674 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18675
18676         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18677
18678 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18679
18680         * nscd/nscd.c (termination_handler): Don't do anything for a database
18681         if it has not yet been initialized.
18682
18683 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18684
18685         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18686
18687 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18688
18689         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18690
18691 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18692
18693         * po/nl.po: Update from translation team.
18694         * po/sv.po: Likewise.
18695
18696 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18697
18698         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18699         now disallowed by GCC.
18700
18701         * configure.in (use-default-link): Default to yes if a test -shared
18702         link meets our qualifications.
18703         * configure: Regenerated.
18704
18705         * config.make.in (output-format): New variable.
18706         * configure.in: Check for ld --print-output-format support.
18707         * configure: Regenerated.
18708         * Makerules ($(common-objpfx)format.lds)
18709         [$(output-format) != unknown]: Just use $(output-format),
18710         instead of the linker-script munging.
18711
18712 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18713
18714         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18715         of $(common-objpfx)shlib.lds.
18716         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18717
18718         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18719         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18720
18721         * configure.in (-z relro check): Adjust test code to add a large
18722         writable data section after it.
18723         * configure: Regenerated.
18724
18725 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18726
18727         * configure.in (-z relro check): Fix test code to make the variable
18728         truly const.
18729         * configure: Regenerated.
18730
18731 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18732
18733         * nscd/nscd.h (struct traced_file): Define.
18734         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18735         elements.  Add traced_files.
18736         (inotify_fd): Declare.
18737         (register_traced_file): Declare.
18738         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18739         (inotify_fd): Export.
18740         (resolv_conf_descr): Remove.
18741         (nscd_init): Move inotify descriptor creation to main.
18742         Don't register files for notification here.
18743         (register_traced_file): New function.
18744         (invalidate_cache): Don't use reset_res to determine whether to call
18745         res_init, go through the list of registered files.
18746         (main_loop_poll): The inotify descriptors are now stored in the
18747         structures for the traced files.
18748         (main_loop_epoll): Likewise
18749         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18750         to __nss_disable_nscd.
18751         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18752         for a database anymore.  Check the records for all the registered
18753         files instead.
18754         * nss/Makefile (libnss_files-routines): Add files-init.
18755         (libnss_db-routines): Add db-init.
18756         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18757         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18758         * nss/nss_db/db-init.c: New file.
18759         * nss/nss_files/files-init.c: New file.
18760         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18761         __nss_lookup_function.
18762         (__nss_lookup_function): Call nss_load_library.
18763         (nss_load_all_libraries): New function.
18764         (__nss_disable_nscd): Take parameter with callback function for files
18765         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18766         used for the cached services.
18767         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18768         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18769         options for features to all the files in nscd.
18770
18771         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18772
18773 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18774
18775         * csu/elf-init.c (__libc_csu_init): Comment typo.
18776
18777 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18778
18779         * po/pl.po: Update from translation team.
18780         * po/ja.po: Likewise.
18781         * po/ru.po: Likewise.
18782         * po/ko.po: Likewise.
18783         * po/fr.po: Likewise.
18784
18785 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18786
18787         * configure.in (.ctors/.dtors header and trailer check):
18788         Use an empirical test on a built program.
18789         * configure: Regenerated.
18790
18791         * configure.in (-z relro check): Use an empirical test on a built DSO.
18792         Detect, but do not require, on ia64.
18793         * configure: Regenerated.
18794
18795         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18796         Update tests that use readelf to use $READELF instead.
18797         * configure: Regenerated.
18798
18799 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18800
18801         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18802         if the result is not used.
18803
18804 2011-07-05  Andreas Jaeger  <aj@suse.de>
18805
18806         [BZ#9696]
18807         * stdlib/tst-strtod.c: Add testcase.
18808
18809 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18810
18811         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18812         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18813         The latter has a higher limit.  Take additional parameter to pass to
18814         the new function.
18815         (__pathconf): Pass file to __statfs_link_max.
18816         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18817         __statfs_link_max.
18818         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18819         __statfs_link_max.
18820
18821         [BZ #12868]
18822         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18823         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18824         Handle Lustre.
18825         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18826         (__statfs_filesize_max): Likewise.
18827         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18828
18829 2011-07-05  Andreas Jaeger  <aj@suse.de>
18830
18831         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18832
18833 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18834
18835         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18836         `status' variable.
18837         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18838         Likewise.
18839
18840 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18841
18842         * Makefile (strop-tests): Add strncat.
18843         * string/test-strncat.c: New file.
18844
18845 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18846
18847         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18848
18849 2011-06-21  Andreas Jaeger  <aj@suse.de>
18850
18851         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18852         Copy rule from iconvdata/Makefile.
18853
18854 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18855
18856         [BZ #12922]
18857         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18858         but no long options are defined, just return 'W'.
18859
18860 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18861
18862         [BZ #9696]
18863         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18864
18865 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18866
18867         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18868         netgroups to read.
18869         (innetgr): Likewise.
18870
18871 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18872
18873         * config.make.in (install_root): Default to $(DESTDIR).
18874
18875 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18876
18877         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18878
18879 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18880
18881         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18882
18883         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18884         containing directory rather than embedding absolute directory names.
18885
18886         * scripts/check-local-headers.sh: Rewritten using awk.
18887         Match by word, not by line.  Print error messages for matches.
18888         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18889
18890         * Makerules [shlib-lds-flags empty]:
18891         ($(common-objpfx)libc_pic.opts): New target.
18892         ($(common-objpfx)libc_pic.os.clean): New target.
18893         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18894
18895         * config.make.in (OBJCOPY): New variable.
18896         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18897         * configure: Regenerated.
18898
18899         * config.make.in (use-default-link): New variable.
18900         * configure.in (use_default_link): Grok --with-default-link to set it.
18901         * configure: Regenerated.
18902         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18903         (shlib-lds, shlib-lds-flags): Define to empty.
18904
18905         * Makerules (shlib-lds): New variable.
18906         (shlib-lds-flags): New variable.
18907         (build-shlib, build-moduile, build-module-asneeded): Use it.
18908         ($(common-objpfx)libc.so): Use $(shlib-lds).
18909         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18910         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18911
18912         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18913         DT_FLAGS/DT_FLAGS_1 with zero flags.
18914
18915         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18916         linker script munging.
18917
18918 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18919
18920         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18921         as 128-bit value.
18922         * crypt/sha512.c (sha512_process_block): Perform total addition using
18923         128-bit if possible.
18924         (__sha512_finish_ctx): Likewise.
18925         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18926         as 64-bit value.
18927         * crypt/sha256.c (SWAP64): Define.
18928         (sha256_process_block): Perform total addition using 64-bit if
18929         possible.
18930         (__sha256_finish_ctx): Likewise.
18931
18932 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18933
18934         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18935         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18936         * nscd/hstcache.c (cache_addhst): Likewise.
18937         * nscd/grpcache.c (cache_addgr): Likewise.
18938         * nscd/aicache.c (addhstaiX): Likewise
18939         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18940
18941 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18942
18943         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18944         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18945         * nscd/hstcache.c (cache_addhst): Likewise.
18946         * nscd/grpcache.c (cache_addgr): Likewise.
18947         * nscd/aicache.c (addhstaiX): Likewise
18948
18949 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18950
18951         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18952         domain only when needed.
18953
18954 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18955
18956         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18957         is always restored.
18958
18959 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18960
18961         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18962         are re-adding the entry.
18963         * nscd/servicescache.c (cache_addserv): Likewise.
18964
18965 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18966
18967         * sysdeps/generic/dl-irel.h: fix protection against multiple
18968         inclusions.
18969         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18970
18971 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18972
18973         [BZ #12935]
18974         * malloc/memusage.sh: Fix quoting in message.
18975         * debug/xtrace.sh: Likewise.
18976
18977         * configure.in: Remove support for --experimental-malloc option, make
18978         it the default.
18979         * config.make.in: Likewise.
18980         * malloc/Makefile: Likewise.
18981
18982 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18983
18984         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18985         two-byte characters.
18986
18987 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18988
18989         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18990         AC_CACHE_CHECK invocation.
18991         * configure: Regenerated.
18992
18993         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18994
18995 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18996
18997         [BZ #12350]
18998         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18999         bit from old_res_options.
19000
19001         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19002
19003         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19004         value type for setfct.
19005
19006 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19007
19008         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19009         __gettimeofday instead of gettimeofday.
19010
19011 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19012
19013         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19014
19015 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19016
19017         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19018
19019         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19020         info.
19021
19022 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19023
19024         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19025         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19026         strcpy-sse2-unaligned strncpy-sse2-unaligned
19027         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19028         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19029         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19030         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19031         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19032         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19033         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19034         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19035         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19036         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19037         (STRCPY): Support SSE2 and SSSE3 versions.
19038
19039 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19040
19041         [BZ #12874]
19042         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19043         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19044         kernels which artificially limit size of requests.
19045
19046 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19047
19048         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19049         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19050         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19051         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19052         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19053         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19054         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19055         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19056         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19057         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19058         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19059         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19060         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19061         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19062         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19063         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19064         Enable unaligned load optimization for Intel Core i3, i5 and i7
19065         processors.
19066         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19067         Define.
19068         (index_Fast_Unaligned_Load): Define.
19069         (HAS_FAST_UNALIGNED_LOAD): Define.
19070
19071 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19072
19073         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19074
19075 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19076
19077         [BZ #12907]
19078         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19079         until it is clear that the information is realy needed.
19080         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19081
19082 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19083
19084         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19085
19086 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19087
19088         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19089         /sys/devices/system/cpu/online if it is usable.
19090
19091         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19092         reading the information from the /proc filesystem to once a second.
19093
19094 2011-06-21  Andreas Jaeger  <aj@suse.de>
19095
19096         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19097         NULL after inclusion of kernel headers.
19098
19099 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19100
19101         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19102         calls to internal_setent.
19103
19104         [BZ #12885]
19105         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19106         addresses using gethostbyname4_r ignore IPv4 addresses.
19107
19108         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19109         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19110
19111         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19112
19113 2011-06-20  David S. Miller  <davem@davemloft.net>
19114
19115         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19116         inclusions.
19117         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19118
19119         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19120         (elf_irel): Use it.
19121         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19122         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19123         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19124         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19125         * sysdeps/x86_64/dl-irel.h: Likewise.
19126
19127         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19128         * elf/dl-sym.c: Likewise.
19129
19130 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19131
19132         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19133         need to dereference resplen2.
19134
19135 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19136
19137         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19138
19139 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19140
19141         * Makeconfig: Define vardbdir and inst_vardbdir.
19142         * nss/Makefile: Add rules to install db-Makefile.
19143
19144         * nss/nss_db/db-XXX.c: Cleanup.
19145
19146         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19147         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19148         GLIBC_PRIVATE.
19149         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19150         * nss/makedb.c: Implement -g option to specify that value strings
19151         are generated and should not be added to table iterated over for
19152         get*ent calls.
19153         * nss/nss_db/db-initgroups.c: New file.
19154
19155         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19156         interface.
19157
19158         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19159         (internal_getgrouplist): Adjust to name change.
19160         Update use_initgroups_entry if this is not the first call.
19161         * nss/databases.def: Add initgroups entry.
19162
19163         * nss/makedb.c (compute_tables): Check result of multiple hash table
19164         sizes to minimize maximum chain length.
19165
19166 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19167
19168         * Versions.def: Add entry for libnss_db.
19169         * shlib-versions: Likewise.
19170         * nss/Makefile: Add rules to build libnss_db.
19171         * nss/Versions: Add libnss_db information.  Organize libnss_files
19172         entries better.
19173         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19174         makedb progra.  Some minor improvements to generate smaller files.
19175         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19176         here from...
19177         * nss/makedb.c: ...here.
19178         Improve database format to be smaller and require less memory at
19179         runtime.
19180         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19181         db anymore.
19182         * nss/nss_db/db-netgrp.c: Likewise.
19183         * nss/nss_db/db-open.c: Likewise.
19184         * nss/nss_files/flies-XXX.x: Adjust comments.
19185         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19186         * nss/nss_files/files-grp.c: Likewise.
19187         * nss/nss_files/files-hosts.c: Likewise.
19188         * nss/nss_files/files-network.c: Likewise.
19189         * nss/nss_files/files-proto.c: Likewise.
19190         * nss/nss_files/files-pwd.c: Likewise.
19191         * nss/nss_files/files-rpc.c: Likewise.
19192         * nss/nss_files/files-service.c: Likewise.
19193         * nss/nss_files/files-sgrp.c: Likewise.
19194         * nss/nss_files/files-spwd.c: Likewise.
19195         * nss/nss_db/db-alias.c: Removed.
19196         * nss/nss_db/dummy-db.h: Removed.
19197
19198 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19199
19200         * nss/makedb.c: Rewritten to not use database library.
19201         * nss/Makefile: Update to build new makedb program.
19202
19203 2011-06-14  Andreas Jaeger  <aj@suse.de>
19204
19205         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19206         memset declaration.
19207
19208 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19209
19210         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19211         tmpbuf.
19212
19213 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19214
19215         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19216         * elf/Makefile ($(objpfx)ld.so): Likewise.
19217
19218         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19219         Don't list ld.so twice in dependencies.
19220
19221         * posix/bug-regex31.c: Include <stdlib.h>.
19222
19223         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19224
19225         * nis/nss_compat/compat-spwd.c
19226         (getspent_next_nss_netgr): Remove unused variable.
19227         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19228
19229         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19230         nonmembers" output to use the right array.
19231
19232         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19233
19234         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19235
19236         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19237         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19238         * catgets/gencat.c (read_input_file): Likewise.
19239         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19240
19241         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19242         variable definition inside #if's controlling its use.
19243
19244         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19245
19246         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19247
19248         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19249
19250         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19251         unreachable code.
19252
19253         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19254
19255         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19256         * configure: Regenerated.
19257
19258         * Makerules: Revert last change.
19259         * elf/Makefile: Likewise.
19260
19261 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19262
19263         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19264         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19265         (reloc-link): Likewise.
19266
19267 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19268
19269         * elf/Makefile: Add rules to build pldd.
19270         * elf/pldd.c: New file.
19271         * elf/pldd-xx.c: New file.
19272
19273 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19274
19275         * version.h: Update for 2.15 development version.
19276
19277 2011-06-07  David S. Miller  <davem@davemloft.net>
19278
19279         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19280         ifuncs.
19281         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19282         elf_machine_lazy_rel): Likewise.
19283         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19284         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19285         elf_machine_lazy_rel): Likewise.
19286         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19287         dl_hwcap via passed in argument.
19288         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19289         Likewise.
19290
19291 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19292
19293         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19294
19295 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19296
19297         [BZ #12849]
19298         * manual/fdl-1.1.texi: New file, verbatim from:
19299         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19300         * manual/lgpl-2.1.texi: New file, verbatim from:
19301         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19302         * manual/Makefile (licenses): New variable, list those new file names.
19303         (texis): Use it.
19304         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19305
19306         * manual/fdl.texi: File removed.
19307         * manual/lesser.texi: File removed.
19308         * manual/libc.texinfo (Copying, Documentation License):
19309         Use new @include file names, put @appendix directive before @include.
19310
19311 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19312
19313         [BZ #12841]
19314         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19315         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19316         (mq_open): Add __NTH.
19317
19318 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19319
19320         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19321         Assume Intel Core i3/i5/i7 processor if AVX is available.
19322
19323 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19324
19325         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19326         typo.
19327
19328 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19329
19330         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19331         memory.  Use alloca_account.  Fix memory leak when retrying.
19332
19333 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19334
19335         * version.h (RELEASE): Bump for 2.14 release.
19336         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19337
19338         * config.make.in (RANLIB): Remove entry.
19339
19340 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19341
19342         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19343         (libc.pot): Work around missing support for .ksh extension in xgettext.
19344
19345         [BZ #12684]
19346         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19347         if both request failed.
19348         (send_dg): In case of server errors clear resplen or *resplen2.
19349
19350         [BZ #12454]
19351         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19352         when there are multiple maps.
19353         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19354         (_dl_fini): Remove test here.
19355
19356         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19357
19358 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19359
19360         [BZ #12350]
19361         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19362         bit from old_res_options.
19363         (gaih_inet): Likewise.
19364
19365         [BZ #11099]
19366         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19367         as signed.
19368
19369         * resolv/res_init.c (res_setoptions): Make the code more compact.
19370
19371         [BZ #11558]
19372         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19373         set RES_USEVC.
19374
19375         [BZ #11634]
19376         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19377
19378         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19379
19380         [BZ #11781]
19381         * malloc/malloc.h: Declare malloc hook variables as volatile.
19382
19383         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19384         in last patch.
19385
19386         [BZ #11799]
19387         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19388         raise in the comment.
19389         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19390         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19391         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19392
19393 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19394
19395         [BZ #12811]
19396         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19397         grow the buffers more if it already has to be sufficient.
19398         (build_wcs_upper_buffer): Likewise.
19399         * posix/regexec.c (check_matching): Likewise.
19400         (clean_state_log_if_needed): Likewise.
19401         (extend_buffers): Don't enlarge buffers beyond size of the input
19402         buffer.
19403         Patches mostly by Emil Wojak <emil@wojak.eu>.
19404         * posix/bug-regex32.c: New file.
19405         * posix/Makefile (tests): Add bug-regex32.
19406
19407         * locale/findlocale.c (_nl_find_locale): Return right away if
19408         _nl_explode_name failed.
19409         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19410
19411         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19412
19413         * debug/xtrace.sh: Unify messages.
19414         * malloc/memusage.sh: Likewise.
19415
19416         [BZ #12813]
19417         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19418         time symbol from vDSO.  Substitute with vsyscall if not available.
19419         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19420         __vdso_time.
19421
19422         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19423         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19424         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19425         Add sendmmsg and internal_sendmmsg.
19426         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19427         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19428         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19429
19430         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19431         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19432         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19433
19434 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19435
19436         [BZ #12813]
19437         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19438         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19439         available.
19440         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19441         __vdso_getcpu.
19442
19443         [BZ #12814]
19444         * iconvdata/Makefile (tests): Add bug-iconv9.
19445         * iconvdata/bug-iconv9.c: New file.
19446
19447 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19448
19449         [BZ #12814]
19450         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19451
19452 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19453
19454         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19455         (struct user_regs_struct): Change intcs field back to cs.
19456
19457 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19458
19459         * po/ja.po: Update from translation team.
19460
19461 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19462
19463         [BZ #12795]
19464         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19465         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19466
19467 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19468
19469         * stdlib/longlong.h: Update from GCC.
19470
19471 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19472
19473         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19474         parameter name.
19475         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19476         Add parameter name.
19477         (__sysconf): Pass it down.
19478
19479 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19480
19481         [BZ #12671]
19482         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19483         some situations.
19484         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19485         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19486         add in in __libc_use_alloca calls.  Adjust callers.
19487         (glob): Use malloc in some situations.
19488
19489         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19490         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19491         pltexit.
19492
19493 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19494
19495         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19496         and CLOCK_BOOTTIME_ALARM.
19497
19498         [BZ #12782]
19499         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19500         is returned.
19501
19502         * string/_strerror.c (__strerror_r): Print negative errors as signed
19503         numbers.
19504
19505         [BZ #12777]
19506         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19507         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19508         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19509
19510         * configure.in: Fix typo in redirection and correct removal of test
19511         files in two cases.
19512
19513         [BZ #12788]
19514         * locale/setlocale.c (new_composite_name): Fix test to check for
19515         identical name of all categories.
19516
19517         [BZ #12792]
19518         * libio/filedoalloc.c (local_isatty): New function.
19519         (_IO_file_doallocate): Use local_isatty.
19520         * stdio-common/perror.c (perror): In case a new stream is used
19521         forward the stream error.
19522         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19523         error flag.
19524
19525 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19526
19527         [BZ #11869]
19528         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19529         alloca.
19530         * include/alloca.h (extend_alloca_account): Define.
19531
19532         [BZ #11857]
19533         * posix/regex.h: Fix comments with documentation of user-accessible
19534         fields after compilation and describe correct free'ing of pattern
19535         after re_compile_pattern.
19536         Patch by Reuben Thomas <rrt@sc3d.org>.
19537
19538 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19539
19540         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19541         and -mno-altivec to prevent the compiler from using Altivec and/or
19542         VSX instructions when the corresponding registers are not available.
19543
19544 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19545
19546         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19547
19548 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19549
19550         * libio/freopen.c (freopen): Use __dup2, not dup2.
19551         * libio/freopen64.c (freopen64): Likewise.
19552
19553 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19554
19555         [BZ #12775]
19556         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19557         * math/Makefile (tests): Add test-powl.
19558         (CFLAGS-test-powl.c): Define.
19559         * math/test-powl.c: New file.
19560
19561 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19562
19563         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19564
19565 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19566
19567         [BZ #11837]
19568         * iconvdata/gb18030.c: Update to GB18020-2005.
19569
19570 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19571
19572         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19573         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19574         Patch by Aharon Robbins <arnold@skeeve.com>.
19575
19576         [BZ #11892]
19577         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19578         on the stack.
19579
19580         [BZ #11895]
19581         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19582         through underflows.
19583
19584         [BZ #12766]
19585         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19586         point to strings before performing equality test for error_one_per_line
19587         mode.
19588
19589         [BZ #11697]
19590         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19591
19592         [BZ #11820]
19593         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19594         (struct user_fpregs_struct): Avoid __uint*_t types.
19595
19596         [BZ #6420]
19597         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19598         symbol info.  Use it instead of calling _dl_addr locally.
19599         (lock_and_info): New function.
19600         (tr_freehook): Call lock_and_info and pass symbol info as additional
19601         parameter to tr_where.
19602         (tr_mallochook): Likewise.
19603         (tr_reallochook): Likewise.
19604         (tr_memalignhook): Likewise.
19605
19606         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19607         used and couldn't be at all thread-safe.
19608
19609 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19610
19611         * libio/freopen.c (freopen): Don't close old file descriptor
19612         before the new one is opened.  Instead dup the new file descriptor
19613         to the old one after the new stream is created.
19614         * libio/freopen64.c (freopen64): Likewise.
19615         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19616         * libio/fileops.c (_IO_new_file_close_it): Handle new
19617         _IO_FLAGS2_NOCLOSE flag.
19618         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19619         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19620         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19621         _IO_FLAGS2_NOCLOSE flag.
19622         * include/unistd.h: Add hidden_proto for dup3.
19623         Define __have_dup3.
19624         * io/dup3.c: Define hidden symbol.
19625         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19626
19627         [BZ #7101]
19628         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19629         when an incomplete long option is used.
19630         * posix/tst-getopt_long1.c: New file.
19631         * posix/Makefile (tests): Add tst-getopt_long1.
19632
19633         [BZ #10138]
19634         * scripts/config.guess: Update from autoconf-2.68.
19635         * scripts/config.sub: Likewise.
19636
19637         [BZ #10157]
19638         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19639         tests into ...
19640         (has_cpuclock): ...this.  New function.
19641         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19642         macro here based on has_cpuclock code.
19643
19644         [BZ #10149]
19645         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19646         First byte (not low byte) is now always NUL.
19647         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19648
19649         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19650         Use non-cancelable interfaces.
19651
19652         [BZ #9809]
19653         * locale/iso-639.def: Add entry for Sorani.
19654
19655         [BZ #11901]
19656         * include/stdlib.h: Move include protection to the right place.
19657         Define abort_msg_s.  Declare __abort_msg with it.
19658         * stdlib/abort.c (__abort_msg): Adjust type.
19659         * assert/assert.c (__assert_fail_base): New function.  Majority
19660         of code from __assert_fail.  Allocate memory for __abort_msg with
19661         mmap.
19662         (__assert_fail): Now call __assert_fail_base.
19663         * assert/assert-perr.c: Remove bulk of implementation.  Use
19664         __assert_fail_base.
19665         * include/assert.hL Declare __assert_fail_base.
19666         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19667         mmap.
19668         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19669
19670 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19671
19672         [BZ #11952]
19673         [BZ #12453]
19674         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19675         until all modules are registered in the DTV.
19676         * elf/Makefile: Add rules to build and run tst-tls19.
19677         * elf/tst-tls19.c: New file.
19678         * elf/tst-tls19mod1.c: New file.
19679         * elf/tst-tls19mod2.c: New file.
19680         * elf/tst-tls19mod3.c: New file.
19681         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19682
19683         [BZ #12083]
19684         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19685         correctly.
19686
19687         [BZ #12601]
19688         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19689         two-byte sequence errors.
19690         * iconvdata/Makefile (tests): Add bug-iconv8.
19691         * iconvdata/bug-iconv8.c: New file.
19692
19693         [BZ #12626]
19694         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19695         buf2 definition.
19696
19697         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19698
19699         [BZ #12432]
19700         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19701         (dummy_getcfa): New function.
19702         (init): Get _Unwind_GetCFA address, use dummy if not found.
19703         (backtrace_helper): In recursion check, also check whether CFA changes.
19704         (__backtrace): Completely initialize arg.
19705
19706         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19707         storing incomplete byte sequence in state object.  Avoid testing for
19708         guaranteed too small input if we know there is enough data available.
19709
19710 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19711
19712         * Makeconfig (+link-pie): Indent.
19713         * Rules (binaries-pie): Define if $(have-fpie) and
19714         $(build-shared).
19715         (binaries-shared): Also filter out $(binaries-pie).
19716         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19717         * nscd/Makefile (others-pie): Add nscd.
19718         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19719         ($(objpfx)nscd): Remove command override.
19720         * login/Makefile (others-pie): Add pt_chown.
19721         ($(objpfx)pt_chown): Remove command override.
19722         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19723         remove command overrides.
19724
19725 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19726
19727         * libio/tst_putwc.c: Fix error messages.
19728
19729         [BZ #12724]
19730         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19731         currently writing and seek to current position when not.
19732         * libio/Makefile (tests): Add bug-fclose1.
19733         * libio/bug-fclose1.c: New file.
19734
19735 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19736
19737         [BZ #12511]
19738         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19739         don't set DF_1_NODELETE here.
19740         (do_lookup_x): When entering new entry test for copy relocation
19741         and if necessary set DF_1_NODELETE flag.
19742         * elf/tst-unique4.cc: New file.
19743         * elf/tst-unique4.h: New file.
19744         * elf/tst-unique4lib.cc: New file.
19745         * elf/Makefile: Add rules to build and run tst-unique4.
19746         Patch by Piotr Bury <pbury@goahead.com>.
19747
19748 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19749
19750         [BZ #12052]
19751         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19752
19753         [BZ #12625]
19754         * misc/mntent_r.c (addmntent): Flush the stream after the output
19755
19756         [BZ #12393]
19757         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19758         (is_trusted_path_normalize): Skip initial colon.  Append slash
19759         to empty buffer.  Duplicate is_trusted_path code but allow
19760         constructed patch to be prefix.
19761         (is_dst): Allow $ORIGIN followed by /.
19762         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19763         Correct testing of result of is_trusted_path_normalize
19764         (decompose_rpath): Fix warning.
19765
19766 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19767
19768         [BZ #11257]
19769         * grp/initgroups.c (internal_getgrouplist): When we found the service
19770         list through the initgroups entry in nsswitch.conf do not always
19771         continue on a successful lookup.  Don't always use the
19772         __nss_group_database value if it is set.
19773         * nss/nsswitch.conf (initgroups): Change action for successful db
19774         lookup to continue for compatibility.
19775
19776 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19777
19778         [BZ #11532]
19779         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19780         and CP774 modules.
19781         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19782         and CP774 modules.
19783         * iconvdata/tst-tables.sh: Likewise.
19784         * iconvdata/cp770.c: New file.
19785         * iconvdata/cp771.c: New file.
19786         * iconvdata/cp772.c: New file.
19787         * iconvdata/cp773.c: New file.
19788         * iconvdata/cp774.c: New file.
19789         * iconvdata/testdata/CP770: New file.
19790         * iconvdata/testdata/CP770..UTF8: New file.
19791         * iconvdata/testdata/CP771: New file.
19792         * iconvdata/testdata/CP771..UTF8: New file.
19793         * iconvdata/testdata/CP772: New file.
19794         * iconvdata/testdata/CP772..UTF8: New file.
19795         * iconvdata/testdata/CP773: New file.
19796         * iconvdata/testdata/CP773..UTF8: New file.
19797         * iconvdata/testdata/CP774: New file.
19798         * iconvdata/testdata/CP774..UTF8: New file.
19799
19800         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19801         END CHARMAP line.
19802         * iconvdata/gen-8bit-gap.sh: Likewise.
19803         * iconvdata/gen-8bit.sh: Likewise.
19804
19805         * locale/iso-639.def: Add ary entry.
19806
19807         [BZ #11258]
19808         * locale/C-translit.h.in: Add U20A1 transliteration.
19809
19810         [BZ #12178]
19811         * locale/iso-639.def: Add wae entry.
19812         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19813
19814         [BZ #12545]
19815         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19816         for n.
19817
19818         [BZ #12711]
19819         * locale/C-translit.h.in: Add entry for U20B9.
19820         Patch by pravin.d.s@gmail.com.
19821
19822 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19823
19824         [BZ #12713]
19825         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19826         ENAMETOOLONG use generic getcwd.
19827         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19828         in rtld.  Use *stat64.
19829         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19830         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19831         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19832         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19833         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19834         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19835         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19836         __fstatat64 macros.
19837         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19838         * dirent/rewinddir.c: Add libc_hidden_def.
19839         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19840         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19841
19842         * include/dirent.h (__alloc_dir): Add flags parameter.
19843         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19844         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19845         __alloc_dir.
19846         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19847         from fdopendir if O_CLOEXEC is already set.
19848
19849 2011-03-15  Alan Modra  <amodra@gmail.com>
19850
19851         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19852         l_tls_firstbyte_offset non-zero.  Save padding offset in
19853         l_tls_firstbyte_offset for later use.
19854         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19855         freeing static tls block.
19856
19857 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19858
19859         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19860         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19861         being defined by the kernel headers.
19862
19863 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19864
19865         [BZ #12734]
19866         * resolv/resolv.h: Define RES_NOTLDQUERY.
19867         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19868         no-tld-query and set RES_NOTLDQUERY.
19869         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19870         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19871         modern BIND to search name as TLD unless forbidden.
19872
19873 2011-05-07  Petr Baudis  <pasky@suse.cz>
19874             Ulrich Drepper  <drepper@gmail.com>
19875
19876         [BZ #12393]
19877         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19878         (is_trusted_path): ...to here.
19879         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19880         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19881         using is_trusted_path_normalize() in setuid scripts.
19882
19883 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19884
19885         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19886         __BEGIN/__END_DECLS.
19887
19888 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19889
19890         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19891         NSS_STATUS_NOTFOUND if no record was found.
19892
19893 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19894
19895         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19896         (headers-not-in-tirpc): Remove rpc/netdb.h
19897         * resolv/netdb.h: Revert last change.
19898
19899 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19900
19901         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19902         circular dependency between libgcc.a and libc.a.
19903
19904 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19905
19906         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19907         * nis/Makefile: Don't install rpcsvc/*.
19908         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19909         instead of <rpc/types.h>.
19910         (MAXHOSTNAMELEN): Define.
19911
19912 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19913
19914         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19915
19916 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19917
19918         [BZ #12714]
19919         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19920         gethostbyname4_r when IPv6 results are possible.
19921
19922 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19923
19924         [BZ #12723]
19925         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19926         _PC_PIPE_BUF handling.
19927
19928 2011-04-30  Bruno Haible  <bruno@clisp.org>
19929
19930         [BZ #12717]
19931         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19932         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19933         to 'int'.
19934         * inet/getnameinfo.c (getnameinfo): Likewise.
19935
19936 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19937
19938         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19939         to groups setting in database lookup.
19940         * nss/nsswitch.conf: Add initgroups entry.
19941
19942 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19943
19944         [BZ #12685]
19945         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19946         mode string.
19947         Patch by Eric Blake <eblake@redhat.com>.
19948
19949 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19950
19951         * sunrpc/Makefile (need-export-routines): Add svc_run.
19952         (routines): Remove svc_run.
19953         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19954         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19955         * sunrpc/svc_run.c (svc_run): Likewise.
19956         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19957
19958 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19959
19960         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19961         problem in reallocation in last patch.
19962
19963 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19964
19965         * sunrpc/Makefile: Move inclusion of Rules.
19966
19967 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19968
19969         * nss/nss_files/files-initgroups.c: New file.
19970         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19971         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19972         _nss_files_initgroups_dyn.
19973
19974 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19975
19976         * elf/elf.h (R_ARM_IRELATIVE): Define.
19977
19978 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19979
19980         * po/ru.po: Update from translation team.
19981
19982 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19983
19984         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19985         dependencies.
19986
19987 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19988
19989         [BZ #12653]
19990         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19991         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19992         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19993         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19994         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19995
19996 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19997
19998         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19999         differing bytes.
20000         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20001         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20002         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20003
20004 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20005
20006         [BZ #12420]
20007         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20008         storing it.
20009         * stdlib/bug-getcontext.c: New file.
20010         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20011
20012 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20013
20014         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20015         instructions into .machine "z9-109".
20016         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20017         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20018
20019 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20020
20021         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20022         between environment variables and auxiliary vector.
20023
20024 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20025
20026         * Makefile: Add rules to build linkobj/libc.so.
20027         * include/libc-symbols.h: Define libc_hidden_nolink.
20028         * include/rpc/auth.h: Mark functions which are to be hidden.
20029         * include/rpc/auth_des.h: Likewise.
20030         * include/rpc/auth_unix.h: Likewise.
20031         * include/rpc/clnt.h: Likewise.
20032         * include/rpc/des_crypt.h: Likewise.
20033         * include/rpc/key_prot.h: Likewise.
20034         * include/rpc/pmap_clnt.h: Likewise.
20035         * include/rpc/pmap_prot.h: Likewise.
20036         * include/rpc/pmap_rmt.h: Likewise.
20037         * include/rpc/rpc_msg.h: Likewise.
20038         * include/rpc/svc.h: Likewise.
20039         * include/rpc/svc_auth.h: Likewise.
20040         * include/rpc/xdr.h: Likewise.
20041         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20042         * nss/Makefile: Likewise.
20043         * sunrpc/Makefile: Don't install headers.  Build library with normal
20044         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20045         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20046         for the compat linking library.  Remove use of INTDEF/INTUSE.
20047         * sunrpc/auth_none.c: Likewise.
20048         * sunrpc/auth_unix.c: Likewise.
20049         * sunrpc/authdes_prot.c: Likewise.
20050         * sunrpc/authuxprot.c: Likewise.
20051         * sunrpc/clnt_gen.c: Likewise.
20052         * sunrpc/clnt_perr.c: Likewise.
20053         * sunrpc/clnt_raw.c: Likewise.
20054         * sunrpc/clnt_simp.c: Likewise.
20055         * sunrpc/clnt_tcp.c: Likewise.
20056         * sunrpc/clnt_udp.c: Likewise.
20057         * sunrpc/clnt_unix.c: Likewise.
20058         * sunrpc/des_crypt.c: Likewise.
20059         * sunrpc/des_soft.c: Likewise.
20060         * sunrpc/get_myaddr.c: Likewise.
20061         * sunrpc/key_call.c: Likewise.
20062         * sunrpc/key_prot.c: Likewise.
20063         * sunrpc/netname.c: Likewise.
20064         * sunrpc/pm_getmaps.c: Likewise.
20065         * sunrpc/pm_getport.c: Likewise.
20066         * sunrpc/pmap_clnt.c: Likewise.
20067         * sunrpc/pmap_prot.c: Likewise.
20068         * sunrpc/pmap_prot2.c: Likewise.
20069         * sunrpc/pmap_rmt.c: Likewise.
20070         * sunrpc/publickey.c: Likewise.
20071         * sunrpc/rpc_cmsg.c: Likewise.
20072         * sunrpc/rpc_common.c: Likewise.
20073         * sunrpc/rpc_dtable.c: Likewise.
20074         * sunrpc/rpc_prot.c: Likewise.
20075         * sunrpc/rpc_thread.c: Likewise.
20076         * sunrpc/rtime.c: Likewise.
20077         * sunrpc/svc.c: Likewise.
20078         * sunrpc/svc_auth.c: Likewise.
20079         * sunrpc/svc_authux.c: Likewise.
20080         * sunrpc/svc_raw.c: Likewise.
20081         * sunrpc/svc_run.c: Likewise.
20082         * sunrpc/svc_simple.c: Likewise.
20083         * sunrpc/svc_tcp.c: Likewise.
20084         * sunrpc/svc_udp.c: Likewise.
20085         * sunrpc/svc_unix.c: Likewise.
20086         * sunrpc/svcauth_des.c: Likewise.
20087         * sunrpc/xcrypt.c: Likewise.
20088         * sunrpc/xdr.c: Likewise.
20089         * sunrpc/xdr_array.c: Likewise.
20090         * sunrpc/xdr_float.c: Likewise.
20091         * sunrpc/xdr_intXX_t.c: Likewise.
20092         * sunrpc/xdr_mem.c: Likewise.
20093         * sunrpc/xdr_rec.c: Likewise.
20094         * sunrpc/xdr_ref.c: Likewise.
20095         * sunrpc/xdr_sizeof.c: Likewise.
20096         * sunrpc/xdr_stdio.c: Likewise.
20097
20098 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20099
20100         [BZ #12650]
20101         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20102         * sysdeps/ia64/dl-tls.h: Likewise.
20103         * sysdeps/powerpc/dl-tls.h: Likewise.
20104         * sysdeps/s390/dl-tls.h: Likewise.
20105         * sysdeps/sh/dl-tls.h: Likewise.
20106         * sysdeps/sparc/dl-tls.h: Likewise.
20107         * sysdeps/x86_64/dl-tls.h: Likewise.
20108         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20109
20110 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20111
20112         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20113         rpath element also skip the following colon.
20114         (expand_dynamic_string_token): Add is_path parameter and pass
20115         down to DL_DST_REQUIRED and _dl_dst_substitute.
20116         (decompose_rpath): Call expand_dynamic_string_token with
20117         non-zero is_path.  Ignore empty rpaths.
20118         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20119         with zero is_path.
20120
20121 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20122
20123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20124         Make cancelable.
20125
20126 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20127
20128         [BZ #12655]
20129         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20130         Patch by Filipe David Manana <fdmanana@apache.org>.
20131
20132 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20133
20134         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20135         Maintain aligned stack.
20136         (CHECK_RSP): Remove unused macro.
20137
20138 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20139
20140         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20141         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20142
20143 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20144
20145         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20146
20147         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20148
20149 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20150
20151         [BZ #12518]
20152         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20153         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20154         * sysdeps/x86_64/memmove.c: New file.
20155         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20156         (memcpy): Renamed to ...
20157         (__new_memcpy): This.
20158         (memcpy): Provide GLIBC_2_14 memcpy.
20159         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20160         (memcpy): Provide GLIBC_2_2_5 memcpy.
20161
20162 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20163
20164         [BZ #12631]
20165         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20166
20167 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20168
20169         * misc/syncfs.c: New file.
20170         * misc/Makefile (routines): Add syncfs.
20171         * posix/unistd.h: Declare syncfs.
20172         * sysdeps/unix/syscalls.list: Add syncfs.
20173
20174 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20175
20176         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20177         open_by_handle_at.
20178         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20179         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20180         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20181         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20182         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20183         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20184         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20185
20186 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20187
20188         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20189         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20190         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20191         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20192         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20193         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20194         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20195
20196         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20197         sync_file_range.c with -fexceptions.
20198         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20199         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20200         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20201         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20202         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20203         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20204         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20205         sync_file_range as cancellation point
20206         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20207         now a wrapper around __call_sync_file_range with cancellation handling.
20208         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20209         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20210         function name to __call_sync_file_range.
20211         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20212         Add call_sync_file_range.
20213
20214 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20215
20216         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20217         bits/timex.h.
20218
20219 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20220
20221         * iconv/iconv.h: Fix typo in comment.
20222         * io/fcntl.h: Likewise.
20223         * libio/stdio.h: Likewise.
20224         * posix/spawn.h: Likewise.
20225         * posix/unistd.h: Likewise.
20226         * stdlib/stdlib.h: Likewise.
20227         * time/time.h: Likewise.
20228         * wcsmbs/wchar.h: Likewise.
20229
20230         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20231         open_by_handle): Add.
20232         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20233         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20234         Augment a few comments.
20235         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20236         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20237         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20238         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20239         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20240         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20241         open_by_handle.
20242
20243         * io/fcntl.h (AT_EMPTY_PATH): Define.
20244
20245 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20246
20247         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20248         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20249         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20250         to...
20251         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20252         * Versions.def: Add GLIBC_2.14.
20253         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20254         Export.
20255
20256 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20257
20258         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20259         round counter.
20260         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20261
20262 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20263
20264         [BZ #12597]
20265         * string/test-strncmp.c (do_page_test): New function.
20266         (check2): Likewise.
20267         (test_main): Call check2.
20268         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20269
20270 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20271
20272         [BZ #12587]
20273         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20274         Handle cache information in CPU leaf 4.
20275         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20276
20277 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20278
20279         [BZ #12583]
20280         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20281         character representation.
20282         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20283
20284 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20285
20286         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20287         END(__isnan) to END(__isnanf) to match function entry point/label
20288         EALIGN(__isnanf,...).
20289
20290 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20291
20292         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20293
20294 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20295
20296         [BZ #12510]
20297         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20298         copy from the symbol referenced in the relocation to initialize the
20299         used variable.
20300         Patch by Piotr Bury <pbury@goahead.com>.
20301         * elf/Makefile: Add rules to build and tst-unique3.
20302         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20303         * elf/tst-unique3.cc: New file.
20304         * elf/tst-unique3.h: New file.
20305         * elf/tst-unique3lib.cc: New file.
20306         * elf/tst-unique3lib2.cc: New file.
20307
20308         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20309
20310 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20311
20312         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20313         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20314         to _start.
20315
20316 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20317
20318         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20319         to-be-loaded object along a path to loader is ld.so.
20320
20321 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20322             Ulrich Drepper  <drepper@gmail.com>
20323
20324         * sysdeps/x86_64/memset.S: After aligning destination, code
20325         branches to different locations depending on the value of
20326         misalignment, when multiarch is enabled. Fix this.
20327
20328 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20329
20330         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20331         Set _x86_64_preferred_memory_instruction for AMD processsors.
20332         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20333         Set bit_Prefer_SSE_for_memop for AMD processors.
20334
20335 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20336
20337         * libio/fmemopen.c (fmemopen): Optimize a bit.
20338
20339 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20340
20341         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20342
20343 2011-03-03  Roland McGrath  <roland@redhat.com>
20344
20345         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20346
20347 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20348
20349         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20350         __bzero_ultra1 instead of __memset_ultra1.
20351
20352 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20353             Ulrich Drepper  <drepper@gmail.com>
20354
20355         [BZ #12509]
20356         * include/link.h (struct link_map): Add l_orig_initfini.
20357         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20358         returning unsuccessfully.
20359         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20360         close of a file loaded at startup, restore the original l_initfini
20361         list.
20362         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20363         list, store the pointer.
20364         * elf/Makefile ($(objpfx)noload-mem): New rule.
20365         (noload-ENV): Define.
20366         (tests): Add $(objpfx)noload-mem.
20367         * elf/noload.c: Include <memcheck.h>.
20368         (main): Call mtrace.  Close all opened handles.
20369
20370 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20371
20372         [BZ #12454]
20373         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20374         dependencies are missing.
20375
20376 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20377
20378         Fix __if_freereq crash: Unlike the generic version which uses free,
20379         Hurd needs munmap.
20380         * sysdeps/mach/hurd/ifreq.h: New file.
20381
20382 2011-01-27  Petr Baudis  <pasky@suse.cz>
20383             Ulrich Drepper  <drepper@gmail.com>
20384
20385         [BZ 12445]#
20386         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20387         to extend_alloca().
20388         * stdio-common/bug23.c: New file.
20389         * stdio-common/Makefile (tests): Add bug23.
20390
20391 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20392             Ulrich Drepper  <drepper@gmail.com>
20393
20394         [BZ #12489]
20395         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20396         before performing relro protection.  At old place add assertion
20397         to make sure nothing changed.
20398
20399 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20400             Glauber de Oliveira Costa  <glommer@gmail.com>
20401
20402         * elf/elf.h: Add new ARM TLS relocs.
20403
20404 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20405
20406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20407         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20408         cast from r3.
20409         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20410         'tests' variable.
20411         * sysdeps/wordsize-64/tst-writev.c: New file.
20412
20413 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20414
20415         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20416         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20417         insns in _dl_start to prevent a TOC reference before relocs are
20418         resolved.
20419
20420 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20421
20422         [BZ #12469]
20423         * Makeconfig: Remove RANLIB definition.
20424         * Makerules: Don't use RANLIB.
20425         * aclocal.m4: Remove ranlib test.
20426         * configure.in: No need to check for ranlib.
20427         * elf/rtld-Rules: Don't use RANLIB.
20428
20429 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20430
20431         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20432         protection macro.
20433         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20434         inclusion protection macro.
20435
20436         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20437         SIGRTMIN and SIGRTMAX and print information in that case only when
20438         SIGRTMIN is defined.
20439
20440 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20441
20442         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20443         arginfo fn returning -1.
20444
20445         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20446         and thousands string is zero terminated.
20447
20448 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20449
20450         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20451         sysdeps/unix/sysv/linux/bits/socket.h.
20452
20453 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20454
20455         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20456         (__CPU_COUNT): Remove old macros.
20457         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20458         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20459         (__CPU_ALLOC, __CPU_FREE): Add macros.
20460         (__sched_cpualloc, __sched_cpufree): Add declarations.
20461
20462 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20463
20464         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20465         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20466         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20467         (readdhstai): Return value of addhstaiX call.
20468         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20469         (addgrbyX): Return value returned by cache_addgr.
20470         (readdgrbyname): Return value returned by addgrbyX.
20471         (readdgrbygid): Likewise.
20472         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20473         (addpwbyX): Return value returned by cache_addpw.
20474         (readdpwbyname): Return value returned by addhstbyX.
20475         (readdpwbyuid): Likewise.
20476         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20477         (addservbyX): Return value returned by cache_addserv.
20478         (readdservbyname): Return value returned by addservbyX:
20479         (readdservbyport): Likewise.
20480         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20481         (addhstbyX): Return value returned by cache_addhst.
20482         (readdhstbyname): Return value returned by addhstbyX.
20483         (readdhstbyaddr): Likewise.
20484         (readdhstbynamev6): Likewise.
20485         (readdhstbyaddrv6): Likewise.
20486         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20487         (readdinitgroups): Return value returned by addinitgroupsX.
20488         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20489         (prune_cache): Keep track of timeout value of re-added entries.
20490         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20491         * nscd/nscd.h: Adjust prototypes of readd* functions.
20492
20493 2011-02-04  Roland McGrath  <roland@redhat.com>
20494
20495         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20496         (nis_stats): Likewise.
20497         * nis/nis_modify.c (nis_modify): Likewise.
20498         * nis/nis_remove.c (nis_remove): Likewise.
20499         * nis/nis_add.c (nis_add): Likewise.
20500
20501         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20502
20503         * posix/fnmatch_loop.c: Add some consts.
20504
20505         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20506
20507 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20508
20509         [BZ #12460]
20510         * config.make.in (config-cflags-novzeroupper): Define.
20511         * configure.in: Substitute libc_cv_cc_novzeroupper.
20512         * elf/Makefile (AVX-CFLAGS): Define.
20513         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20514         (CFLAGS-tst-auditmod4a.c): Likewise.
20515         (CFLAGS-tst-auditmod4b.c): Likewise.
20516         (CFLAGS-tst-auditmod6b.c): Likewise.
20517         (CFLAGS-tst-auditmod6c.c): Likewise.
20518         (CFLAGS-tst-auditmod7b.c): Likewise.
20519         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20520
20521 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20522
20523         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20524         function to the callback.
20525         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20526
20527 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20528
20529         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20530         of errno.
20531
20532 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20533
20534         [BZ #11724]
20535         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20536         of constructors.
20537         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20538         of destructors.
20539         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20540
20541         [BZ #11724]
20542         * elf/Makefile: Add rules to build and run new test.
20543         * elf/tst-initorder.c: New file.
20544         * elf/tst-initorder.exp: New file.
20545         * elf/tst-initordera1.c: New file.
20546         * elf/tst-initordera2.c: New file.
20547         * elf/tst-initordera3.c: New file.
20548         * elf/tst-initordera4.c: New file.
20549         * elf/tst-initorderb1.c: New file.
20550         * elf/tst-initorderb2.c: New file.
20551         * elf/tst-order-a1.c: New file.
20552         * elf/tst-order-a2.c: New file.
20553         * elf/tst-order-a3.c: New file.
20554         * elf/tst-order-a4.c: New file.
20555         * elf/tst-order-b1.c: New file.
20556         * elf/tst-order-b2.c: New file.
20557         * elf/tst-order-main.c: New file.
20558         New test case by George Gensure <werkt0@gmail.com>.
20559
20560 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20561
20562         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20563         decoding ACE if AI_CANONIDN.
20564
20565 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20566
20567         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20568
20569 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20570
20571         * version.h (RELEASE): Bump for 2.13 release.
20572         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20573
20574         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20575
20576         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20577         MADV_NOHUGEPAGE.
20578         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20579         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20580         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20581         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20582         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20583         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20584
20585         * posix/getconf.c: Update copyright year.
20586         * catgets/gencat.c: Likewise.
20587         * csu/version.c: Likewise.
20588         * debug/catchsegv.sh: Likewise.
20589         * debug/xtrace.sh: Likewise.
20590         * elf/ldconfig.c: Likewise.
20591         * elf/ldd.bash.in: Likewise.
20592         * elf/sprof.c (print_version): Likewise.
20593         * iconv/iconv_prog.c: Likewise.
20594         * iconv/iconvconfig.c: Likewise.
20595         * locale/programs/locale.c: Likewise.
20596         * locale/programs/localedef.c: Likewise.
20597         * malloc/memusage.sh: Likewise.
20598         * malloc/mtrace.pl: Likewise.
20599         * nscd/nscd.c (print_version): Likewise.
20600         * nss/getent.c: Likewise.
20601
20602         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20603         PF_CAIF, and PF_ALG.
20604         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20605
20606 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20607
20608         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20609         (modules-names): Use them.
20610         (ifunc-test-modules, ifunc-pie-tests): Define.
20611         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20612         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20613         (test-extras): Likewise.
20614         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20615         $(compile-command.c).
20616         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20617         (all-built-dso): Define.
20618         (check-textrel.out, check-execstack.out): Depend on it.
20619
20620         * configure.in: Don't override --enable-multi-arch.
20621
20622 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20623
20624         [BZ #6812]
20625         * nscd/hstcache.c (tryagain): Define.
20626         (cache_addhst): Return tryagain not notfound for temporary errors.
20627         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20628         failed.
20629
20630 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20631
20632         [BZ #10563]
20633         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20634         to make the syscall.
20635         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20636
20637         [BZ #12378]
20638         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20639         and fall back to matching as normal character if the string ends before
20640         the matching ']' is found.  This is what POSIX requires.
20641         * posix/testfnm.c: Adjust test result.
20642         * posix/globtest.sh: Adjust test result.  Add new test.
20643         * posix/tst-fnmatch.input: Likewise.
20644         * posix/tst-fnmatch2.c: Add new test.
20645
20646 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20647
20648         * elf/Makefile (check-execstack): Revert last change.  Depend on
20649         check-execstack.h.
20650         (check-execstack.h): New target.
20651         (generated): Add check-execstack.h.
20652         * elf/check-execstack.c: Include "check-execstack.h".
20653         (main): Revert last change.
20654         (handle_file): Return zero if GNU_STACK is absent and
20655         DEFAULT_STACK_PERMS doesn't include PF_X.
20656
20657 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20658
20659         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20660         in child fails because the descriptor is already closed.
20661         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20662         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20663         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20664
20665         [BZ #12397]
20666         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20667         syscall.
20668
20669         [BZ #10484]
20670         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20671         temporary buffer used to handle multi lookups locally.
20672         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20673
20674 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20675
20676         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20677         loader is ld.so.
20678
20679 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20680
20681         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20682         alignment for SSE2.
20683
20684 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20685
20686         [BZ #12394]
20687         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20688         characters.  When rounding increased number of integer digits recompute
20689         number of groups.
20690         * stdio-common/tst-grouping.c: New file.
20691         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20692
20693 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20694
20695         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20696         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20697
20698         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20699         void.
20700         * bits/select.h: Likewise.
20701
20702 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20703
20704         * po/ja.po: Update from translation team.
20705
20706 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20707
20708         [BZ #11155]
20709         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20710         implementation just like for lxstat, fxstatat, et al.
20711
20712 2010-12-27  Jim Meyering  <meyering@redhat.com>
20713
20714         [BZ #12348]
20715         * posix/regexec.c (build_trtable): Return failure indication upon
20716         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20717
20718 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20719
20720         [BZ #12201]
20721         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20722         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20723         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20724         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20725
20726         [BZ #12207]
20727         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20728
20729         [BZ #12204]
20730         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20731         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20732
20733 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20734
20735         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20736         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20737         script has SORT_BY_INIT_PRIORITY.
20738         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20739         NO_CTORS_DTORS_SECTIONS is defined.
20740         * elf/soinit.c: Likewise.
20741         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20742         NO_CTORS_DTORS_SECTIONS is defined.
20743         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20744         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20745         * sysdeps/sh/init-first.c: Likewise.
20746         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20747
20748 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20749
20750         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20751         always use the slow path.
20752
20753 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20754
20755         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20756         similar rule which adds the sysdep directories to the header search in
20757         order to pick up the correct platform stackinfo.h.
20758         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20759         perform test if it is, otherwise return successfully without testing.
20760         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20761         DEFAULT_STACK_PERMS define in stackinfo.h.
20762         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20763         defined in stackinfo.h.
20764         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20765         DEFAULT_STACK_PERMS defined in stackinfo.h.
20766         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20767         * sysdeps/ia64/stackinfo.h: Likewise.
20768         * sysdeps/s390/stackinfo.h: Likewise.
20769         * sysdeps/sh/stackinfo.h: Likewise.
20770         * sysdeps/sparc/stackinfo.h: Likewise.
20771         * sysdeps/x86_64/stackinfo.h: Likewise.
20772         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20773         PF_X for powerpc64.  Retain PF_X for powerpc32.
20774
20775 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20776
20777         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20778         accurately.
20779         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20780         GETDENTS_64BIT_ALIGNED.
20781
20782 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20783
20784         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20785
20786 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20787
20788         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20789         _GNU_SOURCE.
20790
20791         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20792         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20793         Remove __restrict.
20794         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20795         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20796
20797 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20798
20799         [BZ #11655]
20800         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20801         are initialized.
20802
20803 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20804
20805         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20806
20807 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20808
20809         * po/it.po: Update from translation team.
20810
20811 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20812
20813         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20814         unused codes.
20815
20816 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20817
20818         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20819
20820 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20821
20822         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20823         specially.
20824         (gaih_getanswer_slice): Likewise.
20825
20826 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20827
20828         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20829
20830 2010-05-31  Petr Baudis  <pasky@suse.cz>
20831
20832         [BZ #11149]
20833         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20834         silently even in the chroot mode.
20835
20836 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20837
20838         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20839         last patch a bit.  Pretty printing
20840
20841 2010-05-31  Petr Baudis <pasky@suse.cz>
20842
20843         [BZ #10085]
20844         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20845         initialization of skip_initgroups_dyn.
20846
20847 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20848
20849         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20850         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20851
20852 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20853
20854         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20855
20856 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20857
20858         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20859         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20860         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20861         ($(objpfx)tst-fnmatch-mem): New rule.
20862         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20863         * posix/tst-fnmatch.c (main): Call mtrace.
20864
20865 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20866
20867         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20868         Support Intel processor model 6 and model 0x2c.
20869
20870 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20871
20872         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20873           signed comparison.
20874
20875 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20876
20877         [BZ #12205]
20878         * string/test-strncasecmp.c (check_result): New function.
20879         (do_one_test): Use it.
20880         (check1): New function.
20881         (test_main): Use it.
20882         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20883         Support strcasecmp and strncasecmp.
20884
20885 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20886
20887         [BZ #12194]
20888         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20889         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20890
20891 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20892
20893         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20894         IFUNC support.
20895         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20896         memset-x86-64.
20897         * sysdeps/x86_64/multiarch/bzero.S: New file.
20898         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20899         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20900         * sysdeps/x86_64/multiarch/memset.S: New file.
20901         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20902         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20903         Set bit_Prefer_SSE_for_memop for Intel processors.
20904         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20905         Define.
20906         (index_Prefer_SSE_for_memop): Define.
20907         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20908
20909 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20910
20911         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20912         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20913
20914 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20915
20916         [BZ #12191]
20917         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20918         (__x86_64_raw_data_cache_size_half): Likewise.
20919         (__x86_64_raw_shared_cache_size): Likewise.
20920         (__x86_64_raw_shared_cache_size_half): Likewise.
20921
20922         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20923         (__x86_64_raw_data_cache_size_half): Likewise.
20924         (__x86_64_raw_shared_cache_size): Likewise.
20925         (__x86_64_raw_shared_cache_size_half): Likewise.
20926         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20927         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20928         and __x86_64_raw_shared_cache_size_half.  Round
20929         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20930         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20931         to multiple of 256 bytes.
20932
20933 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20934
20935         [BZ #12167]
20936         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20937         of inacessible symlinks.  Verify result of symlink before returning it.
20938         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20939         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20940
20941 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20942
20943         * math/math.h (isinf): Fix typo in comment.
20944
20945 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20946
20947         * po/da.po: Update from translation team.
20948
20949 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20950
20951         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20952         is added to the list.
20953
20954 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20955             Ulrich Drepper  <drepper@gmail.com>
20956
20957         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20958         the global list here.  Move code to...
20959         (_dl_add_to_namespace_list): ...here.  New function.
20960         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20961         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20962         * elf/dl-load.c (lose): Don't remove the element from the list.
20963         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20964         (_dl_map_object): Likewise.
20965
20966 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20967
20968         [BZ #12159]
20969         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20970         into all bytes of SSE register.
20971         Patch by Richard Li <richardpku@gmail.com>.
20972
20973 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20974
20975         [BZ #12140]
20976         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20977         perturbing.
20978
20979 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20980
20981         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20982         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20983         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20984         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20986         submachine.
20987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20988
20989 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20990
20991         * include/dlfcn.h (__RTLD_SECURE): Define.
20992         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20993         mode & __RTLD_SECURE instead.
20994         (open_path): Rename preloaded parameter to secure.
20995         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20996         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20997         * elf/dl-deps.c (openaux): Likewise.
20998         * elf/rtld.c (struct map_args): Remove is_preloaded.
20999         (map_doit): Don't use it.
21000         (dl_main): Likewise.
21001         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21002         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21003
21004 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21005
21006         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21007         (sysd-rules-targets): Remove duplicates.
21008         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21009         rtld-%.$o dependency.
21010
21011 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21012
21013         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21014         _dl_map_object do it.
21015
21016 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21017
21018         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21019         fast fma builtins, define the macros in the C99 standard.
21020         (FP_FAST_FMAF): Likewise.
21021         (FP_FAST_FMAL): Likewise.
21022         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21023
21024         * bits/mathdef.h: Update copyright year.
21025         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21026
21027 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21028
21029         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21030         builtins, define the macros in the C99 standard.
21031         (FP_FAST_FMAF): Likewise.
21032         (FP_FAST_FMAL): Likewise.
21033         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21034         multiply/add.
21035         (FP_FAST_FMAF): Likewise.
21036
21037 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21038
21039         [BZ #3268]
21040         * math/libm-test.inc (fma_test): Some new testcases.
21041         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21042         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21043         y and infinite z.  Do multiplication by C already in long double.
21044         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21045         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21046         y and infinite z.  Do bitwise or of inexact bit into u.d.
21047         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21048         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21049         * sysdeps/i386/fpu/s_fma.S: Removed.
21050         * sysdeps/i386/fpu/s_fmal.S: Removed.
21051
21052 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21053
21054         [BZ #3268]
21055         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21056         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21057         computation is not scheduled after fetestexcept.  Fix value
21058         of minimum denormal long double.
21059
21060 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21061
21062         [BZ #3268]
21063         * math/libm-test.inc (fma_test): Add some more tests.
21064         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21065         correctly.
21066
21067 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21068
21069         * scripts/data/localplt-s390-linux-gnu.data: New file.
21070         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21071
21072 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21073
21074         [BZ #3268]
21075         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21076         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21077         instead of dbl-64.
21078         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21079         inlines.
21080         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21081         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21082         if one of x and y is very large and the other is subnormal.
21083         * sysdeps/s390/fpu/s_fmaf.c: New file.
21084         * sysdeps/s390/fpu/s_fma.c: New file.
21085         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21086         * sysdeps/powerpc/fpu/s_fma.S: New file.
21087         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21088         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21089         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21090
21091 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21092
21093         [BZ #3268]
21094         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21095         fma tests.
21096         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21097         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21098         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21099         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21100         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21101         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21102         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21103
21104 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21105
21106         [BZ #12078]
21107         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21108         * posix/bug-regex31.input: Add test case.
21109
21110 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21111
21112         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21113         * posix/bug-regex31.input: New file.
21114
21115         [BZ #12078]
21116         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21117         (parse_sub_exp): Fix last change, use postorder.
21118
21119         * posix/bug-regex31.c: New file.
21120         * posix/Makefile: Add rules to build and run bug-regex31.
21121
21122         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21123
21124         [BZ #12078]
21125         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21126
21127         [BZ #12108]
21128         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21129         to have entries in sys_siglist.
21130
21131         [BZ #12093]
21132         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21133         be NULL.
21134
21135 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21136
21137         [BZ #3268]
21138         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21139         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21140         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21141         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21142         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21143         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21144         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21145         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21146         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21147         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21148         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21149         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21150         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21151         * math/ftestexcept.c (fetestexcept): Likewise.
21152         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21153         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21154         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21155         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21156         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21157         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21158         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21159
21160 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21161
21162         [BZ #12107]
21163         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21164         newline.
21165
21166 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21167
21168         * string/bug-strstr1.c: New file.
21169         * string/Makefile: Add rules to build and run bug-strstr1.
21170
21171 2010-10-05  Eric Blake  <eblake@redhat.com>
21172
21173         [BZ #12092]
21174         * string/str-two-way.h (two_way_long_needle): Always clear memory
21175         when skipping input due to the shift table.
21176
21177 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21178
21179         [BZ #12005]
21180         * malloc/mcheck.c: Handle large requests.
21181
21182         [BZ #12077]
21183         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21184         for strncmp and strncasecmp.
21185         * string/stratcliff.c: Add tests for strcmp and strncmp.
21186         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21187
21188 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21189
21190         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21191         __set_fpscr.
21192
21193 2010-09-30  Andreas Jaeger  <aj@suse.de>
21194
21195         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21196         (CGROUP_SUPER_MAGIC): Define.
21197         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21198         Handle btrfs and cgroup file systems.
21199         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21200         Likewise.
21201
21202 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21203
21204         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21205         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21206
21207 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21208
21209         [BZ #12067]
21210         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21211         trying to locate the ELF header.
21212
21213 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21214
21215         [BZ #11611]
21216         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21217         Mask out sign-bit copies when constructing f_fsid.
21218
21219 2010-09-24  Petr Baudis <pasky@suse.cz>
21220
21221         * debug/stack_chk_fail_local.c: Add missing licence exception.
21222         * debug/warning-nop.c: Likewise.
21223
21224 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21225
21226         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21227         implementing getdents64 using getdents syscall, set d_type if
21228         __ASSUME_GETDENTS32_D_TYPE.
21229
21230 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21231
21232         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21233         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21234
21235 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21236
21237         [BZ #12037]
21238         * posix/unistd.h: Undo change of feature selection for ftruncate from
21239         2010-01-11.
21240
21241 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21242
21243         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21244         detection.
21245
21246 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21247
21248         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21249         fanotify_mark.
21250         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21251
21252 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21253
21254         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21255         variables after CHECK_SP call.
21256         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21257
21258 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21259             Ulrich Drepper  <drepper@redhat.com>
21260
21261         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21262         re-relocationg ld.so.
21263         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21264         _dl_init_paths call.
21265         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21266         here anymore.
21267
21268 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21269
21270         * resolv/res_init.c (__res_vinit): Count the default server we added.
21271
21272 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21273             Ulrich Drepper  <drepper@redhat.com>
21274
21275         [BZ #11968]
21276         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21277         (____longjmp_chk): Use %ebx for saving value across system call.
21278         Add unwind info.
21279
21280 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21281
21282         * manual/Makefile: Don't mix pattern rules with normal rules.
21283
21284 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21285
21286         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21287         operation.
21288         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21289         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21290         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21291         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21292         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21293         Likewise.
21294
21295 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21296
21297         [BZ #11979]
21298         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21299         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21300
21301 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21302
21303         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21304         * sysdeps/x86_64/addmul_1.S: Likewise.
21305         * sysdeps/x86_64/lshift.S: Likewise.
21306         * sysdeps/x86_64/mul_1.S: Likewise.
21307         * sysdeps/x86_64/rshift.S: Likewise.
21308         * sysdeps/x86_64/sub_n.S: Likewise.
21309         * sysdeps/x86_64/submul_1.S: Likewise.
21310
21311 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21312
21313         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21314         Define __sched_param instead of SCHED_* and sched_param when
21315         <bits/sched.h> is included with __need_schedparam defined.
21316         * bits/sched.h [__need_schedparam]
21317         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21318         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21319         (__defined_schedparam): Define to 1.
21320         (__sched_param): New structure, identical to sched_param.
21321         (__need_schedparam): Undefine.
21322
21323 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21324
21325         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21326         (epoll_create1): Declare.
21327
21328         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21329
21330 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21331
21332         [BZ #7066]
21333         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21334         shifting retval into place.
21335
21336 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21337
21338         * nis/rpcsvc/nis.h: Update copyright notice.
21339         * nis/rpcsvc/nis.x: Likewise.
21340         * nis/rpcsvc/nis_callback.h: Likewise.
21341         * nis/rpcsvc/nis_callback.x: Likewise.
21342         * nis/rpcsvc/nis_object.x: Likewise.
21343         * nis/rpcsvc/nis_tags.h: Likewise.
21344         * nis/rpcsvc/yp.h: Likewise.
21345         * nis/rpcsvc/yp.x: Likewise.
21346         * nis/rpcsvc/ypupd.h: Likewise.
21347         * nis/yp_xdr.c: Likewise.
21348         * nis/ypupdate_xdr.c: Likewise.
21349
21350         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21351         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21352         (pmap_getport): Use __libc_rpc_getport.
21353         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21354         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21355         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21356
21357 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21358
21359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21360         fanotify_mark.
21361
21362 2010-08-27  Roland McGrath  <roland@redhat.com>
21363
21364         * sysdeps/i386/i686/multiarch/Makefile
21365         (CFLAGS-varshift.c): New variable.
21366
21367 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21368
21369         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21370         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21371
21372         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21373
21374         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21375
21376 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21377
21378         * sysdeps/x86_64/strlen.S: Unroll the loop.
21379         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21380         strlen-sse2 strlen-sse2-bsf.
21381         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21382         __strlen_no_bsf if bit_Slow_BSF is set.
21383         (__strlen_sse42): Removed.
21384         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21385         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21386
21387 2010-08-25  Roland McGrath  <roland@redhat.com>
21388
21389         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21390         * sysdeps/x86_64/multiarch/varshift.c: New file.
21391         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21392         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21393         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21394         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21395
21396 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21397
21398         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21399         strlen-sse2 strlen-sse2-bsf.
21400         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21401         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21402         (__strlen_sse2): Removed.
21403         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21404         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21405         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21406         bit_Slow_BSF for Atom.
21407         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21408         (index_Slow_BSF): Define.
21409         (HAS_SLOW_BSF): Define.
21410
21411 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21412
21413         [BZ #10851]
21414         * resolv/res_init.c (__res_vinit): When no server address at all
21415         is given default to loopback.
21416
21417 2010-08-24  Roland McGrath  <roland@redhat.com>
21418
21419         * configure.in: Remove config-name.h generation.
21420         * configure: Regenerated.
21421         * config-name.in: File removed.
21422         * scripts/config-uname.sh: New file.
21423         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21424         ($(objdir)config-name.h): New target.
21425
21426         * sunrpc/rpc_parse.h: Avoid nested comment.
21427
21428 2010-08-24  Richard Henderson  <rth@redhat.com>
21429             Ulrich Drepper  <drepper@redhat.com>
21430             H.J. Lu  <hongjiu.lu@intel.com>
21431
21432         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21433         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21434         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21435         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21436         _mm_alignr_epi8 with _mm_loadu_si128.
21437         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21438         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21439         (__m128i_shift_right): Removed.
21440         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21441         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21442         * sysdeps/x86_64/multiarch/varshift.h: New file.
21443         * sysdeps/x86_64/multiarch/varshift.S: New file.
21444
21445 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21446
21447         * configure.in: Move assembler checks to before sysdep dir checking.
21448
21449 2010-08-20  Petr Baudis  <pasky@suse.cz>
21450
21451         * LICENSES: Sync the sunrpc license.
21452
21453 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21454
21455         * sunrpc/auth_des.c: Update copyright notice once again.
21456         * sunrpc/auth_none.c: Likewise.
21457         * sunrpc/auth_unix.c: Likewise.
21458         * sunrpc/authdes_prot.c: Likewise.
21459         * sunrpc/authuxprot.c: Likewise.
21460         * sunrpc/bindrsvprt.c: Likewise.
21461         * sunrpc/clnt_gen.c: Likewise.
21462         * sunrpc/clnt_perr.c: Likewise.
21463         * sunrpc/clnt_raw.c: Likewise.
21464         * sunrpc/clnt_simp.c: Likewise.
21465         * sunrpc/clnt_tcp.c: Likewise.
21466         * sunrpc/clnt_udp.c: Likewise.
21467         * sunrpc/clnt_unix.c: Likewise.
21468         * sunrpc/des_crypt.c: Likewise.
21469         * sunrpc/des_soft.c: Likewise.
21470         * sunrpc/get_myaddr.c: Likewise.
21471         * sunrpc/getrpcport.c: Likewise.
21472         * sunrpc/key_call.c: Likewise.
21473         * sunrpc/key_prot.c: Likewise.
21474         * sunrpc/openchild.c: Likewise.
21475         * sunrpc/pm_getmaps.c: Likewise.
21476         * sunrpc/pm_getport.c: Likewise.
21477         * sunrpc/pmap_clnt.c: Likewise.
21478         * sunrpc/pmap_prot.c: Likewise.
21479         * sunrpc/pmap_prot2.c: Likewise.
21480         * sunrpc/pmap_rmt.c: Likewise.
21481         * sunrpc/rpc/auth.h: Likewise.
21482         * sunrpc/rpc/auth_unix.h: Likewise.
21483         * sunrpc/rpc/clnt.h: Likewise.
21484         * sunrpc/rpc/des_crypt.h: Likewise.
21485         * sunrpc/rpc/key_prot.h: Likewise.
21486         * sunrpc/rpc/netdb.h: Likewise.
21487         * sunrpc/rpc/pmap_clnt.h: Likewise.
21488         * sunrpc/rpc/pmap_prot.h: Likewise.
21489         * sunrpc/rpc/pmap_rmt.h: Likewise.
21490         * sunrpc/rpc/rpc.h: Likewise.
21491         * sunrpc/rpc/rpc_des.h: Likewise.
21492         * sunrpc/rpc/rpc_msg.h: Likewise.
21493         * sunrpc/rpc/svc.h: Likewise.
21494         * sunrpc/rpc/svc_auth.h: Likewise.
21495         * sunrpc/rpc/types.h: Likewise.
21496         * sunrpc/rpc/xdr.h: Likewise.
21497         * sunrpc/rpc_clntout.c: Likewise.
21498         * sunrpc/rpc_cmsg.c: Likewise.
21499         * sunrpc/rpc_common.c: Likewise.
21500         * sunrpc/rpc_cout.c: Likewise.
21501         * sunrpc/rpc_dtable.c: Likewise.
21502         * sunrpc/rpc_hout.c: Likewise.
21503         * sunrpc/rpc_main.c: Likewise.
21504         * sunrpc/rpc_parse.c: Likewise.
21505         * sunrpc/rpc_parse.h: Likewise.
21506         * sunrpc/rpc_prot.c: Likewise.
21507         * sunrpc/rpc_sample.c: Likewise.
21508         * sunrpc/rpc_scan.c: Likewise.
21509         * sunrpc/rpc_scan.h: Likewise.
21510         * sunrpc/rpc_svcout.c: Likewise.
21511         * sunrpc/rpc_tblout.c: Likewise.
21512         * sunrpc/rpc_util.c: Likewise.
21513         * sunrpc/rpc_util.h: Likewise.
21514         * sunrpc/rpcinfo.c: Likewise.
21515         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21516         * sunrpc/rpcsvc/key_prot.x: Likewise.
21517         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21518         * sunrpc/rpcsvc/mount.x: Likewise.
21519         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21520         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21521         * sunrpc/rpcsvc/rex.x: Likewise.
21522         * sunrpc/rpcsvc/rstat.x: Likewise.
21523         * sunrpc/rpcsvc/rusers.x: Likewise.
21524         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21525         * sunrpc/rpcsvc/spray.x: Likewise.
21526         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21527         * sunrpc/rtime.c: Likewise.
21528         * sunrpc/svc.c: Likewise.
21529         * sunrpc/svc_auth.c: Likewise.
21530         * sunrpc/svc_authux.c: Likewise.
21531         * sunrpc/svc_raw.c: Likewise.
21532         * sunrpc/svc_run.c: Likewise.
21533         * sunrpc/svc_simple.c: Likewise.
21534         * sunrpc/svc_tcp.c: Likewise.
21535         * sunrpc/svc_udp.c: Likewise.
21536         * sunrpc/svc_unix.c: Likewise.
21537         * sunrpc/svcauth_des.c: Likewise.
21538         * sunrpc/xcrypt.c: Likewise.
21539         * sunrpc/xdr.c: Likewise.
21540         * sunrpc/xdr_array.c: Likewise.
21541         * sunrpc/xdr_float.c: Likewise.
21542         * sunrpc/xdr_mem.c: Likewise.
21543         * sunrpc/xdr_rec.c: Likewise.
21544         * sunrpc/xdr_ref.c: Likewise.
21545         * sunrpc/xdr_sizeof.c: Likewise.
21546         * sunrpc/xdr_stdio.c: Likewise.
21547
21548         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21549         handling.
21550
21551 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21552
21553         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21554
21555 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21556
21557         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21558         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21559         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21560         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21561         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21562         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21563         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21564         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21565         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21566         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21567         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21568         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21569         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21570         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21571
21572 2010-07-26  Anton Blanchard  <anton@samba.org>
21573
21574         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21575         * malloc/arena.c (heap_trim): Likewise.
21576
21577 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21578
21579         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21580         here.  Not...
21581         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21582         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21583
21584 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21585
21586         * sysdeps/i386/elf/Makefile: New file.
21587
21588 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21589
21590         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21591         from fanotify_init.
21592         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21593         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21594
21595 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21596
21597         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21598         of strncasecmp_l.
21599         * sysdeps/multiarch/strcmp.S: Likewise.
21600
21601 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21602
21603         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21604         strncase_l-nonascii.
21605         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21606         Add strncase_l-ssse3.
21607         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21608         * sysdeps/x86_64/strcmp.S: Likewise.
21609         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21610         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21611         * sysdeps/x86_64/strncase.S: New file.
21612         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21613         * sysdeps/x86_64/strncase_l.S: New file.
21614         * string/Makefile (strop-tests): Add strncasecmp.
21615         * string/test-strncasecmp.c: New file.
21616
21617         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21618         warning.
21619
21620         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21621         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21622
21623 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21624
21625         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21626
21627 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21628
21629         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21630         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21631         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21632
21633 2010-05-01  Alan Modra  <amodra@gmail.com>
21634
21635         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21636         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21637         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21638         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21639         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21640         tidying.  Don't tail-call __sigjmp_save for static lib.
21641         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21642         save location.
21643         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21644         (CALL_MCOUNT): Add eh info, and nop after bl.
21645         (TAIL_CALL_SYSCALL_ERROR): New macro.
21646         (PSEUDO_RET): Use it.
21647         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21648         Correct save location of integer regs and cr.
21649         (_dl_profile_resolve): Correct cr save location.  Delete nops
21650         after bl when SHARED.  Reduce cfi size a little by better
21651         placement of cfi directives.
21652         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21653         make a stack frame.  Instead use parm save area as a temp.
21654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21655         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21657         Don't make a stack frame for parent, use parm save area.
21658         Increase child stack frame to 112 bytes.  Don't save unused reg,
21659         and adjust reg usage.  Set up cfi on error recovery and
21660         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21662         (__makecontext): Add dummy nop after jump to exit.
21663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21664         Use correct parm save area and cr save, reduce stack frame.
21665         Correct cfi for possible PSEUDO_RET frame setup.
21666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21667         Branch to local label emitted by PSEUDO_RET rather than
21668         __syscall_error.
21669
21670 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21671
21672         [BZ #11904]
21673         * locale/programs/locale.c (print_assignment): New function.
21674         (show_locale_vars): Use it.
21675
21676 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21677
21678         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21679         field.
21680         (struct statfs64): Likewise.
21681         (_STATFS_F_FLAGS): Define.
21682         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21683         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21684         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21685         (ST_VALID): Define locally.
21686         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21687         __statvfs_getflags, use the provided value.
21688         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21689         __ASSUME_STATFS_F_FLAGS.
21690
21691         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21692
21693         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21694         Add sys/fanotify.h.
21695         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21696         fanotify_mask for GLIBC_2.13.
21697         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21698         fanotify_init and fanotify_mark.
21699         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21700         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21701
21702         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21703         Add prlimit.
21704         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21705         prlimit64 for GLIBC_2.13.
21706         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21707         prlimit64.
21708         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21709         syscall.
21710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21711         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21712         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21713         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21714         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21715         add prlimit alias.
21716         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21717
21718         [BZ #11903]
21719         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21720         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21721
21722         * nss/Makefile: Add rules to build and run tst-nss-test1.
21723         * shlib-versions: Add entry for libnss_test1.
21724         * nss/nss_test1.c: New file.
21725         * nss/tst-nss-test1.c: New file.
21726
21727         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21728         (__nss_configure_lookup): Set appropriate entry in
21729         __nss_configure_lookup to true.
21730         * nss/nsswitch.h: Define enum with indeces of databases in
21731         databases and __nss_database_custom arrays.  Declare
21732         __nss_database_custom.
21733         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21734         to avoid using nscd when custom rules are installed.
21735         * nss/getXXbyYY_r.c: Likewise.
21736         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21737
21738         * nss/nss_files/files-parse.c: Whitespace fixes.
21739
21740 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21741
21742         [BZ #11883]
21743         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21744         * posix/fnmatch_loop.c: Likewise.
21745
21746 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21747
21748         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21749         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21750         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21751         * Versions.def [GLIBC_2.13]: Add.
21752
21753 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21754
21755         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21756         Also fail if tpwd after pwuid call is NULL.
21757
21758 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21759
21760         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21761         when converting to ms.
21762
21763 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21764
21765         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21766         EOPNOTSUPP errors with ENOTTY.
21767         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21768         EOPNOTSUPP errors with ENOTTY.
21769
21770 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21771
21772         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21773         Add strcasecmp_l-ssse3.
21774         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21775         strcasecmp.
21776         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21777         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21778         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21779
21780 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21781
21782         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21783
21784         * string/Makefile (strop-tests): Add strcasecmp.
21785         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21786         strcasecmp_l-nonascii.
21787         (gen-as-const-headers): Add locale-defines.sym.
21788         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21789         * sysdeps/x86_64/strcasecmp.S: New file.
21790         * sysdeps/x86_64/strcasecmp_l.S: New file.
21791         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21792         * sysdeps/x86_64/locale-defines.sym: New file.
21793         * string/test-strcasecmp.c: New file.
21794
21795         * string/test-strcasestr.c: Test both ends of the range of characters.
21796         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21797
21798 2010-07-29  Roland McGrath  <roland@redhat.com>
21799
21800         [BZ #11856]
21801         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21802
21803 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21804
21805         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21806         for ld.so.
21807
21808 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21809
21810         * manual/memory.texi (Malloc Tunable Parameters): Document
21811         M_PERTURB.
21812
21813 2010-07-26  Roland McGrath  <roland@redhat.com>
21814
21815         [BZ #11840]
21816         * configure.in (-fgnu89-inline check): Set and substitute
21817         gnu89_inline, not libc_cv_gnu89_inline.
21818         * configure: Regenerated.
21819         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21820
21821 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21822
21823         * string/test-strnlen.c: New file.
21824         * string/Makefile (strop-tests): Add strnlen.
21825         * string/tester.c (test_strnlen): Add a few more test cases.
21826         * string/tst-strlen.c: Better error reporting.
21827
21828         * sysdeps/x86_64/strnlen.S: New file.
21829
21830 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21831
21832         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21833         lower-latency instructions.
21834
21835 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21836
21837         * string/test-strcasestr.c: New file.
21838         * string/test-strstr.c: New file.
21839         * string/Makefile (strop-tests): Add strstr and strcasestr.
21840         * string/str-two-way.h: Don't undefine MAX.
21841         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21842
21843 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21844
21845         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21846         strcasestr-nonascii.
21847         (CFLAGS-strcasestr-nonascii.c): Define.
21848         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21849         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21850         Remove unused attribute.
21851
21852 2010-07-20  Roland McGrath  <roland@redhat.com>
21853
21854         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21855         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21856         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21857         like LD_HWCAP_MASK can disable hwcaps.
21858
21859 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21860
21861         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21862
21863 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21864
21865         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21866         call in strcasestr.
21867         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21868         __strcasestr_sse42_nonascii.
21869         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21870         strcasestr-nonascii.c.
21871         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21872
21873 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21874
21875         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21876         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21877         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21878         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21879
21880 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21881
21882         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21883         fcntl.
21884
21885 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21886
21887         [BZ #11577]
21888         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21889         dl_signal_cerror.
21890
21891 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21892
21893         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21894         _PC_PIPE_BUF using F_GETPIPE_SZ.
21895
21896 2010-07-05  Roland McGrath  <roland@redhat.com>
21897
21898         * manual/arith.texi (Rounding Functions): Fix rint description
21899         implicit in round description.
21900
21901 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21902
21903         * elf/Makefile: Fix linking for a few tests to make recent linker
21904         happy.
21905
21906 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21907
21908         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21909         $(common-objpfx)libc_nonshared.a.
21910
21911 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21912
21913         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21914         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21915         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21916         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21917         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21918         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21919         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21920         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21935         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21936         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21937         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21938         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21939         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21940         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21941         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21942         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21943         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21944         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21945         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21946         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21961
21962 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21963
21964         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21965         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21966         * string/memmove.c (memmove): Renamed to ...
21967         (MEMMOVE): ...this.  Default to memmove.
21968         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21969         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21970         (END_CHK): Define.
21971         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21972         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21973         mempcpy-ssse3-back memmove-ssse3-back.
21974         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21975         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21976         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21977         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21978         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21979         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21980         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21981         * sysdeps/x86_64/multiarch/memmove.c: New file.
21982         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21983         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21984         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21985         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21986         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21987         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21988         Define.
21989         (index_Fast_Copy_Backward): Define.
21990         (HAS_ARCH_FEATURE): Define.
21991         (HAS_FAST_REP_STRING): Define.
21992         (HAS_FAST_COPY_BACKWARD): Define.
21993
21994 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21995
21996         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21997         Restore proper fallback handling.
21998
21999 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22000
22001         [BZ #11701]
22002         * posix/group_member.c (__group_member): Correct checking loop.
22003
22004         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22005         OOM in getpwuid_r correctly.  Return error number when the caller
22006         should return, otherwise -1.
22007         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22008         call returning > 0 value.
22009         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22010
22011 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22012
22013         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22014         libc_nonshared.a from targets in modules-names.
22015
22016 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22017
22018         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22019         requires it.
22020
22021 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22022
22023         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22024         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22025         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22026         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22027
22028 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22029
22030         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22031
22032 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22033
22034         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22035         and F_GETPIPE_SZ.
22036         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22037         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22038         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22039         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22040         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22041         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22042
22043 2010-06-14  Roland McGrath  <roland@redhat.com>
22044
22045         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22046
22047 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22048
22049         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22050         __REDIRECT followed by __THROW.
22051         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22052         * posix/getopt.h (getopt): Likewise.
22053
22054 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22055
22056         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22057         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22058         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22059         in AT_FLAGS.
22060         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22061         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22062
22063 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22064
22065         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22066
22067 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22068
22069         [BZ #11640]
22070         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22071         Properly check family and model.
22072
22073 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22074
22075         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22076
22077 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22078
22079         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22080
22081 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22082
22083         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22084         symbol reference.
22085
22086 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22087
22088         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22089         symbol reference.
22090
22091 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22092
22093         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22094         and internal_recvmmsg.
22095         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22096         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22097         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22098         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22099
22100         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22101         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22102         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22103
22104 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22105
22106         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22107
22108 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22109
22110         POWER7 optimizations.
22111         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22112         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22113
22114 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22115
22116         * version.h: Update for 2.13 development version.
22117
22118 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22119
22120         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22121         exceptions.  Return 0.
22122
22123 2010-05-07  Roland McGrath  <roland@redhat.com>
22124
22125         * elf/ldconfig.c (main): Add a const.
22126
22127 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22128
22129         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22130         (args_options): Add no-idn option.
22131         (ahosts_keys_int): Add idn_flags to ai_flags.
22132         (parse_option): Handle 'i' option to clear idn_flags.
22133
22134         * malloc/malloc.c (_int_free): Possible race in the most recently
22135         added check.  Only act on the data if no current modification
22136         happened.
22137
22138 See ChangeLog.17 for earlier changes.